/* =============================================================
   DUBLIN RANCH DENTAL — Site stylesheet
   Aesthetic: modern minimal spa. Palette: warm porcelain, ink,
   sand, sage. Type: Cormorant Garamond + Inter.
   WCAG 2.2 AA compliant.
   ============================================================= */

:root {
  /* ============================================================
     DARK BROWN CANVAS · CREAM + GOLD ACCENTS
     Deep brown is the page surface throughout. Cream is reserved
     for: type, the highlight cards (pillar / testimonial / sidebar),
     the hero badge, and the modal. Gold pops on every dark surface.
     ============================================================ */

  /* Page surfaces (dark) */
  --bg:           #1A1009;    /* main page bg — deep dark brown */
  --bg-elevated:  #241509;    /* slightly elevated bg — alternating bands */
  --bg-elevated-2: #2E1D10;   /* even higher — testimonial bg, hover */
  --bg-deepest:   #0F0805;    /* deepest brown — footer / final CTA */

  /* Cream surfaces (used sparingly, only for accent cards) */
  --surface-cream:       #ECE0CB;   /* warm cream — pillar/testimonial cards */
  --surface-cream-light: #F4E8C8;   /* brightest cream — featured callouts */
  --surface-cream-dim:   #D9C5A0;   /* dimmer cream — secondary surfaces */

  /* Legacy variable names mapped for backwards compatibility */
  --porcelain:   #1A1009;     /* main bg — now dark */
  --porcelain-2: #241509;     /* elevated bg — slightly lighter dark */
  --cream-light: #ECE0CB;     /* cream accent */

  /* Type (cream on dark) */
  --ink:        #ECE0CB;      /* primary cream on dark bg */
  --ink-2:      #F4E8C8;      /* brighter cream */
  --ink-3:      #0F0805;      /* deepest ink — for use on cream cards */
  --stone:      #BFAB82;      /* secondary muted cream */
  --stone-light: #8A7553;     /* tertiary dim cream */

  /* Type on cream surfaces (when a cream card sits on dark bg) */
  --on-cream:        #15100A;
  --on-cream-muted:  #4F3F26;
  --on-cream-dim:    #7E6A48;

  /* Gold accents — calibrated for dark surfaces */
  --sand:       #D4B271;      /* pastel gold pops on dark */
  --sand-dark:  #B8965C;      /* deeper gold for hovers / borders */
  --sand-glow:  #E8C98A;      /* soft warm glow */

  /* Brand brown variations for visual rhythm */
  --brown:      #4F3520;
  --brown-dark: #36210E;

  /* Sage stays */
  --sage: #8A9A7E;
  --sage-light: #A4AE9A;

  /* Utility */
  --white: #FFFFFF;
  --offwhite: #FFF8E8;
  --line:        rgba(236, 224, 203, 0.16);   /* subtle cream line on dark */
  --line-soft:   rgba(236, 224, 203, 0.08);
  --line-cream:  rgba(21, 16, 10, 0.14);      /* dark line on cream cards */
  --shadow:    0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 6px 18px rgba(0, 0, 0, 0.40), 0 32px 80px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 0 0 1px rgba(212, 178, 113, 0.20), 0 8px 32px rgba(212, 178, 113, 0.12);

  /* ---- Type ---- */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ---- Sizing ---- */
  --max: 1280px;
  --max-narrow: 920px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --radius-lg: 8px;
}

/* ============================================================= */
/* Reset / base                                                  */
/* ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--sand);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
a:hover { color: var(--sand-dark); text-decoration-color: var(--sand-dark); }
a:focus-visible {
  outline: 3px solid var(--sand-glow);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Universal focus indicator — WCAG 2.2 SC 2.4.13 "Focus Appearance" */
:focus-visible {
  outline: 3px solid var(--sand-glow);
  outline-offset: 3px;
  border-radius: 2px;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: transparent; border: 0; }
button:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================= */
/* Typography                                                    */
/* ============================================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

h1 { font-size: clamp(40px, 7vw, 88px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(22px, 3vw, 32px); line-height: 1.22; }
h4 { font-size: 20px; line-height: 1.3; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
}

.muted { color: var(--stone); }
.center { text-align: center; }

/* Decorative rule */
.rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--sand);
  margin: 28px 0;
  border: 0;
}
.center .rule { margin-left: auto; margin-right: auto; }

/* ============================================================= */
/* Layout primitives                                             */
/* ============================================================= */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(64px, 9vw, 128px) 0; }

/* ============================================================= */
/* Skip link & a11y                                              */
/* ============================================================= */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  text-decoration: none;
  border-radius: 2px;
}
.skip:focus { left: 8px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================= */
/* Header                                                        */
/* ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 16, 9, 0.88);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, background 220ms ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(15, 8, 5, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name .b1 {
  font-family: var(--serif);
  font-size: 19px;
}
.brand-name .b2 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
}
.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 2px;
}
.nav-links a:hover { color: var(--sand-dark); }
.nav-links a.current { color: var(--sand-dark); border-bottom: 1px solid var(--sand); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-phone {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
}
.nav-toggle svg { width: 18px; height: 18px; }

/* ============================================================= */
/* Buttons                                                       */
/* ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sand);
  color: var(--bg-deepest);
  border: 1px solid var(--sand);
}
.btn-primary:hover { background: var(--sand-glow); border-color: var(--sand-glow); color: var(--bg-deepest); }
.btn-primary:focus-visible { outline-offset: 4px; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--bg-deepest); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  padding-left: 0;
  padding-right: 0;
  text-decoration: underline;
  text-decoration-color: var(--sand);
  text-underline-offset: 4px;
}
.btn-ghost:hover { color: var(--sand-dark); text-decoration-color: var(--sand-dark); }

.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 220ms ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================= */
/* HERO                                                          */
/* ============================================================= */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 128px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero-copy h1 {
  margin: 6px 0 18px;
  font-style: italic;
  font-weight: 300;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(135deg, #E8E1D0 0%, #C9AE8C 100%);
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-badge {
  position: absolute;
  left: -16px; bottom: 28px;
  background: var(--surface-cream);
  color: var(--on-cream-muted);
  padding: 16px 22px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 3px solid var(--sand-dark);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
}
.hero-badge strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--on-cream);
  margin-bottom: 4px;
}

/* ============================================================= */
/* Trust band                                                    */
/* ============================================================= */
.trust-band {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--porcelain-2);
}
.trust-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  text-align: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.trust-item .icon {
  width: 22px; height: 22px;
  color: var(--sand-dark);
}
.trust-item strong { color: var(--ink); font-weight: 600; }
.trust-divider {
  width: 1px; height: 18px;
  background: var(--line);
  display: inline-block;
}

/* ============================================================= */
/* Section heading                                               */
/* ============================================================= */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================= */
/* Pillar cards                                                  */
/* ============================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.pillar {
  background: var(--surface-cream);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--on-cream);
  box-shadow: var(--shadow);
  transition: transform 320ms ease, box-shadow 320ms ease;
  display: flex;
  flex-direction: column;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--on-cream);
}
.pillar:hover .pillar-arrow { transform: translateX(6px); }
.pillar-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--sand-glow), var(--sand));
  position: relative;
  overflow: hidden;
}
.pillar-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.pillar-body {
  padding: 28px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pillar-body h3 {
  margin: 0 0 12px;
  color: var(--on-cream);
}
.pillar-body p {
  color: var(--on-cream-muted);
  font-size: 15px;
  flex: 1;
  margin: 0 0 20px;
}
.pillar-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--on-cream);
}
.pillar .eyebrow { color: var(--sand-dark); }
.pillar-arrow {
  width: 14px; height: 14px;
  transition: transform 280ms ease;
  color: var(--sand-dark);
}

/* ============================================================= */
/* Doctor introduction                                           */
/* ============================================================= */
.doctor {
  background: var(--bg-deepest);
  color: var(--ink);
  position: relative;
}
.doctor::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(212, 178, 113, 0.08), transparent 60%);
  pointer-events: none;
}
.doctor .wrap { position: relative; z-index: 1; }
.doctor h2, .doctor h3 { color: var(--ink); }
.doctor .eyebrow { color: var(--sand); }
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.doctor-portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #2A3142 0%, #1A1F2C 100%);
  overflow: hidden;
  border-radius: 2px;
}
.doctor-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(0.95) brightness(0.95);
}
.doctor-copy h2 {
  font-style: italic;
  font-weight: 300;
}
.doctor-copy p {
  color: rgba(236, 224, 203, 0.82);
  font-size: 17px;
  line-height: 1.7;
}
.doctor-creds {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
.doctor-creds li {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-left: 18px;
  position: relative;
}
.doctor-creds li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--sand);
}

/* ============================================================= */
/* Smile gallery preview                                         */
/* ============================================================= */
.smiles-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.smile-card {
  background: var(--surface-cream);
  color: var(--on-cream);
  padding: 14px 14px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-cream);
}
.smile-card .smile-meta .name { color: var(--on-cream); }
.smile-card .smile-meta .tag  { color: var(--on-cream-muted); }
.smile-card p { color: var(--on-cream-muted) !important; }
.smile-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}
.smile-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #E8E1D0, #C9AE8C);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.smile-photo img { width: 100%; height: 100%; object-fit: cover; }
.smile-photo::after {
  content: attr(data-label);
  position: absolute;
  left: 8px; bottom: 8px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--porcelain);
  background: rgba(26, 31, 44, 0.6);
  padding: 3px 8px;
  border-radius: 2px;
}
.smile-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 6px;
}
.smile-meta .name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}
.smile-meta .tag {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ============================================================= */
/* Cinematic banner — single full-bleed moment with motion        */
/* ============================================================= */
.cinematic {
  position: relative;
  min-height: clamp(560px, 78vh, 820px);
  padding: clamp(72px, 12vw, 140px) clamp(24px, 5vw, 80px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-deepest);
  isolation: isolate;
}
.cinematic-bg {
  position: absolute;
  inset: -4%;
  z-index: 0;
}
.cinematic-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(85%) brightness(0.78) sepia(0.18);
  transform: scale(1.04);
  animation: kenburns 42s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic-bg img { animation: none; transform: scale(1.04); }
}

/* Vignette + warm wash so the photo reads dark-luxe regardless of source */
.cinematic-veil {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 8, 5, 0.85) 0%, rgba(15, 8, 5, 0.55) 40%, rgba(15, 8, 5, 0.85) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(15, 8, 5, 0.45) 80%),
    linear-gradient(120deg, rgba(79, 53, 32, 0.30), rgba(15, 8, 5, 0.10));
  pointer-events: none;
}

/* Gold light shimmer that slowly sweeps across the section */
.cinematic-shimmer {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(232, 201, 138, 0.10) 48%,
    rgba(232, 201, 138, 0.20) 50%,
    rgba(232, 201, 138, 0.10) 52%,
    transparent 70%
  );
  background-size: 250% 100%;
  background-position: -100% 0;
  animation: shimmer-sweep 14s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes shimmer-sweep {
  0%   { background-position: -100% 0; }
  55%  { background-position:  120% 0; }
  100% { background-position:  120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic-shimmer { animation: none; opacity: 0; }
}

.cinematic-content {
  position: relative;
  z-index: 3;
  max-width: 840px;
  margin: 0 auto;
  color: var(--ink);
}
.cinematic-content .eyebrow {
  color: var(--sand);
  letter-spacing: 0.32em;
  margin-bottom: 28px;
}
.cinematic-content h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.05;
  margin: 0 0 28px;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.cinematic-lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: rgba(236, 224, 203, 0.90);
  max-width: 64ch;
  margin: 0 auto 40px;
}
.cinematic-cta {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-cinematic {
  padding: 18px 36px;
  font-size: 13px;
  letter-spacing: 0.18em;
  background: var(--sand);
  color: var(--bg-deepest);
  border-color: var(--sand);
  box-shadow: 0 8px 32px rgba(212, 178, 113, 0.32),
              0 0 0 1px rgba(232, 201, 138, 0.45);
  position: relative;
  overflow: hidden;
}
.btn-cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 252, 239, 0.45) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-cinematic:hover {
  background: var(--sand-glow);
  border-color: var(--sand-glow);
  box-shadow: 0 12px 40px rgba(232, 201, 138, 0.45),
              0 0 0 1px rgba(255, 252, 239, 0.70);
}
.btn-cinematic:hover::before { transform: translateX(100%); }
.cinematic-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(236, 224, 203, 0.40);
  transition: color 240ms ease, border-color 240ms ease;
}
.cinematic-link:hover {
  color: var(--sand);
  border-color: var(--sand);
}

/* Gold filament rules that draw in on reveal */
.cinematic-rule {
  display: block;
  height: 1px;
  width: clamp(60px, 12vw, 140px);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  animation: rule-draw 1400ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.cinematic-rule--top    { margin-bottom: 28px; animation-delay: 200ms; }
.cinematic-rule--bottom { margin-top: 40px; animation-delay: 800ms; }
@keyframes rule-draw {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic-rule { animation: none; transform: scaleX(1); opacity: 1; }
}

/* ============================================================= */
/* Editorial section — DEPRECATED (kept for backwards compat)    */
/* ============================================================= */
.editorial {
  background: var(--porcelain-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.editorial::before, .editorial::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 80px; height: 1px;
  background: var(--sand);
  opacity: 0.5;
}
.editorial::before { top: 56px; }
.editorial::after  { bottom: 56px; }

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 112px) clamp(28px, 4vw, 80px);
  align-items: center;
}
.ed-block { margin: 0; }
.ed-block--text {
  padding: clamp(8px, 2vw, 24px) 0;
}
.ed-block--text .eyebrow {
  margin-bottom: 18px;
  color: var(--sand-dark);
  letter-spacing: 0.22em;
}
.ed-block--text h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.1;
  margin: 0 0 18px;
  max-width: 16ch;
  color: var(--ink);
}
.ed-block--text p {
  color: var(--stone);
  font-size: 17px;
  line-height: 1.65;
  max-width: 38ch;
  margin: 0 0 24px;
}
.ed-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--sand);
  transition: color 240ms ease, border-color 240ms ease, gap 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ed-link:hover {
  color: var(--sand-dark);
  border-color: var(--sand-dark);
  gap: 16px;
}
.ed-link .arrow { width: 14px; height: 14px; }

.ed-block--img {
  display: block;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
  position: relative;
  background: linear-gradient(135deg, var(--gold-glow), var(--sand));
  text-decoration: none;
}
.ed-block--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.ed-block--img:hover img { transform: scale(1.05); }
.ed-block--img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,20,13,0.20), transparent 40%);
  opacity: 0;
  transition: opacity 600ms ease;
}
.ed-block--img:hover::after { opacity: 1; }

@media (max-width: 720px) {
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 48px);
  }
  .ed-block--img { aspect-ratio: 4 / 3; }
}

/* ============================================================= */
/* AEO Quick Answer card                                         */
/* ============================================================= */
.aeo-answer {
  padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 4vw, 56px);
}
.answer-card {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-elevated-2) 100%);
  border: 1px solid var(--sand);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-gold), var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.answer-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sand) 50%, transparent);
  opacity: 0.6;
}
.answer-card .eyebrow {
  color: var(--sand);
  margin-bottom: 16px;
}
.answer-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 28px;
}
.answer-text strong {
  font-weight: 500;
  color: var(--sand-glow);
  font-style: italic;
}
.answer-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.answer-meta > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}
.answer-meta a { color: var(--sand); text-decoration: none; }
.answer-meta a:hover { color: var(--sand-glow); }
.answer-meta-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  .answer-meta { grid-template-columns: 1fr 1fr; }
}

/* ============================================================= */
/* Hero slogan (secondary tagline under the lead paragraph)      */
/* ============================================================= */
.hero-slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--sand);
  letter-spacing: 0.02em;
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--sand);
}

/* ============================================================= */
/* Multilingual section (homepage)                               */
/* ============================================================= */
.multilingual {
  padding: clamp(64px, 9vw, 120px) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.multilingual::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: clamp(80px, 15vw, 180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sand), transparent);
  opacity: 0.6;
}
.ml-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}
.ml-head .eyebrow { color: var(--sand); margin-bottom: 16px; }
.ml-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink);
}
.ml-head .lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--stone);
  max-width: 60ch;
  margin: 0 auto;
}

.ml-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 1180px;
  margin: 0 auto;
}
.ml-card {
  background: var(--surface-cream);
  color: var(--on-cream);
  padding: clamp(28px, 4vw, 40px) clamp(20px, 3vw, 28px);
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--line-cream);
  box-shadow: var(--shadow);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 320ms ease,
              border-color 320ms ease;
  position: relative;
  overflow: hidden;
}
.ml-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(212, 178, 113, 0.08));
  pointer-events: none;
}
.ml-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--sand-dark);
  color: var(--on-cream);
}
.ml-greeting {
  font-family: var(--serif);
  font-size: clamp(36px, 4.8vw, 52px);
  line-height: 1;
  margin: 0 0 16px;
  color: var(--on-cream);
  font-weight: 400;
  font-feature-settings: "ss01";
}
.ml-name {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--on-cream);
  margin: 0 0 6px;
}
.ml-name span { font-weight: 400; color: var(--on-cream-muted); }
.ml-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--on-cream-muted);
  margin: 0;
  line-height: 1.4;
}
.ml-footnote {
  max-width: 600px;
  margin: clamp(32px, 5vw, 48px) auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--stone);
  line-height: 1.7;
}
.ml-footnote a { color: var(--sand); text-decoration: none; }
.ml-footnote a:hover { color: var(--sand-glow); }

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

/* Native script greeting size — for language landing pages */
.lang-greeting {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.08em;
}
.native-script {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--sand);
  margin-bottom: 6px;
}
.native-translit {
  display: block;
  font-style: italic;
  color: var(--stone);
}

/* ============================================================= */
/* Blog grid                                                     */
/* ============================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.blog-card {
  background: var(--surface-cream);
  color: var(--on-cream);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid var(--line-cream);
  box-shadow: var(--shadow);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease, border-color 320ms ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sand-dark);
  color: var(--on-cream);
}
.blog-card .eyebrow {
  color: var(--sand-dark);
  margin-bottom: 14px;
}
.blog-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--on-cream);
}
.blog-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-cream-muted);
  margin: 0 0 24px;
  flex: 1;
}
.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-cream);
}
.blog-card-cta .arrow {
  width: 14px; height: 14px;
  transition: transform 280ms ease;
}
.blog-card:hover .blog-card-cta .arrow { transform: translateX(6px); }

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

/* ============================================================= */
/* Areas We Serve (local SEO band)                               */
/* ============================================================= */
.areas {
  background: linear-gradient(180deg, var(--porcelain) 0%, var(--porcelain-2) 100%);
  border-top: 1px solid var(--line);
}
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.area-card {
  background: var(--surface-cream);
  color: var(--on-cream);
  border-radius: 4px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--sand);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 320ms ease,
              border-color 320ms ease;
}
.area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--sand-dark);
}
.area-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--on-cream);
}
.area-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--on-cream-muted);
  margin: 0;
}
.areas {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%) !important;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .areas-grid { grid-template-columns: 1fr; } }

/* ============================================================= */
/* Smooth scroll reveal animation                                */
/* ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================= */
/* Hero parallax helper                                          */
/* ============================================================= */
.hero-image {
  transition: transform 80ms linear;
}
.hero-image.parallax img {
  transform: translateY(var(--p, 0px)) scale(1.04);
  transition: transform 120ms linear;
}

/* ============================================================= */
/* Marquee trust band                                             */
/* ============================================================= */
.trust-band {
  overflow: hidden;
  padding: 18px 0;
}
.trust-band-inner {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: trust-scroll 38s linear infinite;
  gap: 0;
}
.trust-band-inner > * {
  flex-shrink: 0;
  padding: 0 clamp(20px, 3.4vw, 48px);
}
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trust-band:hover .trust-band-inner { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .trust-band-inner {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

/* ============================================================= */
/* Smile gallery — full-bleed insertable picture tiles           */
/* ============================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
.gallery-grid .gallery-tile:first-child {
  grid-column: 1 / -1;
}
.gallery-tile {
  margin: 0;
  background: linear-gradient(135deg, #E8E1D0, #C9AE8C);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
  position: relative;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.gallery-tile.is-empty img { display: none; }
.gallery-tile.is-empty::after {
  content: "Image slot — paste your before/after image URL into src=\"\"";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26, 31, 44, 0.55);
}

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .gallery-tile:first-child { grid-column: auto; }
  .gallery-tile { aspect-ratio: 4 / 3; }
}

/* ============================================================= */
/* Technology                                                    */
/* ============================================================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.tech-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--line);
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: left;
  color: var(--ink);
}
.tech-card h4 { color: var(--ink); }
.tech-card p  { color: var(--stone); }
.tech-icon {
  width: 36px; height: 36px;
  color: var(--sand-dark);
  margin-bottom: 18px;
}
.tech-card h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  margin: 0 0 8px;
}
.tech-card p {
  font-size: 14px;
  color: var(--stone);
  margin: 0;
}

/* ============================================================= */
/* Testimonials                                                  */
/* ============================================================= */
.testimonials {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.testimonial {
  background: var(--surface-cream);
  color: var(--on-cream);
  padding: 36px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--line-cream);
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: 12px; left: 22px;
  font-family: var(--serif);
  font-size: 80px;
  line-height: 1;
  color: var(--sand-dark);
  opacity: 0.45;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--sand-dark);
  margin-bottom: 18px;
  position: relative;
}
.testimonial-stars svg { width: 14px; height: 14px; }
.testimonial blockquote {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  font-style: italic;
  color: var(--on-cream);
}
.testimonial-cite {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand), var(--sand-dark));
  display: grid; place-items: center;
  color: var(--bg-deepest);
  font-family: var(--serif);
  font-size: 18px;
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-cite .name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--on-cream);
}
.testimonial-cite .detail {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--on-cream-muted);
  letter-spacing: 0.02em;
}

/* ============================================================= */
/* Practical info / contact strip                                */
/* ============================================================= */
.practical {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.practical-info dl {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px 28px;
}
.practical-info dt {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  padding-top: 4px;
}
.practical-info dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
}
.practical-info dd .row {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  font-variant-numeric: tabular-nums;
}
.practical-info dd .row.closed { color: var(--stone-light); }
.practical-map {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #E5E9E1, #6E7E6B);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.practical-map img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================= */
/* FAQ                                                           */
/* ============================================================= */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--ink);
}
.faq-q:hover { color: var(--sand-dark); }
.faq-icon {
  width: 18px; height: 18px;
  transition: transform 280ms ease;
  color: var(--sand-dark);
  flex-shrink: 0;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 0 28px;
  font-size: 16px;
  color: var(--stone);
  max-width: 720px;
  line-height: 1.7;
}

/* ============================================================= */
/* Final CTA                                                     */
/* ============================================================= */
.final-cta {
  background: var(--bg-deepest);
  color: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212, 178, 113, 0.10), transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(212, 178, 113, 0.06), transparent 60%);
  pointer-events: none;
}
.final-cta .wrap-narrow { position: relative; z-index: 1; }
.final-cta h2 { color: var(--ink); font-style: italic; font-weight: 300; }
.final-cta p { color: rgba(236, 224, 203, 0.78); font-size: 18px; }
.final-cta .btn-primary {
  background: var(--sand);
  color: var(--bg-deepest);
  border-color: var(--sand);
}
.final-cta .btn-primary:hover { background: var(--sand-glow); border-color: var(--sand-glow); color: var(--bg-deepest); }
.final-cta .btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.final-cta .btn-secondary:hover { background: var(--ink); color: var(--bg-deepest); }
.final-cta .cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* ============================================================= */
/* Footer                                                        */
/* ============================================================= */
.site-footer {
  background: var(--bg-deepest);
  border-top: 1px solid var(--line);
  padding: 72px 0 36px;
  color: var(--stone);
  font-size: 14px;
}
.site-footer .footer-col a { color: var(--ink); }
.site-footer .footer-col a:hover { color: var(--sand); }
.site-footer .brand-name .b1 { color: var(--ink); }
.site-footer .footer-bottom { border-top: 1px solid var(--line); color: var(--stone-light); }
.site-footer .footer-bottom a { color: var(--stone); }
.site-footer .footer-bottom a:hover { color: var(--sand); }
.site-footer .footer-col h5 { color: var(--sand); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 56px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--ink);
  text-decoration: none;
}
.footer-col a:hover { color: var(--sand-dark); }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { margin-bottom: 16px; }
.footer-disclaimer {
  margin: 0 0 36px;
  padding: 24px 28px;
  background: rgba(236, 224, 203, 0.04);
  border-left: 2px solid var(--sand-dark);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--stone);
}
.footer-disclaimer p { margin: 0; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: var(--stone);
}
.footer-bottom a { color: var(--stone); text-decoration: none; margin-right: 18px; }
.footer-bottom a:hover { color: var(--sand-dark); }

/* ============================================================= */
/* Booking modal                                                 */
/* ============================================================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 44, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}
.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.modal-dialog {
  background: var(--surface-cream);
  color: var(--on-cream);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px);
  transition: transform 260ms ease;
  border: 1px solid var(--line-cream);
}
.modal-dialog h2 { color: var(--on-cream); }
.modal-dialog p { color: var(--on-cream-muted); }
.modal-dialog .eyebrow { color: var(--sand-dark); }
.modal-dialog .form-row label { color: var(--on-cream); }
.modal-dialog .modal-foot { color: var(--on-cream-muted); }
.modal-dialog .modal-foot a { color: var(--on-cream); }
.modal-dialog .btn-primary {
  background: var(--bg-deepest);
  color: var(--ink);
  border-color: var(--bg-deepest);
}
.modal-dialog .btn-primary:hover {
  background: var(--sand-dark);
  color: var(--bg-deepest);
  border-color: var(--sand-dark);
}
.modal-dialog .modal-close { color: var(--on-cream); }
.modal-dialog .modal-close:hover { background: var(--surface-cream-light); }
.modal[aria-hidden="false"] .modal-dialog { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
}
.modal-close:hover { background: var(--line-soft); }
.modal h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-style: italic;
  margin: 0 0 8px;
}
.modal .eyebrow { margin-bottom: 6px; }
.modal p { color: var(--stone); margin: 0 0 24px; }
.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}
.form-row label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--offwhite);
  border: 1px solid var(--line-cream);
  border-radius: 2px;
  font-size: 15px;
  color: var(--on-cream);
  font-family: var(--sans);
  min-height: 44px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--sand);
  outline-offset: 1px;
  border-color: var(--sand);
}
.form-row textarea { min-height: 88px; resize: vertical; }
.form-row .req {
  color: var(--sand-dark);
  font-weight: 700;
  margin-left: 2px;
}
.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #C2410C;
  background: #FFF5F0;
}
.form-error {
  background: #FEF3F2;
  border-left: 3px solid #C2410C;
  color: #7C2D12;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 2px;
  margin: 0 0 16px;
}
.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-row-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.modal-submit { width: 100%; margin-top: 8px; justify-content: center; }
.modal-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--stone);
}
.modal-foot a { color: var(--ink); }

/* ============================================================= */
/* Page-specific (subpages)                                      */
/* ============================================================= */
.page-hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 56px);
}
.page-hero h1 {
  font-style: italic;
  font-weight: 300;
  max-width: 18ch;
}
.page-hero .lead {
  max-width: 60ch;
  margin-top: 24px;
}

.breadcrumbs {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin-bottom: 28px;
}
.breadcrumbs a { color: var(--stone); text-decoration: none; }
.breadcrumbs a:hover { color: var(--sand-dark); }
.breadcrumbs span { margin: 0 8px; color: var(--stone-light); }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.content-grid .sidebar {
  position: sticky;
  top: 110px;
  background: var(--surface-cream);
  color: var(--on-cream);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-cream);
}
.sidebar h4 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--on-cream);
}
.sidebar ul { list-style: none; padding: 0; margin: 0 0 18px; }
.sidebar li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-cream);
  color: var(--on-cream);
}
.sidebar li:last-child { border-bottom: 0; }
.sidebar a {
  text-decoration: none;
  color: var(--on-cream);
}
.sidebar a:hover { color: var(--sand-dark); }
.sidebar strong { color: var(--on-cream); }
.sidebar p { color: var(--on-cream-muted); }
.sidebar .btn { width: 100%; justify-content: center; }
.sidebar .btn-primary {
  background: var(--bg-deepest);
  color: var(--ink);
  border-color: var(--bg-deepest);
}
.sidebar .btn-primary:hover {
  background: var(--sand-dark);
  color: var(--bg-deepest);
  border-color: var(--sand-dark);
}

.prose {
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.75;
}
.prose h2 { margin: 56px 0 18px; }
.prose h3 { margin: 36px 0 12px; font-style: italic; font-weight: 400; }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose .answer {
  background: var(--surface-cream);
  color: var(--on-cream);
  border-left: 3px solid var(--sand-dark);
  padding: 24px 28px;
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.55;
  border-radius: 2px;
}
.prose .answer .label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 8px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: var(--surface-cream);
  color: var(--on-cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  border-bottom: 1px solid var(--line-cream);
}
.compare-table th {
  background: var(--bg-deepest);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table tr:nth-child(even) td { background: var(--surface-cream-light); }

/* ============================================================= */
/* Responsive                                                    */
/* ============================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { max-width: 520px; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; }
  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-portrait { max-width: 360px; }
  .smiles-preview { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .practical { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid .sidebar { position: static; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--porcelain);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter);
    gap: 6px;
    align-items: flex-start;
  }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-phone { display: none; }
  .smiles-preview { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .practical-info dl { grid-template-columns: 1fr; gap: 4px 0; }
  .practical-info dt { margin-top: 14px; }
  .form-row-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .site-footer, .modal, .final-cta { display: none; }
  body { background: white; color: black; }
}
