/* Clinicá Beyond: shared styles for every page */
/* Brand colors, taken from the clinic sign wall, the logo and the Instagram feed.
   Change these to adjust the whole site. */
:root {
  --sand: #b5a78c;        /* the stucco wall behind the sign */
  --sand-dark: #8c7d62;
  --sand-light: #e9e2d4;
  --cream: #f6f2ea;       /* main background */
  --ink: #1d1b18;         /* the black sign letters */
  --charcoal: #4a4844;    /* the grey logo */
  --olive: #3f443b;       /* the team's dark scrubs on Instagram */
  --olive-soft: #6b7560;  /* lighter olive for small accents: icons, labels, lines */
  --olive-tint: #e6e8dc;  /* pale olive wash for one section */
  --plaster: #7c8264;     /* matte olive plaster (Pinterest swatch) */
  --walnut: #5b3f2c;      /* walnut wood (Pinterest swatch) */
  --ivory: #efe6d6;       /* ivory stone (Pinterest swatch) */
  --bronze: #a8875a;      /* thin gold-bronze line accent */
  --oak: #c19a6b;         /* light oak (Pinterest: white travertine + light oak) */
  --clay: #b8704a;        /* terracotta from the carved stone relief */
  /* Travertine stone: long soft veins over warm beige (from the Pinterest board) */
  --travertine:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2400' height='1200'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0015 0.035' numOctaves='5' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 0.4 -0.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #ebe4d6, #e2d9c8);
  --muted: #6f685c;
  --line: #d8cfbf;
  --white: #ffffff;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Cormorant Garamond", "Garamond", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);  /* slow, soft finish for every animation */
  --arch: 999px 999px 18px 18px;           /* arched frames, like a boutique interior */
}

* { box-sizing: border-box; }
/* Smooth page-to-page change (Chrome, Edge, Safari): the old page fades into the new one */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* A soft linen weave over the whole page: fine threads in both directions plus a little grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    repeating-linear-gradient(0deg, rgba(110, 98, 76, 0.07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(110, 98, 76, 0.06) 0 1px, transparent 1px 4px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.35' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.43 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section { padding: 120px 0; position: relative; scroll-margin-top: 80px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-soft);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: 0.04em; margin-bottom: 18px; }
.section-head h2 em, .hero h1 em { font-family: var(--body); font-style: italic; font-weight: 400; letter-spacing: 0; }
.section-head p { color: var(--muted); font-size: 24px; }

/* ---------- 3D buttons ---------- */
.btn {
  --edge: #000;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 0;
  border-radius: 12px;
  font: 500 13px var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}
.btn-dark {
  color: var(--cream);
  background: linear-gradient(180deg, #45413a 0%, #26231f 55%, #1a1815 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -2px 3px rgba(0, 0, 0, 0.35),
    0 4px 0 #0c0b0a,
    0 12px 22px -6px rgba(29, 27, 24, 0.45);
}
.btn-light {
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f3ede2 60%, #e6ddcc 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 3px rgba(140, 125, 98, 0.25),
    0 4px 0 #c9bca3,
    0 12px 22px -8px rgba(140, 125, 98, 0.55);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-dark:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -2px 3px rgba(0,0,0,0.35), 0 6px 0 #0c0b0a, 0 18px 28px -8px rgba(29,27,24,0.5); }
.btn-light:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 3px rgba(140,125,98,0.25), 0 6px 0 #c9bca3, 0 18px 28px -10px rgba(140,125,98,0.6); }
.btn:active { transform: translateY(4px); transition-duration: 0.08s; }
.btn-dark:active { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 2px 4px rgba(0,0,0,0.4), 0 0 0 #0c0b0a, 0 4px 8px -4px rgba(29,27,24,0.4); }
.btn-light:active { box-shadow: inset 0 1px 0 #fff, inset 0 2px 4px rgba(140,125,98,0.3), 0 0 0 #c9bca3, 0 4px 8px -4px rgba(140,125,98,0.5); }
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* ---------- Scroll reveal: things rise gently into place ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0s) * 0.6);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="zoom"] { transform: scale(0.94); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--cream);
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
header.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(29, 27, 24, 0.3); }
header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.logo img { height: 50px; width: auto; mix-blend-mode: multiply; }
.nav-links { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--olive-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 12px 22px; font-size: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 0.95fr; gap: 72px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(38px, 5vw, 66px); letter-spacing: 0.04em; line-height: 1.12; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--d, 0s) * 0.6); }
.js .hero.ready h1 .line > span { transform: none; }
.hero p.lede { font-size: 25px; color: var(--muted); max-width: 470px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-place { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.hero-place svg { width: 16px; height: 16px; color: var(--olive-soft); }

.hero-visual { position: relative; }
.arch-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 40px 80px -40px rgba(29, 27, 24, 0.5);
}
.arch-frame .photo {
  position: absolute;
  inset: -8% 0;
  background: url("images/sign-wall.jpg") 38% center / cover no-repeat;
  will-change: transform;
}
.js .hero .arch-frame .photo { transform: scale(1.18); transition: transform 1.4s var(--ease); }
.js .hero.ready .arch-frame .photo { transform: scale(1.04); }
/* Arches stepping back behind the photo, like a carved arch niche */
.hero-visual::before, .hero-visual::after {
  content: "";
  position: absolute;
  border-radius: var(--arch);
  z-index: -1;
}
.hero-visual::before { inset: -22px 22px 22px -22px; border: 1px solid var(--sand); }
.hero-visual::after { inset: -44px 44px 44px -44px; border: 1px solid var(--olive-soft); opacity: 0.35; }
/* Soft sunlight through leaves, drifting slowly across the photo */
.hero .arch-frame::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(18% 9% at 30% 20%, rgba(30, 26, 18, 0.5), transparent 70%),
    radial-gradient(10% 16% at 62% 34%, rgba(30, 26, 18, 0.45), transparent 70%),
    radial-gradient(22% 7% at 45% 58%, rgba(30, 26, 18, 0.4), transparent 70%),
    radial-gradient(9% 14% at 78% 70%, rgba(30, 26, 18, 0.4), transparent 70%),
    radial-gradient(14% 8% at 20% 82%, rgba(30, 26, 18, 0.35), transparent 70%),
    radial-gradient(40% 30% at 70% 15%, rgba(255, 244, 222, 0.35), transparent 70%);
  filter: blur(14px);
  mix-blend-mode: multiply;
  opacity: 0.8;
  animation: leaves 14s ease-in-out infinite alternate;
}
@keyframes leaves { from { transform: translate(-2%, -1%) rotate(-2deg); } to { transform: translate(3%, 2%) rotate(2deg); } }
.badge {
  position: absolute;
  left: -36px;
  bottom: 48px;
  background: var(--white);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 24px 48px -20px rgba(29, 27, 24, 0.35);
  animation: float 6s ease-in-out infinite;
}
.badge .ring { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-tint); color: var(--olive); flex: none; }
.badge strong { display: block; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: 0.08em; }
.badge small { color: var(--muted); font-size: 16px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Home hero: centered headline over the whole team ---------- */
.hero-team { padding-bottom: 0; }
.hero-team .hero-text { align-items: center; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-team .hero-text .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero-team .hero-actions { justify-content: center; }
.hero-team p.lede { max-width: 600px; }
.team-stage { position: relative; margin: 64px auto 0; max-width: 1100px; }
/* stepped arches behind the team, like a carved niche */
.team-stage::before, .team-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  border: 1px solid var(--sand);
  border-bottom: 0;
  z-index: -1;
}
.team-stage::before { width: 86%; height: 118%; background: linear-gradient(180deg, transparent, rgba(181, 167, 140, 0.18)); }
.team-stage::after { width: 100%; height: 132%; border-color: var(--olive-soft); opacity: 0.35; }
.team-stage img, .team-stage video {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply; /* the white studio background melts into the page */
  filter: brightness(1.04) contrast(1.03);
  /* fade every edge so the grey studio corners disappear */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 5%, #000 86%, transparent), linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent, #000 5%, #000 86%, transparent), linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.team-stage figcaption {
  position: absolute;
  right: 4%;
  top: -6px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive-soft);
}
.team-stage figcaption em { font-family: var(--body); font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--muted); }
@media (max-width: 600px) {
  .team-stage { margin-top: 44px; }
  .team-stage figcaption { position: static; display: block; text-align: center; margin-top: 8px; }
}

/* ---------- Team page: vertical video in an arch ---------- */
.reel { background: var(--olive-tint); border-radius: 50% 50% 0 0 / 120px 120px 0 0; }
.reel-grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: 80px; align-items: center; }
.reel-media { position: relative; isolation: isolate; max-width: 400px; width: 100%; margin: 0 auto; }
.reel .arch-frame { aspect-ratio: 480 / 848; background: #d9d4cb; }
.reel .arch-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-media::before {
  content: "";
  position: absolute;
  inset: -20px 20px 20px -20px;
  border: 1px solid var(--olive-soft);
  border-radius: var(--arch);
  opacity: 0.5;
  z-index: -1;
}
@media (max-width: 980px) {
  .reel-grid { grid-template-columns: 1fr; gap: 56px; }
  .reel { border-radius: 50% 50% 0 0 / 60px 60px 0 0; }
  .reel-media { max-width: 320px; }
}

/* ---------- Moving word band ---------- */
.marquee {
  background: var(--travertine);
  background-size: cover;
  border-block: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: inline-flex; gap: 56px; animation: slide 40s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(22px, 3vw, 34px); letter-spacing: 0.1em; color: transparent; -webkit-text-stroke: 1px var(--charcoal); }
.marquee span.solid { color: var(--ink); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--olive-soft); font-size: 24px; align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
#services { background: var(--travertine); background-size: cover; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative;
  padding: 38px 34px 34px;
  background: var(--white);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(29, 27, 24, 0.25);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: var(--sand-light);
  transition: height 0.6s var(--ease);
  z-index: 0;
}
.service > * { position: relative; z-index: 1; }
.service:hover { transform: translateY(-8px); box-shadow: 0 1px 0 var(--line), 0 36px 60px -30px rgba(29, 27, 24, 0.35), 0 22px 36px -18px rgba(222, 165, 92, 0.55); }
.service:hover::before { height: 100%; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; }
.service .icon { width: 56px; height: 56px; color: var(--olive-soft); transition: transform 0.6s var(--ease); }
.service:hover .icon { transform: rotate(-6deg) scale(1.06); }
.service .num { font-family: var(--display); font-size: 13px; letter-spacing: 0.2em; color: var(--sand); }
.service h3 { font-size: 19px; letter-spacing: 0.06em; margin-top: 10px; }
.service p { color: var(--muted); font-size: 19px; }

/* ---------- Inside the clinic ---------- */
.inside {
  background: var(--olive-tint);
  border-radius: 50% 50% 0 0 / 120px 120px 0 0;
  margin-top: 40px;
}
.inside-grid { display: grid; grid-template-columns: 0.9fr 1fr; gap: 80px; align-items: center; }
.inside .arch-frame { aspect-ratio: 3 / 4; }
.inside .arch-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.inside .arch-frame .photo { background-position: 60% center; }
.inside .arch-frame::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: repeating-linear-gradient(105deg, rgba(30, 24, 16, 0.42) 0 34px, transparent 34px 92px);
  filter: blur(10px);
  mix-blend-mode: multiply;
  opacity: 0.6;
  animation: sunpath 18s ease-in-out infinite alternate;
}
@keyframes sunpath { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.points { display: flex; flex-direction: column; gap: 26px; margin: 8px 0 40px; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.points .pi { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--olive-soft); display: grid; place-items: center; color: var(--olive); }
.points .pi svg { width: 22px; height: 22px; }
.points h3 { font-size: 16px; letter-spacing: 0.1em; margin-bottom: 4px; }
.points p { color: var(--muted); font-size: 19px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.member { display: flex; flex-direction: column; gap: 18px; }
.portrait {
  position: relative;
  aspect-ratio: 9 / 16; /* full-length photos, uncropped */
  max-width: 100%;
  border-radius: var(--arch);
  overflow: hidden;
  background: linear-gradient(170deg, var(--sand-light), #ddd3c1);
  display: grid;
  place-items: center;
  color: var(--sand-dark);
  background-size: cover;
  background-position: center top;
  transition: transform 0.8s var(--ease);
}
.portrait svg { width: 38%; opacity: 0.55; }
.member:hover .portrait { transform: translateY(-6px); }
.member h3 { font-size: 17px; letter-spacing: 0.06em; }
.member p { color: var(--muted); font-size: 18px; font-style: italic; }

/* ---------- Hours (a floating dark card, not a hard band) ---------- */
.hours { padding: 40px 0 120px; }
.hours-card {
  background: radial-gradient(120% 140% at 0% 0%, #4b5146 0%, var(--olive) 45%, #2e322b 100%);
  color: var(--cream);
  border-radius: 32px;
  padding: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  box-shadow: 0 50px 90px -50px rgba(29, 27, 24, 0.7);
  position: relative;
  overflow: hidden;
}
.hours-card::after {
  content: "Á";
  position: absolute;
  right: -30px;
  bottom: -120px;
  font-family: var(--display);
  font-size: 420px;
  line-height: 1;
  color: rgba(246, 242, 234, 0.04);
  pointer-events: none;
}
.hours .eyebrow { color: #c9bfa9; }
.hours .section-head p { color: #c9c2b3; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 20px; position: relative; z-index: 1; }
.hours-table td { padding: 15px 0; border-bottom: 1px solid rgba(246, 242, 234, 0.14); }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.closed td:last-child { color: #a9a294; font-style: italic; }
.hours-table tr.today td { color: var(--white); font-weight: 600; }
.hours-table tr.today td:first-child::after { content: " · today"; font-weight: 400; font-style: italic; color: #c9c2b3; }

/* ---------- Contact ---------- */
.contact { padding-top: 40px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
.contact-info { display: flex; flex-direction: column; gap: 30px; }
.contact-info h3 { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--olive-soft); margin-bottom: 6px; }
.contact-info a { text-decoration-color: var(--sand); text-underline-offset: 5px; transition: color 0.3s; }
.contact-info a:hover { color: var(--olive); }
form {
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    repeating-linear-gradient(90deg, #c9a274 0 9px, #a97e53 9px 11px, #d2ad80 11px 20px) border-box;
  border: 12px solid transparent;
  border-radius: 28px;
  padding: 40px;
  display: grid;
  gap: 22px;
  box-shadow: 0 1px 0 var(--line), 0 40px 70px -45px rgba(29, 27, 24, 0.4);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: grid; gap: 6px; font-family: var(--display); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--charcoal); }
input, select, textarea {
  font: 19px var(--body);
  color: var(--ink);
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.4s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
textarea { min-height: 100px; resize: vertical; }
.form-note { font-size: 19px; font-style: italic; color: var(--olive); }

/* ---------- Layered stone waves above the footer ---------- */
.stone-waves { display: block; width: 100%; height: 120px; margin-bottom: -1px; }

/* ---------- Corridor of arches with a window at the end ---------- */
.corridor { position: absolute; inset: 0; background: #cdb898; overflow: hidden; }
.corridor span {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(100% - var(--i) * 12.5%);
  height: calc(100% - var(--i) * 10.5%);
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #b9a07c 0%, #e8dac0 18%, #f1e6d1 50%, #ddcbad 82%, #c2a984 100%);
  box-shadow: inset 0 18px 24px -14px rgba(60, 44, 26, 0.35), -6px 0 10px -6px rgba(60, 44, 26, 0.35);
}
.corridor span:nth-child(even) { background: linear-gradient(90deg, #a98f6b 0%, #d6c3a2 25%, #e2d2b6 50%, #cbb592 80%, #ad946f 100%); }
.corridor .window {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 14%;
  height: 22%;
  transform: translateX(-50%);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #8fb8d4 0%, #cfe0e8 70%, #6f7f55 70%, #5e6c47 100%);
  box-shadow: 0 0 0 3px #3a2f22;
}
.corridor .vase { position: absolute; left: 50%; bottom: 5%; width: 9%; transform: translateX(-50%); fill: var(--clay); filter: drop-shadow(10px 4px 6px rgba(60, 44, 26, 0.35)); }

footer { background: linear-gradient(180deg, #4a3324, #33241a); color: #bdb4a4; padding: 56px 0; font-size: 17px; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
footer img { height: 44px; width: auto; filter: invert(1); mix-blend-mode: screen; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 980px) {
  .hero { padding-top: 120px; }
  .hero-grid, .inside-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .inside .arch-frame { max-width: 420px; margin: 0 auto; width: 100%; }
  .service-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hours-card { grid-template-columns: 1fr; padding: 52px 40px; gap: 40px; }
}
@media (max-width: 600px) {
  body { font-size: 19px; }
  section { padding: 84px 0; }
  .container { padding: 0 18px; }
  .nav { height: 74px; }
  .logo img { height: 40px; }
  .nav .btn { padding: 11px 16px; letter-spacing: 0.14em; }
  .hero { padding: 104px 0 64px; }
  .hero-visual::before { inset: -12px 12px 12px -12px; }
  .hero-visual::after { inset: -24px 24px 24px -24px; }
  .badge { left: 12px; bottom: 20px; padding: 14px 16px; }
  .service-grid, .row { grid-template-columns: 1fr; }
  .team-grid { gap: 18px; }
  .member h3 { font-size: 15px; }
  .member p { font-size: 16px; }
  .hours { padding-bottom: 84px; }
  .hours-card { padding: 40px 24px; border-radius: 24px; }
  .hours-table { font-size: 18px; }
  form { padding: 28px 22px; }
}
/* ---------- Materials band: Olive / Walnut / Ivory ---------- */
.materials { padding: 0; }
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 420px; }
.material {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 48px 40px;
  overflow: hidden;
}
.material::before { content: ""; position: absolute; inset: 0; z-index: 0; transition: transform 1.4s var(--ease); }
.material:hover::before { transform: scale(1.05); }
.material > * { position: relative; z-index: 1; }
.material .word { font-family: var(--display); font-size: clamp(26px, 3.2vw, 40px); letter-spacing: 0.45em; }
.material .label { font-family: var(--display); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.75; }
.material p { font-size: 19px; max-width: 280px; opacity: 0.9; }
.material.olive { color: var(--cream); }
.material.olive::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.27 0 0 0 0 0.2 0 0 0 0.5 -0.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E") center / cover,
    var(--plaster);
}
.material.walnut { color: var(--ivory); }
.material.walnut::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='600'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.04' numOctaves='5' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.1 0 0 0 0 0.06 0 0 0 0.7 -0.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E") center / cover,
    linear-gradient(160deg, #6b4a33, var(--walnut));
}
.material.ivory { color: var(--ink); }
.material.ivory::before { background: var(--travertine); background-size: cover; }

/* ---------- Thin bronze line that draws itself as you scroll ---------- */
.flow-line { display: block; width: 100%; height: 90px; overflow: visible; }
.flow-line path { fill: none; stroke: var(--bronze); stroke-width: 1; stroke-dasharray: 1600; stroke-dashoffset: 1600; transition: stroke-dashoffset 2.6s var(--ease); }
.flow-line.in path, html:not(.js) .flow-line path { stroke-dashoffset: 0; }

@media (max-width: 980px) {
  .materials-grid { grid-template-columns: 1fr; }
  .material { min-height: 240px; padding: 36px 28px; }
  .inside { border-radius: 50% 50% 0 0 / 60px 60px 0 0; }
}

/* ---------- Links to the other treatment pages ---------- */
.more-treatments { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 20px 40px; text-align: center; }
.more-treatments div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.more-treatments a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  font-size: 17px;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
}
.more-treatments a:hover { border-color: var(--olive-soft); background: var(--olive-tint); }

/* ---------- Before & after cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.case { display: flex; flex-direction: column; gap: 12px; }
.case h3 { font-size: 18px; letter-spacing: 0.06em; margin-top: 8px; }
.case p { color: var(--muted); font-size: 18px; }
.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 30px 50px -34px rgba(29, 27, 24, 0.45);
  touch-action: pan-y;
}
.ba { position: absolute; inset: 0; background-size: cover; background-position: center; display: grid; place-items: center; }
.ba span { font-family: var(--display); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.ba.has-photo span { display: none; }
.ba-after { background-color: var(--ivory); color: var(--sand-dark); }
.ba-before { background-color: #cbbd9f; color: var(--charcoal); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba span { position: absolute; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.ba-before span { left: 25%; }
.ba-after span { left: 75%; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #efe8dc);
  box-shadow: 0 3px 0 #c9bca3, 0 10px 20px -8px rgba(29, 27, 24, 0.5);
  display: grid;
  place-items: center;
}
.ba-knob svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ba-tag {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(29, 27, 24, 0.55);
  color: var(--cream);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }
.compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(input:focus-visible) { outline: 2px solid var(--olive); outline-offset: 4px; }
.consent-note { margin-top: 28px; font-size: 16px; font-style: italic; color: var(--muted); }
.cases[data-count="1"] { grid-template-columns: minmax(0, 760px); justify-content: center; }
.cases[data-count="1"] .case h3, .cases[data-count="1"] .case p { text-align: center; }
.cases[data-count="2"] { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cases, .cases[data-count] { grid-template-columns: 1fr; } }

/* ==========================================================
   Smile Makeover page
   ========================================================== */
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.service .more {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.service .more svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
/* the whole card opens the treatment page */
.service { cursor: pointer; }
.service > .more { position: static; }
.service .more::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.service:hover .more svg, .service:focus-within .more svg { transform: translateX(4px); }
.service:has(.more:focus-visible) { outline: 2px solid var(--olive); outline-offset: 4px; }
.service .more:focus-visible { outline: none; }
/* the four steps, in small type, on each card */
.mini-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: step; }
.mini-steps li {
  counter-increment: step;
  font-size: 15px;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--olive-tint);
  color: var(--olive);
}
.mini-steps li::before { content: counter(step) " · "; font-family: var(--display); font-size: 11px; color: var(--olive-soft); }
.service .more:hover svg { transform: translateX(4px); }

/* Timeline of steps, with a line that draws as you scroll */
.process { background: linear-gradient(180deg, var(--cream) 0%, var(--sand-light) 15%, var(--sand-light) 85%, var(--cream) 100%); }
.timeline { --progress: 0; position: relative; display: flex; flex-direction: column; gap: 34px; max-width: 860px; margin: 0 auto; list-style: none; padding: 0; }
.timeline::before, .timeline::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 36px;
  bottom: 36px;
  width: 1px;
  background: var(--sand);
}
.timeline::after { background: var(--olive); transform-origin: top; transform: scaleY(var(--progress)); }
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 72px 1fr; gap: 32px; align-items: start; }
.step-marker {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--sand);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(29, 27, 24, 0.4);
}
.step-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  box-shadow: 0 1px 0 var(--line), 0 24px 44px -32px rgba(29, 27, 24, 0.3);
}
.step-card h3 { font-size: 24px; letter-spacing: 0.06em; }
.step-card p { color: var(--muted); grid-column: 1; }
.step-card .icon { grid-column: 2; grid-row: 1 / span 2; width: 58px; height: 58px; color: var(--olive-soft); }
.step-card .tag { font-family: var(--display); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--olive-soft); }

/* Specialists */
.specialists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 720px; }
.specialists:has(> .member:only-child) { grid-template-columns: minmax(0, 300px); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: 500 17px var(--display);
  letter-spacing: 0.04em;
  color: var(--ink);
}
.faq-item .plus { position: relative; width: 18px; height: 18px; flex: none; }
.faq-item .plus::before, .faq-item .plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--ink);
  transition: transform 0.5s var(--ease);
}
.faq-item .plus::after { transform: rotate(90deg); }
.faq-item button[aria-expanded="true"] .plus::after { transform: rotate(0deg); }
.faq-answer { height: 0; overflow: hidden; transition: height 0.6s var(--ease); }
.faq-answer p { padding: 0 40px 28px 0; color: var(--muted); }

/* Booking card with an arched top */
.cta { padding-top: 40px; }
.cta-card {
  background: radial-gradient(120% 140% at 50% 0%, #4b5146 0%, var(--olive) 45%, #2e322b 100%);
  color: var(--cream);
  border-radius: 320px 320px 32px 32px;
  padding: 110px 40px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  box-shadow: 0 50px 90px -50px rgba(29, 27, 24, 0.7);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card::before, .cta-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(246, 242, 234, 0.1);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}
.cta-card::before { width: 78%; height: 86%; }
.cta-card::after { width: 56%; height: 70%; }
.cta-card .eyebrow { color: #c9bfa9; margin: 0; }
.cta-card h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: 0.04em; }
.cta-card h2 em { font-family: var(--body); font-style: italic; font-weight: 400; letter-spacing: 0; }
.cta-card p { color: #c9c2b3; max-width: 520px; }
.cta-card .phone { font-family: var(--display); letter-spacing: 0.12em; color: var(--cream); text-decoration: none; }

@media (max-width: 980px) {
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .timeline::before, .timeline::after { left: 23px; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .step-marker { width: 48px; height: 48px; font-size: 16px; }
  .step-card { padding: 24px 22px; grid-template-columns: 1fr; }
  .step-card .icon { grid-column: 1; grid-row: auto; width: 44px; height: 44px; order: -1; }
  .specialists { gap: 18px; }
  .faq-answer p { padding-right: 0; }
  .cta-card { border-radius: 160px 160px 24px 24px; padding: 80px 22px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero h1 .line > span, .js .hero .arch-frame .photo { opacity: 1 !important; transform: none !important; }
  .flow-line path { stroke-dashoffset: 0 !important; }
}

/* ---------- Google reviews ---------- */
.reviews { padding: 120px 0 40px; }
.stars { color: var(--bronze); letter-spacing: 0.18em; font-size: 20px; }
.rating-card {
  background: var(--travertine), var(--ivory);
  background-size: cover;
  border-radius: var(--arch);
  padding: 80px 32px 48px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -40px rgba(91, 63, 44, 0.45);
}
.rating-score { font-size: 22px; margin-top: 10px; }
.rating-score strong { font-family: var(--display); font-size: 40px; font-weight: 500; margin-right: 6px; }
.rating-text { color: var(--muted); font-size: 24px; margin: 12px 0 28px; }
.rating-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.review { background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 30px; margin: 0; }
.review p { font-size: 20px; font-style: italic; margin: 12px 0 16px; }
.review cite { font-style: normal; color: var(--muted); font-size: 16px; letter-spacing: 0.05em; }

/* ---------- Floating WhatsApp button and free-call panel ---------- */
/* On the left because Netlify's free-plan badge sits at the bottom right */
.wa-float { position: fixed; left: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wa-button {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; cursor: pointer;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: var(--olive); color: var(--cream);
  font: 500 15px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 5px 0 #2a2e27, 0 18px 30px -10px rgba(29,27,24,0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-button:hover { transform: translateY(-2px); }
.wa-button:active { transform: translateY(4px); box-shadow: inset 0 2px 4px rgba(0,0,0,0.35), 0 1px 0 #2a2e27; }
.wa-button svg { width: 30px; height: 30px; flex: none; }
.wa-button .dot { position: absolute; top: 6px; left: 34px; width: 9px; height: 9px; border-radius: 50%; background: #4fbf6b; box-shadow: 0 0 0 2px var(--olive); }
.wa-button { position: relative; }
.wa-panel {
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 120px); overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 160px 160px 22px 22px;
  padding: 52px 26px 22px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(29,27,24,0.45);
  transform-origin: bottom left;
  animation: wa-in 0.35s var(--ease);
  position: relative;
}
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
.wa-panel h3 { font-size: 22px; letter-spacing: 0.04em; margin: 6px 0 8px; }
.wa-panel h3 em { font-family: var(--body); font-style: italic; font-weight: 400; letter-spacing: 0; }
.wa-panel p { color: var(--muted); font-size: 17px; line-height: 1.35; margin-bottom: 10px; }
.wa-panel .eyebrow { justify-content: center; }
.wa-panel form { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; gap: 12px; text-align: left; }
.wa-panel input, .wa-panel select { font-size: 18px; padding: 6px 2px; }
.wa-panel .btn { justify-content: center; margin-top: 6px; }
.wa-panel .wa-chat { display: inline-block; margin-top: 14px; font-size: 17px; color: var(--olive); text-underline-offset: 4px; }
.wa-close { position: absolute; top: 18px; right: 22px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--sand-light); color: var(--ink); font-size: 20px; cursor: pointer; }
@media (max-width: 560px) {
  .wa-float { left: 14px; bottom: 14px; }
  .wa-button span { display: none; }
  .wa-button { padding: 13px; }
}
