/* ===== ACMē DENTIST — Global Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

/* ── Optima (local font files) ───────────────────────────────── */
@font-face {
  font-family: 'Optima';
  src: url('fonts/Optima-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Optima';
  src: url('fonts/Optima-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Optima';
  src: url('fonts/Optima-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
:root {
  --ff-optima: 'Optima', 'Cormorant Garamond', Georgia, serif;
}

/* Optima has no macron glyph, so a bare "e" falls back to a different, smaller-looking
   font wherever "ē" appears. Draw the macron over a plain "e" instead, so the letter
   itself always renders in the current font at full size.
   The bar's vertical offset is tuned per font family — Jost, Optima and Cormorant
   Garamond each place the "e" at a different height within their em-box. */
.e-macron {
  line-height: 1; background-repeat: no-repeat;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0.276em 0.038em; background-position: center 0.46em;
}
.nav-logo-name .e-macron,
.section-title .e-macron,
.page-hero-h .e-macron,
.loader-letter .e-macron,
.cta-band h2 .e-macron { background-position: center 0.235em; }
.footer-brand-name .e-macron { background-position: center 0.34em; }
/* Uppercase text (text-transform:uppercase) renders a taller "E" whose top
   sits much closer to the box top than the lowercase "e" the base offset is tuned for. */
.eyebrow .e-macron { background-position: center 0.1em; }

/* ── Tokens ───────────────────────────────── */
:root {
  --primary:   #5B3A29;
  --secondary: #B8A89A;
  --tertiary:  #D9CBBE;
  --bg:        #F6F1EB;
  --accent:    #8B6B4A;
  --accent2:   #8F8375;
  --body:      #55493F;
  --text:      #3B2B24;
  --white:     #FFFFFF;
  --ff-d: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-b: 'Jost', 'Montserrat', system-ui, sans-serif;
  --nav-h: 76px;
  --ease:     cubic-bezier(.25,.1,.25,1);
  --ease-out: cubic-bezier(0,0,.3,1);
}

/* ── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-b); color: var(--text); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  animation: pageFadeIn .55s var(--ease-out);
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
body.page-exit {
  opacity: 0; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  pointer-events: none;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { font-family: var(--ff-b); }

/* ── Scrollbar (matches site theme) ─────── */
html { scrollbar-width: thin; scrollbar-color: rgba(91,58,41,.28) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: rgba(91,58,41,.28); border-radius: 10px;
  border: 2px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(91,58,41,.5); }
::-webkit-scrollbar-corner { background: transparent; }

/* ══════════════════════════════════════════
   LUXURY LOADING SCREEN
══════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 9999; background: var(--primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem; transition: opacity .6s var(--ease), visibility .6s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-name { display: flex; gap: 0; overflow: hidden; justify-content: center; text-align: center; }
.loader-letter {
  font-family: var(--ff-optima); font-size: clamp(2.6rem,6vw,4.6rem); font-weight: 400;
  color: var(--white); letter-spacing: .08em; display: inline-block;
  transform: translateY(100%); opacity: 0; animation: letterDrop .6s var(--ease) forwards;
}
@keyframes letterDrop { to { transform: translateY(0); opacity: 1; } }

/* ── Utility ─────────────────────────────── */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent2); display: block; margin-bottom: 1.1rem;
}
.display-h1 { font-family: var(--ff-optima); font-weight: 400; font-size: clamp(3rem,5.5vw,4.8rem); line-height: 1.08; }
.display-h2 { font-family: var(--ff-optima); font-weight: 400; font-size: clamp(2.4rem,4vw,3.6rem); line-height: 1.1; }
.display-h3 { font-family: var(--ff-optima); font-weight: 400; font-size: clamp(1.8rem,2.5vw,2.4rem); line-height: 1.2; }
.text-link {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); display: inline-flex; align-items: center; gap: .45rem;
  border-bottom: 1px solid var(--secondary); padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--primary); border-color: var(--primary); }
.text-link svg { transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }
.btn {
  display: inline-block; padding: .9rem 2rem; font-family: var(--ff-b);
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; transition: background .22s var(--ease), color .22s, border-color .22s, transform .15s;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
/* Call CTA — pairs with every "Book" button */
.btn-call {
  background: transparent; color: var(--primary); border-color: var(--primary);
  display: inline-flex; align-items: center; gap: .55rem;
}
.btn-call:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-call svg { flex-shrink: 0; }
/* On the dark CTA band it inverts so it reads against the brown */
.cta-band .btn-call { color: var(--white); border-color: rgba(255,255,255,.6); }
.cta-band .btn-call:hover { background: var(--white); color: var(--primary); border-color: var(--white); }
/* inline-flex so it stays centred inside text-align:center blocks */
.btn-pair { display: inline-flex; align-items: center; gap: 1rem; flex-wrap: wrap; vertical-align: top; }
.max-w { max-width: 1380px; margin: 0 auto; }
.max-w--wide { max-width: 1600px; margin: 0 auto; }

/* ── Image placeholders ─────────────────── */
.img-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.img-ph img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block; z-index: 1;
  transition: transform .6s var(--ease);
}
.img-ph--hero    { background: linear-gradient(155deg,#E0D8CF 0%,#CFC3B5 35%,#C0B2A5 65%,#B2A397 100%); }
.img-ph--warm    { background: linear-gradient(145deg,#D9CBBE 0%,#C8BAA8 40%,#B8A898 70%,#A89888 100%); }
.img-ph--neutral { background: linear-gradient(145deg,#D0C8C0 0%,#C0B8B0 50%,#B0A8A0 100%); }
.img-ph--sand    { background: linear-gradient(145deg,#E0D8CC 0%,#D0C8BC 50%,#C0B8AC 100%); }
.img-ph--bronze  { background: linear-gradient(145deg,#C8B8A0 0%,#B8A890 50%,#A89880 100%); }
.img-ph--vase    { background: linear-gradient(145deg,#C8C0B8 0%,#B8B0A8 40%,#A8A098 70%,#988878 100%); }
.img-ph--light   { background: linear-gradient(145deg,#E8E0D8 0%,#D8D0C8 50%,#C8C0B8 100%); }
.img-ph--team    { background: linear-gradient(155deg,#D8CEBF 0%,#C8BEB0 50%,#B8AEA0 100%); }
.img-ph--tech    { background: linear-gradient(155deg,#C0C8C8 0%,#B0B8B8 50%,#A0A8A8 100%); }

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 200;
  transition: background-color .4s var(--ease), box-shadow .4s, border-color .4s;
  background-color: rgba(246,241,235,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,168,154,.28);
}
/* Home page: transparent on top, over the hero video */
.is-home .site-nav {
  background-color: transparent;
  border-bottom-color: rgba(184,168,154,.2);
}
.is-home .site-nav:not(.scrolled) {
  backdrop-filter: none; /* no frosted-glass blur — see straight through to the video */
  border-bottom-color: transparent;
}
.is-home .site-nav:not(.scrolled) .nav-logo-name,
.is-home .site-nav:not(.scrolled) .nav-logo-tagline { color: var(--text) !important; }
.is-home .site-nav:not(.scrolled) .nav-logo:hover .nav-logo-name { color: var(--primary); }
.is-home .site-nav:not(.scrolled) .hamburger-icon span { background: #fff; }
.site-nav.scrolled {
  background-color: rgba(246,241,235,.97) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 24px rgba(59,43,36,.08);
  border-bottom-color: rgba(91,58,41,.08) !important;
}
.site-nav .navbar {
  height: var(--nav-h); padding: 0 clamp(1.5rem,4.5vw,3.5rem);
  max-width: 1600px; margin: 0 auto; flex-wrap: nowrap;
}
.nav-logo {
  display: flex; flex-direction: column; gap: 2px; line-height: 1;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-name {
  font-family: var(--ff-optima); font-size: 1.45rem; font-weight: 400;
  color: var(--text); letter-spacing: .015em; transition: color .2s;
}
.nav-logo-tagline {
  font-size: .6rem; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--accent2);
}
.nav-logo:hover .nav-logo-name { color: var(--primary); }

/* Hamburger toggler */
.site-nav .navbar-toggler {
  border: none; box-shadow: none; padding: 6px 8px; outline: none; margin-left: auto;
}
.site-nav .navbar-toggler:focus { box-shadow: none; }
.hamburger-icon { display: flex; flex-direction: column; gap: 5px; }
.hamburger-icon span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text); transition: all .3s var(--ease);
}
.site-nav .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px,5px);
}
.site-nav .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.site-nav .navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px,-5px);
}

/* ── SERVICES MEGA MENU ──────────────────── */
.nav-item--mega { position: relative; }
.nav-mega-toggle { background: none; border: none; cursor: pointer; padding: 0; }

@media (min-width: 1200px) {
  .nav-item--mega { display: flex; align-items: center; padding-bottom: 18px; margin-bottom: -18px; }
  .nav-mega-toggle { display: none; }
  .nav-mega {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(1140px, 94vw);
    background: var(--bg); border: 1px solid var(--tertiary);
    box-shadow: 0 28px 60px rgba(59,43,36,.18);
    opacity: 0; visibility: hidden; pointer-events: none; z-index: 210;
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .nav-item--mega:hover .nav-mega,
  .nav-item--mega:focus-within .nav-mega {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-mega-inner {
    display: grid; grid-template-columns: 300px 1fr;
    gap: 2.5rem; padding: 1.9rem;
  }
  /* Image panel — crossfades between service photos on hover */
  .nav-mega-media {
    position: relative; overflow: hidden;
    background: var(--tertiary); min-height: 320px;
  }
  .nav-mega-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0;
    transition: opacity .4s var(--ease);
  }
  .nav-mega-img.is-active { opacity: 1; }
  .nav-mega-body { display: flex; flex-direction: column; }
  .nav-mega-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    column-gap: 1.75rem; row-gap: .1rem;
  }
  .nav-mega-col {
    display: block; padding: .72rem .9rem; text-decoration: none;
    transition: background .22s var(--ease);
  }
  .nav-mega-col:hover { background: var(--white); }
  .nav-mega-title {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--ff-b); font-size: .8rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--primary); margin-bottom: .3rem;
  }
  .nav-mega-title svg {
    opacity: 0; transform: translateX(-5px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-mega-col:hover .nav-mega-title svg { opacity: 1; transform: translateX(0); }
  .nav-mega-desc {
    display: block; font-size: .86rem; color: var(--body); line-height: 1.6;
  }
  .nav-mega-all {
    margin-top: auto; padding: 1.1rem .9rem 0; border-top: 1px solid var(--tertiary);
    display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
    font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent); transition: color .2s, gap .2s;
  }
  .nav-mega-all:hover { color: var(--primary); gap: .7rem; }
}

@media (max-width: 1199.98px) {
  .nav-item--mega .nav-link { display: inline-block; width: auto; border-bottom: none !important; }
  .nav-item--mega { border-bottom: 1px solid rgba(217,203,190,.5); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .nav-mega-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; color: var(--text);
    transition: transform .25s var(--ease);
  }
  .nav-item--mega.mega-open .nav-mega-toggle { transform: rotate(180deg); }
  .nav-mega { flex-basis: 100%; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
  .nav-item--mega.mega-open .nav-mega { max-height: 900px; }
  /* Mobile: compact title-only list — no photo, no descriptions */
  .nav-mega-media, .nav-mega-desc { display: none; }
  .nav-mega-inner { display: flex; flex-direction: column; padding: .25rem 0 1.1rem; }
  .nav-mega-grid { display: flex; flex-direction: column; gap: .3rem; }
  .nav-mega-col { text-decoration: none; }
  .nav-mega-title {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--ff-b); font-size: .8rem; font-weight: 600;
    letter-spacing: .06em; text-transform: none;
    color: var(--primary); padding: .4rem 0; margin: 0;
  }
  .nav-mega-title svg { opacity: .5; }
  .nav-mega-all {
    display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem;
    font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent);
  }
}

/* ── DESKTOP nav (>=1200px) ─────────────── */
@media (min-width: 1200px) {
  .site-nav .navbar-toggler { display: none !important; }
  .site-nav .navbar-collapse {
    display: flex !important; align-items: center; justify-content: flex-end;
    flex-grow: 1; gap: 2rem; background: transparent !important;
    border: none !important; box-shadow: none !important;
    padding: 0 !important; position: static !important; visibility: visible !important;
  }
  .site-nav .navbar-nav {
    flex-direction: row !important; align-items: center !important;
    gap: 0 !important; flex-wrap: nowrap;
  }
  .site-nav .nav-item .nav-link {
    font-size: .81rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    color: var(--text) !important; position: relative; padding: .35rem 1.05rem !important;
    white-space: nowrap;
  }
  .site-nav .nav-item .nav-link::after {
    content: ''; position: absolute; bottom: -1px; left: 1.05rem;
    width: 0; height: 1px; background: var(--primary); transition: width .25s var(--ease);
  }
  .site-nav .nav-item .nav-link:hover::after { width: calc(100% - 2.1rem); }
  /* Transparent home-top nav: cream links over the video, reverts on scroll */
  .is-home .site-nav:not(.scrolled) .nav-item .nav-link { color: var(--bg) !important; }
  .is-home .site-nav:not(.scrolled) .nav-item .nav-link::after { background: var(--primary); }
  .site-nav .nav-item.active .nav-link { color: var(--primary) !important; }
  .site-nav .nav-item.active .nav-link::after { width: calc(100% - 2.1rem); }
  .nav-cta-group { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; margin-left: .5rem; }
  .nav-cta-btn {
    background: var(--primary); color: var(--white) !important;
    border: 1.5px solid var(--primary); padding: .6rem 1.5rem;
    font-size: .74rem; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; white-space: nowrap; border-radius: 0;
    display: inline-block; transition: background .22s, border-color .22s, transform .22s var(--ease);
    flex-shrink: 0;
  }
  .nav-cta-btn:hover {
    background: var(--accent) !important; border-color: var(--accent) !important;
    transform: translateY(-2px);
  }
  .nav-call-btn {
    background: transparent; color: var(--primary) !important;
    border: 1.5px solid var(--primary); padding: .6rem 1.3rem;
    font-size: .74rem; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; white-space: nowrap; border-radius: 0;
    display: inline-flex; align-items: center; gap: .4rem;
    transition: background .22s, color .22s, transform .22s var(--ease);
    flex-shrink: 0;
  }
  .nav-call-btn:hover {
    background: var(--primary); color: var(--white) !important;
    transform: translateY(-2px);
  }
  .nav-call-btn svg { flex-shrink: 0; }
  /* At the top of the home page the nav is transparent over the hero video,
     which can run dark on the right — swap the outline button to light so
     it stays legible; .scrolled (solid nav) reverts to the normal styling. */
  .is-home .site-nav:not(.scrolled) .nav-call-btn {
    color: #fff !important;
    border-color: rgba(255,255,255,.8);
    background: rgba(0,0,0,.12);
  }
  .is-home .site-nav:not(.scrolled) .nav-call-btn:hover {
    background: #fff; color: var(--primary) !important; border-color: #fff;
  }
}

/* ── MOBILE nav (<1200px) ────────────────── */
@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse {
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 199;
    background: var(--bg); border-bottom: 2px solid var(--tertiary);
    box-shadow: 0 12px 36px rgba(59,43,36,.12); overflow: hidden;
    padding: 1.75rem clamp(1.5rem,5vw,3rem) 2rem;
  }
  .site-nav .navbar-collapse.is-closing { opacity: 0; transition: opacity .18s ease-out; }
  .site-nav .navbar-nav {
    flex-direction: column !important; align-items: flex-start !important;
    gap: 0 !important; width: 100%; margin-bottom: 1.25rem;
  }
  .site-nav .nav-item { width: 100%; }
  .site-nav .nav-item .nav-link {
    font-size: .88rem !important; font-weight: 500; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text) !important;
    padding: .85rem 0 !important; border-bottom: 1px solid rgba(217,203,190,.5);
    width: 100%; display: block;
  }
  .site-nav .nav-item:last-of-type .nav-link { border-bottom: none; }
  .site-nav .nav-item.active .nav-link { color: var(--primary) !important; font-weight: 600; }
  .nav-cta-group { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
  .nav-cta-btn {
    display: block !important; width: 100%; text-align: center;
    background: var(--primary); color: var(--white) !important;
    border: 1.5px solid var(--primary); padding: .85rem 1.5rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; border-radius: 0;
    transition: background .22s;
  }
  .nav-cta-btn:hover { background: var(--accent) !important; border-color: var(--accent) !important; }
  .nav-call-btn {
    display: flex !important; width: 100%; align-items: center; justify-content: center; gap: .5rem;
    background: transparent; color: var(--primary) !important;
    border: 1.5px solid var(--primary); padding: .85rem 1.5rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .16em;
    text-transform: uppercase; border-radius: 0;
    transition: background .22s, color .22s;
  }
  .nav-call-btn:hover { background: var(--primary); color: var(--white) !important; }
  .nav-call-btn svg { flex-shrink: 0; }
}

/* Page wrapper */
.page { padding-top: var(--nav-h); }

/* ── Scroll reveal ──────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ══════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
══════════════════════════════════════════ */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 150;
  width: 56px; height: 56px; background: var(--primary); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(91,58,41,.4); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s;
  animation: waPulse 2.5s ease-in-out infinite 3s;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(91,58,41,.55); animation: none; }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-tooltip {
  position: absolute; right: 68px; background: var(--text); color: var(--white);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .45rem .85rem; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s; border-radius: 2px;
}
.whatsapp-tooltip::before {
  content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-right: 0; border-left-color: var(--text);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(91,58,41,.4); }
  50% { box-shadow: 0 4px 32px rgba(91,58,41,.7), 0 0 0 10px rgba(91,58,41,.1); }
}

/* ══════════════════════════════════════════
   CALL FLOATING BUTTON (sits above WhatsApp)
══════════════════════════════════════════ */
.call-float {
  position: fixed; bottom: 6.5rem; right: 2rem; z-index: 150;
  width: 56px; height: 56px; background: var(--accent); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(91,58,41,.4); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.call-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(91,58,41,.55); }
.call-float svg { width: 26px; height: 26px; color: #fff; }
.call-float:hover .whatsapp-tooltip { opacity: 1; }

/* ══════════════════════════════════════════
   EMERGENCY CALL BANNER
   Sits above the page hero on the Emergency
   Dentist page — a more urgent, full-width
   tap-to-call strip, distinct from the
   regular hero-actions button row.
══════════════════════════════════════════ */
.emergency-callbar { background: var(--primary); padding: 1rem clamp(1.5rem,4.5vw,3.5rem); text-align: center; }
.emergency-callbar-inner { max-width: 1380px; margin: 0 auto; }
.emergency-callbar-link {
  display: inline-flex; align-items: center; gap: .9rem; text-decoration: none;
  color: var(--white); max-width: 100%;
}
.emergency-callbar-icon {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  animation: emCallPulse 2.2s ease-in-out infinite;
  transition: background .2s;
}
.emergency-callbar-link:hover .emergency-callbar-icon { background: rgba(255,255,255,.26); }
.emergency-callbar-icon svg { width: 22px; height: 22px; }
.emergency-callbar-text {
  font-size: clamp(.95rem,2vw,1.2rem); font-weight: 500; line-height: 1.3; text-align: left;
}
.emergency-callbar-text strong {
  font-family: var(--ff-optima); font-weight: 400; font-size: 1.2em;
  display: block; letter-spacing: .01em;
}
@keyframes emCallPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); }
  50%     { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
}
@media (max-width: 480px) {
  .emergency-callbar-text { font-size: .92rem; }
}

/* ══════════════════════════════════════════
   BOOKING POPUP
══════════════════════════════════════════ */
.bk-popup {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), visibility .35s;
}
.bk-popup.show { opacity: 1; visibility: visible; pointer-events: auto; }
.bk-backdrop {
  position: absolute; inset: 0;
  background: rgba(38,25,18,.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.bk-card {
  position: relative; z-index: 1;
  background: var(--bg); padding: 2.75rem 2.5rem 2.25rem;
  width: min(480px, calc(100vw - 2.5rem));
  text-align: center;
  transform: translateY(18px) scale(.96);
  transition: transform .38s var(--ease);
  border-top: 3px solid var(--primary);
}
.bk-popup.show .bk-card { transform: translateY(0) scale(1); }
.bk-close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  cursor: pointer; color: var(--secondary); padding: .3rem;
  transition: color .2s; line-height: 1;
}
.bk-close:hover { color: var(--primary); }
.bk-title {
  font-family: var(--ff-optima); font-size: 2rem; font-weight: 400;
  color: var(--text); margin: .4rem 0 .8rem; line-height: 1.1;
}
.bk-sub { font-size: 1rem; color: var(--body); line-height: 1.72; margin-bottom: 1.75rem; }
.bk-actions { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.4rem; }
.bk-btn {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: 1rem 1.5rem; font-family: var(--ff-b); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s, transform .15s, border-color .2s;
  border: 1.5px solid transparent; border-radius: 0;
}
.bk-btn:active { transform: scale(.98); }
.bk-btn--primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.bk-btn--primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.bk-btn--wa { background: #25D366; color: #fff; border-color: #25D366; }
.bk-btn--wa:hover { background: #1ebe5c; border-color: #1ebe5c; color: #fff; }
.bk-btn--call { background: transparent; color: var(--primary); border-color: var(--primary); }
.bk-btn--call:hover { background: var(--primary); color: #fff; }
.bk-or {
  display: flex; align-items: center; gap: 1rem; margin: .5rem 0 1.1rem;
  font-size: .68rem; color: var(--secondary); letter-spacing: .1em;
}
.bk-or::before, .bk-or::after { content: ''; flex: 1; height: 1px; background: var(--tertiary); }
.bk-form-link {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid rgba(139,107,74,.35); padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.bk-form-link:hover { color: var(--primary); border-color: var(--primary); }

/* ══════════════════════════════════════════
   BOOKING IFRAME MODAL
══════════════════════════════════════════ */
.booking-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  padding: 2rem;
  transition: opacity .3s var(--ease), visibility .3s;
}
.booking-modal.show { opacity: 1; visibility: visible; pointer-events: auto; }
.booking-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(38,25,18,.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.booking-modal-card {
  position: relative; z-index: 1;
  background: var(--white);
  width: min(1000px, 100%);
  height: min(760px, 100%);
  transform: translateY(14px) scale(.97);
  transition: transform .35s var(--ease);
  box-shadow: 0 20px 60px rgba(38,25,18,.25);
}
.booking-modal.show .booking-modal-card { transform: translateY(0) scale(1); }
/* Sits inset within the card (not floated above it) so it can never be
   clipped by the viewport on shorter screens — a laptop's browser
   chrome can easily eat the headroom a button positioned above the
   card would need. A solid circle keeps it legible over the iframe. */
.booking-modal-close {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: none; box-shadow: 0 2px 10px rgba(38,25,18,.22);
  cursor: pointer; color: var(--text);
  transition: background .2s, color .2s;
}
.booking-modal-close:hover { background: var(--primary); color: var(--white); }
.booking-modal-iframe {
  width: 100%; height: 100%; border: none;
  opacity: 0; transition: opacity .3s var(--ease);
}
.booking-modal.is-loaded .booking-modal-iframe { opacity: 1; }
.booking-modal-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--white); pointer-events: none;
}
.booking-modal.is-loaded .booking-modal-loading { display: none; }
.booking-modal-loading span {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--tertiary); border-top-color: var(--primary);
  animation: booking-spin .8s linear infinite;
}
@keyframes booking-spin { to { transform: rotate(360deg); } }
body.booking-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .booking-modal { padding: 0; }
  .booking-modal-card { width: 100%; height: 100%; }
}

/* ══════════════════════════════════════════
   HOME — HERO  (DESKTOP: below navbar)
══════════════════════════════════════════ */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  max-width: 1600px; margin: 0 auto;
  position: relative;
}
/* Home page: the hero video bleeds up behind the fixed nav so the
   transparent top-of-page nav (.is-home .site-nav) has the video to
   show through; once scrolled the nav goes solid again (see main.js). */
.is-home .hero {
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem,6vw,5rem) clamp(2rem,6vw,4.5rem);
  position: relative; z-index: 3;
}
.hero-intro { font-size: 1rem; color: var(--body); line-height: 1.72; max-width: 30ch; margin-bottom: 2rem; }
.hero-headline {
  font-family: var(--ff-optima); font-size: clamp(2.9rem,5vw,4.4rem);
  font-weight: 400; line-height: 1.06; color: var(--text); margin-bottom: 1.6rem;
}
.hero-sub { font-size: 1.05rem; color: var(--body); line-height: 1.8; max-width: 40ch; margin-bottom: 2.5rem; }
.hero-announce { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); font-size: .92rem; max-width: 42ch; }
.hero-opening-note {
  font-size: .95rem; color: var(--text); line-height: 1.68; max-width: 38ch;
  background: rgba(139,107,74,.08); border-left: 3px solid var(--accent);
  padding: .9rem 1.2rem; margin-bottom: 2.25rem;
}
.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

/* Hero photo breaks out of the grid to span the full viewport width and sits
   behind everything; the text column then rides on the image's pale left side. */
.hero-img {
  position: absolute; top: 0; bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100vw; overflow: hidden; z-index: 0;
  background: var(--bg);
}
.hero-img .hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center; display: block; z-index: 1;
}
/* Insurance scrim: keeps the headline legible no matter how the photo crops */
.hero-img::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to right,
    rgba(246,241,235,.94) 0%,
    rgba(246,241,235,.82) 26%,
    rgba(246,241,235,.42) 46%,
    rgba(246,241,235,.06) 64%,
    rgba(246,241,235,0) 78%);
}

/* ══════════════════════════════════════════
   HOME — SERVICES OVERVIEW
══════════════════════════════════════════ */
.services-overview { background: var(--white); padding: clamp(3.5rem,7vw,6rem) clamp(1.5rem,4.5vw,3.5rem); border-top: 1px solid var(--tertiary); border-bottom: 1px solid var(--tertiary); text-align: center; }
.services-overview .section-header { margin-bottom: clamp(2.25rem,4vw,3.25rem); }
/* Home services overview: reception photo behind a translucent tertiary wash,
   matching the home hero's light-scrim-over-photo treatment. Cards keep their
   own white background so they read clearly on top. */
.services-overview-home { position: relative; overflow: hidden; z-index: 0; background: none; }
.services-overview-home::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('services-overview-bg.jpg') center 40% / cover no-repeat;
}
.services-overview-home::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(246,241,235,.90);
}
.svc-ov-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; max-width: 1380px; margin: 0 auto; }
.svc-ov-card {
  background: var(--white); border: 1px solid var(--tertiary); border-radius: 14px;
  padding: 2.25rem 1.6rem 2rem; display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: 0 2px 18px rgba(91,58,41,.05); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc-ov-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(91,58,41,.12); border-color: var(--secondary); }
.svc-ov-icon-wrap {
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.35rem; flex-shrink: 0;
}
.svc-ov-icon { width: 30px; height: 30px; color: var(--primary); }
.svc-ov-icon-img {
  display: inline-block; width: 52px; height: 52px;
  background-color: var(--primary);
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.svc-ov-title { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: .55rem; }
.svc-ov-desc { font-size: .95rem; color: var(--body); line-height: 1.62; margin-bottom: 1.2rem; }
.svc-ov-sublist { list-style: none; align-self: stretch; text-align: left; font-size: .93rem; color: var(--body); line-height: 1.7; margin-bottom: 1.2rem; }
.svc-ov-sublist li { padding-left: 1rem; position: relative; }
.svc-ov-sublist li::before { content: '—'; position: absolute; left: 0; color: var(--secondary); }
.svc-ov-link {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; transition: color .2s, gap .2s;
}
.svc-ov-card:hover .svc-ov-link { color: var(--primary); gap: .55rem; }

/* ══════════════════════════════════════════
   HOME — ABOUT SPLIT
══════════════════════════════════════════ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; max-width: 1600px; margin: 0 auto; }
.about-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3.5rem,7vw,6rem) clamp(2rem,6vw,4.5rem);
}
.about-body { font-size: 1.05rem; color: var(--body); line-height: 1.82; max-width: 44ch; margin-bottom: 1.25rem; }
.about-body + .about-body { margin-bottom: 2.5rem; }
.about-img { position: relative; overflow: hidden; min-height: 520px; }
.about-img .img-ph { height: 100%; min-height: 520px; }

/* ══════════════════════════════════════════
   HOME — SERVICES GRID
══════════════════════════════════════════ */
.section-header { margin-bottom: 3.5rem; }
.section-title { font-family: var(--ff-optima); font-weight: 400; font-size: clamp(2.2rem,3.5vw,3.2rem); color: var(--text); margin-top: .4rem; }

/* ══════════════════════════════════════════
   HOME — COMFORT MENU
══════════════════════════════════════════ */
.comfort-section { background: var(--white); text-align: center; }
.comfort-section .section-header { max-width: 640px; margin-left: auto; margin-right: auto; }

.comfort-split {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 3.5rem;
  text-align: left; min-height: 560px;
}
.comfort-photo { position: relative; overflow: hidden; }
.comfort-photo img {
  width: 100%; height: 100%; min-height: 320px; object-fit: cover;
  filter: grayscale(100%); display: block;
}
.comfort-menu-card {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem,6vw,4.5rem) clamp(1.5rem,5vw,4.5rem);
}
.comfort-menu-head { text-align: center; margin-bottom: 1.75rem; }
.comfort-menu-title {
  font-family: var(--ff-optima); font-size: clamp(1.7rem,2.4vw,2.1rem); font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase; color: var(--primary);
}
.comfort-menu-sub {
  font-size: .7rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent2); margin-top: .6rem;
}
.comfort-menu-list { list-style: none; display: flex; flex-direction: column; flex: 1; justify-content: space-evenly; }
.comfort-menu-item {
  display: flex; align-items: flex-start; gap: .9rem; padding: .85rem 0;
  border-bottom: 1px dashed var(--tertiary);
}
.comfort-menu-item:last-child { border-bottom: none; }
.comfort-menu-check {
  width: 13px; height: 13px; border: 1.3px solid var(--accent2); margin-top: .2rem; flex-shrink: 0;
}
.comfort-menu-item-title { font-size: .84rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: .3rem; }
.comfort-menu-item-desc { font-size: .97rem; color: var(--body); line-height: 1.6; }
.comfort-footer {
  text-align: center; margin-top: 3.25rem; font-family: var(--ff-d); font-style: italic;
  font-size: 1.35rem; color: var(--accent);
}

/* ══════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════ */
.cta-band { background: var(--primary); padding: clamp(3rem,6vw,5rem) clamp(1.5rem,4.5vw,3.5rem); }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap; max-width: 1380px; margin: 0 auto;
}
.cta-band h2 { font-family: var(--ff-optima); font-weight: 400; font-size: clamp(1.8rem,3.5vw,2.8rem); color: var(--white); line-height: 1.18; max-width: 14ch; }
.cta-band-right { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.cta-band-sub { font-size: 1rem; color: rgba(246,241,235,.82); line-height: 1.72; max-width: 32ch; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer { background: var(--text); padding: clamp(3rem,6vw,5rem) clamp(1.5rem,4.5vw,3.5rem) 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem;
  max-width: 1380px; margin: 0 auto;
  padding-bottom: clamp(2rem,5vw,4rem); border-bottom: 1px solid rgba(246,241,235,.08);
}
.footer-brand-name { font-family: var(--ff-d); font-size: 1.35rem; font-weight: 400; color: var(--bg); letter-spacing: .02em; line-height: 1; }
.footer-brand-tag { font-size: .6rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--secondary); margin-top: 4px; margin-bottom: 1.4rem; }
.footer-addr { font-size: .93rem; color: var(--secondary); line-height: 1.85; }
.footer-addr a { color: var(--secondary); transition: color .2s; }
.footer-addr a:hover { color: var(--bg); }
.footer-col-h { font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--bg); margin-bottom: 1.2rem; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { font-size: .93rem; color: var(--secondary); transition: color .2s; }
.footer-links a:hover { color: var(--bg); }
.footer-hours-row { display: flex; justify-content: space-between; font-size: .93rem; color: var(--secondary); padding: .18rem 0; }
.footer-hours-row span:last-child { opacity: .65; }
.footer-social { display: flex; gap: .75rem; margin-top: .25rem; }
.footer-social-link {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(184,168,154,.3); display: flex; align-items: center; justify-content: center;
  color: var(--secondary); transition: all .2s;
}
.footer-social-link svg { width: 19px; height: 19px; }
.footer-social-link:hover { border-color: var(--secondary); background: rgba(184,168,154,.1); transform: translateY(-2px); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; flex-wrap: wrap; gap: .75rem; max-width: 1380px; margin: 0 auto;
}
.footer-bottom-copy { font-size: .79rem; color: rgba(184,168,154,.4); letter-spacing: .04em; }
.footer-powered { display: flex; align-items: center; gap: .4rem; font-size: .79rem; color: rgba(184,168,154,.4); letter-spacing: .04em; text-decoration: none; transition: color .25s; }
.footer-powered img { height: 18px; width: auto; display: block; opacity: .85; transition: filter .25s, opacity .25s; }
.footer-powered strong { font-weight: 700; }
.footer-powered:hover { color: var(--secondary); }
.footer-powered:hover img { opacity: 1; filter: drop-shadow(0 0 6px rgba(184,168,154,.9)); }
.footer-powered:hover span { text-shadow: 0 0 8px rgba(184,168,154,.75); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: .79rem; color: rgba(184,168,154,.4); letter-spacing: .04em; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--secondary); }

.back-top {
  position: fixed; bottom: 11rem; right: 2rem; z-index: 100;
  width: 44px; height: 44px; background: var(--primary); color: var(--white);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s, background .2s;
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ══════════════════════════════════════════
   INNER PAGE HERO
══════════════════════════════════════════ */
.page-hero {
  background: var(--tertiary);
  padding-top: clamp(3rem,6vw,5rem);
  padding-right: clamp(1.5rem,4.5vw,3.5rem);
  padding-bottom: clamp(3rem,6vw,5rem);
  padding-left: clamp(1.5rem,4.5vw,3.5rem);
  text-align: center;
}
.page-hero .eyebrow { color: var(--accent); }
.approach-photo { aspect-ratio: 16/9; overflow: hidden; }
.approach-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Services page hero: reception desk photo behind a translucent tertiary wash,
   matching the home hero's light-scrim-over-photo treatment. */
.page-hero-services { position: relative; overflow: hidden; z-index: 0; }
.page-hero-services::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('services-hero-bg.jpg') center 65% / cover no-repeat;
}
.page-hero-services::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(217,203,190,.85);
}
/* New Patients page hero: dried-grass decor photo behind a translucent
   tertiary wash, matching the home hero's light-scrim-over-photo treatment. */
.page-hero-patients { position: relative; overflow: hidden; z-index: 0; }
.page-hero-patients::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('patients-hero-bg.jpg') center 55% / cover no-repeat;
}
.page-hero-patients::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(217,203,190,.85);
}
/* About page hero: dried-grass decor photo behind a translucent tertiary wash,
   matching the home hero's light-scrim-over-photo treatment. */
.page-hero-about { position: relative; overflow: hidden; z-index: 0; }
.page-hero-about::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('about-hero-bg.jpg') center 55% / cover no-repeat;
}
.page-hero-about::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(217,203,190,.82);
}
.page-hero-h { font-family: var(--ff-optima); font-weight: 400; line-height: 1.1; font-size: clamp(2.7rem,5vw,4.2rem); color: var(--text); margin-bottom: 1.1rem; }
.page-hero-sub { font-size: 1.08rem; color: var(--body); line-height: 1.78; max-width: 52ch; margin: 0 auto; }
.section { padding: clamp(4rem,8vw,7rem) clamp(1.5rem,4.5vw,3.5rem); }
.section-alt { background: var(--white); }
.section-dark { background: var(--tertiary); }

/* ══════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════ */
.story-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; max-width: 1600px; margin: 0 auto; }
.story-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem,6vw,5.5rem) clamp(2rem,6vw,4.5rem); }
.story-body { font-size: 1.05rem; color: var(--body); line-height: 1.82; margin-bottom: 1.25rem; max-width: 48ch; }
/* Shows the complete original photo at its natural aspect ratio — no cropping,
   no letterbox mat. The image is sized to 100% of its column width with
   height:auto, so it renders at a predictable height instead of
   stretching/cropping to fill an unrelated box height. */
.story-img { overflow: hidden; background: var(--bg); }
.story-img .img-ph { position: static; display: block; height: auto; }
.story-img .img-ph img { position: static; width: 100%; height: auto; object-fit: unset; display: block; }
.split-img-empty { background: var(--bg); min-height: 480px; }
.team-section { text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; margin-top: 3.5rem; text-align: left; }
.team-grid--duo { grid-template-columns: repeat(2,1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.team-photo { aspect-ratio: 908/1536; overflow: hidden; margin-bottom: 1.25rem; }
.team-photo .img-ph { height: 100%; }
.team-photo-initials {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-optima); font-size: 4.5rem; font-weight: 400; color: var(--white); letter-spacing: .04em;
}
.team-card { transition: transform .35s var(--ease); }
.team-card:hover { transform: translateY(-5px); }
.team-card:hover .team-photo .img-ph img { transform: scale(1.04); }
.team-name { font-family: var(--ff-d); font-size: 1.4rem; font-weight: 400; color: var(--text); margin-bottom: .25rem; }
.team-role { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.team-bio { font-size: 1rem; color: var(--body); line-height: 1.72; }
.team-bio + .team-bio { margin-top: 1rem; }
.prose-link { color: var(--accent); border-bottom: 1px solid rgba(139,107,74,.3); transition: color .2s, border-color .2s; }
.prose-link:hover { color: var(--primary); border-color: var(--primary); }
.values-section { background: var(--white); }
.values-grid { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--tertiary); margin-top: 3rem; }
.value-item { padding: clamp(2rem,4vw,3rem) clamp(1.5rem,3vw,2.5rem); border-right: 1px solid var(--tertiary); border-bottom: 1px solid var(--tertiary); }
.value-item:nth-child(2n) { border-right: none; }
.value-item:nth-last-child(-n+2) { border-bottom: none; }
.value-num { font-family: var(--ff-d); font-size: 3rem; font-weight: 300; color: var(--tertiary); line-height: 1; margin-bottom: .6rem; }
.value-title { font-family: var(--ff-d); font-size: 1.4rem; font-weight: 400; color: var(--text); margin-bottom: .65rem; }
.value-desc { font-size: 1.02rem; color: var(--body); line-height: 1.75; max-width: 36ch; }
.awards-bar { background: var(--primary); padding: clamp(2rem,4vw,3rem) clamp(1.5rem,4.5vw,3.5rem); }
.awards-inner { display: flex; align-items: center; justify-content: center; gap: clamp(2rem,6vw,5rem); flex-wrap: wrap; max-width: 1380px; margin: 0 auto; text-align: center; }
.award-num { font-family: var(--ff-d); font-size: 2.5rem; font-weight: 300; color: var(--white); line-height: 1; }
.award-label { font-size: .66rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(246,241,235,.55); margin-top: .3rem; }

/* ══════════════════════════════════════════
   SERVICES PAGE
══════════════════════════════════════════ */
.svc-list { display: flex; flex-direction: column; }
.svc-block { border-bottom: 1px solid var(--tertiary); }
.svc-block:last-child { border-bottom: none; }
.svc-block-inner { max-width: 640px; text-align: center; }
.svc-detail-sub { font-size: 1.05rem; color: var(--body); line-height: 1.8; margin: 1rem auto 1.75rem; }
.svc-detail-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin: 0 auto 2rem; text-align: left; }
.svc-detail-list li { font-size: 1.03rem; color: var(--body); padding-left: 1.25rem; position: relative; }
.svc-detail-list li::before { content: '—'; position: absolute; left: 0; color: var(--secondary); }

/* ── "Other ways we can help" split (image + list) ── */
.svc-more-split { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2.5rem,5vw,4rem); align-items: center; }
.svc-more-img {
  background: var(--bg); border: 1px solid var(--tertiary);
  min-height: 380px; overflow: hidden; position: relative;
}
.svc-more-img svg { width: 100%; max-width: 200px; height: auto; }
.svc-more-img .img-ph { height: 100%; min-height: 380px; }
.svc-more-img .img-ph img { filter: grayscale(100%); }
.svc-more-content .section-header { text-align: left; margin-bottom: 1.75rem; }
.svc-more-content .svc-detail-list.cols-2 { margin-left: 0; }

/* ══════════════════════════════════════════
   PATIENTS PAGE
══════════════════════════════════════════ */
.steps-section { background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--tertiary); margin-top: 3rem; }
.steps-grid-3col { grid-template-columns: repeat(3,1fr); }
.step-item { padding: clamp(2rem,3.5vw,2.5rem) clamp(1.25rem,2.5vw,2rem); border-right: 1px solid var(--tertiary); display: flex; flex-direction: column; gap: .9rem; }
.step-item:last-child { border-right: none; }
.step-num { font-family: var(--ff-d); font-size: 3.5rem; font-weight: 300; color: var(--tertiary); line-height: 1; }
.step-title { font-family: var(--ff-d); font-size: 1.25rem; font-weight: 400; color: var(--text); }
.step-desc { font-size: 1.01rem; color: var(--body); line-height: 1.72; }
.fee-meta { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.1rem; }
.fee-price { font-family: var(--ff-d); font-size: 1.7rem; font-weight: 400; color: var(--primary); }
.fee-duration { font-size: .82rem; color: var(--accent2); letter-spacing: .02em; }
.fee-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 3rem; }
.fee-card {
  background: var(--white); border: 1px solid var(--tertiary); padding: 2.25rem 2rem;
  display: flex; flex-direction: column; text-align: left;
  transition: box-shadow .3s, transform .3s;
}
.fee-card:hover { box-shadow: 0 8px 28px rgba(91,58,41,.07); transform: translateY(-2px); }
.fee-card h3 { font-family: var(--ff-d); font-size: 1.3rem; font-weight: 400; color: var(--text); margin-bottom: .65rem; }
.fee-card .fee-desc { font-size: 1rem; color: var(--body); line-height: 1.68; margin-bottom: 1.15rem; }
.fee-card .svc-detail-list { margin: 0 0 1.5rem; }
.fee-card > .btn, .fee-card > .btn-pair { margin-top: auto; align-self: flex-start; }
.payment-grid, .info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.info-grid-2col { grid-template-columns: repeat(2,1fr); max-width: 900px; margin-left: auto; margin-right: auto; }
.payment-card, .info-card { background: var(--white); border: 1px solid var(--tertiary); padding: 2.25rem 2rem; transition: box-shadow .3s, transform .3s; }
.payment-card:hover, .info-card:hover { box-shadow: 0 8px 28px rgba(91,58,41,.07); transform: translateY(-2px); }
.payment-icon, .info-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1.25rem; }
.payment-title, .info-title { font-family: var(--ff-d); font-size: 1.3rem; font-weight: 400; color: var(--text); margin-bottom: .65rem; }
.payment-desc, .info-desc { font-size: 1.02rem; color: var(--body); line-height: 1.72; }
.svc-detail-list.cols-2 { display: grid; grid-template-columns: repeat(2,1fr); column-gap: 2.5rem; row-gap: .6rem; max-width: 560px; margin: 0 auto 2rem; }
.svc-detail-list.cols-2 li { margin-bottom: 0; }
.faq-section { background: var(--white); }
.faq-list { max-width: 760px; margin: 2.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--tertiary); }
.faq-btn {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0; font-family: var(--ff-d); font-size: 1.3rem; font-weight: 400; color: var(--text); text-align: left;
  transition: color .2s;
}
.faq-btn:hover { color: var(--accent); }
.faq-icon { flex-shrink: 0; color: var(--accent); font-size: 1.3rem; font-family: var(--ff-b); transition: transform .3s var(--ease); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.faq-body p { font-size: 1.05rem; color: var(--body); line-height: 1.78; padding-bottom: 1.4rem; }

/* ══════════════════════════════════════════
   TECHNOLOGY PAGE
══════════════════════════════════════════ */
.tech-intro-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1600px; margin: 0 auto; }
.tech-intro-content { padding: clamp(3rem,6vw,5.5rem) clamp(2rem,6vw,4.5rem); }
.tech-intro-body { font-size: 1.05rem; color: var(--body); line-height: 1.82; max-width: 44ch; margin: 1rem 0 2rem; }
.tech-intro-img { overflow: hidden; min-height: 460px; }
.tech-intro-img .img-ph { height: 100%; min-height: 460px; }
.tech-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3.5rem; }
.tech-card { background: var(--white); border: 1px solid var(--tertiary); padding: 2.5rem 2.25rem; transition: box-shadow .3s, transform .3s; }
.tech-card:hover { box-shadow: 0 8px 28px rgba(91,58,41,.07); transform: translateY(-2px); }
.tech-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 1.4rem; }
.tech-name { font-family: var(--ff-d); font-size: 1.35rem; font-weight: 400; color: var(--text); margin-bottom: .6rem; }
.tech-desc { font-size: 1.02rem; color: var(--body); line-height: 1.72; }
.tech-stats { background: var(--primary); padding: clamp(2.5rem,5vw,4rem) clamp(1.5rem,4.5vw,3.5rem); }
.tech-stats-inner { display: flex; align-items: center; justify-content: center; gap: clamp(2.5rem,8vw,7rem); flex-wrap: wrap; text-align: center; max-width: 1380px; margin: 0 auto; }
.tech-stat-num { font-family: var(--ff-d); font-size: 3rem; font-weight: 300; color: var(--white); line-height: 1; }
.tech-stat-label { font-size: .66rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(246,241,235,.5); margin-top: .35rem; }

/* ══════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════ */
.contact-section { padding: clamp(4rem,8vw,7rem) clamp(1.5rem,4.5vw,3.5rem); }
.contact-divider { display: block; width: 40px; height: 1px; background: var(--tertiary); margin: 2.5rem 0; }
.hours-list { display: flex; flex-direction: column; gap: .4rem; }
.hours-row { display: flex; justify-content: space-between; gap: 1.5rem; font-size: .92rem; color: var(--text); padding: .25rem 0; border-bottom: 1px solid var(--tertiary); }
.hours-row:last-child { border-bottom: none; }
.hours-row span:last-child { color: var(--body); }
.form-success {
  display: none; flex-direction: column; align-items: center; text-align: center;
  padding: 4rem 2rem; margin-top: 1rem;
}
.form-success.show { display: flex; animation: formSuccessIn .5s var(--ease-out); }
.form-success-icon { width: 68px; height: 68px; margin-bottom: 1.5rem; }
.form-success-icon svg { width: 100%; height: 100%; overflow: visible; }
.form-success-circle {
  stroke: var(--primary); stroke-width: 2; fill: none;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: formCircleDraw .6s var(--ease-out) forwards;
}
.form-success-check {
  stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none;
  stroke-dasharray: 36; stroke-dashoffset: 36;
  animation: formCheckDraw .35s var(--ease-out) .5s forwards;
}
.form-success strong { font-family: var(--ff-optima); font-size: 1.6rem; font-weight: 400; color: var(--text); margin-bottom: .6rem; }
.form-success p { font-size: .98rem; color: var(--body); line-height: 1.7; max-width: 36ch; }
@keyframes formSuccessIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes formCircleDraw { to { stroke-dashoffset: 0; } }
@keyframes formCheckDraw { to { stroke-dashoffset: 0; } }
.required-note { font-size: .72rem; color: var(--body); margin-top: -.5rem; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: stretch; }
.contact-info-group { margin-bottom: 2.25rem; }
.contact-info-label { font-size: .64rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.contact-info-group p, .contact-info-group a { font-size: .95rem; color: var(--text); line-height: 1.78; }
.contact-info-group a:hover { color: var(--accent); }
.contact-form-wrap { max-width: 720px; margin: 6rem auto 0; scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.contact-form-wrap .section-header { margin-bottom: 2.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white); border: 1px solid var(--tertiary); padding: .88rem 1rem;
  font-family: var(--ff-b); font-size: 1rem; color: var(--text);
  outline: none; transition: border-color .2s; appearance: none; -webkit-appearance: none; border-radius: 0;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 128px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A69B8F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.form-check { display: flex; align-items: flex-start; gap: .75rem; }
.form-check input[type=checkbox] { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.form-check label { font-size: .9rem; color: var(--body); line-height: 1.6; letter-spacing: 0; text-transform: none; }
.form-submit { margin-top: .5rem; }
.map-ph { width: 100%; aspect-ratio: 16/9; background: var(--tertiary); display: flex; align-items: center; justify-content: center; border: 1px solid var(--secondary); }
.map-ph span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--secondary); }
.map-embed { width: 100%; height: 100%; min-height: 480px; border: 1px solid var(--secondary); overflow: hidden; filter: grayscale(.15) contrast(1.02); transition: filter .3s var(--ease); }
.map-embed:hover { filter: grayscale(0) contrast(1); }

/* ══════════════════════════════════════════
   PRIVACY & TERMS
══════════════════════════════════════════ */
.legal-page { padding: clamp(4rem,8vw,7rem) clamp(1.5rem,4.5vw,3.5rem); }
.legal-page .max-w { max-width: 820px; }
.legal-h1 { font-family: var(--ff-optima); font-size: clamp(2.2rem,4vw,3.2rem); font-weight: 400; color: var(--text); margin-bottom: .5rem; line-height: 1.1; }
.legal-date { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent2); margin-bottom: 3rem; display: block; }
.legal-section { margin-bottom: 3rem; }
.legal-section h2 { font-family: var(--ff-d); font-size: 1.5rem; font-weight: 400; color: var(--text); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--tertiary); }
.legal-section p { font-size: 1.05rem; color: var(--body); line-height: 1.82; margin-bottom: 1rem; }
.legal-section ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.legal-section ul li { font-size: 1.03rem; color: var(--body); line-height: 1.75; padding-left: 1.5rem; position: relative; }
.legal-section ul li::before { content: '—'; position: absolute; left: 0; color: var(--secondary); }
.legal-section a { color: var(--accent); border-bottom: 1px solid rgba(139,107,74,.3); transition: color .2s, border-color .2s; }
.legal-section a:hover { color: var(--primary); border-color: var(--primary); }

/* ══════════════════════════════════════════
   THANK YOU / BOOKING CONFIRMATION
══════════════════════════════════════════ */
.thankyou-icon-circle {
  width: 84px; height: 84px; border-radius: 50%; background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.75rem;
}
.thankyou-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.75rem; max-width: 1100px; margin: 0 auto;
}
.thankyou-card {
  background: var(--white); border: 1px solid var(--tertiary); border-radius: 14px;
  padding: clamp(1.9rem,3vw,2.25rem) clamp(1.6rem,3vw,2rem); text-align: left;
  box-shadow: 0 2px 18px rgba(91,58,41,.05);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.thankyou-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(91,58,41,.12); border-color: var(--secondary); }
.thankyou-card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--tertiary); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.thankyou-card h3 {
  font-family: var(--ff-b); font-size: .82rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text); margin-bottom: .65rem;
}
.thankyou-card p { font-size: .95rem; color: var(--body); line-height: 1.72; }
.thankyou-card a { color: var(--accent); border-bottom: 1px solid rgba(139,107,74,.3); transition: color .2s, border-color .2s; }
.thankyou-card a:hover { color: var(--primary); border-color: var(--primary); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* ── Mobile hero: full-screen image with text overlay ── */
@media (max-width: 768px) {
  .hero {
    display: block;
    position: relative;
    overflow: hidden;
    /* Bleed up behind the fixed navbar (transparent at top on home) */
    margin-top: calc(var(--nav-h) * -1);
    padding-top: var(--nav-h);
    min-height: 100vh;
    height: 100vh;
  }
  /* Image fills the full block absolutely */
  .hero-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    transform: none !important;   /* cancel the desktop full-bleed break-out */
  }
  /* The pale left-side scrim is a desktop device only — mobile uses the dark
     bottom gradient below instead, so turn it off. */
  .hero-img::before { display: none !important; }
  /* Portrait crop: favour the warm clinic side over the blank pale edge */
  .hero-img .hero-photo { object-position: 38% center; }
  /* Dark gradient — heavy at bottom for text, light at top */
  .hero-img::after {
    content: '';
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(30,18,12,.94) 0%,
      rgba(30,18,12,.68) 38%,
      rgba(30,18,12,.28) 65%,
      rgba(30,18,12,.06) 100%
    );
  }
  /* Content pinned to bottom of the full-screen block */
  .hero-content {
    position: relative !important;
    z-index: 3;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    min-height: calc(100vh - var(--nav-h));
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end !important;
    padding: 2rem clamp(1.25rem,5vw,2.5rem) clamp(2rem,6vw,3rem) !important;
  }
  /* White text on dark overlay */
  .hero-intro { color: rgba(255,255,255,.72); max-width: 100%; font-size: .9rem; margin-bottom: .85rem; }
  .hero-announce { color: #fff; }
  .hero-headline { color: #fff; font-size: clamp(2.1rem,7.5vw,3rem); margin-bottom: .85rem; }
  .hero-sub { color: rgba(255,255,255,.7); max-width: 100%; font-size: .93rem; margin-bottom: 1.5rem; }
  .hero-opening-note {
    color: rgba(255,255,255,.9); background: rgba(255,255,255,.1);
    border-left-color: rgba(255,255,255,.6); max-width: 100%; margin-bottom: 1.5rem;
  }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 1rem; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-content .text-link { color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.35); }
  .hero-content .text-link:hover { color: #fff; border-color: rgba(255,255,255,.7); }
}

/* ── Services overview: 1 column on small phones ── */
@media (max-width: 480px) {
  .svc-ov-grid { grid-template-columns: 1fr; }
}

/* ── Long button labels: wrap instead of overflowing narrow phones ── */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
}

@media (max-width: 1024px) {
  .svc-ov-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .map-embed { min-height: 65vw; }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
  .steps-grid .step-item:nth-child(2) { border-right: none; }
  .steps-grid .step-item:nth-child(1),
  .steps-grid .step-item:nth-child(2) { border-bottom: 1px solid var(--tertiary); }
  .tech-grid { grid-template-columns: repeat(2,1fr); }
  .payment-grid, .info-grid { grid-template-columns: repeat(2,1fr); }
  .comfort-menu-card { padding: 2.5rem 2rem; }
}

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

@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; }
  .about-img { min-height: 60vw; }
  .about-img .img-ph { min-height: 60vw; }
  .cta-band-inner { flex-direction: column; gap: 1.5rem; }
  .cta-band h2 { max-width: none; }
  .btn-pair { flex-direction: column; align-items: stretch; width: 100%; }
  .btn-pair .btn { width: 100%; text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .story-split { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item { border-right: none; }
  .value-item:last-child { border-bottom: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-item { border-right: none !important; border-bottom: 1px solid var(--tertiary); }
  .step-item:last-child { border-bottom: none; }
  .payment-grid, .info-grid { grid-template-columns: 1fr; }
  .comfort-split { grid-template-columns: 1fr; min-height: 0; }
  .comfort-photo img { min-height: 280px; }
  .comfort-menu-card { padding: 2.5rem 1.5rem; }
  .svc-detail-list.cols-2 { grid-template-columns: 1fr; }
  .svc-more-split { grid-template-columns: 1fr; }
  .svc-more-img { min-height: 260px; }
  .svc-more-img svg { max-width: 150px; }
  .svc-more-img .img-ph { min-height: 260px; }
  .svc-more-content .section-header { text-align: center; }
  .tech-intro-split { grid-template-columns: 1fr; }
  .tech-intro-img { min-height: 55vw; }
  .tech-intro-img .img-ph { min-height: 55vw; }
  .tech-grid { grid-template-columns: 1fr; }
  .tech-stats-inner { gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
  .call-float { bottom: 5.25rem; right: 1.25rem; width: 50px; height: 50px; }
  .call-float svg { width: 22px; height: 22px; }
  .back-top { bottom: 9.25rem; right: 1.25rem; }
  /* Hidden until scrolled past the page-hero — on narrow screens its
     stacked CTA buttons can otherwise land right under these floats. */
  .whatsapp-float, .call-float {
    opacity: 0; pointer-events: none; transform: scale(.85);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .whatsapp-float.scrolled-in, .call-float.scrolled-in {
    opacity: 1; pointer-events: auto; transform: none;
  }

  /* ── Tighter vertical rhythm: less dead whitespace between sections ── */
  .split-img-empty { display: none; }
  .section { padding: 2.5rem clamp(1.25rem,5vw,2rem); }
  .contact-section { padding: 2.5rem clamp(1.25rem,5vw,2rem); }
  .legal-page { padding: 2.5rem clamp(1.25rem,5vw,2rem); }
  .legal-section { margin-bottom: 2rem; }
  .story-content { padding: 2.5rem clamp(1.25rem,5vw,2rem) 2rem; }
  .tech-intro-content { padding: 2.5rem clamp(1.25rem,5vw,2rem) 2rem; }
  .cta-band { padding: 2.25rem clamp(1.25rem,5vw,2rem); }
  .footer { padding: 2.5rem clamp(1.25rem,5vw,2rem) 0; }
  .awards-bar { padding: 1.75rem clamp(1.25rem,5vw,2rem); }
  .tech-stats { padding: 2rem clamp(1.25rem,5vw,2rem); }
  .services-overview { padding: 2.75rem clamp(1.25rem,5vw,2rem); }
  .value-item, .step-item { padding: 1.5rem clamp(1.25rem,4vw,1.75rem); }
  .contact-form-wrap { margin-top: 3rem; }
}

@media (max-width: 480px) {
  .bk-card { padding: 2.25rem 1.5rem 1.75rem; }
}

/* ══════════════════════════════════════════
   ULTRA-WIDE / HIGH-RES MONITORS
   Content maxes out around 1380–1600px, which
   leaves huge dead margins on 1920px+ screens.
   Widen the containers in steps as room allows.
══════════════════════════════════════════ */
@media (min-width: 1800px) {
  .max-w { max-width: 1700px; }
  .site-nav .navbar,
  .hero,
  .about-split,
  .story-split,
  .tech-intro-split,
  .max-w--wide { max-width: 1950px; }
  .svc-ov-grid,
  .cta-band-inner,
  .footer-grid,
  .footer-bottom,
  .awards-inner,
  .tech-stats-inner,
  .emergency-callbar-inner { max-width: 1700px; }
}

@media (min-width: 2400px) {
  .max-w { max-width: 2150px; }
  .site-nav .navbar,
  .hero,
  .about-split,
  .story-split,
  .tech-intro-split,
  .max-w--wide { max-width: 2450px; }
  .svc-ov-grid,
  .cta-band-inner,
  .footer-grid,
  .footer-bottom,
  .awards-inner,
  .tech-stats-inner,
  .emergency-callbar-inner { max-width: 2150px; }
}

/* 3000/3600px: covers 32" 4K UHD monitors (e.g. Samsung M8) running at
   100% or 125% OS scaling, where the browser's CSS viewport is 3840px
   or ~3072px wide — well past the 2400px step above. Content is pushed
   close to the screen edges here rather than floating in a small centred
   column, so the page reads as designed-for-4K rather than stretched. */
@media (min-width: 3000px) {
  .max-w { max-width: 2650px; }
  .site-nav .navbar,
  .hero,
  .about-split,
  .story-split,
  .tech-intro-split,
  .max-w--wide { max-width: 3000px; }
  .svc-ov-grid,
  .cta-band-inner,
  .footer-grid,
  .footer-bottom,
  .awards-inner,
  .tech-stats-inner,
  .emergency-callbar-inner { max-width: 2650px; }
}

@media (min-width: 3600px) {
  .max-w { max-width: 3500px; }
  .site-nav .navbar,
  .hero,
  .about-split,
  .story-split,
  .tech-intro-split,
  .max-w--wide { max-width: 3700px; }
  .svc-ov-grid,
  .cta-band-inner,
  .footer-grid,
  .footer-bottom,
  .awards-inner,
  .tech-stats-inner,
  .emergency-callbar-inner { max-width: 3500px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
