/* ═══════════════════════════════════════════════
   BRIGHTBYTE DENTAL — PREMIUM CSS
   Fonts: Cormorant Garamond + DM Sans
   Palette: Cream, Burgundy, Warm Neutrals
═══════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────── */
:root {
  --cream:        #F7F3EE;
  --cream-deep:   #EFE8DF;
  --cream-dark:   #E2D5C8;
  --white:        #FFFFFF;
  --burg:         #7A1C3A;
  --burg-light:   #9B2549;
  --burg-pale:    #F3E8EC;
  --burg-deep:    #530E26;
  --warm-50:      #FAF7F4;
  --warm-100:     #F2EDE6;
  --warm-200:     #E4D9CC;
  --warm-600:     #8C7560;
  --warm-700:     #6B5844;
  --warm-900:     #2C1F16;
  --text-main:    #1E1210;
  --text-muted:   #7A6355;
  --text-light:   #A8948A;
  --shadow-sm:    0 2px 12px rgba(122,28,58,0.06);
  --shadow-md:    0 8px 32px rgba(122,28,58,0.10);
  --shadow-lg:    0 20px 60px rgba(122,28,58,0.14);
  --shadow-xl:    0 40px 100px rgba(122,28,58,0.18);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    28px;
  --radius-xl:    40px;
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.45, 0, 0.55, 1);
}

/* ── RESET ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--burg);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── LOADER ────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--burg-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; }

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

.loader-logo {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 32px;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.06em;
}

.loader-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dark);
  opacity: 0.7;
}

.loader-bar {
  width: 200px; height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: var(--cream);
  animation: loadFill 1.8s var(--ease-out) forwards;
}

@keyframes loadFill { to { width: 100%; } }

/* ── NAVBAR ────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  transition: top 0.4s var(--ease-out), left 0.4s var(--ease-out), right 0.4s var(--ease-out), max-width 0.4s var(--ease-out), background 0.4s, box-shadow 0.4s, border-radius 0.4s;
  padding: 0;
}

#navbar.scrolled {
  top: 16px; left: 24px; right: 24px;
  margin: 0 auto;
  max-width: 1200px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 4px 24px rgba(122,28,58,0.08), 0 1px 2px rgba(122,28,58,0.04);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.4);
}

.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  transition: padding 0.4s var(--ease-out), gap 0.4s var(--ease-out);
}

#navbar.scrolled .nav-inner {
  padding: 14px 24px 14px 32px;
  gap: 32px;
}

.nav-logo {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px; height: 44px;
  background: var(--cream);
  color: var(--burg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.4s, color 0.4s;
}
#navbar.scrolled .logo-mark { background: var(--burg); color: var(--cream); }

.logo-text { display: flex; flex-direction: column; gap: 0; }
.logo-main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  line-height: 1.1;
  transition: color 0.4s;
}
#navbar.scrolled .logo-main { color: var(--text-main); }

.logo-tagline {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,243,238,0.7);
  line-height: 1;
  transition: color 0.4s;
}
#navbar.scrolled .logo-tagline { color: var(--text-muted); }

.nav-links {
  display: flex; align-items: center;
  gap: 36px; flex: 1; justify-content: center;
  transition: gap 0.4s var(--ease-out);
}

#navbar.scrolled .nav-links { gap: 24px; }

.nav-links a {
  font-size: 0.79rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
}
#navbar.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: rgba(247,243,238,0.6); }
#navbar.scrolled .nav-links a:hover { color: var(--burg); }

.nav-links a.active { color: var(--cream); }
#navbar.scrolled .nav-links a.active { color: var(--burg); }

.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out), background 0.4s;
}
#navbar.scrolled .nav-links a::after { background: var(--burg); }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center;
  padding: 12px 28px;
  background: var(--cream);
  color: var(--burg);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 50px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: rgba(247,243,238,0.9); transform: translateY(-1px); }
#navbar.scrolled .nav-cta { background: var(--burg); color: var(--cream); }
#navbar.scrolled .nav-cta:hover { background: var(--burg-light); transform: translateY(-1px); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(247,243,238,0.1); }
#navbar.scrolled .nav-hamburger:hover { background: var(--burg-pale); }

.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s, width 0.3s, background 0.4s;
  transform-origin: center;
}
#navbar.scrolled .nav-hamburger span { background: var(--text-main); }
/* Animate into X when open */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--burg-deep) 0%, #3a0a1a 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.mobile-menu::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,28,58,0.5) 0%, transparent 70%);
  pointer-events: none;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  position: relative; z-index: 1;
}
.mobile-menu ul a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.02em;
  padding: 6px 32px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), color 0.2s;
}
.mobile-menu ul a:hover { color: rgba(242,232,219,0.55); }
.mobile-menu.open ul a {
  opacity: 1; transform: translateY(0);
}
.mobile-menu.open ul li:nth-child(1) a { transition-delay: 0.05s; }
.mobile-menu.open ul li:nth-child(2) a { transition-delay: 0.11s; }
.mobile-menu.open ul li:nth-child(3) a { transition-delay: 0.17s; }
.mobile-menu.open ul li:nth-child(4) a { transition-delay: 0.23s; }
.mobile-menu.open ul li:nth-child(5) a { transition-delay: 0.29s; }
.mobile-menu.open ul li:nth-child(6) a { transition-delay: 0.35s; }

.mobile-menu-divider {
  width: 40px; height: 1px;
  background: rgba(242,232,219,0.15);
  margin: 16px auto;
}

.mobile-close {
  position: absolute; top: 28px; right: 28px;
  color: var(--cream); font-size: 1.2rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(242,232,219,0.15);
  display: flex; align-items: center; justify-content: center;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
  z-index: 2;
}
.mobile-close:hover { opacity: 1; background: rgba(255,255,255,0.08); border-color: rgba(242,232,219,0.3); }

.mob-cta {
  margin-top: 20px;
  display: inline-flex; align-items: center;
  padding: 14px 40px;
  border: 1px solid rgba(247,243,238,0.25);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s 0.42s var(--ease-out), transform 0.4s 0.42s var(--ease-out), background 0.3s, border-color 0.3s;
  position: relative; z-index: 1;
}
.mobile-menu.open .mob-cta { opacity: 1; transform: translateY(0); }
.mob-cta:hover { background: rgba(255,255,255,0.08); border-color: rgba(247,243,238,0.5); }

/* ── BUTTONS ────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px;
  background: var(--burg);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--burg-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.btn-primary span, .btn-primary { position: relative; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:hover::before { transform: scaleX(1); }

.btn-light { background: var(--cream); color: var(--burg); }
.btn-light::before { background: var(--cream-deep); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px;
  border: 1px solid rgba(247,243,238,0.4);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 50px;
  transition: background 0.3s, border-color 0.3s;
}
.btn-ghost:hover { background: rgba(247,243,238,0.1); border-color: rgba(247,243,238,0.7); }

/* ── SECTION COMMON ───────────────────────── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burg);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-eyebrow.light { color: rgba(242,232,219,0.7); }
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: currentColor;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-main);
}
.section-heading.light { color: var(--cream); }
.section-heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--burg);
}
.section-heading.light em { color: var(--cream-dark); }

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-top: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex; flex-direction: column; align-items: center;
}
.section-header .section-eyebrow { margin-bottom: 12px; }

/* ── REVEAL ANIMATIONS ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SKELETON ───────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--warm-200);
}
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.4) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}
.skeleton.loaded::after { display: none; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── HERO ────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-img-wrap {
  position: absolute; inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s ease-out;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 6, 4, 0.88) 0%,
    rgba(14, 6, 4, 0.55) 45%,
    rgba(14, 6, 4, 0.15) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px 48px;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242,232,219,0.65);
  font-weight: 500;
  margin-bottom: 24px;
}
.eyebrow-line { display: block; width: 40px; height: 1px; background: currentColor; }
.eyebrow-dot { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--burg-light); }

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 24px;
}
.hero-heading em {
  font-style: italic;
  font-weight: 300;
  display: block;
  color: rgba(242,232,219,0.85);
}

.line-wrap { display: block; overflow: hidden; }

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(242,232,219,0.7);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex; align-items: center; gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(242,232,219,0.15);
}
.hstat { display: flex; flex-direction: column; gap: 4px; }
.hstat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}
.hstat-unit { color: var(--burg-light); font-size: 1.2rem; font-weight: 600; margin-left: 1px; }
.hstat-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242,232,219,0.5);
}
.hstat-div { width: 1px; height: 40px; background: rgba(242,232,219,0.15); }

.hero-scroll-hint {
  position: absolute;
  right: 48px; bottom: 48px;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  writing-mode: vertical-rl;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(242,232,219,0.4);
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(242,232,219,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── ABOUT ───────────────────────────────── */
#about {
  padding: 120px 48px;
  background: var(--white);
  max-width: 100%;
}

.about-container {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

.about-img-stack {
  position: relative;
  height: 600px;
}

.img-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.img-card--large {
  width: 76%; height: 72%;
  top: 0; left: 0;
  border-radius: var(--radius-lg);
}
.img-card--small {
  width: 54%; height: 44%;
  bottom: 0; right: 0;
  border-radius: var(--radius-md);
  border: 6px solid var(--white);
}

.about-badge {
  position: absolute;
  bottom: 56px; left: 68%;
  transform: translateX(-50%);
  width: 96px; height: 96px;
  background: var(--burg);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.badge-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
}
.badge-text {
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242,232,219,0.75);
  text-align: center;
  line-height: 1.3;
}

.about-right { padding-left: 20px; }

.about-body {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 20px;
  margin-bottom: 12px;
}

.about-pillars {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 24px;
}
.pillar {
  display: flex; gap: 18px; align-items: flex-start;
}
.pillar-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--burg-pale);
  color: var(--burg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.pillar strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}
.pillar p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── SERVICES ─────────────────────────────── */
#services {
  padding: 120px 48px;
  background: var(--cream);
  max-width: 100%;
}

.services-grid {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 24px;
}

.srv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  box-shadow: var(--shadow-sm);
}
.srv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Featured */
.srv-card--featured {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
.srv-img-wrap {
  position: relative;
  overflow: hidden;
}
.srv-img-wrap img { transition: transform 0.6s var(--ease-out); }
.srv-card:hover .srv-img-wrap img { transform: scale(1.05); }
.srv-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(122,28,58,0.08));
}
.srv-content {
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.srv-icon {
  width: 48px; height: 48px;
  background: var(--burg-pale);
  color: var(--burg);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.srv-content h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.1;
}
.srv-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.srv-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--burg);
  transition: gap 0.25s;
}
.srv-link:hover { gap: 14px; }

/* Tall */
.srv-card--tall {
  grid-column: 3;
  grid-row: 1 / 3;
  padding: 48px 36px;
  background: var(--burg);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.srv-icon-lg {
  width: 56px; height: 56px;
  background: rgba(242,232,219,0.15);
  color: var(--cream);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 24px;
}
.srv-card--tall h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.15;
}
.srv-card--tall p { font-size: 0.9rem; color: rgba(242,232,219,0.7); line-height: 1.7; margin-bottom: 28px; }
.srv-card--tall .srv-link { color: var(--cream); }

/* Standard */
.srv-card--standard {
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 0;
}
.srv-card--standard .srv-icon-lg {
  background: var(--burg-pale);
  color: var(--burg);
  margin-bottom: 20px;
}
.srv-card--standard h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.15;
}
.srv-card--standard p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: 20px; }
.srv-card--standard .srv-link { color: var(--burg); margin-top: auto; }

/* Wide */
.srv-card--wide {
  grid-column: 1 / 3;
  grid-row: 3;
  display: grid; grid-template-columns: 1fr 280px;
  min-height: 220px;
}
.srv-wide-left {
  padding: 36px 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.srv-wide-left .srv-icon-lg {
  background: var(--burg-pale); color: var(--burg);
  margin-bottom: 16px;
}
.srv-wide-left h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; color: var(--text-main);
  margin-bottom: 8px; line-height: 1.15;
}
.srv-wide-left p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.srv-wide-left .srv-link { color: var(--burg); }
.srv-wide-img { overflow: hidden; }
.srv-wide-img img { transition: transform 0.6s var(--ease-out); }
.srv-card--wide:hover .srv-wide-img img { transform: scale(1.05); }

/* ── TEAM ─────────────────────────────────── */
#team {
  padding: 120px 48px;
  background: var(--warm-50);
}

.team-grid {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.team-img-wrap {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.team-img-wrap img { transition: transform 0.6s var(--ease-out); }
.team-card:hover .team-img-wrap img { transform: scale(1.04); }

.team-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(122,28,58,0.55) 0%, transparent 60%);
}

.team-info { padding: 28px 28px 32px; }
.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 600;
  color: var(--text-main); margin-bottom: 4px; line-height: 1.1;
}
.team-role {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burg);
  font-weight: 600;
  margin-bottom: 12px;
}
.team-info p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

.team-quals {
  display: flex; flex-direction: column; gap: 4px;
}
.team-quals span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  padding-left: 12px;
  border-left: 2px solid var(--burg-pale);
}

.team-card--accent { background: var(--burg-deep); }
.team-card--accent .team-info h3 { color: var(--cream); }
.team-card--accent .team-info p { color: rgba(242,232,219,0.65); }
.team-card--accent .team-quals span { color: rgba(242,232,219,0.45); border-color: rgba(242,232,219,0.2); }

/* ── EXPERIENCE / STATS ───────────────────── */
#experience {
  padding: 120px 48px;
  background: var(--burg-deep);
  position: relative;
  overflow: hidden;
}
#experience::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,28,58,0.6) 0%, transparent 70%);
}

.exp-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  position: relative; z-index: 1;
}

.exp-body {
  font-size: 1rem;
  color: rgba(242,232,219,0.65);
  line-height: 1.8;
  margin: 20px 0 36px;
  max-width: 420px;
}

.exp-right {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat-block {
  background: rgba(242,232,219,0.05);
  border: 1px solid rgba(242,232,219,0.08);
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  transition: background 0.3s;
}
.stat-block:hover { background: rgba(242,232,219,0.08); }
.stat-block:nth-child(1) { border-radius: var(--radius-md) 0 0 0; }
.stat-block:nth-child(2) { border-radius: 0 var(--radius-md) 0 0; }
.stat-block:nth-child(3) { border-radius: 0 0 0 var(--radius-md); }
.stat-block:nth-child(4) { border-radius: 0 0 var(--radius-md) 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}
.stat-sym { color: var(--burg-light); font-size: 1.6rem; font-weight: 600; margin-left: 2px; }
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,232,219,0.45);
  margin-top: 4px;
}

/* ── BEFORE / AFTER ─────────────────────── */
#results {
  padding: 120px 48px;
  background: var(--white);
}

.ba-grid {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ba-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--warm-50);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.ba-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.ba-slider {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background: var(--warm-200);
}

.ba-img-before, .ba-img-after {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.ba-img-after {
  width: 50%;
  border-right: 2px solid var(--white);
  box-shadow: 2px 0 12px rgba(0,0,0,0.15);
}

.ba-handle {
  position: absolute;
  top: 0; left: 50%;
  width: 44px; height: 100%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 5;
  outline: none;
}

.ba-handle:focus-visible .ba-handle-button {
  outline: 3px solid var(--burg);
  outline-offset: 4px;
}

.ba-handle-button {
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--burg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.ba-slider:active .ba-handle-button {
  transform: scale(0.9);
}

.ba-label {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(14,6,4,0.55);
  color: var(--cream);
  padding: 5px 12px;
  border-radius: 30px;
  backdrop-filter: blur(4px);
}
.ba-label.after {
  background: var(--burg);
  left: auto; right: 16px;
}

.ba-info {
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.ba-treatment {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.02em;
}
.ba-time {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

/* ── TESTIMONIALS ────────────────────────── */
#testimonials {
  padding: 120px 48px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.testi-bg-text {
  position: absolute;
  top: 40px; right: -20px;
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122,28,58,0.06);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.testi-track-wrap {
  max-width: 1360px; margin: 0 auto;
  position: relative; z-index: 1;
}

.testi-track {
  display: grid;
  grid-template-columns: repeat(4, 100%);
  gap: 0;
  overflow: visible;
  transition: transform 0.6s var(--ease-out);
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-md);
  position: relative;
  width: calc(25% - 18px);
  flex-shrink: 0;
}

/* Slider approach */
.testi-track-wrap .testi-track {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.testi-card { min-width: calc(33.333% - 16px); }

.testi-quote {
  font-size: 2rem;
  color: var(--burg);
  opacity: 0.25;
  margin-bottom: 20px;
}
.testi-card > p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
  font-family: var(--font-display);
}

.testi-author {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--burg-pale);
}
.testi-author strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}
.testi-author span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

.testi-stars { color: var(--burg); font-size: 0.75rem; letter-spacing: 2px; }

.testi-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-top: 48px;
}

.testi-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--warm-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.testi-btn:hover { background: var(--burg); color: var(--cream); border-color: var(--burg); }

.testi-dots { display: flex; gap: 8px; }
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--warm-200);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.testi-dot.active { background: var(--burg); transform: scale(1.3); }

/* ── GALLERY ─────────────────────────────── */
#gallery {
  padding: 120px 48px;
  background: var(--white);
}

.gallery-mosaic {
  max-width: 1360px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 300px 300px;
  gap: 16px;
}

.gal-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gal-item img { transition: transform 0.6s var(--ease-out); }
.gal-item:hover img { transform: scale(1.06); }

.gal-item--tall { grid-row: 1 / 3; }
.gal-item--wide { grid-column: 2 / 4; }

.gal-hover {
  position: absolute; inset: 0;
  background: rgba(122,28,58,0);
  display: flex; align-items: flex-end;
  padding: 20px;
  transition: background 0.4s;
}
.gal-hover span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.gal-item:hover .gal-hover { background: rgba(122,28,58,0.45); }
.gal-item:hover .gal-hover span { opacity: 1; transform: translateY(0); }

/* ── TECHNOLOGY ──────────────────────────── */
#tech {
  padding: 100px 48px;
  background: var(--cream);
}

.tech-inner {
  max-width: 1360px; margin: 0 auto 56px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

.tech-strip {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.tech-item {
  background: var(--white);
  padding: 40px 32px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  transition: background 0.3s;
}
.tech-item:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.tech-item:last-child  { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.tech-item:hover { background: var(--burg-pale); }

.tech-item i {
  font-size: 1.6rem;
  color: var(--burg);
}
.tech-item strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.01em;
}
.tech-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── CONTACT ─────────────────────────────── */
#contact {
  padding: 120px 48px;
  background: var(--burg-deep);
  position: relative;
  overflow: hidden;
}
#contact::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,28,58,0.5) 0%, transparent 70%);
}

.contact-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
  position: relative; z-index: 1;
}

.contact-body {
  font-size: 1rem;
  color: rgba(242,232,219,0.6);
  line-height: 1.8;
  margin: 20px 0 36px;
  max-width: 400px;
}

.contact-detail {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}
.contact-detail i {
  font-size: 1rem;
  color: var(--burg-light);
  margin-top: 3px;
  width: 20px; flex-shrink: 0;
}
.contact-detail strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,232,219,0.4);
  margin-bottom: 3px;
}
.contact-detail span {
  display: block;
  font-size: 0.92rem;
  color: rgba(242,232,219,0.8);
  line-height: 1.5;
}

.contact-social {
  display: flex; gap: 14px;
  margin-top: 40px;
}
.contact-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(242,232,219,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(242,232,219,0.6);
  font-size: 0.9rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.contact-social a:hover { background: var(--burg); color: var(--cream); border-color: var(--burg); }

.contact-map-wrap { display: flex; flex-direction: column; gap: 24px; }

.map-placeholder {
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.map-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(83,14,38,0.85) 0%, transparent 55%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 32px;
  gap: 4px;
}
.map-pin { font-size: 2rem; color: var(--cream); margin-bottom: 8px; }
.map-overlay span {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.map-addr { font-size: 0.8rem; color: rgba(242,232,219,0.65); }

.contact-cta-box {
  background: rgba(242,232,219,0.06);
  border: 1px solid rgba(242,232,219,0.1);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.contact-cta-box p {
  font-size: 1rem;
  color: rgba(242,232,219,0.75);
  line-height: 1.5;
  max-width: 220px;
  font-family: var(--font-display);
  font-style: italic;
}

/* ── FOOTER ──────────────────────────────── */
#footer {
  background: var(--warm-900);
  padding: 72px 48px 40px;
}

.footer-inner { max-width: 1360px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 280px;
}

.footer-logo .logo-main { color: var(--cream); }
.footer-logo .logo-tagline { color: rgba(242,232,219,0.4); }

.footer-links-col strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col ul li, .footer-links-col ul a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  transition: color 0.25s;
}
.footer-links-col ul a:hover { color: var(--cream); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
}

/* ── AMP ────────────────────────────────── */
.amp {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--burg);
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { gap: 22px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .srv-card--featured { grid-column: 1 / 2; }
  .srv-card--tall { grid-column: 2; grid-row: 1 / 2; }
  .srv-card--wide { grid-column: 1 / 3; }
  .team-grid { gap: 20px; }
  .exp-inner { gap: 60px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .nav-inner { padding: 20px 24px; }

  #hero { height: 100svh; }
  .hero-content { padding: 0 24px 80px; }
  .hero-stats { gap: 24px; }
  .hstat-div { display: none; }
  .hero-scroll-hint { display: none; }

  #about { padding: 80px 24px; }
  .about-container { grid-template-columns: 1fr; gap: 48px; }
  .about-img-stack { height: 400px; }
  .about-right { padding-left: 0; }

  #services { padding: 80px 24px; }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .srv-card--featured,
  .srv-card--tall,
  .srv-card--wide { grid-column: 1; grid-row: auto; }
  .srv-card--featured { grid-template-columns: 1fr; min-height: auto; }
  .srv-card--featured .srv-img-wrap { height: 240px; }
  .srv-card--wide { grid-template-columns: 1fr; }
  .srv-wide-img { height: 180px; }

  #team { padding: 80px 24px; }
  .team-grid { grid-template-columns: 1fr; }

  #experience { padding: 80px 24px; }
  .exp-inner { grid-template-columns: 1fr; gap: 48px; }

  #results { padding: 80px 24px; }
  .ba-grid { grid-template-columns: 1fr; }

  #testimonials { padding: 80px 24px; }
  .testi-card { min-width: 80vw; }

  #gallery { padding: 80px 24px; }
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gal-item--tall { grid-row: 1 / 3; }
  .gal-item--wide { grid-column: 1 / 3; }

  #tech { padding: 80px 24px; }
  .tech-strip { grid-template-columns: 1fr 1fr; }
  .tech-item:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .tech-item:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
  .tech-item:nth-child(2) { border-radius: 0; }
  .tech-item:nth-child(3) { border-radius: 0; }

  #contact { padding: 80px 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

  #footer { padding: 56px 24px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 560px) {
  .section-heading { font-size: 2.2rem; }
  .hero-heading { font-size: 3rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .exp-right { grid-template-columns: 1fr 1fr; }
  .gallery-mosaic { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); }
  .gal-item--tall, .gal-item--wide { grid-row: auto; grid-column: 1; }
  .contact-cta-box { flex-direction: column; text-align: center; }
  .contact-cta-box p { max-width: 100%; }
}

/* ── REDUCED MOTION ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
