/* Kians Dental Studio — V1 concept
   Palette: ink #0E2A32 · teal #17A398 · paper #F8F6F2 · sand #EDE7DC */

:root {
  --ink: #0e2a32;
  --ink-soft: #29444d;
  --teal: #17a398;
  --teal-dark: #0f7d75;
  --paper: #f8f6f2;
  --sand: #ede7dc;
  --white: #ffffff;
  --muted: #5f6f74;
  --line: rgba(14, 42, 50, 0.12);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, .band-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
.h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 1.6em 0 0.5em; }

h1 em, h2 em, .band-title em, .h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal-dark);
}

p { margin-bottom: 1em; }
a { color: var(--teal-dark); }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 0.9em;
}
.kicker-light { color: rgba(255, 255, 255, 0.75); }

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; text-align: center; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; text-decoration: none; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: var(--white); background: transparent; }

/* Topbar */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar-inner { display: flex; gap: 22px; align-items: center; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar-es {
  margin-left: auto;
  background: var(--teal);
  color: var(--white);
  padding: 2px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { color: var(--teal); display: flex; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text em { font-style: italic; font-weight: 400; color: var(--teal-dark); }
.brand-text-light { color: var(--white); font-size: 1.35rem; }
.brand-text-light em { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:not(.btn):hover { color: var(--teal-dark); }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 84px 0 72px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-top: 1.1em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6em; }
.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 2.2em;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-card {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 40px 32px;
  color: var(--white);
  text-align: center;
  transform: rotate(2deg);
  box-shadow: 0 24px 48px -24px rgba(14, 42, 50, 0.45);
}
.hero-card-inner svg { color: var(--teal); margin-bottom: 14px; }
.hero-card-line {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 10px;
}
.hero-card-note { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin: 0; }

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--sand);
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-soft);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--sand); }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 2.2em;
}
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--line);
}
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.card-accent { background: var(--ink); border-color: var(--ink); }
.card-accent h3 { color: var(--teal); }
.card-accent p { color: rgba(255, 255, 255, 0.8); }

/* Doctor */
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: center;
}
.portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(23, 163, 152, 0.35), transparent 55%),
    var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  box-shadow: 0 24px 48px -24px rgba(14, 42, 50, 0.45);
}
.portrait-initials {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-style: italic;
  color: var(--teal);
}
.portrait-caption {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.doctor-copy .btn { margin-top: 0.6em; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 2.2em;
}
.service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(14, 42, 50, 0.35);
}
.service-card h3 { font-family: var(--font-display); font-size: 1.35rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; }
.service-card-featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.service-card-featured h3 { color: var(--white); }
.service-card-featured p { color: rgba(255, 255, 255, 0.78); }
.service-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.service-link { font-weight: 600; font-size: 0.9rem; color: var(--teal); }

/* Bands */
.band { padding: 72px 0; color: var(--white); }
.band-es { background: linear-gradient(115deg, var(--teal-dark), var(--teal)); }
.band-cta { background: var(--ink); }
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.band-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.3em; }
.band-title em { color: rgba(255, 255, 255, 0.85); }
.band-cta .band-title em { color: var(--teal); }
.band-sub { color: rgba(255, 255, 255, 0.8); margin: 0; }
.band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2.2em;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.5;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.testimonial-note {
  margin-top: 1.8em;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Payment strip */
.payment-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.payment-strip p { margin: 0.4em 0 0; color: var(--muted); max-width: 620px; }

/* Page hero (inner pages) */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-sub { margin-top: 0.8em; }
.page-hero .hero-actions { margin-top: 1.4em; }

/* Service detail */
.service-detail {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.checklist { list-style: none; }
.checklist li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--teal);
  font-weight: 700;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
address { font-style: normal; }
.contact-big a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.contact-hours { max-width: 340px; }
.footer-hours { list-style: none; }
.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  font-size: 0.92rem;
}
.contact-hours li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.contact-emergency {
  margin-top: 1.6em;
  background: var(--sand);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
}
.contact-form { display: grid; gap: 16px; margin-top: 1.2em; }
.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
}
.contact-form .optional { font-weight: 400; color: var(--muted); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.86rem; color: var(--teal-dark); font-weight: 600; margin: 0; min-height: 1.2em; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8em;
}
.footer-col p { font-size: 0.92rem; }
.footer-col a { color: var(--teal); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-areas { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .doctor-grid, .service-detail, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .cards-grid, .cards-grid-3, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doctor-portrait { max-width: 380px; }
}

@media (max-width: 640px) {
  .topbar-hours { display: none; }
  .cards-grid, .cards-grid-3, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
  }
  .nav-toggle span:not(.sr-only) {
    width: 24px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 2px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .site-header { position: relative; }
}

/* ============================================================
   V2 — "Vivid" concept overrides & components
   White canvas, bold sans display, cinematic video hero
   ============================================================ */

:root {
  --paper: #ffffff;
  --sand: #f2f5f5;
}

h1, h2, .band-title, .h3, .brand-text {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.03em;
}
h1 em, h2 em, .band-title em, .h3 em {
  font-style: normal;
  font-weight: 800;
}
.brand-text em { font-style: normal; font-weight: 500; }
.testimonial p { font-family: var(--font-body); font-weight: 500; }
.portrait-initials { font-family: var(--font-body); font-weight: 800; font-style: normal; }
.hero-card-line, .contact-big a, .marquee-track, .service-card h3 { font-family: var(--font-body); }
.service-card h3 { font-weight: 700; }
.marquee-track { font-weight: 600; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* Cinematic header overlay (homepage only) */
.home-cinematic .site-header {
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  z-index: 60;
}
.home-cinematic .brand { color: #fff; }
.home-cinematic .brand-mark { color: #fff; }
.home-cinematic .brand-text em { color: rgba(255, 255, 255, 0.75); }
.home-cinematic .nav-links a:not(.btn) { color: #fff; }
.home-cinematic .nav-links a:not(.btn):hover { color: rgba(255, 255, 255, 0.7); }
.home-cinematic .nav-toggle span:not(.sr-only) { background: #fff; }

/* Cinematic hero */
.cine-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.cine-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 100% at 15% 0%, rgba(23, 163, 152, 0.4), transparent 55%),
    radial-gradient(110% 90% at 90% 100%, rgba(23, 163, 152, 0.18), transparent 60%),
    var(--ink);
}
.cine-fallback .media-slot-label { position: absolute; bottom: 18px; left: 18px; }
.cine-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cine-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 31, 0.55), rgba(10, 26, 31, 0.25) 45%, rgba(10, 26, 31, 0.6));
}
.cine-hero-content { position: relative; z-index: 2; padding-top: 90px; }
.cine-hero-content h1 { font-size: clamp(2.8rem, 7vw, 5rem); color: #fff; }
.cine-hero-content h1 em { color: var(--teal); }
.cine-hero-sub {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
  margin-top: 1.2em;
}

/* Media slots (placeholders until real photo/video) */
.media-slot {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(23, 163, 152, 0.32), transparent 55%),
    var(--ink);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(14, 42, 50, 0.4);
}
.media-slot-label {
  margin: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
}
.media-slot-portrait { aspect-ratio: 4 / 5; }
.media-slot-wide { aspect-ratio: 16 / 9; }
.media-slot-square { aspect-ratio: 1; }
.media-slot-ba { aspect-ratio: 4 / 3; }

/* Credential chips */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 26px 24px;
  border-bottom: 1px solid var(--line);
}
.chip {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.chip-accent { border-color: var(--teal); color: var(--teal-dark); }

/* Stacked words */
.stacked { padding-bottom: 64px; }
.stacked-lead { margin-bottom: 0.3em; }
.stacked-words span {
  display: block;
  font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stacked-words .stacked-accent { color: var(--teal-dark); }

/* Stats band */
.stats-band {
  background: var(--ink);
  color: #fff;
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal);
}
.stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Before / after cases */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 2.2em;
}
.ba-card h3 { margin-top: 0.9em; }
.ba-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Studio tour */
.tour-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 2.2em;
}
.tour-main { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }

/* Why grid */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

/* FAQ */
.faq { max-width: 780px; margin-top: 1.6em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 32px 18px 0;
  list-style: none;
  position: relative;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 18px; max-width: 680px; }

/* Reveal on scroll — CSS scroll-driven where supported, always visible otherwise */
@supports (animation-timeline: view()) {
  @keyframes v2-fadeup {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  .reveal, .stacked-words span {
    animation: v2-fadeup both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  .stacked-words span:nth-child(2) { animation-range: entry 10% entry 65%; }
  .stacked-words span:nth-child(3) { animation-range: entry 20% entry 75%; }
  .stacked-words span:nth-child(4) { animation-range: entry 30% entry 85%; }
  @media (prefers-reduced-motion: reduce) {
    .reveal, .stacked-words span { animation: none; }
  }
}

/* V2 responsive */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-main { grid-row: auto; aspect-ratio: 16 / 9; }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .cine-hero { min-height: 88vh; }
  .home-cinematic .nav-links { background: var(--ink); }
  .home-cinematic .nav-links a:not(.btn) { color: #fff; }
  .stats-grid { gap: 22px; }
}

/* Media slots with live content (placeholder assets until final shoot) */
.media-slot > img,
.media-slot > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-slot .media-slot-label { position: relative; z-index: 2; }

.hero-ph-chip {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Client logo (monochrome, name removed) */
.brand-logo { height: 70px; width: auto; display: block; }
.footer-logo { height: 70px; width: auto; margin-bottom: 14px; }
.brand-logo-white { display: none; }
.home-cinematic .brand-logo-ink { display: none; }
.home-cinematic .brand-logo-white { display: block; }

@media (max-width: 640px) {
  .brand-logo { height: 54px; }
}

/* Transition band with handover photo */
.transition-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.transition-photo {
  margin: 0;
  max-width: 380px;
  justify-self: end;
}
.transition-photo img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
.transition-photo figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}
.transition-copy .btn { margin-top: 1.2em; }
@media (max-width: 900px) {
  .transition-grid { grid-template-columns: 1fr; }
  .transition-photo { justify-self: start; max-width: 320px; }
}

/* Before / after comparison sliders */
.ba-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 2.2em;
}
.ba-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  --pos: 50%;
  box-shadow: 0 24px 48px -28px rgba(14, 42, 50, 0.4);
  user-select: none;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
.ba-handle::after {
  content: "◂ ▸";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: -1px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.ba-tag {
  position: absolute;
  top: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
}
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; }
.ba-hint { color: var(--teal-dark); font-weight: 600; }
@media (max-width: 900px) {
  .ba-cases { grid-template-columns: 1fr; }
}

/* Blog */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.post-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -20px rgba(14, 42, 50, 0.35);
}
.post-card h2 { font-size: 1.35rem; margin: 0.6em 0 0.4em; }
.post-card p { color: var(--muted); font-size: 0.95rem; }
.post-category {
  display: inline-block;
  background: var(--sand);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
}
.post-meta {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
}
.page-hero .post-meta { margin-top: 0.8em; }

/* Post prose */
.prose { max-width: 720px; }
.prose h2 {
  font-size: 1.5rem;
  margin: 1.6em 0 0.5em;
}
.prose p { color: var(--ink-soft); }
.prose ul { margin: 0 0 1.2em 1.2em; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--teal-dark); }

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

/* Prose images */
.prose img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(14, 42, 50, 0.4);
  margin: 0.6em 0 1.2em;
}

/* Feedback round 3 — welcome, doctor chips, payment, areas/map, topbar address */
.welcome-wrap { max-width: 820px; }
.welcome-lead { font-size: 1.18rem; color: var(--ink-soft); margin: 0; }

.doctor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.4em 0 1.4em;
}
.doctor-chips .chip { font-size: 0.78rem; padding: 6px 14px; }

.service-card-list {
  list-style: none;
  margin: 0.8em 0 1em;
  font-size: 0.88rem;
}
.service-card-list li {
  padding: 3px 0 3px 20px;
  position: relative;
  color: var(--muted);
}
.service-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.service-card-featured .service-card-list li { color: rgba(255, 255, 255, 0.75); }

.pay-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  margin-top: 2.2em;
  align-items: start;
}
.provider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1em 0 0.6em;
}
.provider-chips .chip { font-size: 0.8rem; padding: 6px 14px; background: var(--paper); }
.sample-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}
.pay-grid .checklist li { border-bottom: none; padding: 6px 0 6px 28px; }

.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.areas-addr { margin-top: 1.4em; }
.map-embed {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(14, 42, 50, 0.4);
}
.map-embed-contact { height: 260px; margin-top: 1.6em; }

.topbar-addr a { font-weight: 500; color: rgba(255, 255, 255, 0.85); }

@media (max-width: 1080px) {
  .topbar-addr { display: none; }
}
@media (max-width: 900px) {
  .pay-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* CareCredit block */
.carecredit-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 1em;
}
.carecredit-logo { width: 150px; display: block; margin-bottom: 10px; }
.carecredit-block p { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.9em; }

/* Service landing pages: linked lists */
.service-detail-list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.service-detail-list a:hover { color: var(--teal-dark); }

/* Ribbon marquee */
.ribbon {
  overflow: hidden;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.ribbon-track {
  display: flex;
  gap: 26px;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: ribbon-scroll 36s linear infinite;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.rb-sep { color: var(--teal); font-size: 0.8rem; }
@keyframes ribbon-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; }
}

/* Mega menu (desktop) */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1060px, 92vw);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 32px 64px -24px rgba(14, 42, 50, 0.35);
  padding: 30px 34px 22px;
  display: none;
  z-index: 80;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega { display: block; }
.mega-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.mega-head {
  display: block;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-dark) !important;
  margin-bottom: 10px;
  text-decoration: none;
}
.mega-col ul { list-style: none; }
.mega-col li { padding: 4px 0; }
.mega-col li a {
  text-decoration: none;
  color: var(--ink-soft) !important;
  font-size: 0.9rem;
  font-weight: 500 !important;
}
.mega-col li a:hover { color: var(--teal-dark) !important; }
.mega-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
}
/* On the dark cinematic header, keep the mega panel light but fix trigger color */
@media (max-width: 900px) {
  .mega { display: none !important; }  /* mobile: Services goes to the hub page */
}

/* Linked chips */
.chip-link { text-decoration: none; color: var(--ink-soft); transition: border-color 0.15s ease, color 0.15s ease; }
.chip-link:hover { border-color: var(--teal); color: var(--teal-dark); }

/* Services hub link cards */
.svc-links { display: grid; gap: 10px; }
.svc-link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 18px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.svc-link-card:hover { transform: translateX(4px); border-color: var(--teal); }
.svc-link-card span { color: var(--teal); }

/* Service cards: full linked catalogs (cards are divs now, items are links) */
.service-card h3 a { text-decoration: none; color: inherit; }
.service-card h3 a:hover { color: var(--teal-dark); }
.service-card-featured h3 a:hover { color: var(--teal); }
.service-card-list li a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.12s ease;
}
.service-card-list li a:hover { color: var(--teal-dark); }
.service-card-featured .service-card-list li a { color: rgba(255, 255, 255, 0.78); }
.service-card-featured .service-card-list li a:hover { color: #fff; }
a.service-link { text-decoration: none; }

/* Service accordions inside cards */
.svc-acc-list { margin: 0.8em 0 1em; }
.svc-acc { border-bottom: 1px solid var(--line); }
.svc-acc summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 26px 9px 22px;
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.svc-acc summary::-webkit-details-marker { display: none; }
.svc-acc summary::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.svc-acc summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal-dark);
  font-weight: 400;
  font-size: 1.05rem;
}
.svc-acc[open] summary::after { content: "–"; }
.svc-acc summary:hover { color: var(--teal-dark); }
.svc-acc-body { padding: 2px 8px 12px 22px; }
.svc-acc-body p { font-size: 0.87rem; color: var(--muted); margin-bottom: 0.5em; }
.svc-acc-body a { font-weight: 600; font-size: 0.87rem; text-decoration: none; color: var(--teal-dark); }
.service-card-featured .svc-acc { border-color: rgba(255, 255, 255, 0.15); }
.service-card-featured .svc-acc summary { color: rgba(255, 255, 255, 0.85); }
.service-card-featured .svc-acc summary:hover { color: #fff; }
.service-card-featured .svc-acc summary::after { color: var(--teal); }
.service-card-featured .svc-acc-body p { color: rgba(255, 255, 255, 0.7); }
.service-card-featured .svc-acc-body a { color: var(--teal); }

/* Services hub: card-styled accordions */
.svc-acc-cards .svc-acc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: border-color 0.12s ease;
}
.svc-acc-cards .svc-acc:hover { border-color: var(--teal); }
.svc-acc-cards .svc-acc summary {
  padding: 14px 42px 14px 18px;
  font-size: 0.98rem;
  color: var(--ink);
}
.svc-acc-cards .svc-acc summary::before { display: none; }
.svc-acc-cards .svc-acc summary::after { right: 16px; }
.svc-acc-cards .svc-acc-body { padding: 0 18px 16px; }
.svc-acc-cards .svc-acc-body p { font-size: 0.92rem; }

/* Welcome split with stock photo */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 52px;
  align-items: center;
}
.welcome-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(14, 42, 50, 0.4);
}

/* Smile strip */
.smile-band { padding: 44px 0; }
.smile-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.smile-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Mobile: keep the address visible in the topbar (overrides earlier hide) */
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; row-gap: 2px; }
  .topbar-addr { display: block; width: 100%; order: 4; font-size: 0.78rem; }
  .topbar-addr a { color: rgba(255, 255, 255, 0.75); }
  .welcome-grid { grid-template-columns: 1fr; gap: 28px; }
  .smile-strip { gap: 10px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Smile strip: 4-up with seniors; landing page photos */
.smile-strip { grid-template-columns: repeat(4, 1fr); }
.svc-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -24px rgba(14, 42, 50, 0.4);
  margin-bottom: 18px;
}
@media (max-width: 640px) {
  .smile-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Customer copy round: hero tagline + about tagline */
.hero-tagline {
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin: 0.8em 0 0;
  font-size: 1.02rem;
}
.welcome-tagline {
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.01em;
  margin-bottom: 0.9em;
}
