/* ============================================
   BESTFEEL DENTAL CLINIC — Dark Luxury Theme
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --surface-elevated: #222222;
  --accent: #c9a84c;
  --accent-hover: #dfc06a;
  --accent-dim: rgba(201, 168, 76, 0.15);
  --text: #f0ece4;
  --text-muted: #8a8578;
  --border: rgba(201, 168, 76, 0.2);
  --border-subtle: rgba(240, 236, 228, 0.06);
  --heading-font: 'Playfair Display', Georgia, serif;
  --body-font: 'Inter', -apple-system, sans-serif;
  --base-size: 17px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-card: 0 8px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.08);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--base-size);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--body-font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--heading-font);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { margin-bottom: 1rem; }

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* --- Section Heading with Gold Line --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--accent);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Spacing --- */
.section {
  padding: 80px 0;
}
.section--lg {
  padding: 110px 0;
}

/* =========================================
   HEADER / NAVIGATION
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(13, 13, 13, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.header__logo {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.header__name {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.header__name small {
  display: block;
  font-family: var(--body-font);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: var(--accent-dim);
}
.nav a.active { color: var(--accent); }

.nav__cta {
  margin-left: 10px;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--bg) !important;
  background: var(--accent) !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav__cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(30px);
  z-index: 1005;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  color: var(--text);
  padding: 14px 20px;
  text-decoration: none;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .nav__cta-mobile {
  margin-top: 20px;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 16px 44px;
  border-radius: 50px;
  min-height: 52px;
  display: flex;
  align-items: center;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  padding: 14px 32px;
  border-radius: 50px;
  min-height: 48px;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.25);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  background: var(--accent-dim);
  color: var(--accent-hover);
  border-color: var(--accent);
}
.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border-subtle);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 168, 76, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
    linear-gradient(165deg, #0d0d0d 0%, #141210 40%, #0d0d0d 100%);
}

/* Geometric SVG accent shapes */
.hero__bg::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(201, 168, 76, 0.06);
  border-radius: 50%;
  animation: hero-ring 25s linear infinite;
}
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: -8%;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(201, 168, 76, 0.04);
  border-radius: 50%;
  animation: hero-ring 30s linear infinite reverse;
}

@keyframes hero-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Gold accent line */
.hero__accent-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.4;
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__content { max-width: 560px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
}
.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero visual: photo composition */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__photo-main {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.hero__photo-float {
  position: absolute;
  bottom: -20px;
  left: -40px;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--border);
}

/* Stats counter row */
.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.hero__stat-num {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* =========================================
   PROMO BANNER
   ========================================= */
.promo-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #a88a2e 100%);
  padding: 32px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.03) 12px,
    rgba(255,255,255,0.03) 24px
  );
}
.promo-banner__text {
  position: relative;
  font-family: var(--heading-font);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--bg);
  line-height: 1.4;
}
.promo-banner__text strong {
  font-size: 1.3em;
}

/* =========================================
   SERVICE CARDS (photo-top)
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  border-color: var(--border);
}

.service-card__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card__img {
  transform: scale(1.04);
}
.service-card__img-wrap {
  overflow: hidden;
  position: relative;
}
.service-card__img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--surface), transparent);
}

.service-card__body {
  padding: 28px 28px 32px;
}
.service-card__title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.service-card__link:hover { gap: 12px; }
.service-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Full services list (detailed) */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}
.services-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: padding-left var(--transition);
}
.services-list-item:hover {
  padding-left: 12px;
}
.services-list-item__name {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 600;
}
.services-list-item__cta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

/* =========================================
   GALLERY — Lightbox Grid
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition);
}
.gallery-item:hover { border-color: var(--border); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__caption {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.15); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* =========================================
   TEAM SECTION
   ========================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.team-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
}
.team-card__photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
}
.team-card__body {
  padding: 24px 20px 28px;
}
.team-card__name {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.team-card__role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}
.team-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================
   REVIEW / TESTIMONIAL
   ========================================= */
.reviews {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: var(--heading-font);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
}
.review-card__text {
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 8px;
}
.review-card__author {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}
.review-card__stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* =========================================
   CONTACT INFO
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition);
}
.contact-item:hover { border-color: var(--border); }
.contact-item__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}
.contact-item__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.contact-item__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.contact-item__value a {
  color: var(--text);
  text-decoration: none;
}
.contact-item__value a:hover { color: var(--accent); }

/* Map embed placeholder */
.map-wrap {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 360px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.8) brightness(0.7) contrast(1.1);
  transition: filter var(--transition);
}
.map-wrap:hover iframe {
  filter: grayscale(0.3) brightness(0.85) contrast(1);
}

/* =========================================
   CTA INLINE SECTION
   ========================================= */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.04) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 16px; }
.cta-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.footer__name {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
}
.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  gap: 32px;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
/* Fix: only apply visible state to children when parent is visible */
.reveal-stagger:not(.visible) > * {
  opacity: 0;
  transform: translateY(25px);
}

/* =========================================
   ADVANTAGES / FEATURES
   ========================================= */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.advantage {
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}
.advantage:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}
.advantage__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--accent-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}
.advantage__title {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.advantage__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================
   PAGE HEADER (inner pages)
   ========================================= */
.page-header {
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 168, 76, 0.05) 0%, transparent 60%),
    var(--bg);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: 16px; }
.page-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 968px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 20px;
  }
  .hero__content { max-width: 100%; margin: 0 auto; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__photo-main { max-width: 340px; }
  .hero__photo-float {
    width: 130px;
    height: 130px;
    bottom: -10px;
    left: 10px;
  }
  .advantages { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 20px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .burger { display: flex; }

  .section { padding: 56px 0; }
  .section--lg { padding: 72px 0; }

  .hero { min-height: auto; padding-top: 100px; padding-bottom: 40px; }
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.6rem); }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
  .team-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 16px; }

  .promo-banner { padding: 24px 0; }
  .promo-banner__text { font-size: 0.95rem; padding: 0 16px; }

  .page-header { padding: 120px 0 40px; }

  .hero__stats { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero__photo-float { display: none; }
  .hero__photo-main { max-width: 280px; aspect-ratio: 1; border-radius: 50%; }

  .service-card__img { height: 200px; }

  .btn { padding: 14px 24px; font-size: 0.85rem; min-height: 48px; }

  .lightbox { padding: 20px; }
  .lightbox__nav { width: 44px; height: 44px; }
}
