/* ==========================================================================
   My Prime Dentistry — site.css
   Legion Software Inc.
   Hand-authored. No framework, no builder, no plugin CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand — mint sampled directly from logo.png (#94d1b0) */
  --mint:            #94d1b0;
  --mint-deep:       #6bb18c;
  --mint-dark:       #4a8c68;
  --mint-tint:       #eef7f2;
  --mint-tint-2:     #dcefe5;

  /* Neutrals */
  --ink:             #1f2a26;
  --ink-2:           #3d4b45;
  --ink-3:           #5f6d67;
  --rule:            #dfe6e2;
  --rule-soft:       #edf1ef;
  --paper:           #ffffff;
  --paper-2:         #f7faf8;

  /* Accent for financing / trust marks */
  --link:            #2f7d5b;

  /* Type */
  --font-body:  "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-head:  "Roboto Slab", Georgia, "Times New Roman", serif;

  --fs-xs:    0.8125rem;
  --fs-sm:    0.9375rem;
  --fs-base:  1.0625rem;
  --fs-md:    1.1875rem;
  --fs-lg:    1.5rem;
  --fs-xl:    2rem;
  --fs-2xl:   2.5rem;
  --fs-3xl:   3rem;

  --lh-tight: 1.2;
  --lh-head:  1.25;
  --lh-body:  1.7;

  /* Space — 4px base */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;

  /* Layout */
  --wrap:       1200px;
  --wrap-text:  760px;
  --radius:     4px;
  --radius-lg:  8px;

  --shadow-sm: 0 1px 3px rgba(31, 42, 38, 0.08);
  --shadow:    0 2px 12px rgba(31, 42, 38, 0.10);
  --shadow-lg: 0 8px 28px rgba(31, 42, 38, 0.14);

  --header-h:  92px;
  --transition: 160ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--s-4);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-head);
  color: var(--ink);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--mint-dark); text-decoration: underline; }

ul, ol { margin: 0 0 var(--s-4); padding-left: var(--s-5); }
li { margin-bottom: var(--s-2); }

:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.wrap-text { max-width: var(--wrap-text); margin-inline: auto; }

.section { padding-block: var(--s-9); }
.section--tint { background: var(--mint-tint); }
.section--paper2 { background: var(--paper-2); }
.section--tight { padding-block: var(--s-7); }

.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: var(--s-3) var(--s-5);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* Section heading with mint underline */
.section-title { text-align: center; margin-bottom: var(--s-7); }
.section-title h2 { margin-bottom: var(--s-4); }
.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0 auto;
  background: var(--mint);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: var(--s-3) var(--s-6);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--mint-deep);
  border-color: var(--mint-deep);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--mint-deep);
  color: var(--mint-dark);
}
.btn--outline:hover {
  background: var(--mint-deep);
  color: #fff;
}

.btn--ghost-light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn--ghost-light:hover { background: #fff; color: var(--ink); }

.btn--lg { padding: var(--s-4) var(--s-7); font-size: var(--fs-base); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.brand { flex-shrink: 0; }
.brand img { width: 200px; height: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.header-phone {
  font-family: var(--font-head);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone:hover { color: var(--mint-dark); text-decoration: none; }

/* Primary nav */
.nav { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list > li { margin: 0; position: relative; }

.nav-list > li > a,
.nav-toggle-item > button {
  display: block;
  padding: var(--s-3) var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  background: none;
  border: 0;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-toggle-item > button:hover,
.nav-list > li[aria-expanded="true"] > button { color: var(--mint-dark); text-decoration: none; }

.nav-list > li > a[aria-current="page"] {
  color: var(--mint-dark);
  box-shadow: inset 0 -3px 0 var(--mint);
}

/* Dropdown */
.has-sub > button::after {
  content: "";
  display: inline-block;
  margin-left: var(--s-2);
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: var(--s-2) 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.has-sub[data-open="true"] .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.subnav li { margin: 0; }
.subnav a {
  display: block;
  padding: var(--s-2) var(--s-5);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.subnav a:hover { background: var(--mint-tint); color: var(--mint-dark); text-decoration: none; }

/* Mobile menu button */
.menu-btn {
  display: none;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn__bars {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.menu-btn__bars::before,
.menu-btn__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
}
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }

/* --------------------------------------------------------------------------
   6. Hero — 8-tile feature grid (matches original)
   -------------------------------------------------------------------------- */

.hero { background: var(--paper-2); padding-block: var(--s-6); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  aspect-ratio: 299 / 344;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, opacity var(--transition);
}
.tile:hover img { transform: scale(1.06); opacity: 0.88; }
.tile:hover { text-decoration: none; }

/* --------------------------------------------------------------------------
   7. Comfort / feature list
   -------------------------------------------------------------------------- */

.lede {
  font-size: var(--fs-md);
  color: var(--ink-2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-7);
}

.feature {
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--mint);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { margin-bottom: var(--s-3); font-size: var(--fs-md); }
.feature p { font-size: var(--fs-sm); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. Trust section
   -------------------------------------------------------------------------- */

.trust-lead {
  font-family: var(--font-head);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
}

.trust-cta {
  margin-top: var(--s-6);
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--mint);
  border-radius: var(--radius);
  text-align: center;
}
.trust-cta p { margin-bottom: var(--s-5); font-size: var(--fs-md); }
.trust-cta__actions {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   9. Media / TV split
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* --------------------------------------------------------------------------
   10. Video testimonials
   -------------------------------------------------------------------------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-6);
}

.video-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--mint-tint-2);
  display: grid;
  place-items: center;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  text-align: center;
  padding: var(--s-5);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
.video-card__title {
  padding: var(--s-4) var(--s-5);
  margin: 0;
  font-size: var(--fs-base);
  border-top: 1px solid var(--rule-soft);
}

/* --------------------------------------------------------------------------
   11. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  padding-block: var(--s-8);
  background: var(--mint-deep);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: var(--s-5); }
.cta-band__actions {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #b9c5bf;
  padding-block: var(--s-8) var(--s-5);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.footer-brand img { width: 180px; height: auto; margin-bottom: var(--s-4); }

.site-footer h4 {
  margin-bottom: var(--s-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin-bottom: var(--s-2); }
.footer-list a { color: #b9c5bf; }
.footer-list a:hover { color: var(--mint); text-decoration: none; }

.footer-contact address {
  font-style: normal;
  line-height: var(--lh-body);
}
.footer-contact a { color: #b9c5bf; display: block; margin-bottom: var(--s-3); }
.footer-contact a:hover { color: var(--mint); text-decoration: none; }

.footer-legal {
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: #7d8b85;
}
.footer-legal a { color: #7d8b85; }
.footer-legal a:hover { color: var(--mint); }

/* --------------------------------------------------------------------------
   13. Sticky mobile call/book bar
   -------------------------------------------------------------------------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  box-shadow: 0 -2px 12px rgba(31,42,38,0.12);
}
.mobile-bar a {
  flex: 1;
  padding: var(--s-4) var(--s-2);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mobile-bar a:first-child { color: var(--ink); border-right: 1px solid var(--rule); }
.mobile-bar a:last-child { background: var(--mint); color: var(--ink); }
.mobile-bar a:hover { text-decoration: none; }

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  :root { --fs-3xl: 2.25rem; --fs-2xl: 1.875rem; --s-9: 4rem; }
  .split { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}

@media (max-width: 640px) {
  :root { --fs-3xl: 1.875rem; --fs-2xl: 1.625rem; --header-h: 72px; }
  body { padding-bottom: 60px; }
  .brand img { width: 150px; }
  .header-phone { display: none; }
  .mobile-bar { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { justify-content: center; text-align: center; }
  .section { padding-block: var(--s-7); }
}

/* Mobile nav panel */
.nav.is-open {
  display: block;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  padding: var(--s-5);
  background: var(--paper);
  overflow-y: auto;
}
.nav.is-open .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.nav.is-open .nav-list > li { border-bottom: 1px solid var(--rule-soft); }
.nav.is-open .nav-list > li > a,
.nav.is-open .nav-toggle-item > button {
  width: 100%;
  padding: var(--s-4) var(--s-2);
  text-align: left;
  font-size: var(--fs-base);
}
.nav.is-open .has-sub > button { display: flex; justify-content: space-between; align-items: center; }
.nav.is-open .subnav {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  border: 0;
  box-shadow: none;
  padding: 0 0 var(--s-3) var(--s-4);
  display: none;
}
.nav.is-open .has-sub[data-open="true"] .subnav { display: block; }

/* --------------------------------------------------------------------------
   15. Motion / print
   -------------------------------------------------------------------------- */

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

@media print {
  .site-header, .mobile-bar, .cta-band { display: none; }
  body { color: #000; }
}

/* --------------------------------------------------------------------------
   16. Interior page templates
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  background: var(--ink);
  max-height: 340px;
  overflow: hidden;
}
.page-hero picture,
.page-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(31,42,38,0.72) 0%, rgba(31,42,38,0.35) 70%, rgba(31,42,38,0.15) 100%);
}
.page-hero__overlay h1 {
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.page-head {
  padding-block: var(--s-8) var(--s-6);
  background: var(--mint-tint);
  border-bottom: 1px solid var(--rule);
}
.page-head h1 { margin: 0; }

/* Alternating content/media rows */
.split--content {
  align-items: center;
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--rule-soft);
}
.split--content:last-child { border-bottom: 0; }
.split--content .split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split--flip .split__text { order: 2; }
.split--flip .split__media { order: 1; }

.block {
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--rule-soft);
}
.block:last-child { border-bottom: 0; }

.note {
  padding: var(--s-3) var(--s-4);
  background: var(--mint-tint);
  border-left: 3px solid var(--mint);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.gallery-item { margin: 0; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item img:hover { transform: scale(1.03); box-shadow: var(--shadow); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.contact-card {
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--mint);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-card address { font-style: normal; margin-bottom: var(--s-4); line-height: var(--lh-body); }

.hours { width: 100%; border-collapse: collapse; margin-bottom: var(--s-4); }
.hours th, .hours td {
  padding: var(--s-2) 0;
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
  font-weight: 400;
  font-size: var(--fs-sm);
}
.hours th { color: var(--ink); font-weight: 700; }
.hours td { text-align: right; color: var(--ink-3); }

.map-wrap { margin-top: var(--s-6); text-align: center; }
.map-wrap .note { display: inline-block; margin-top: var(--s-4); }

/* Blog */
.post-list { display: grid; gap: var(--s-5); max-width: var(--wrap-text); margin-inline: auto; }
.post-card {
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--mint);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.post-card h2 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--mint-dark); text-decoration: none; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .split--flip .split__text { order: 0; }
  .split--flip .split__media { order: 0; }
  .page-hero, .page-hero img { max-height: 220px; height: 220px; }
}

/* ==========================================================================
   17. POLISH LAYER — cinematic craft, mint palette unchanged
   ========================================================================== */

/* Display face for headings — sharper, more editorial */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&display=swap');

h1, h2, .cta-band h2, .section-title h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.01em;
}

/* ---- Cinematic hero -------------------------------------------------- */
.cine-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, #12211b 0%, #1f3a2e 55%, #2c5344 100%);
  isolation: isolate;
}
.cine-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.cine-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.38;
}
/* vignette */
.cine-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 30% 40%, transparent 30%, rgba(10,20,16,0.55) 100%);
  pointer-events: none;
}
/* film grain */
.cine-hero__grain {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0.06; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* bokeh orbs */
.cine-hero__orb {
  position: absolute; border-radius: 50%; z-index: -2;
  background: radial-gradient(circle at 35% 35%, rgba(148,209,176,0.55), rgba(148,209,176,0) 70%);
  filter: blur(6px);
  animation: drift 18s ease-in-out infinite;
}
.cine-hero__orb.o1 { width: 220px; height: 220px; top: 8%; left: 62%; }
.cine-hero__orb.o2 { width: 140px; height: 140px; top: 58%; left: 78%; animation-delay: -6s; }
.cine-hero__orb.o3 { width: 90px;  height: 90px;  top: 70%; left: 12%; animation-delay: -11s; }
@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); opacity: 0.7; }
  50%     { transform: translate(-24px,-30px) scale(1.12); opacity: 1; }
}

.cine-hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: var(--s-8);
  align-items: center;
  width: 100%;
}
.cine-hero__copy h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: var(--s-5);
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.cine-hero__copy p {
  color: #d6e6dd;
  font-size: var(--fs-md);
  max-width: 48ch;
  margin-bottom: var(--s-6);
}
.cine-hero__actions { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* Glassmorphism doctor card */
.glass-card {
  position: relative;
  padding: var(--s-4);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.glass-card img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center 20%;
}
.glass-card__tag {
  position: absolute;
  left: 50%; bottom: -14px;
  transform: translateX(-50%);
  padding: var(--s-2) var(--s-5);
  background: var(--mint);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

/* ---- Scroll reveal --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Elevated service tiles ----------------------------------------- */
.tile {
  box-shadow: var(--shadow-sm);
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), box-shadow 350ms ease;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Section title flourish upgrade */
.section-title::after { width: 84px; height: 4px; background: linear-gradient(90deg, var(--mint-deep), var(--mint)); }

/* Feature cards: subtle gradient top */
.feature { transition: transform 300ms cubic-bezier(.2,.7,.2,1), box-shadow 300ms ease, border-color 300ms; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-top-color: var(--mint-deep); }

/* CTA band depth */
.cta-band {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 40%),
    linear-gradient(120deg, var(--mint-deep), var(--mint-dark));
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .cine-hero { min-height: auto; padding-block: var(--s-8); }
  .cine-hero__inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .cine-hero__media { max-width: 320px; margin-inline: auto; }
  .cine-hero__orb.o1 { left: 70%; }
}

@media (prefers-reduced-motion: reduce) {
  .cine-hero__orb { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   18. EXTRA POLISH (homepage) — counters, slider, carousel, parallax, icons
   ========================================================================== */

/* Sticky header shrink on scroll */
.site-header { transition: box-shadow 250ms ease, background 250ms ease; }
.site-header.shrink { box-shadow: 0 4px 20px rgba(31,42,38,0.12); }
.site-header.shrink .header-bar { min-height: 68px; }
.site-header.shrink .brand img { width: 160px; transition: width 250ms ease; }
.header-bar, .brand img { transition: min-height 250ms ease, width 250ms ease; }

/* Trust / stat counters */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding: var(--s-7) 0;
}
.stat { text-align: center; padding: var(--s-4); }
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--mint-dark);
  line-height: 1;
}
.stat__num .suffix { color: var(--mint-deep); }
.stat__label {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* Service tile icons */
.tile__icon {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.tile__icon svg { width: 22px; height: 22px; stroke: var(--mint-dark); fill: none; stroke-width: 2; }

/* Before/After slider */
.ba-slider {
  position: relative;
  max-width: 640px;
  margin: var(--s-7) auto 0;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  user-select: none;
  touch-action: none;
}
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider__after { clip-path: inset(0 0 0 50%); }
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.4); cursor: ew-resize;
}
.ba-slider__handle::after {
  content: "‹ ›";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--mint); color: var(--ink);
  border-radius: 50%; font-weight: 700; font-size: 1rem;
  box-shadow: var(--shadow);
}
.ba-label {
  position: absolute; bottom: var(--s-3);
  padding: var(--s-1) var(--s-3);
  background: rgba(31,42,38,0.7); color: #fff;
  font-size: var(--fs-xs); font-weight: 700;
  border-radius: var(--radius); z-index: 2;
}
.ba-label--before { left: var(--s-3); }
.ba-label--after { right: var(--s-3); }

/* Testimonial carousel */
.carousel { position: relative; max-width: 760px; margin: var(--s-7) auto 0; }
.carousel__track { overflow: hidden; }
.carousel__slides { display: flex; transition: transform 500ms cubic-bezier(.4,0,.2,1); }
.carousel__slide {
  min-width: 100%;
  padding: var(--s-7) var(--s-6);
  text-align: center;
}
.carousel__quote {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--ink);
  margin-bottom: var(--s-4);
  line-height: 1.4;
}
.carousel__author { font-weight: 700; color: var(--mint-dark); }
.carousel__stars { color: var(--mint-deep); font-size: var(--fs-md); margin-bottom: var(--s-4); letter-spacing: 2px; }
.carousel__nav {
  display: flex; justify-content: center; gap: var(--s-2);
  margin-top: var(--s-4);
}
.carousel__dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: var(--rule); cursor: pointer;
  transition: background 200ms, transform 200ms;
}
.carousel__dot.active { background: var(--mint-deep); transform: scale(1.3); }

/* Parallax */
.parallax-bg { will-change: transform; }

/* Image fade-in on load */
img.fade-img { opacity: 0; transition: opacity 600ms ease; }
img.fade-img.loaded { opacity: 1; }

/* Button micro-interaction: fill sweep */
.btn--primary { position: relative; overflow: hidden; z-index: 0; }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--mint-deep);
  transform: translateX(-101%);
  transition: transform 300ms cubic-bezier(.4,0,.2,1);
}
.btn--primary:hover::before { transform: translateX(0); }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}
@media (prefers-reduced-motion: reduce) {
  .carousel__slides { transition: none; }
  .btn--primary::before { display: none; }
  img.fade-img { opacity: 1; }
}

/* ==========================================================================
   19. INTERIOR PAGE POLISH — cinematic cover heroes
   ========================================================================== */

/* Upgrade page-hero with grain + vignette + gradient wash */
.page-hero { background: #12211b; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, rgba(18,33,27,0.82) 0%, rgba(31,58,46,0.5) 55%, rgba(44,83,68,0.28) 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 28% 45%, transparent 35%, rgba(10,20,16,0.5) 100%);
  pointer-events: none;
}
.page-hero picture, .page-hero img { opacity: 0.55; }
.page-hero__overlay { z-index: 2; }
.page-hero__grain {
  position: absolute; inset: 0; z-index: 1; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-hero__orb {
  position: absolute; z-index: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(148,209,176,0.45), rgba(148,209,176,0) 70%);
  filter: blur(6px);
  animation: drift 18s ease-in-out infinite;
}
.page-hero__orb.o1 { width: 160px; height: 160px; top: 12%; right: 8%; }
.page-hero__orb.o2 { width: 90px; height: 90px; bottom: 14%; right: 22%; animation-delay: -7s; }

/* page-head (non-cover pages) gets a subtle gradient too */
.page-head {
  background: linear-gradient(115deg, var(--mint-tint) 0%, var(--mint-tint-2) 100%);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(148,209,176,0.25), transparent 70%);
}

/* ==========================================================================
   20. DARK HEADER — logo has white in it, needs dark backing site-wide
   ========================================================================== */

.site-header {
  background: linear-gradient(120deg, #12211b 0%, #1f3a2e 100%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.site-header.shrink {
  background: linear-gradient(120deg, #12211b 0%, #1f3a2e 100%);
  box-shadow: 0 4px 20px rgba(10,20,16,0.35);
}

/* Nav links -> light */
.nav-list > li > a,
.nav-toggle-item > button {
  color: #d6e6dd;
}
.nav-list > li > a:hover,
.nav-toggle-item > button:hover,
.nav-list > li[aria-expanded="true"] > button { color: #fff; }
.nav-list > li > a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--mint);
}

/* Phone -> light */
.header-phone { color: #fff; }
.header-phone:hover { color: var(--mint); }

/* Dropdown carets already use currentColor, so they follow */

/* Mobile menu button -> light on dark */
.menu-btn {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.menu-btn__bars,
.menu-btn__bars::before,
.menu-btn__bars::after { background: #fff; }

/* Subnav dropdowns stay light (they're panels below the dark bar) — keep readable */
.subnav {
  background: var(--paper);
  border-color: var(--rule);
}
.subnav a { color: var(--ink-2); }
.subnav a:hover { background: var(--mint-tint); color: var(--mint-dark); }

/* Book Online button already mint — good contrast on dark. Nudge for pop. */
.site-header .btn--primary { box-shadow: 0 2px 12px rgba(0,0,0,0.25); }

/* Mobile open panel: it's fixed below header — give it dark treatment top */
.nav.is-open { background: var(--paper); }
