/* ============================================================
   KOLEV PHOTO - Professional Photography & Videography
   Main Stylesheet
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Color Palette - Elegant, Warm & Trustworthy */
  --color-primary: #2c2c2c;
  --color-primary-light: #4a4a4a;
  --color-secondary: #c9a96e;        /* Warm gold - luxury, quality */
  --color-secondary-light: #d4ba85;
  --color-secondary-dark: #b08d4f;
  --color-accent: #8b7355;           /* Bronze accent */
  --color-bg: #faf9f7;               /* Warm off-white */
  --color-bg-alt: #f3f1ed;           /* Slightly darker warm bg */
  --color-bg-dark: #2c2c2c;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-white: #ffffff;
  --color-border: #e8e4de;
  --color-shadow: rgba(44, 44, 44, 0.08);
  --color-overlay: rgba(0, 0, 0, 0.45);
  --color-overlay-light: rgba(0, 0, 0, 0.25);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Josefin Sans', 'Helvetica Neue', sans-serif;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-elegant: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.15);

  /* Container widths */
  --container-sm: 720px;
  --container-md: 960px;
  --container-lg: 1200px;
  --container-xl: 1400px;

  /* Navigation */
  --nav-height: 80px;
  --nav-height-scrolled: 64px;
}

/* ============================================================
   BASE RESET & GLOBAL
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* In-page links (skip link, #packages...) land below the fixed navbar
     (69px on desktop, 88px on phones - see the 1100px breakpoint). */
  scroll-padding-top: 90px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

/* The skip link focuses <main> (tabindex="-1"); no outline around the page. */
main:focus {
  outline: none;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--color-secondary);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-xl { max-width: var(--container-xl); }

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.text-center { text-align: center; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-secondary);
}

.section-header .subtitle {
  font-family: var(--font-accent);
  font-size: 1.27rem;
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
  font-style: italic;
}

/* Divider */
.divider {
  width: 80px;
  height: 1px;
  background: var(--color-secondary);
  margin: var(--space-xl) auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
  border: 2px solid var(--color-secondary);
}

.btn-primary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
}

.btn-white:hover {
  background: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1rem;
}

/* ============================================================
   SKIP LINK (keyboard users jump past the menu)
   ============================================================ */
/* Clipped rather than pushed off-canvas: a negative offset would widen
   the document and create a phantom horizontal scroll. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 12px 20px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-elegant);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1001;
}

.logo-icon {
  height: 48px;
  width: auto;
  display: block;
  transition: transform var(--transition-base);
}

.navbar.scrolled .logo-icon {
  height: 42px;
}

.logo:hover .logo-icon {
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 1px;
  transition: color var(--transition-base);
}

/* Inline brand mention (e.g., copyright line) */
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.logo-text .logo-sub {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-top: -4px;
}

.navbar.scrolled .logo-text {
  color: var(--color-primary);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-white);
  transition: color var(--transition-fast);
  position: relative;
  white-space: nowrap;
  text-align: center;
  line-height: 1.25;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
  width: 60%;
}

.nav-link:hover {
  color: var(--color-secondary);
}

.navbar.scrolled .nav-link {
  color: var(--color-primary);
}

.navbar.scrolled .nav-link:hover {
  color: var(--color-secondary);
}

/* Dropdown indicator arrow */
.nav-link .dropdown-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.65em;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 260px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  border-top: 3px solid var(--color-secondary);
  z-index: 1000;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--color-secondary);
}

/* :focus-within keeps the dropdown open for keyboard users, who never
   trigger :hover and would otherwise be unable to reach the sub-links. */
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 24px;
  font-size: 0.85rem;
  color: var(--color-text);
  transition: all var(--transition-fast);
  position: relative;
}

/* Link to the hub page - needed only in the mobile menu (see 1100px),
   on desktop the category name itself leads there. */
.dropdown-menu a.dropdown-hub {
  display: none;
}

.dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  background: var(--color-secondary);
  transition: width var(--transition-fast);
  border-radius: 0 2px 2px 0;
}

.dropdown-menu a:hover {
  color: var(--color-secondary);
  background: var(--color-bg-alt);
  padding-left: 30px;
}

.dropdown-menu a:hover::before {
  width: 3px;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1001;
  /* 44x44 minimum touch target (WCAG 2.5.5) */
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar.scrolled .nav-toggle span {
  background: var(--color-primary);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO / SLIDESHOW
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  will-change: opacity;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ken Burns subtle zoom */
  animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.3) 70%,
    rgba(0,0,0,0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 var(--space-xl);
}

.hero-content h1 {
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 200;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-content .hero-tagline {
  font-family: var(--font-accent);
  font-size: clamp(1.1rem, 2.75vw, 1.55rem);
  font-style: italic;
  color: var(--color-secondary-light);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 0.9s forwards;
}

/* Slideshow dots */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  opacity: 0.6;
}

.hero-dot.active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  opacity: 1;
  transform: scale(1.15);
}

/* Compact counter shown instead of dots when there are many slides */
.hero-counter {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-xl);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}

/* Honeypot wrapper - invisible to humans, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   APP PAGE - phone screenshots row
   ============================================================ */
.app-screens {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.app-screen {
  flex: 0 1 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-white);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.app-screen:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.app-screen img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .app-screens {
    gap: var(--space-md);
  }
  .app-screen {
    flex: 0 1 150px;
  }
}

/* ============================================================
   SERVICE PAGE HERO (smaller)
   ============================================================ */
.hero-service {
  height: auto;
  min-height: auto;
  padding-top: calc(var(--nav-height) + var(--space-xl));
}

.service-slideshow {
  position: relative;
  width: 100%;
  /* the photos are 16:9 (tall ones are reworked to 16:9 too) - the window shows them whole */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.service-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.service-slide:first-child,
.service-slide.active {
  opacity: 1;
}

/* ============================================================
   QUICK INFO SECTION (Telegraph style)
   ============================================================ */
.quick-info {
  background: var(--color-white);
  padding: var(--space-3xl) 0;
  position: relative;
}

.quick-info-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.quick-info-grid > .quick-info-card {
  flex: 1 1 260px;
  max-width: 340px;
}

.quick-info-card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
}

.quick-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.quick-info-card .icon {
  font-size: 2.2rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  display: block;
}

.quick-info-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.quick-info-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ============================================================
   GALLERY STRIP (between sections)
   ============================================================ */
.gallery-strip {
  position: relative;
  overflow: hidden;
  padding: var(--space-md) 0;
  background: var(--color-bg-dark);
}

.gallery-strip-inner {
  display: flex;
  gap: var(--space-sm);
  animation: scrollStrip 30s linear infinite;
  /* its own layer: the browser only slides it, nothing is painted again */
  will-change: transform;
}

/* main.js stops the strip while it is off screen */
.gallery-strip-inner.is-paused {
  animation-play-state: paused;
}

.gallery-strip-inner img {
  width: 250px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  opacity: 0.85;
  transition: opacity var(--transition-base);
  flex-shrink: 0;
}

.gallery-strip-inner img:hover {
  opacity: 1;
}

@keyframes scrollStrip {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-strip .gallery-link {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  /* no backdrop blur: it was worked out again on every frame of the moving strip */
  background: rgba(0,0,0,0.75);
  padding: 12px 32px;
  border-radius: var(--radius-xl);
  color: var(--color-white);
  font-family: var(--font-accent);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--color-secondary);
  transition: all var(--transition-base);
}

.gallery-strip .gallery-link:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translate(-50%, -50%) scale(1.05);
}

/* ============================================================
   DETAILED INFO SECTION
   ============================================================ */
.detail-section {
  padding: var(--space-4xl) 0;
  background: var(--color-bg-alt);
  position: relative;
}

.detail-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent), var(--color-secondary));
}

.detail-block {
  margin-bottom: var(--space-3xl);
}

.detail-block:last-child {
  margin-bottom: 0;
}

.detail-block h3 {
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: var(--space-lg);
}

.detail-block h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--color-secondary);
  border-radius: 2px;
}

.detail-block p,
.detail-block ul {
  font-size: 0.95rem;
  line-height: 1.8;
}

.detail-block ul {
  padding-left: var(--space-lg);
}


.detail-block ul li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text-light);
}

.detail-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.7;
}

/* Two column layout for detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.detail-image:hover img {
  transform: scale(1.03);
}

/* ============================================================
   TRUST SIGNALS / SOCIAL PROOF
   ============================================================ */
.trust-section {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.trust-badge {
  text-align: center;
  padding: var(--space-lg);
}

.trust-badge .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
}

.trust-badge .label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: var(--space-xs);
}

/* Testimonials */
.testimonial-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.testimonial-card .quote-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  opacity: 0.3;
  position: absolute;
  top: 15px;
  left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-secondary);
}

.testimonial-author .author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.testimonial-author .author-detail {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* Star rating */
.stars {
  color: var(--color-secondary);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

/* ============================================================
   PRICING / PACKAGES (optional)
   ============================================================ */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.package-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.package-card.featured {
  border: 2px solid var(--color-secondary);
  transform: scale(1.03);
}

.package-card.featured .package-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 6px 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0 0 0 var(--radius-md);
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.package-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.package-card h4 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.package-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}

.package-price span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.package-features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.package-features li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
}

.package-features li:last-child {
  border-bottom: none;
}

.package-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-secondary);
}

.faq-question .faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-base);
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-elegant), padding var(--transition-elegant);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  font-size: 0.93rem;
  line-height: 1.8;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 60%);
  animation: ctaGlow 8s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(5%, 5%); }
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  background: var(--color-bg-alt);
  transform: translateX(5px);
}

.contact-info-card .icon {
  font-size: 1.5rem;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.contact-info-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
  background: var(--color-white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-about .logo-text {
  margin-bottom: var(--space-md);
}

.footer-about p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

.footer h3 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-secondary);
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary);
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--color-secondary);
}

/* Links inside the text of cards and FAQ answers (the global `a` rule
   leaves links looking like plain text) */
.quick-info-card p a:not(.btn),
.faq-answer a:not(.btn),
.detail-block p a:not(.btn),
.detail-block li a:not(.btn) {
  color: var(--color-secondary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   LEGAL TEXT (privacy policy)
   ============================================================ */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin: var(--space-2xl) 0 var(--space-md);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.legal-content .legal-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.legal-content a {
  color: var(--color-secondary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Reveal buttons inside a sentence: no extra tap padding (it would open up
   the line spacing; inline targets are exempt from the 44px rule). */
.legal-content .js-reveal:not(.btn) {
  padding: 0;
}

/* Notes under the contact form (privacy, "needs JavaScript") */
.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: var(--space-sm) 0 0;
}

.form-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   SCROLL ANIMATIONS (Intersection Observer)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children animations */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Visible state reveals EVERY child regardless of count (fixes invisible
   last row on grids with 7+ items). nth-child only controls the stagger. */
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(n+10) { transition-delay: 0.5s; }

/* Safety net. The reveal classes above only make sense while main.js is
   there to add .visible. The inline script at the top of <head> marks the
   page with .js, and adds .no-reveal when main.js never took over (file
   failed to load, blocked, crashed). Without JS at all, or in that case,
   everything is simply shown - a failed script used to leave pages blank. */
html:not(.js) .fade-in,
html:not(.js) .fade-in-left,
html:not(.js) .fade-in-right,
html:not(.js) .stagger-children > *,
.no-reveal .fade-in,
.no-reveal .fade-in-left,
.no-reveal .fade-in-right,
.no-reveal .stagger-children > * {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Same situation: the FAQ cannot be opened without the script, so show the
   answers. */
html:not(.js) .faq-answer,
.no-reveal .faq-answer {
  max-height: none;
  padding-bottom: var(--space-lg);
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   PROCESS / WORKFLOW SECTION
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: var(--space-xl);
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-secondary);
  opacity: 0.3;
  display: block;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.process-step h3 {
  /* keeps the old h4 sizing after the heading-level correction */
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: var(--space-sm);
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step p {
  font-size: 0.88rem;
}

/* Connecting line between steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -12%;
  width: 24%;
  height: 1px;
  background: var(--color-border);
}

/* ============================================================
   SERVICES GRID (Homepage)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  transition: background var(--transition-base);
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(transparent 20%, rgba(0,0,0,0.85));
}

.service-card h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  margin-bottom: var(--space-md);
  transform: translateY(0);
  opacity: 1;
  transition: all var(--transition-base);
}

.service-card .card-link {
  font-size: 0.8rem;
  color: var(--color-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  transform: translateY(0);
  opacity: 1;
  transition: all var(--transition-base) 0.1s;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet - hamburger menu kicks in here */
@media (max-width: 1100px) {
  :root {
    --nav-height: 64px;
  }

  .navbar .container {
    justify-content: space-between;
    gap: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px var(--space-xl) var(--space-xl);
    transition: right var(--transition-elegant);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: var(--color-primary);
    padding: var(--space-md);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border);
    white-space: normal;
    text-align: left;
    max-width: none;
    line-height: 1.5;
  }

  .nav-link:hover {
    color: var(--color-secondary);
  }

  /* Mobile dropdown - override desktop hover behavior completely */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-top: none;
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-elegant), opacity var(--transition-base);
    background: var(--color-bg-alt);
    opacity: 0;
    visibility: visible;
    min-width: 0;
  }

  .dropdown-menu::before {
    display: none;
  }

  /* Override desktop hover/focus - in mobile only dropdown-open controls visibility */
  .nav-item:hover .dropdown-menu,
  .nav-item:focus-within .dropdown-menu {
    opacity: 0;
    max-height: 0;
    padding: 0;
  }

  .nav-item.dropdown-open .dropdown-menu,
  .nav-item.dropdown-open:hover .dropdown-menu {
    max-height: 500px;
    opacity: 1;
    padding: var(--space-sm) 0;
  }

  .dropdown-menu a {
    padding: 10px 24px 10px 36px;
    font-size: 0.85rem;
  }

  /* Here the category name only opens its dropdown, so the hub page
     (wedding.html, events.html...) gets its own first entry. */
  .dropdown-menu a.dropdown-hub {
    display: block;
    font-weight: 700;
  }

  html {
    scroll-padding-top: 110px;
  }

  /* No JS (or main.js never started): the hamburger cannot open, so the
     top-level links are shown in the bar itself and lead to the hub pages. */
  html:not(.js) .nav-toggle,
  .no-reveal .nav-toggle,
  html:not(.js) .dropdown-menu,
  .no-reveal .dropdown-menu,
  html:not(.js) .dropdown-arrow,
  .no-reveal .dropdown-arrow {
    display: none;
  }

  html:not(.js) .navbar .container,
  .no-reveal .navbar .container {
    flex-wrap: wrap;
  }

  html:not(.js) .nav-menu,
  .no-reveal .nav-menu {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  html:not(.js) .nav-link,
  .no-reveal .nav-link {
    padding: 6px 10px;
    border-bottom: none;
  }

  /* ...the links take a second row, so inner pages start a little lower
     (the homepage hero sits under the bar by design). */
  html:not(.js) .navbar.scrolled ~ main,
  .no-reveal .navbar.scrolled ~ main {
    padding-top: 44px;
  }

  /* Mobile overlay when menu open */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .trust-badges {
    gap: var(--space-lg);
  }

  .trust-badge .number {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 280px;
  }

  .packages-grid {
    grid-template-columns: 1fr;
  }

  .package-card.featured {
    transform: none;
  }

  .package-card.featured:hover {
    transform: translateY(-8px);
  }

  .gallery-strip-inner img {
    width: 180px;
    height: 120px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .btn {
    padding: 12px 24px;
    font-size: 0.8rem;
  }

  .btn-lg {
    padding: 14px 32px;
  }

  .quick-info-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 500px;
  }
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-page-hero {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  background: var(--color-bg-alt);
  text-align: center;
}

.gallery-page-hero h1 {
  margin-bottom: var(--space-sm);
}

.gallery-page-hero .subtitle {
  font-family: var(--font-accent);
  font-size: 1.27rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.gallery-page-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-secondary);
  transition: all var(--transition-fast);
}

.gallery-page-hero .back-link:hover {
  color: var(--color-secondary-dark);
  transform: translateX(-3px);
}

/* Gallery Grid - Masonry-like */
.gallery-grid-section {
  padding: var(--space-3xl) 0;
}

/* the grid of a gallery page takes 80% of the window, wider than the text column;
   phones keep the usual width - 80% there would only make the photos smaller */
@media (min-width: 769px) {
  .gallery-grid-section .container {
    width: 80%;
    max-width: none;
    padding: 0;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  /* tall (vertical) and wide (panorama) photos would otherwise leave holes */
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  aspect-ratio: 4/3;
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item.wide {
  grid-column: span 2;
  /* two 4:3 columns and the gap between them: the row keeps the height of its neighbours */
  aspect-ratio: 2.72;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(0,0,0,0.3);
}

.gallery-item-overlay i {
  color: var(--color-white);
  font-size: 1.5rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay i {
  opacity: 1;
  transform: scale(1);
}

/* "Снимка: <name>" on a colleague's photo (gallery and slider; wire_photos.py adds it) */
.photo-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.55);
  color: var(--color-white);
  font-size: 0.75rem;
  line-height: 1.5;
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--color-white);
  cursor: pointer;
  z-index: 2001;
  transition: all var(--transition-fast);
  background: none;
  border: none;
  padding: 10px;
}

.lightbox-close:hover {
  color: var(--color-secondary);
  transform: scale(1.1);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--color-white);
  cursor: pointer;
  z-index: 2001;
  transition: all var(--transition-fast);
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
  color: var(--color-secondary);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .lightbox-nav {
    font-size: 1.5rem;
    padding: 10px 14px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-slide img {
    animation: none;
  }

  .gallery-strip-inner {
    animation: none;
  }
}

/* ============================================================
   CONTACT REVEAL (anti-harvesting)
   ============================================================ */
.js-reveal {
  font: inherit;
  cursor: pointer;
}

/* Inline "Покажи имейл / телефон" links (footer, contact page) */
.js-reveal:not(.btn) {
  color: inherit;
  background: none;
  border: none;
  /* vertical padding lifts the tap area to 44px without moving the text */
  padding: 10px 0;
  margin: 0;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.js-reveal:not(.btn):hover {
  color: var(--color-secondary);
}

.revealed-contact {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Pricing grids where the featured card must not scale up
   (e.g. christening) - border/badge alone distinguish it */
.packages-grid.equal-cards .package-card.featured {
  transform: none;
}

.packages-grid.equal-cards .package-card.featured:hover {
  transform: translateY(-8px);
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  /* Force all scroll-triggered animations to their final visible state */
  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .scale-in,
  .stagger-children > *,
  .hero-content h1,
  .hero-content .hero-tagline,
  .hero-content .hero-buttons {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  /* If JS-driven hero slides did not populate, show a fallback background */
  .hero {
    background: var(--color-bg-dark);
    color: var(--color-white);
  }
  .hero-slide,
  .hero-slide.active {
    opacity: 1 !important;
    animation: none !important;
  }

  /* Avoid awkward page breaks inside section blocks */
  .section,
  .quick-info,
  .detail-section,
  .cta-section,
  .testimonials-grid,
  .services-grid,
  .quick-info-grid,
  .process-steps {
    page-break-inside: avoid;
  }

  body {
    background: #fff;
  }
}
