﻿/* ==============================================================================
   DENTAL WORLD KARACHI — DESIGN SYSTEM (UI REDESIGN 2026)
   Mobile-first. Calm mint + deep teal + near-white, sampled from our logo.
   Load order: legacy.css (retiring, batch by batch) → this file.
   ============================================================================== */

/* ========== CSS CUSTOM PROPERTIES (DESIGN TOKENS) ========== */
:root {
  /* Brand — sampled from logo-dental-world.png. The exact logo colours are for
     icons and decorative marks; the working shades keep each hue and are only
     darkened as far as WCAG AA needs. Small text on the soft tints uses
     --clr-primary-dark (primary is 4.3:1 on soft-100). */
  --clr-brand-teal:       #05a69d;  /* logo teal, exact — icons/marks only (3.0:1 on white) */
  --clr-brand-blue:       #017eba;  /* logo blue, exact */
  --clr-brand-navy:       #013b70;  /* logo navy, exact — footer */
  --clr-brand-navy-deep:  #012a52;

  --clr-primary:          #04807a;  /* buttons, active states, links (white text 4.8:1) */
  --clr-primary-dark:     #02606b;  /* hover, text on soft tints (7.3:1 on white) */
  --clr-primary-deep:     #01505a;  /* chip / announcement text, dark plain panels (9:1) */
  --clr-accent-blue:      #0179b1;  /* second accent: gradients, highlights (white text 4.8:1) */

  --clr-primary-soft-50:  #f2fbfa;  /* alternating sections */
  --clr-primary-soft-100: #e4f5f4;  /* chips, soft buttons, announcement */
  --clr-primary-soft-200: #c3eae7;  /* borders and hover tints */
  --clr-primary-soft-300: #76cec9;  /* accent text on dark/photo backgrounds (6.1:1 on navy) */

  /* Neutrals */
  --c-bg:        #fbfdfd;  /* page */
  --c-white:     #ffffff;
  --c-ink:       #0f1f2e;  /* headings (logo.svg ink) */
  --c-ink-2:     #33474f;  /* body copy (9.6:1) */
  --c-ink-soft:  #4f666d;  /* light first word of headings, muted text (5.9:1 white, 5.4:1 mint-100) */
  --c-line:      #dbe7eb;  /* hairlines (cool grey from the logo navy) */

  /* Reserved accents */
  --c-gold:      #e9a23b;  /* stars only */

  /* Typography — system stack, no webfont download */
  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
               BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-title:  clamp(28px, 7vw, 42px);
  --fs-lead:   clamp(16px, 2.2vw, 18px);

  /* 8px spacing scale */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-10: 80px; --s-12: 96px;
  --section-pad: clamp(56px, 10vw, 96px);

  /* Radius 16 / 24 / 32 */
  --r-16:   16px;
  --r-24:   24px;
  --r-32:   32px;
  --r-pill: 999px;

  /* Very soft shadows */
  --sh-1: 0 1px 2px rgba(15, 31, 46, .04), 0 2px 8px rgba(15, 31, 46, .04);
  --sh-2: 0 8px 24px rgba(15, 31, 46, .06);
  --sh-3: 0 18px 44px rgba(15, 31, 46, .08);

  /* Motion — transform & opacity only */
  --ease-out:  cubic-bezier(.22, 1, .36, 1);
  --ease-snap: cubic-bezier(.2, .9, .1, 1);
  --dur-1: .16s;
  --dur-2: .28s;
  --dur-3: .5s;
  --stagger: 80ms;

  /* Layout */
  --container:   99999px; /* no cap until 1680px: the shell grows with the screen */
  --gutter:      12px;    /* shell side gap: 12px phones, 16–24px tablets, 24px desktop */
  --dw-header-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: clamp(16px, 2.5vw, 24px); }
}

@media (min-width: 1200px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1680px) {
  :root { --container: calc(1560px + 2 * var(--gutter)); } /* 1560px content, centred */
}

@media (min-width: 992px) {
  :root { --dw-header-h: 60px; }
}


/* ========== LEGACY BRIDGE (remove together with legacy.css) ========== */
/* Points the old variable names at the new tokens so sections that have not
   been rebuilt yet already share the new palette and type. */
:root {
  --clr-mint:          var(--clr-brand-teal);
  --clr-primary-light: var(--clr-primary-soft-50);
  --clr-primary-muted: var(--clr-primary-soft-100);
  --clr-accent-blue-legacy: var(--clr-accent-blue);
  --gradient-primary:  linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary-deep) 100%);
  --clr-teal-deep:     var(--clr-primary);
  --clr-teal-hover:    var(--clr-primary-dark);
  --clr-ink:           var(--c-ink);
  --clr-sky-ink:       var(--c-ink-soft);
  --clr-mint-50:       var(--clr-primary-soft-50);
  --clr-mint-100:      var(--clr-primary-soft-100);
  --clr-mint-200:      var(--clr-primary-soft-200);
  --clr-bg-page:       var(--c-bg);
  --clr-text-main:     var(--c-ink-2);
  --clr-text-muted:    var(--c-ink-soft);
  --clr-navy:          var(--clr-brand-navy);
  --clr-border:        var(--c-line);
  --clr-warning:       var(--c-gold);
  --clr-accent-gold:   var(--c-gold);
  --font-body:         var(--font-sans);
  --font-heading:      var(--font-sans);
  --font-hero:         var(--font-sans);
  --nav-height:        var(--dw-header-h);
}

/* Image ratio system on the inner pages' legacy cards: 16:10 cards, 4:5 doctors,
   object-fit cover everywhere (Part 3). */
.service-card-media {
  display: block;
  margin-bottom: var(--s-2);
  overflow: hidden;
  border-radius: var(--r-16);
  aspect-ratio: 16 / 10;
  background: var(--clr-primary-soft-100);
}
.service-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-thumb,
.svc-hero-image { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.svc-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-hero-image.is-drawn {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--clr-primary-soft-100), var(--clr-primary-soft-200));
}
.doctor-card-image,
.about-image { aspect-ratio: 4 / 5 !important; } /* legacy media queries switch these to 4:3 / 16:10 */
.doctor-card-image img,
.about-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* AA fixes for legacy blocks still used on inner pages (Batch 5 contrast audit). */
:is(.cta-band, .cta-section, .bg-dark, .section-header--dark) .section-title span { color: inherit; }
.blog-newsletter .blog-newsletter-note { color: var(--c-ink-2); }
.service-link { color: var(--clr-primary-dark); } /* --clr-primary is 4.3:1 on the soft tints */


/* ========== BASE & TYPOGRAPHY ========== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--dw-header-h) + var(--s-2));
  -webkit-text-size-adjust: 100%;
}

html.dw-lock { overflow: hidden; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

#mainContent { flex: 1 0 auto; } /* short pages: the footer still sits at the bottom */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--c-ink);
  letter-spacing: -.015em;
}

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--clr-brand-teal);
  outline-offset: 2px;
}

.dw-num { font-variant-numeric: lining-nums tabular-nums; }

.dw-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: var(--s-1);
  left: var(--s-1);
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--clr-primary);
  color: var(--c-white);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: none; }


/* ========== LAYOUT UTILITIES ========== */
.dw-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

.dw-section        { padding-block: var(--section-pad); background: var(--c-white); }
.dw-section--mint  { background: var(--clr-primary-soft-50); }


/* ========== TWO-TONE SECTION HEADINGS ========== */
/* <h2 class="section-title"><span>Our</span> Expert Team</h2>
   Light first word on its own line, bold rest. Same size, weight carries it. */
.section-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--c-ink);
  text-wrap: balance;
}

.section-title span {
  display: block;
  margin: 0;
  font-size: inherit;
  font-weight: 300;
  line-height: inherit;
  letter-spacing: -.01em;
  color: var(--c-ink-soft);
}

/* Dark and photo backgrounds: both tones white, contrast comes from the overlay. */
.section-title--on-dark,
.section-title--on-dark span { color: var(--c-white); }

.section-sub {
  margin: var(--s-2) 0 0;
  max-width: 60ch;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--c-ink-soft);
}

.dw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--clr-primary-soft-100);
  color: var(--clr-primary-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dw-eyebrow--on-dark {
  background: rgba(1, 28, 46, .5); /* dark glass: AA over any part of a photo */
  border: 1px solid rgba(255, 255, 255, .26);
  color: var(--c-white);
}


/* ========== BUTTONS ========== */
.dw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: 600 15px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-1) var(--ease-out),
              background-color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out);
}
.dw-btn svg { flex: none; }
.dw-btn:active { transform: scale(.97); }

.dw-btn--primary            { background: var(--clr-primary); color: var(--c-white); }
.dw-btn--primary:hover      { background: var(--clr-primary-dark); color: var(--c-white); }

.dw-btn--soft               { background: var(--clr-primary-soft-100); color: var(--clr-primary-deep); }
.dw-btn--soft:hover         { background: var(--clr-primary-soft-200); color: var(--clr-primary-deep); }

.dw-btn--light              { background: var(--c-white); color: var(--c-ink); }
.dw-btn--light:hover        { background: var(--clr-primary-soft-50); color: var(--c-ink); }

.dw-btn--ghost-light        { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); color: var(--c-white); }
.dw-btn--ghost-light:hover  { background: rgba(255, 255, 255, .18); color: var(--c-white); }

.dw-btn--lg    { min-height: 56px; padding: 0 28px; font-size: 16px; }
.dw-btn--block { display: flex; width: 100%; }

.dw-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-ink);
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.dw-icon-btn:hover  { background: var(--clr-primary-soft-50); }
.dw-icon-btn:active { transform: scale(.94); }

.dw-chip-arrow {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--clr-primary-soft-100);
  color: var(--clr-primary-dark);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}


/* ========== ANNOUNCEMENT BAR ========== */
.dw-ann {
  background: var(--clr-primary-soft-100);
  color: var(--clr-primary-deep);
  font-size: 13px;
  line-height: 1.3;
}
html.dw-ann-off .dw-ann { display: none; }

.dw-ann__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.dw-ann__tag {
  flex: none;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--clr-primary);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.dw-ann__text {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}
.dw-ann__text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dw-ann__text svg { flex: none; transition: transform var(--dur-2) var(--ease-out); }
a.dw-ann__text:hover span { text-decoration: underline; text-underline-offset: 3px; }
a.dw-ann__text:hover svg  { transform: translateX(3px); }

.dw-ann__close {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.dw-ann__close[hidden] { display: none; }
.dw-ann__close:hover   { background: var(--clr-primary-soft-200); }

@media (min-width: 992px) {
  .dw-ann__inner { min-height: 32px; }
  .dw-ann__close { width: 28px; height: 28px; }
}

@media (min-width: 768px) {
  .dw-ann__inner { justify-content: center; }
  .dw-ann__text  { flex: 0 1 auto; }
  .dw-ann__close { margin-left: auto; }
  .dw-ann__inner::before { content: ""; width: 32px; flex: none; margin-right: auto; } /* keeps the text optically centred */
}


/* ========== INFO TOP BAR (hours · address · phone) ========== */
/* Scrolls away; never wraps. Text links turn primary with a thin underline,
   icons stay in the accent blue. Each link's ::before stretches the tap target
   to at least 44px tall without making the bar taller. */
.dw-topbar {
  border-bottom: 1px solid var(--c-line);
  background: var(--c-white);
  color: var(--c-ink-2);
  font-size: 13px;
  line-height: 1;
}

.dw-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 35px; /* + 1px border = 36px */
  white-space: nowrap;
}

.dw-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.dw-topbar__item svg { flex: none; color: var(--clr-accent-blue); }
.dw-topbar__item > span { overflow: hidden; text-overflow: ellipsis; }

.dw-topbar__hours { display: none; }

.dw-topbar__links {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--s-4);
  height: 100%;
  min-width: 0;
}

.dw-topbar__link {
  position: relative;
  height: 100%;
  padding: 0 2px;
  border-radius: 6px;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}
.dw-topbar__link::before { content: ""; position: absolute; inset: -5px -6px; } /* 35 + 10 = 45px tap target */
.dw-topbar__link:hover,
.dw-topbar__link:focus-visible {
  color: var(--clr-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.dw-topbar__link:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 2px; }

/* Which label each width shows: short (Map / WhatsApp) → mid → long. */
.dw-topbar__long,
.dw-topbar__mid { display: none; }

@media (min-width: 576px) {
  .dw-topbar__inner { height: 39px; } /* + 1px border = 40px */
  .dw-topbar__mid   { display: inline; }
  .dw-topbar__short { display: none; }
  .dw-topbar__link::before { inset: -3px -6px; } /* 39 + 6 = 45px */
}

@media (min-width: 992px) {
  .dw-topbar__inner { justify-content: space-between; }
  .dw-topbar__hours { display: inline-flex; }
  .dw-topbar__links { gap: var(--s-3); }
  .dw-topbar__mid:not(.dw-topbar__long) { display: none; }
  .dw-topbar__long  { display: inline; }
}


/* ========== STICKY SITE HEADER ========== */
.dw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 253, 253, .9);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.dw-header.is-stuck {
  border-bottom-color: var(--c-line);
  box-shadow: var(--sh-1);
}

.dw-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  height: var(--dw-header-h);
}

.dw-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  border-radius: 8px;
}
.dw-logo img {
  display: block;
  width: auto;
  height: 36px;
}

.dw-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.dw-header__cta { display: none; }

.dw-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px 0 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.dw-menu-btn:hover  { border-color: var(--clr-primary-soft-200); color: var(--c-ink); }
.dw-menu-btn:active { transform: scale(.96); }

.dw-menu-btn__icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--c-white);
}

/* Desktop pill nav */
.dw-pillnav { display: none; }

.dw-pillnav__list {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--clr-primary-soft-50);
}

.dw-pillnav__link {
  display: block;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  color: var(--c-ink-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.dw-pillnav__link:hover { background: rgba(255, 255, 255, .7); color: var(--clr-primary-dark); }
.dw-pillnav__link.is-active {
  background: var(--c-white);
  color: var(--clr-primary-dark);
  font-weight: 600;
  box-shadow: var(--sh-1);
}

@media (min-width: 640px) {
  .dw-header__cta { display: inline-flex; }
}

@media (min-width: 768px) {
  .dw-logo img { height: 40px; }
}

/* Desktop navigation (pill nav + Services mega menu) from 992px; below that
   the full-screen menu, where Services is a plain row. */
@media (min-width: 992px) {
  .dw-pillnav { display: block; margin-inline: auto; }
  .dw-header__actions { margin-left: 0; }
  .dw-menu-btn { display: none; }
}

@media (min-width: 992px) and (max-width: 1179px) {
  .dw-header__inner { gap: 12px; }
  .dw-pillnav__link { padding-inline: 12px; font-size: 14px; }
  .dw-header__cta { padding-inline: 18px; }
}


/* ========== DESKTOP HEADER: FLOATING OVER THE HERO, WHITE WHEN SCROLLED ========== */
/* The anchor is invisible to layout by default (the header stays a sticky
   bar); on desktop photo-hero pages it becomes a zero-height positioned box
   right under the two bars, so the header floats over the hero from there. */
.dw-header-anchor { display: contents; }
.dw-logo { position: relative; }
.dw-logo__light { display: none; }

@media (min-width: 992px) {
  /* Light pill + primary CTA: solid pages, and the scrolled state everywhere. */
  .dw-pillnav__list {
    padding: 4px;
    border-color: transparent;
    background: rgba(15, 42, 46, .06);
  }
  .dw-pillnav__link {
    padding: 8px 16px;
    color: var(--c-ink);
    font-size: 13.5px;
    font-weight: 500;
  }
  .dw-pillnav__link:hover { background: rgba(15, 42, 46, .07); color: var(--c-ink); }
  .dw-pillnav__link.is-active {
    background: var(--clr-primary);
    color: var(--c-white);
    font-weight: 600;
    box-shadow: none;
  }
  .dw-header__cta { min-height: 40px; padding: 0 18px; font-size: 13.5px; }

  /* ---- Floating over the hero ---- */
  .dw-nav-overlay .dw-header-anchor {
    position: relative;
    z-index: 100;
    display: block;
    height: 0;
  }
  .dw-nav-overlay .dw-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    border-bottom-color: transparent;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Items sit inside the hero card's rounded corners (same in both states: no jump). */
  .dw-nav-overlay .dw-header__inner { padding-inline: calc(var(--gutter) + 28px); } /* refined in HERO SHELL below */

  /* White bar of the scrolled state: faded in, never animating layout. */
  .dw-nav-overlay .dw-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(251, 253, 253, .97);
    box-shadow: 0 6px 24px rgba(1, 28, 46, .10);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  /* Dark glass pill. The blur is drawn by the header's ::after, sized to the
     pill by main.js: a backdrop-filter on the pill itself would become the
     positioning box of the mega panel nested inside it and squeeze it. */
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-pillnav__list {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(10, 25, 35, .62); /* no-JS fallback: a touch darker, no blur */
  }
  .dw-nav-overlay .dw-header.has-glass:not(.is-scrolled) .dw-pillnav__list {
    border-color: transparent;
    background: transparent;
  }
  .dw-nav-overlay .dw-header.has-glass::after {
    content: "";
    position: absolute;
    top: var(--pill-y, 0);
    left: var(--pill-x, 0);
    z-index: -1;
    width: var(--pill-w, 0);
    height: var(--pill-h, 0);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(10, 25, 35, .55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-sizing: border-box;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .dw-nav-overlay .dw-header.has-glass.is-scrolled::after { opacity: 0; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-pillnav__link { color: var(--c-white); }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-pillnav__link:hover { background: rgba(255, 255, 255, .14); color: var(--c-white); }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-pillnav__link.is-active { background: var(--clr-primary); color: var(--c-white); }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-header__cta { background: var(--c-white); color: var(--c-ink); }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-header__cta:hover { background: var(--clr-primary-soft-50); color: var(--c-ink); }

  /* Logo crossfade: white over the hero, coloured once scrolled. */
  .dw-nav-overlay .dw-logo__light {
    position: absolute;
    top: 50%;
    left: 0;
    display: block;
    transform: translateY(-50%);
    transition: opacity .2s ease;
  }
  .dw-nav-overlay .dw-logo__light img { display: block; width: auto; height: 40px; }
  .dw-nav-overlay .dw-logo__dark { transition: opacity .2s ease; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-logo__dark  { opacity: 0; }
  .dw-nav-overlay .dw-header.is-scrolled .dw-logo__light       { opacity: 0; }

  /* ---- Scrolled more than 40px: fixed white bar sliding in ---- */
  .dw-nav-overlay .dw-header.is-scrolled {
    position: fixed;
    animation: dw-nav-in .2s ease both;
  }
  .dw-nav-overlay .dw-header.is-scrolled::before { opacity: 1; }
  @keyframes dw-nav-in {
    from { opacity: .6; transform: translateY(-100%); }
  }

  /* The hero starts right under the bars and keeps the header's height free. */
  .dw-nav-overlay .dw-hero,
  .dw-nav-overlay .dw-ph { padding-top: 0; }
  .dw-nav-overlay .dw-hero__card,
  .dw-nav-overlay .dw-ph__card { padding-top: var(--dw-header-h); }
}

@media (min-width: 1024px) {
  /* 72px = announcement + top bar above the hero; 16px breathing room below. */
  .dw-nav-overlay .dw-hero__card {
    min-height: clamp(500px, calc(100vh - 72px - 16px), 720px);
    min-height: clamp(500px, calc(100svh - 72px - 16px), 720px);
  }
}

@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  .dw-nav-overlay .dw-header.is-scrolled { animation: none; }
  .dw-nav-overlay .dw-header::before,
  .dw-nav-overlay .dw-logo__light,
  .dw-nav-overlay .dw-logo__dark { transition: none; }
}


/* ========== SERVICES MEGA MENU (desktop, ≥992px) ========== */
.dw-pillnav__link { display: inline-flex; align-items: center; gap: 4px; }
.dw-nav-mega__chev { display: inline-flex; transition: transform var(--dur-2) var(--ease-out); }

/* Invisible hover bridge from the Services link down to the open panel, so a
   slow mouse crossing the strip between them never counts as leaving. */
.dw-pillnav__link.has-mega { position: relative; }
.dw-pillnav__link.has-mega::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -48px;
  left: -48px;
  height: 34px;
  pointer-events: none;
}
.dw-pillnav__link.has-mega[aria-expanded="true"]::after { pointer-events: auto; }
.dw-nav-mega [aria-expanded="true"] .dw-nav-mega__chev { transform: rotate(180deg); }

/* Absolutely placed against the sticky header (the nav items are static),
   so the panel spans the header width under the pill nav. */
.dw-mega {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 99;
  padding-top: 8px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}
.dw-mega.is-open,
html:not(.js) .dw-nav-mega:hover .dw-mega,
html:not(.js) .dw-nav-mega:focus-within .dw-mega {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
/* Only the visible panel takes the pointer, so the wrapper's transparent
   gutters count as "outside" and hover intent can close the menu. */
.dw-mega.is-open .dw-mega__panel,
html:not(.js) .dw-nav-mega:hover .dw-mega__panel { pointer-events: auto; }

.dw-mega__panel {
  display: grid;
  grid-template-areas: "groups side" "strip strip";
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 14px 22px;
  max-height: calc(100vh - var(--dw-header-h) - 60px);
  overflow: auto;
  padding: 18px 20px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-24);
  background: var(--c-white);
  box-shadow: var(--sh-3);
}

.dw-mega__groups {
  display: grid;
  grid-area: groups;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dw-mega__title {
  margin: 0 0 8px;
  padding: 0 8px 8px;
  border-bottom: 1px solid var(--c-line);
  color: var(--clr-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dw-mega__list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }

.dw-mega__link {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px 6px;
  border-radius: 12px;
  color: var(--c-ink);
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-out);
}
.dw-mega__link:hover,
.dw-mega__link:focus-visible { background: var(--clr-primary-soft-50); color: var(--c-ink); }

.dw-mega__icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--clr-primary-soft-100);
  color: var(--clr-primary);
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.dw-mega__link:hover .dw-mega__icon,
.dw-mega__link:focus-visible .dw-mega__icon { background: var(--clr-primary); color: var(--c-white); }

.dw-mega__text { display: grid; gap: 1px; min-width: 0; }
.dw-mega__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.dw-mega__desc { overflow: hidden; color: var(--c-ink-soft); font-size: 12.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

.dw-mega__side { display: grid; grid-area: side; align-content: start; gap: 12px; }

.dw-mega__promo {
  overflow: hidden;
  border: 1px solid var(--clr-primary-soft-200);
  border-radius: var(--r-16);
  background: var(--clr-primary-soft-50);
}
.dw-mega__promo img { display: block; width: 100%; height: 84px; object-fit: cover; }
.dw-mega__promo-body { display: grid; justify-items: start; gap: 6px; padding: 12px 14px 14px; }
.dw-mega__promo-title { margin: 0; color: var(--c-ink); font-size: 15px; font-weight: 700; }
.dw-mega__promo-text  { margin: 0; color: var(--c-ink-soft); font-size: 13px; line-height: 1.45; }
.dw-mega__promo-btn   { min-height: 40px; margin-top: 4px; padding: 0 16px; font-size: 14px; }

.dw-mega__emergency {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-16);
  background: var(--clr-brand-navy);
  color: var(--c-white);
}
.dw-mega__emergency-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--clr-primary-soft-300);
}
.dw-mega__emergency-text { display: grid; gap: 1px; min-width: 0; }
.dw-mega__emergency-text span { color: rgba(255, 255, 255, .82); font-size: 12px; }
.dw-mega__emergency-text a {
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap; /* phone number always on one line */
}
.dw-mega__emergency-text a:hover { text-decoration: underline; text-underline-offset: 3px; }

.dw-mega__strip {
  display: flex;
  flex-wrap: wrap;
  grid-area: strip;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 12px 8px 0;
  border-top: 1px solid var(--c-line);
}
.dw-mega__strip .dw-link-arrow { font-size: 15px; }
.dw-mega__note { color: var(--c-ink-soft); font-size: 13px; }

@media (max-width: 991px) {
  .dw-mega { display: none; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .dw-mega__panel { grid-template-columns: minmax(0, 1fr) 210px; gap: 14px 20px; padding: 18px 18px 12px; }
  .dw-mega__groups { gap: 10px; }
  .dw-mega__desc,
  .dw-mega__promo img { display: none; }
}


/* ========== FULL-SCREEN MOBILE MENU ========== */
.dw-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--c-bg);
  color: var(--c-ink);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.dw-menu::backdrop { background: transparent; }
.dw-menu.is-open { opacity: 1; transform: none; }

.dw-menu__panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.dw-menu__top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: var(--dw-header-h);
  border-bottom: 1px solid var(--c-line);
}

.dw-menu__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s-4);
  padding-block: var(--s-2) var(--s-4);
}

.dw-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dw-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 68px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  font-size: clamp(22px, 6.4vw, 28px);
  font-weight: 600;
  letter-spacing: -.015em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.dw-menu__row:hover .dw-chip-arrow { transform: translateX(4px); }
.dw-menu__row:active { color: var(--clr-primary-dark); }
.dw-menu__row.is-active { color: var(--clr-primary); }
.dw-menu__row.is-active .dw-chip-arrow { background: var(--clr-primary); color: var(--c-white); }

.dw-menu__foot {
  display: grid;
  gap: var(--s-3);
  margin-top: auto;
}

.dw-menu__contact {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
  color: var(--c-ink-2);
}
.dw-menu__contact li { display: flex; align-items: flex-start; gap: 12px; }
.dw-menu__contact a  { color: inherit; text-decoration: none; }
.dw-menu__contact a:hover { color: var(--clr-primary-dark); text-decoration: underline; text-underline-offset: 3px; }

.dw-menu__contact-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--clr-primary-soft-100);
  color: var(--clr-primary-dark);
}

/* Rows and footer rise in with an 80ms stagger once the dialog is open. */
.dw-menu__list li,
.dw-menu__foot {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.dw-menu.is-open .dw-menu__list li,
.dw-menu.is-open .dw-menu__foot {
  opacity: 1;
  transform: none;
  transition-delay: calc(60ms + var(--i, 0) * var(--stagger));
}

@media (min-width: 768px) {
  .dw-menu__body { max-width: 640px; padding-top: var(--s-4); }
}


/* ========== INNER PAGE HERO (includes/page-hero.php) ========== */
.dw-ph { padding-top: 12px; }

.dw-ph__card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(240px, 32vh, 340px);
  overflow: hidden;
  border-radius: var(--r-24);
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, #015a85 100%); /* logo teal -> logo blue, AA-dark shades */
  color: var(--c-white);
}

.dw-ph__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay: darkest where the text sits (bottom on phones, left on desktop). */
.dw-ph__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 50, 68, .64) 0%, rgba(1, 50, 68, .76) 50%, rgba(1, 28, 46, .9) 100%);
}
.dw-ph--plain .dw-ph__overlay {
  background: radial-gradient(120% 90% at 100% 0%, rgba(118, 206, 201, .12) 0%, rgba(118, 206, 201, 0) 60%);
}

.dw-ph__body {
  width: 100%;
  max-width: 820px;
  padding: var(--s-3) 20px 28px;
  box-sizing: border-box;
}

.dw-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin: 0 0 var(--s-2);
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: rgba(255, 255, 255, .88);
}
.dw-crumbs li       { display: inline-flex; align-items: center; gap: 6px; }
.dw-crumbs svg      { opacity: .7; }
.dw-crumbs a        { color: var(--c-white); text-decoration: none; }
.dw-crumbs a:hover  { text-decoration: underline; text-underline-offset: 3px; }
.dw-crumbs [aria-current] { color: rgba(255, 255, 255, .88); }

.dw-ph .dw-eyebrow { margin-bottom: 12px; }

.dw-ph__title {
  text-shadow: 0 1px 18px rgba(0, 0, 0, .18);
  overflow-wrap: anywhere;
}

.dw-ph__sub {
  margin: 12px 0 0;
  max-width: 60ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}

.dw-ph__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--s-2) 0 0;
  padding: 0;
  list-style: none;
}
.dw-ph__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--r-pill);
  background: rgba(1, 28, 46, .45);
  font-size: 13px;
  color: var(--c-white);
}

.dw-ph__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--s-3);
}

@media (min-width: 768px) {
  .dw-ph { padding-top: 20px; }
  .dw-ph__card { border-radius: var(--r-32); }
  .dw-ph__body { padding: var(--s-5) var(--s-6) var(--s-6); }
  .dw-ph__overlay {
    background: linear-gradient(90deg, rgba(1, 28, 46, .88) 0%, rgba(1, 50, 68, .74) 55%, rgba(1, 50, 68, .45) 100%);
  }
}


/* ========== SHARED BITS: ARROW LINK, STARS, SLIDER & DOTS ========== */
.dw-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-ink);
  font-weight: 600;
  text-decoration: none;
}
.dw-link-arrow:hover { color: var(--clr-primary-dark); }
.dw-link-arrow:hover .dw-chip-arrow { transform: translateX(4px); background: var(--clr-primary); color: var(--c-white); }

.dw-stars { display: inline-flex; gap: 2px; color: var(--c-gold); }

/* Scroll-snap track: swipe works without JS, main.js adds dots and arrows. */
.dw-slider__track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: var(--s-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--r-24);
}
.dw-slider__track::-webkit-scrollbar { display: none; }
.dw-slider__track > * { scroll-snap-align: start; }

.dw-dots {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.dw-dots[hidden] { display: none; }

.dw-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dw-dot::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--clr-primary-soft-200);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.dw-dot[aria-current="true"]::before {
  background: var(--clr-primary);
  transform: scale(1.35);
}


/* ========== HOME HERO ========== */
.dw-hero { padding-top: 12px; }

.dw-hero__card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  /* Leaves room for the announcement + top bars above and the mobile bottom bar below. */
  min-height: clamp(500px, calc(100vh - var(--dw-header-h) - 176px), 760px);
  min-height: clamp(500px, calc(100svh - var(--dw-header-h) - 176px), 760px);
  overflow: hidden;
  border-radius: var(--r-32);
  background: var(--clr-primary-deep);
  color: var(--c-white);
}

/* The photo and overlay are absolutely placed; text and cards are pinned to
   explicit cells so nothing else (e.g. the <picture> wrapper) can shift them. */
.dw-hero__card > picture { display: contents; }
.dw-hero__body  { grid-row: 1; grid-column: 1; }
.dw-hero__cards { grid-row: 2; grid-column: 1; }

.dw-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dw-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 28, 46, .5) 0%, rgba(1, 28, 46, .74) 30%, rgba(1, 28, 46, .92) 100%);
}

.dw-hero__body {
  width: 100%;
  max-width: 700px;
  padding: var(--s-3) 20px;
  box-sizing: border-box;
}

/* Load-in: soft fade-up with an 80ms stagger. CSS only, so no JS is needed to see it. */
.dw-hero__body > * {
  animation: dw-rise .8s var(--ease-out) both;
  animation-delay: calc(80ms + var(--i, 0) * var(--stagger));
}
@keyframes dw-rise {
  from { opacity: 0; transform: translateY(16px); }
}

/* Floating glass cards: a staggered stack on the right (desktop), a compact
   2-column grid under the text (mobile). Dark glass keeps text AA on any photo. */
.dw-hero__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 20px 20px;
}

.dw-fcard {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-16);
  background: rgba(1, 28, 46, .55);
  color: var(--c-white);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(1, 20, 34, .25);
  animation: dw-rise .8s var(--ease-out) both;
  animation-delay: calc(400ms + var(--i, 0) * var(--stagger));
}

.dw-fcard__text  { display: grid; gap: 1px; min-width: 0; }
.dw-fcard__num   { font-size: 20px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.dw-fcard__name  { overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.dw-fcard__label { overflow: hidden; color: rgba(255, 255, 255, .86); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; }
.dw-fcard__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--c-white);
  font-size: 11.5px;
  font-weight: 600;
}
.dw-fcard__badge svg { color: var(--clr-primary-soft-300); }
.dw-fcard__rating { display: flex; align-items: center; gap: 6px; font-size: 20px; }

.dw-fcard__avatar,
.dw-fcard__icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: var(--clr-primary-soft-300);
  font-size: 14px;
  font-weight: 700;
}
.dw-fcard__avatar { border: 2px solid rgba(255, 255, 255, .5); }
.dw-fcard__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.dw-avatars { display: flex; flex: none; }
.dw-avatars > * {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border: 2px solid var(--clr-brand-navy);
  border-radius: 50%;
  background: var(--clr-primary-soft-100);
  color: var(--clr-primary-deep);
  font-size: 10px;
  font-weight: 700;
  object-fit: cover;
  object-position: center top;
}
.dw-avatars > :first-child { margin-left: 0; }
.dw-avatars > :nth-child(2) { background: var(--clr-primary-soft-200); }
.dw-avatars > :nth-child(3) { background: var(--clr-primary-soft-300); }

/* Phones: the doctor card spans both columns so name and specialty stay readable. */
.dw-fcard--lead { grid-column: 1 / -1; }

@media (min-width: 1024px) {
  .dw-hero__cards {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    padding: var(--s-4) 40px var(--s-4) 0;
  }
  /* Largest on top, each smaller and nudged left, so the stack reads as staggered. */
  .dw-fcard { width: var(--w); margin-right: var(--off); padding: 12px 14px; }
  .dw-fcard:nth-child(1) { --w: 292px; --off: 0px; }
  .dw-fcard:nth-child(2) { --w: 256px; --off: 36px; }
  .dw-fcard:nth-child(3) { --w: 228px; --off: 12px; }
  .dw-fcard:nth-child(4) { --w: 240px; --off: 52px; }
  .dw-fcard__num { font-size: 22px; }
  .dw-fcard--lead .dw-fcard__avatar { width: 48px; height: 48px; }

  /* Gentle float: 6px over 6s, each card out of step with the next. */
  .dw-fcard {
    animation: dw-rise .8s var(--ease-out) both, dw-float 6s ease-in-out infinite;
    animation-delay: calc(400ms + var(--i, 0) * var(--stagger)), calc(var(--i, 0) * -1.5s);
  }
}
@keyframes dw-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Open / closed status block */
.dw-status {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 10px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-16);
  background: rgba(1, 28, 46, .45); /* dark glass: AA even where the photo is bright */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.dw-status__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fca5a5;
}
.dw-status.is-open .dw-status__dot { background: #5fe3da; } /* bright logo teal */
.dw-status.is-open .dw-status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: dw-pulse 2s var(--ease-out) infinite;
}
@keyframes dw-pulse {
  from { opacity: .7; transform: scale(1); }
  to   { opacity: 0;  transform: scale(2.6); }
}

.dw-status__text { font-size: 15px; line-height: 1.35; }
.dw-status__text strong { font-weight: 700; }
.dw-status__text span { color: rgba(255, 255, 255, .88); }
.dw-status__text span::before { content: " · "; }

.dw-status__hours {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .85);
}
.dw-status__hours svg { flex: none; margin-top: 2px; }

.dw-hero__title {
  margin: 20px 0 0;
  font-size: clamp(38px, 10vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--c-white);
  text-wrap: balance;
}
.dw-hero__title span { display: block; color: var(--clr-primary-soft-300); }

.dw-hero__lead {
  margin: 16px 0 0;
  max-width: 52ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
}

.dw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: var(--s-3);
}
.dw-hero__actions .dw-btn { flex: 1 1 100%; }

.dw-review-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  background: rgba(1, 28, 46, .45);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.dw-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: var(--s-3) 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  list-style: none;
}
.dw-hero__stats li { display: grid; gap: 2px; }

.dw-hero__stat-num {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.dw-hero__stat-label {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .82);
}

@media (min-width: 640px) {
  .dw-hero__actions .dw-btn { flex: 0 0 auto; }
}

@media (min-width: 768px) {
  .dw-hero { padding-top: 20px; }
  .dw-hero__body { padding: var(--s-6); }
  .dw-hero__stats { display: flex; gap: 0; }
  .dw-hero__stats li { padding-inline: 28px; border-left: 1px solid rgba(255, 255, 255, .2); }
  .dw-hero__stats li:first-child { padding-left: 0; border-left: 0; }
  .dw-hero__stat-label { font-size: 13px; }
}

@media (min-width: 1024px) {
  /* Text and the floating cards sit in separate grid columns: they can never overlap. */
  .dw-hero__card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    /* 72px = 32px announcement + 40px top bar; 36px = the gaps above and below. */
    min-height: clamp(480px, calc(100svh - var(--dw-header-h) - 72px - 36px), 720px);
  }
  .dw-hero__overlay {
    background: linear-gradient(90deg, rgba(1, 28, 46, .9) 0%, rgba(1, 28, 46, .72) 42%, rgba(1, 28, 46, .18) 100%);
  }
  .dw-hero { padding-top: 12px; }
  .dw-hero__body { max-width: 680px; padding: 28px 56px; }
  .dw-hero__title { margin-top: 16px; font-size: clamp(38px, 4vw, 56px); }
  .dw-hero__lead { margin-top: 12px; }
  .dw-hero__actions { margin-top: 20px; }
  .dw-hero__stats { margin-top: 20px; padding-top: 16px; }
}


/* ========== SPECIALTIES MARQUEE ========== */
.dw-marquee {
  padding-block: 20px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.dw-marquee__track {
  display: flex;
  width: max-content;
  animation: dw-marquee var(--marquee-dur, 60s) linear infinite;
}
.dw-marquee:hover .dw-marquee__track,
.dw-marquee:focus-within .dw-marquee__track { animation-play-state: paused; }

@keyframes dw-marquee {
  to { transform: translateX(-50%); }
}

.dw-marquee__list {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 12px 0 0;
  list-style: none;
}

.dw-marquee__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--clr-primary-soft-200);
  border-radius: var(--r-pill);
  background: var(--clr-primary-soft-50);
  color: var(--clr-primary-deep);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out);
}
.dw-marquee__chip svg   { color: var(--clr-brand-teal); }
.dw-marquee__chip:hover { background: var(--clr-primary-soft-100); color: var(--clr-primary-deep); }


/* ========== HOME ABOUT: INTRO, VISION / MISSION SLIDER, GALLERY ========== */
.dw-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}
.dw-about__grid > * { min-width: 0; } /* the slider track must not widen its column */

.dw-about__intro .section-title { margin-top: var(--s-2); }
.dw-about__intro .dw-link-arrow { margin-top: var(--s-3); }

.dw-about__slide {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 210px;
  padding: 28px 24px;
  border: 1px solid var(--clr-primary-soft-200);
  border-radius: var(--r-24);
  background: var(--clr-primary-soft-50);
  box-sizing: border-box;
}

.dw-about__slide-label {
  color: var(--clr-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dw-about__slide-title {
  margin: 0;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.dw-about__slide-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink-2);
}

.dw-gallery {
  display: grid;
  grid-auto-rows: 140px;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
}
.dw-gallery__item:first-child { grid-column: 1 / -1; grid-row: span 2; }

.dw-gallery figure {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-16);
  background: var(--clr-primary-soft-100);
}

.dw-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.dw-gallery figure:hover img { transform: scale(1.04); }

.dw-gallery__chip {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 600;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dw-gallery__chip svg  { flex: none; color: var(--clr-primary); }
.dw-gallery__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Half-width phone tiles: drop the icon so the full label fits. */
@media (max-width: 767px) {
  .dw-gallery__item:not(:first-child) .dw-gallery__chip { bottom: 8px; left: 8px; max-width: calc(100% - 16px); padding: 5px 10px; font-size: 12px; }
  .dw-gallery__item:not(:first-child) .dw-gallery__chip svg { display: none; }
}

@media (min-width: 768px) {
  .dw-gallery {
    grid-auto-rows: clamp(150px, 17vw, 220px);
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-2);
    margin-top: var(--s-8);
  }
  .dw-gallery__item:first-child { grid-column: span 2; }
  .dw-gallery figure { border-radius: var(--r-24); }
  .dw-gallery__chip { bottom: 14px; left: 14px; padding: 8px 14px; }
  .dw-about__slide { padding: 36px 32px; }
}

@media (min-width: 1024px) {
  .dw-about__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--s-8); }
}


/* ========== CHIPS ========== */
.dw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dw-chip--mint  { background: var(--clr-primary-soft-100); color: var(--clr-primary-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
.dw-chip--glass { background: rgba(1, 28, 46, .6); color: var(--c-white); }


/* ========== CAROUSELS (head + arrows + swipe track) ========== */
.dw-carousel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  margin-bottom: var(--s-4);
}
.dw-carousel__heading .section-title { margin-top: var(--s-2); }

.dw-carousel__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dw-carousel__all { margin-right: 8px; }
.dw-carousel__nav .dw-icon-btn[hidden] { display: none; }

.dw-icon-btn:disabled {
  opacity: .4;
  cursor: default;
  transform: none;
}

/* The track bleeds into the page gutter so cards peek at the screen edge,
   while scroll-padding snaps the first card flush with the content edge. */
.dw-carousel__track {
  --gap: var(--s-2);
  --per: 1.2;
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  gap: var(--gap);
  margin: 0 calc(var(--gutter) * -1) -24px;
  padding: 4px var(--gutter) 24px;
  scroll-padding-inline: var(--gutter);
  list-style: none;
  border-radius: 0;
}
.dw-carousel__track > li { min-width: 0; }

.dw-carousel__track--3 { --per: 1.25; }

@media (min-width: 640px) {
  .dw-carousel__track    { --per: 2.2; }
  .dw-carousel__track--3 { --per: 2.2; }
}
@media (min-width: 1024px) {
  .dw-carousel__track    { --gap: var(--s-3); --per: 3.3; }
  .dw-carousel__track--3 { --per: 3; }
}
@media (min-width: 1200px) {
  .dw-carousel__track--4 { --per: 4; }
}


/* ========== TREATMENT CARD ========== */
.dw-tcard__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-24);
  background: var(--c-white);
  color: var(--c-ink);
  text-decoration: none;
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.dw-tcard__link:hover  { transform: translateY(-4px); box-shadow: var(--sh-2); color: var(--c-ink); }
.dw-tcard__link:active { transform: scale(.98); }

.dw-tcard__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--clr-primary-soft-100);
}
.dw-tcard__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.dw-tcard__link:hover .dw-tcard__media img { transform: scale(1.05); }

/* No real photo yet: a drawn mint panel with the service's own icon. */
.dw-tcard__media--drawn,
.dw-bcard__media:has(.dw-tcard__icon) {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--clr-primary-soft-100) 0%, var(--clr-primary-soft-200) 100%);
}
.dw-tcard__icon { color: var(--clr-primary); opacity: .85; }

.dw-tcard__chips {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dw-tcard__go {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--clr-primary-dark);
  box-shadow: var(--sh-2);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.dw-tcard__link:hover .dw-tcard__go { background: var(--clr-primary); color: var(--c-white); transform: rotate(-45deg); }

.dw-tcard__body {
  display: grid;
  gap: 4px;
  padding: 18px 20px 22px;
}

.dw-tcard__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.dw-tcard__sub {
  color: var(--clr-primary);
  font-size: 14px;
  font-weight: 500;
}


/* ========== TEAM CARD (tall photo, bottom gradient, glass pill) ========== */
.dw-dcard {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-24);
  background: linear-gradient(160deg, var(--clr-primary-soft-100), var(--clr-primary-soft-200));
}

.dw-dcard__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .8s var(--ease-out);
}
.dw-dcard:hover .dw-dcard__img { transform: scale(1.04); }

.dw-dcard__initials {
  position: absolute;
  inset: 0 0 35%;
  z-index: -2;
  display: grid;
  place-items: center;
  color: var(--clr-primary-dark);
  font-size: 72px;
  font-weight: 300;
}

.dw-dcard__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 28, 46, 0) 36%, rgba(1, 28, 46, .62) 60%, rgba(1, 28, 46, .92) 100%);
}

/* Static on purpose: the pill's ::after must resolve against .dw-dcard. */
.dw-dcard__body {
  width: 100%;
  padding: 20px;
  color: var(--c-white);
}

.dw-dcard__name {
  margin: 0;
  color: var(--c-white);
  font-size: clamp(20px, 5vw, 22px);
  font-weight: 700;
  line-height: 1.2;
}

.dw-dcard__role {
  margin: 4px 0 14px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.4;
}

.dw-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .16);
  color: var(--c-white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color var(--dur-2) var(--ease-out);
}
.dw-glass-pill::after { content: ""; position: absolute; inset: 0; } /* whole card is the tap target */
.dw-glass-pill svg { transition: transform var(--dur-2) var(--ease-out); }
.dw-dcard:hover .dw-glass-pill { background: rgba(255, 255, 255, .26); color: var(--c-white); }
.dw-dcard:hover .dw-glass-pill svg { transform: translateX(3px); }
.dw-glass-pill:focus-visible { outline-offset: 3px; }


/* ========== BLOG CARD ========== */
.dw-bcard__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-24);
  background: var(--c-white);
  color: var(--c-ink);
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.dw-bcard__link:hover  { transform: translateY(-4px); box-shadow: var(--sh-2); color: var(--c-ink); }
.dw-bcard__link:active { transform: scale(.98); }

.dw-bcard__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--clr-primary-soft-100);
}
.dw-bcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; } /* covers print their title on the left */

.dw-bcard__time { position: absolute; top: 12px; left: 12px; }

.dw-bcard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}

.dw-bcard__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.dw-bcard__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--c-ink-soft);
  font-size: 15px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dw-bcard__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.dw-bcard__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clr-primary-dark);
  font-size: 14px;
  font-weight: 600;
}
.dw-bcard__more svg { transition: transform var(--dur-2) var(--ease-out); }
.dw-bcard__link:hover .dw-bcard__more svg { transform: translateX(3px); }


/* ========== FILTER CHIPS & TABS ========== */
.dw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-3);
}
.dw-chips[hidden],
.dw-tabs[hidden] { display: none; }

.dw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s-3);
}

.dw-filter-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-ink-2);
  font: 600 14px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.dw-filter-chip:hover { border-color: var(--clr-primary-soft-300); color: var(--clr-primary-dark); }
.dw-filter-chip:active { transform: scale(.96); }
.dw-filter-chip[aria-pressed="true"],
.dw-filter-chip[aria-selected="true"] {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: var(--c-white);
}


/* ========== RESULTS: BEFORE / AFTER + STAT CARDS ========== */
.dw-results__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
}

.dw-results__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}

/* Stat cards in the three logo colours: teal, blue, navy (white text ≥4.8:1). */
.dw-stat-card {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px;
  border-radius: var(--r-16);
  background: var(--clr-primary);
  color: var(--c-white);
}
.dw-stat-card:nth-child(2) { background: var(--clr-accent-blue); }
.dw-stat-card:nth-child(3) { background: var(--clr-brand-navy); }
.dw-stat-card__num   { font-size: clamp(22px, 5vw, 28px); font-weight: 700; line-height: 1.1; }
.dw-stat-card__label { color: var(--c-white); font-size: 13px; line-height: 1.35; }

.dw-chip--sample {
  border: 1px dashed var(--clr-primary);
  background: var(--c-white);
  color: var(--clr-primary-deep);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.dw-results__intro .dw-chip--sample { margin-left: 8px; vertical-align: middle; }

.dw-ba__stage {
  position: relative;
  aspect-ratio: 3 / 2; /* matches the 1200x800 case photos */
  overflow: hidden;
  border-radius: var(--r-24);
  background: var(--clr-primary-soft-100);
  touch-action: pan-y;
}
.dw-ba__stage:has(.dw-ba__range:focus-visible) { outline: 3px solid var(--clr-brand-teal); outline-offset: 3px; }

.dw-ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}
.dw-ba__img--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }

.dw-ba__tag { position: absolute; top: 14px; z-index: 2; pointer-events: none; }
.dw-ba__sample { position: absolute; top: 14px; left: 50%; z-index: 2; transform: translateX(-50%); pointer-events: none; }
.dw-ba__label  { position: absolute; bottom: 14px; left: 14px; z-index: 2; max-width: calc(50% - 20px); pointer-events: none; }
.dw-ba__hint   { position: absolute; right: 14px; bottom: 14px; z-index: 2; gap: 2px; pointer-events: none; }

/* Placeholder tile: shown instead of the photos while a case has no image. */
.dw-ba__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--clr-primary-soft-100), var(--clr-primary-soft-200));
  color: var(--clr-primary);
}
.dw-ba__placeholder span { color: var(--clr-primary-deep); font-size: 15px; font-weight: 600; }
.dw-ba__stage.is-empty .dw-ba__placeholder { display: grid; }
.dw-ba__stage.is-empty :is(.dw-ba__img, .dw-ba__handle, .dw-ba__range, .dw-ba__hint, .dw-ba__tag) { display: none; }
.dw-ba__tag--before { left: 14px; }
.dw-ba__tag--after  { right: 14px; }

.dw-ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 2;
  width: 2px;
  background: var(--c-white);
  transform: translateX(-50%);
  pointer-events: none;
}
.dw-ba__handle > span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--clr-primary-dark);
  box-shadow: var(--sh-2);
  transform: translate(-50%, -50%);
}

/* The native range covers the whole photo: drag anywhere, arrow keys work. */
.dw-ba__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.dw-ba__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 14px 0 0;
  font-size: 15px;
}
.dw-ba__caption strong { color: var(--c-ink); }
.dw-ba__caption span   { color: var(--c-ink-soft); }

.dw-ba__thumbs {
  display: flex;
  gap: 10px;
  margin-top: var(--s-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.dw-ba__thumbs[hidden] { display: none; }

.dw-ba__thumb {
  display: grid;
  flex: none;
  gap: 6px;
  width: 112px;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: var(--r-16);
  background: var(--c-white);
  color: var(--c-ink-2);
  font: 600 12px/1.3 var(--font-sans);
  text-align: left;
  cursor: pointer;
}
.dw-ba__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 10px; object-fit: cover; } /* square crop of the after-photo */
.dw-ba__thumb[aria-pressed="true"] { border-color: var(--clr-primary); color: var(--clr-primary-dark); }

@media (min-width: 1024px) {
  .dw-results__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--s-8); }
}


/* ========== SMILE GALLERY (Results slot while there are no real pairs) ========== */
.dw-smiles__head {
  display: grid;
  gap: var(--s-2) var(--s-6);
  margin-bottom: var(--s-4);
}
.dw-smiles__head .dw-chip--sample { margin-left: 8px; vertical-align: middle; }
.dw-smiles__head .section-title { margin-top: var(--s-2); }
.dw-smiles__head .section-sub { margin: 0; }

.dw-smiles__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.dw-smile__link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-24);
  background: var(--clr-primary-soft-100);
  aspect-ratio: 16 / 10;
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.dw-smile__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.dw-smile__link:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.dw-smile__link:hover img { transform: scale(1.04); }
.dw-smile__link:active { transform: scale(.98); }

.dw-smile__label { position: absolute; bottom: 14px; left: 14px; font-size: 13px; }
.dw-smile__go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--clr-primary-dark);
  box-shadow: var(--sh-2);
  transition: transform var(--dur-2) var(--ease-out);
}
.dw-smile__link:hover .dw-smile__go { transform: rotate(-45deg); }

.dw-smiles__credit { margin: var(--s-2) 0 0; color: var(--c-ink-soft); font-size: 12.5px; }

@media (min-width: 600px) {
  .dw-smiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .dw-smiles__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .dw-smiles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
}


/* ========== PRICING GUIDANCE ========== */
.dw-pricing__card {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-3);
  border: 1px solid var(--clr-primary-soft-200);
  border-radius: var(--r-32);
  background: var(--clr-primary-soft-50);
}
.dw-section--mint .dw-pricing__card { border-color: var(--c-line); background: var(--c-white); }
.dw-pricing__intro .section-title { margin-top: var(--s-2); }

.dw-checklist {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--c-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}
.dw-checklist li { display: flex; align-items: flex-start; gap: 12px; }

.dw-checklist__icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -2px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--c-white);
}

.dw-pricing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--s-3);
}
.dw-pricing__actions .dw-btn { flex: 1 1 auto; }

@media (min-width: 768px) {
  .dw-pricing__card { padding: var(--s-6); }
}
@media (min-width: 1024px) {
  .dw-pricing__card { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: var(--s-8); padding: var(--s-8); }
  .dw-pricing__actions .dw-btn { flex: 0 0 auto; }
}


/* ========== REVIEWS / PATIENT FEEDBACK ========== */
.dw-reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}
.dw-reviews__intro .section-title { margin-top: var(--s-2); }
.dw-reviews__nav { margin-top: var(--s-3); }

.dw-rating {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--s-3);
  color: var(--c-ink);
  text-decoration: none;
}
.dw-rating__score { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.dw-rating__meta  { display: grid; gap: 4px; color: var(--c-ink-soft); font-size: 14px; }

.dw-reviews__track { list-style: none; margin: 0; padding: 0; }

.dw-review {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-24);
  background: var(--c-white);
}
.dw-section--mint .dw-review { border-color: var(--clr-primary-soft-200); }

.dw-review__mark { color: var(--clr-primary-soft-300); }

.dw-review__quote { margin: 0; }
.dw-review__quote p {
  margin: 0;
  color: var(--c-ink);
  font-size: clamp(17px, 4.4vw, 20px);
  font-weight: 500;
  line-height: 1.55;
}

.dw-review__who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: var(--s-2);
  border-top: 1px solid var(--c-line);
}

.dw-review__avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-primary-soft-100);
  color: var(--clr-primary-deep);
  font-size: 14px;
  font-weight: 700;
}

.dw-review__name { display: grid; gap: 2px; flex: 1 1 140px; font-size: 14px; color: var(--c-ink-soft); }
.dw-review__name strong { color: var(--c-ink); font-size: 15px; }

@media (min-width: 768px) {
  .dw-review { padding: var(--s-5); }
}
@media (min-width: 1024px) {
  .dw-reviews__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--s-8); }
}
/* Google review photo avatar */
.dw-review__avatar--photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

/* "Read all reviews on Google" link */
.dw-reviews__google-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-3);
  padding: 9px 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-ink-soft);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.dw-reviews__google-link:hover {
  border-color: #4285F4;
  color: #1a73e8;
  box-shadow: 0 2px 8px rgba(66,133,244,.15);
}

/* Google-verified badge */
.dw-review--google .dw-review__badge {
  background: #e8f0fe;
  color: #1a73e8;
}


/* ========== FAQ (native details accordion) ========== */
.dw-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}
.dw-faq__intro .section-title { margin-top: var(--s-2); }
.dw-faq__intro .dw-link-arrow { margin-top: var(--s-3); }

.dw-faq__list { display: grid; gap: 12px; }
.dw-faq__item[hidden] { display: none; }

.dw-faq__item {
  border: 1px solid var(--c-line);
  border-radius: var(--r-16);
  background: var(--c-white);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.dw-faq__item[open] {
  border-color: var(--clr-primary);
  background: var(--clr-primary-soft-50);
  box-shadow: 0 0 0 3px var(--clr-primary-soft-100);
}

.dw-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 18px 20px;
  color: var(--c-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.dw-faq__item summary::-webkit-details-marker { display: none; }
.dw-faq__item summary:focus-visible { outline-offset: -3px; border-radius: var(--r-16); }

/* Round +/- chip: two bars, the vertical one turns flat when open. */
.dw-faq__toggle {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-primary-soft-100);
  transition: background-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.dw-faq__item[open] .dw-faq__toggle { transform: rotate(180deg); }
.dw-faq__toggle::before,
.dw-faq__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--clr-primary-dark);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.dw-faq__toggle::after { transform: rotate(90deg); }
.dw-faq__item[open] .dw-faq__toggle { background: var(--clr-primary); }
.dw-faq__item[open] .dw-faq__toggle::before,
.dw-faq__item[open] .dw-faq__toggle::after { background: var(--c-white); }
.dw-faq__item[open] .dw-faq__toggle::after { transform: rotate(0deg); }

/* Padding lives on the <p> so main.js can animate the wrapper's height to 0. */
.dw-faq__answer { overflow: hidden; }
.dw-faq__answer p { margin: 0; padding: 0 20px 20px; max-width: 68ch; color: var(--c-ink-2); font-size: 15px; line-height: 1.65; }

@media (min-width: 1024px) {
  .dw-faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); }
  .dw-faq__intro { position: sticky; top: calc(var(--dw-header-h) + var(--s-4)); align-self: start; }
}


/* ========== LOCATIONS: MAP CARD ========== */
.dw-locations__head { margin-bottom: var(--s-4); }
.dw-locations__head .section-title { margin-top: var(--s-2); }
.dw-loc[hidden] { display: none; }

.dw-loc {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-32);
  background: var(--c-white);
}
.dw-loc + .dw-loc { margin-top: var(--s-3); }

/* Drawn map stand-in: soft street grid, pin and address until the real map is loaded. */
.dw-loc__map {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 260px;
  padding: var(--s-3);
  background:
    linear-gradient(90deg, rgba(4, 128, 122, .07) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(rgba(4, 128, 122, .07) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(28deg, transparent 46%, rgba(255, 255, 255, .9) 46%, rgba(255, 255, 255, .9) 54%, transparent 54%),
    linear-gradient(118deg, transparent 47%, rgba(255, 255, 255, .8) 47%, rgba(255, 255, 255, .8) 52%, transparent 52%),
    var(--clr-primary-soft-100);
  text-align: center;
}

.dw-loc__pin {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--c-white);
  box-shadow: 0 0 0 10px rgba(4, 128, 122, .15), var(--sh-2);
}

.dw-loc__label {
  max-width: 30ch;
  padding: 8px 14px;
  border-radius: var(--r-16);
  background: rgba(255, 255, 255, .94);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: var(--sh-1);
}
.dw-loc__show[hidden] { display: none; }

.dw-loc__map.is-loaded > :not(iframe) { visibility: hidden; }
.dw-loc__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.dw-loc__info {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-3);
}

.dw-loc__name { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }

.dw-loc__facts {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--c-ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.dw-loc__facts li { display: flex; align-items: flex-start; gap: 12px; }
.dw-loc__facts a  { color: inherit; text-decoration: none; }
.dw-loc__facts a:hover { color: var(--clr-primary-dark); text-decoration: underline; text-underline-offset: 3px; }

.dw-loc__status {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
}
.dw-loc__status.is-open   { background: var(--clr-primary-soft-100); color: var(--clr-primary-deep); }
.dw-loc__status.is-closed { background: #fee2e2; color: #991b1b; }

.dw-loc__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.dw-loc__actions .dw-btn { padding: 0 10px; gap: 6px; font-size: 14px; }

@media (min-width: 768px) {
  .dw-loc__info { padding: var(--s-5); }
  .dw-loc__actions .dw-btn { padding: 0 18px; font-size: 15px; }
}
@media (min-width: 1024px) {
  .dw-loc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .dw-loc__map { min-height: 440px; }
  .dw-loc__info { align-content: center; padding: var(--s-6); }
}


/* ========== FOOTER (light rounded panel) ========== */
.dw-footer { padding: var(--section-pad) 0 16px; }

.dw-footer__panel {
  position: relative;
  overflow: hidden; /* crops the big brand word at the panel edge */
  container-type: inline-size; /* the brand word is sized to the panel's width */
  padding: var(--s-5) var(--s-3) 0;
  border: 1px solid var(--clr-primary-soft-200);
  border-radius: var(--r-32);
  background: var(--clr-primary-soft-50);
  color: var(--c-ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.dw-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
}

/* (a) brand block */
.dw-footer__name {
  display: inline-block;
  color: var(--c-ink);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-decoration: none;
}
.dw-footer__name span { color: var(--clr-primary); }
.dw-footer__desc { max-width: 40ch; margin: 10px 0 0; color: var(--c-ink-soft); }

.dw-footer__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.dw-footer__hours { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; }
.dw-footer__hours strong { color: var(--c-ink); }
.dw-footer__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #d9534f; }
.dw-footer__dot.is-open { background: var(--clr-brand-teal); box-shadow: 0 0 0 4px var(--clr-primary-soft-200); }

.dw-footer__note { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; color: var(--c-ink-soft); font-size: 13px; line-height: 1.5; }
.dw-footer__note svg { flex: none; margin-top: 2px; color: var(--clr-primary); }

.dw-footer__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-3); }

.dw-btn--outline { border-color: var(--clr-primary); background: var(--c-white); color: var(--clr-primary-dark); }
.dw-btn--outline:hover { background: var(--clr-primary-soft-100); color: var(--clr-primary-dark); }

.dw-footer__socials { display: flex; gap: 8px; margin: var(--s-3) 0 0; padding: 0; list-style: none; }
.dw-footer__socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--clr-primary-soft-200);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--clr-primary-dark);
  transition: background-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.dw-footer__socials a:hover  { background: var(--clr-primary-soft-100); }
.dw-footer__socials a:active { transform: scale(.94); }

/* columns */
.dw-footer__title {
  margin: 0 0 14px;
  color: var(--clr-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dw-footer__links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dw-footer__links a {
  display: inline-block;
  padding: 6px 0; /* with the line height: a 36px+ row, comfortable to tap */
  color: var(--c-ink-2);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-out);
}
.dw-footer__links a:hover { color: var(--clr-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.dw-footer__links--2up { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-2); }
.dw-footer__links--small { margin-top: var(--s-2); }
.dw-footer__links--small a { font-size: 13.5px; color: var(--c-ink-soft); }

.dw-footer__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 0;
  color: var(--clr-primary-dark);
  font-weight: 600;
  text-decoration: none;
}
.dw-footer__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.dw-footer__more svg { transition: transform var(--dur-2) var(--ease-out); }
.dw-footer__more:hover svg { transform: translateX(3px); }

/* (d) clinic cards */
.dw-footer__clinics { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dw-footer__clinic {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-16);
  background: var(--c-white);
}
.dw-footer__clinic-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--c-ink); font-weight: 700; }
.dw-footer__clinic-addr,
.dw-footer__clinic-phone {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--c-ink-2);
  font-size: 13.5px;
  line-height: 1.45;
  text-decoration: none;
}
.dw-footer__clinic-addr svg,
.dw-footer__clinic-phone svg { flex: none; margin-top: 2px; color: var(--clr-accent-blue); }
.dw-footer__clinic a:hover { color: var(--clr-primary-dark); text-decoration: underline; text-underline-offset: 3px; }

/* newsletter */
.dw-footer__news {
  display: grid;
  gap: 10px;
  margin-top: var(--s-5);
  padding: var(--s-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-24);
  background: var(--c-white);
}
.dw-footer__news-label { color: var(--c-ink); font-size: 16px; font-weight: 600; }
.dw-footer__news-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dw-footer__news-row .dw-btn { flex: none; }
.dw-footer__news-input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--clr-primary-soft-200);
  border-radius: var(--r-pill);
  background: var(--clr-primary-soft-50);
  color: var(--c-ink);
  font: 400 15px var(--font-sans);
}
.dw-footer__news-input::placeholder { color: var(--c-ink-soft); }
.dw-footer__news-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--c-ink-soft); font-size: 13px; }
.dw-footer__news-note.is-ok  { color: var(--clr-primary-dark); }
.dw-footer__news-note.is-err { color: #b42318; }

.dw-footer__disclaimer { margin: var(--s-3) 0 0; color: var(--c-ink-soft); font-size: 12.5px; line-height: 1.6; }
.dw-footer__disclaimer strong { color: var(--c-ink-2); }

.dw-footer__divider { margin: var(--s-3) 0; border: 0; border-top: 1px solid var(--clr-primary-soft-200); }

/* bottom row */
.dw-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--c-ink-soft);
  font-size: 13px;
}
.dw-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 0; padding: 0; list-style: none; }
.dw-footer__legal li { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-left: 1px solid var(--clr-primary-soft-200); }
.dw-footer__legal li:first-child { padding-left: 0; border-left: 0; }
.dw-footer__legal a { padding: 6px 0; color: var(--c-ink-2); text-decoration: none; }
.dw-footer__legal a:hover { color: var(--clr-primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.dw-footer__pmdc { color: var(--clr-primary-dark); font-weight: 600; }
@media (max-width: 639px) {
  .dw-footer__legal .dw-footer__pmdc { flex-basis: 100%; padding-left: 0; border-left: 0; } /* own line, no stray divider */
}

/* Huge faded brand word, cropped by the panel's bottom edge (decorative). */
.dw-footer__word {
  margin-top: var(--s-3);
  overflow: hidden;
  color: var(--clr-primary-soft-200);
  font-size: 13vw;    /* fallback */
  font-size: 15.5cqw; /* "Dental World" spans the panel width; only the bottom is cropped */
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .78;
  text-align: center;
  white-space: nowrap;
  transform: translateY(14%);
  pointer-events: none;
  user-select: none;
}

@media (min-width: 640px) {
  .dw-footer__panel { padding: var(--s-6) var(--s-5) 0; }
  .dw-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-footer__brand { grid-column: 1 / -1; }
  .dw-footer__bottom { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .dw-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-4); }
  .dw-footer__news { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; column-gap: var(--s-4); }
  .dw-footer__news-note { grid-column: 2; }
}
@media (min-width: 1200px) {
  .dw-footer__panel { padding: var(--s-8) 56px 0; }
  .dw-footer__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1.1fr) minmax(0, .8fr); }
  .dw-footer__brand { grid-column: auto; }
  .dw-footer__links--2up { grid-template-columns: minmax(0, 1fr); }
}


/* ========== FLOATING DOCK: WHATSAPP, BACK TO TOP, MOBILE CALL / BOOK PILL ========== */
/* Phones: floats sit above a floating pill; the whole dock slides down out of
   view on scroll down and back on scroll up (main.js). Without JS it stays. */
.dw-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
  transition: transform 250ms ease;
}
.dw-dock.is-hidden { transform: translateY(calc(100% + 24px)); }
.dw-dock.is-hidden .dw-totop { opacity: 0; pointer-events: none !important; } /* it sits above the dock box */

.dw-dock__floats { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dw-dock__floats > *,
.dw-pill { pointer-events: auto; }

.dw-wa-float {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--c-white);
  box-shadow: 0 10px 26px rgba(1, 50, 68, .28);
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.dw-wa-float:hover  { background: var(--clr-primary-dark); color: var(--c-white); }
.dw-wa-float:active { transform: scale(.94); }

.dw-totop {
  /* Out of the flow, above WhatsApp: revealing it never moves anything (no layout shift). */
  position: absolute;
  right: 4px;
  bottom: calc(100% + 10px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--clr-primary-dark);
  box-shadow: var(--sh-2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none !important;
  transform: translateY(8px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.dw-totop[hidden] { display: none; }
.dw-totop.is-visible { opacity: 1; pointer-events: auto !important; transform: none; }

.dw-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  box-shadow: 0 12px 32px rgba(1, 50, 68, .14);
}

.dw-pill__call,
.dw-pill__book {
  display: inline-flex;
  align-items: center;
  height: 48px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.dw-pill__call:active,
.dw-pill__book:active { transform: scale(.97); }

.dw-pill__call {
  flex: none;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--clr-primary);
  color: var(--clr-primary-dark);
  font-size: 15px;
}
.dw-pill__call:hover { background: var(--clr-primary-soft-50); color: var(--clr-primary-dark); }

.dw-pill__book {
  flex: 1;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 0 6px 0 22px;
  background: var(--clr-primary);
  color: var(--c-white);
  font-size: 16px;
}
.dw-pill__book:hover { background: var(--clr-primary-dark); color: var(--c-white); }
.dw-pill__book > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-pill__arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
}

/* Phones: no empty band under the footer. main.js slides the dock away for
   the last stretch of the page, so the footer's last links are never covered.
   Without JS the dock never hides, so the page keeps room for it. */
body { padding-bottom: 0; }   /* overrides legacy.css 4.5rem */
html:not(.js) body { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
  .dw-pill { display: none; }
  .dw-dock { left: auto; padding: 0 24px 24px; }
  body { padding-bottom: 0; }
}


/* ========== SCROLL REVEAL (opt-in: data-reveal, --i for stagger) ========== */
/* Gated on html.js so content is always visible without JavaScript. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }


/* ========== MOTION PREFERENCES ========== */
@media (prefers-reduced-motion: reduce) {
  .dw-menu,
  .dw-menu__list li,
  .dw-menu__foot,
  html.js [data-reveal] {
    transform: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .dw-btn:active,
  .dw-icon-btn:active,
  .dw-menu-btn:active { transform: none; }

  .dw-hero__body > *,
  .dw-fcard,
  .dw-status.is-open .dw-status__dot::after { animation: none; }

  /* Marquee becomes a plain swipeable row; the duplicate copy is dropped. */
  .dw-marquee { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .dw-marquee__track { animation: none; padding-inline: var(--gutter); }
  .dw-marquee__list[aria-hidden] { display: none; }

  .dw-slider__track { scroll-behavior: auto; }
  .dw-gallery img,
  .dw-smile__link img,
  .dw-tcard__media img,
  .dw-dcard__img { transition: none; }
  .dw-tcard__link:hover,
  .dw-bcard__link:hover,
  .dw-smile__link:hover,
  .dw-smile__link:hover img,
  .dw-tcard__link:hover .dw-tcard__go,
  .dw-gallery figure:hover img,
  .dw-tcard__link:hover .dw-tcard__media img,
  .dw-dcard:hover .dw-dcard__img { transform: none; }

  .dw-faq__toggle::before,
  .dw-faq__toggle::after,
  .dw-dock,
  .dw-totop { transition: none; }
}


/* ========== HERO SHELL: ROUNDED HERO CARD THAT GROWS WITH THE SCREEN ========== */
/* One width rule for the whole page: .dw-container is the "shell" — side gap
   --gutter (12px phones, 16–24px tablets, 24px desktop) and, from 1680px, a
   1560px content width centred (--container). The hero card fills the shell,
   so its edges line up with the top bar, the marquee, every section and the
   footer panel at every width. Inside the card, content keeps to a 1280px
   column at least 48px from the card edge, and the floating header follows it. */

/* Soft band behind the hero and the marquee, so wide monitors never show
   bare white beside the card. */
.dw-hero,
.dw-marquee {
  background:
    radial-gradient(1200px 520px at 50% 0%, rgba(118, 206, 201, .16), rgba(118, 206, 201, 0) 70%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--clr-primary-soft-50) 100%);
}
.dw-marquee { background: var(--clr-primary-soft-50); }

.hero-shell .dw-hero__card {
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(1, 28, 46, .14);
}

@media (min-width: 768px) {
  .hero-shell .dw-hero__card { border-radius: 28px; }
  .dw-ph__card { border-radius: 28px; }
}

@media (min-width: 992px) {
  /* Floating header items sit on the hero card's inner column. The card is
     the shell width (min(100%, --container) minus both gutters); the column
     is at most 1280px and never closer than 48px to the card edge. */
  .dw-nav-overlay .dw-header__inner {
    padding-inline: calc(var(--gutter) + max(48px, (min(100%, var(--container)) - 2 * var(--gutter) - 1280px) / 2));
  }
}

@media (min-width: 1024px) {
  .hero-shell .dw-hero__card,
  .dw-nav-overlay .hero-shell .dw-hero__card {
    min-height: clamp(560px, 80vh, 740px);
    padding-inline: max(48px, calc((100% - 1280px) / 2));
  }
  .hero-shell .dw-hero__body { padding-inline: 0; }
  .hero-shell .dw-hero__cards { padding-right: 0; }

  /* Inner-page photo heroes share the column. */
  .dw-ph__card { padding-inline: max(48px, calc((100% - 1280px) / 2)); }
  .dw-ph__body { padding-inline: 0; }
}

@media (min-width: 1200px) {
  .hero-shell .dw-hero__card,
  .dw-ph__card { border-radius: 32px; }

  /* Carousels run to both window edges; the first card still snaps to the
     shell edge. 100vw includes the scrollbar; body clips that sliver. */
  .dw-carousel__track {
    --bleed: calc((100vw - min(100vw, var(--container))) / 2 + var(--gutter));
    margin-inline: calc(var(--bleed) * -1);
    padding-inline: var(--bleed);
    scroll-padding-inline: var(--bleed);
  }
}


/* ========== RESULTS: HEADLINE, TILES, SLIDER AND THUMBNAIL STRIP ========== */
.dw-results__title {
  margin: var(--s-2) 0 0;
  color: var(--c-ink);
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.dw-results__title span { display: block; color: #6b7d86; } /* 4.3:1 on white, large text */
.dw-results__lead {
  max-width: 52ch;
  margin: var(--s-3) 0 0;
  color: var(--c-ink-2);
  font-size: 16px;
  line-height: 1.65;
}
.dw-results__intro .dw-chip--sample { margin-left: 0; }

.dw-results__stats { max-width: 480px; margin-top: var(--s-5); }
.dw-stat-card {
  align-content: start;
  min-height: 92px;
  padding: 16px;
  border-radius: 18px;
  background: var(--clr-primary-deep);
}
.dw-stat-card:nth-child(2) { background: var(--clr-primary); }
.dw-stat-card:nth-child(3) { background: var(--clr-primary-soft-300); color: var(--c-ink); }
.dw-stat-card:nth-child(3) .dw-stat-card__label { color: var(--c-ink); }
.dw-stat-card__num { font-size: clamp(22px, 2.2vw, 28px); }

.dw-results .dw-ba__stage {
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(1, 28, 46, .14);
}
.dw-results .dw-ba__handle { width: 3px; background: var(--clr-primary); }
.dw-results .dw-ba__handle > span {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
}
.dw-results .dw-ba__tag { top: auto; bottom: 14px; }
.dw-results .dw-ba__sample { top: 14px; left: 14px; transform: none; }

.dw-results .dw-ba__caption {
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-2);
  font-size: 13px;
}
.dw-results .dw-ba__caption strong {
  color: var(--clr-primary-dark);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dw-results .dw-ba__thumbs { gap: 12px; margin-top: var(--s-2); padding: 6px; margin-inline: -6px; }
.dw-results .dw-ba__thumb {
  width: 80px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: none;
  opacity: .82;
  transition: opacity var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.dw-results .dw-ba__thumb img { border-radius: 16px; }
@media (max-width: 479px) { .dw-results .dw-ba__thumb { width: 68px; } }
.dw-results .dw-ba__thumb:hover { opacity: 1; }
.dw-results .dw-ba__thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--c-white), 0 0 0 5px var(--clr-primary); }

@media (min-width: 1024px) {
  .dw-results__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 5vw, 80px); }
  .dw-results .dw-ba__stage { aspect-ratio: 5 / 3; }
}


/* ========== HOME HERO: KICKER, TRUST PILL, DOCTOR CARD AND STAT TILES ========== */
/* Left: kicker chip, two-line headline, lead, "Trusted by" pill, two buttons.
   Right: glass doctor card with rotating patient feedback, then two stat tiles.
   Text stays on dark glass or the dark overlay, so it is AA on any photo. */
:root { --clr-mint: #5ad8ca; }

.dw-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  background: rgba(1, 28, 46, .35);
  color: #d4f5f1;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dw-hero__kicker svg { color: var(--clr-mint); }

.hero-shell .dw-hero__title {
  margin: 18px 0 0;
  color: var(--c-white);
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.hero-shell .dw-hero__title span { display: block; color: var(--clr-mint); }

.hero-shell .dw-hero__lead {
  max-width: 580px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  line-height: 1.65;
}

/* "Trusted by" pill */
.dw-trust {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  max-width: 100%;
  margin-top: 24px;
  padding: 10px 24px 10px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(1, 28, 46, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}
.dw-trust__faces { display: flex; }
.dw-trust__faces > span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: -10px;
  border: 2px solid #0b3340;
  border-radius: 50%;
  background: var(--clr-primary-soft-200);
  color: var(--clr-primary-deep);
  font-size: 12px;
  font-weight: 700;
}
.dw-trust__faces > :first-child { margin-left: 0; }
.dw-trust__faces > :nth-child(2) { background: #f6d9c4; color: #6a3a17; }
.dw-trust__faces > :nth-child(3) { background: var(--clr-primary-soft-300); }
.dw-trust__faces > :nth-child(4) { background: #d8e3f7; color: #1d3c74; }
.dw-trust__faces > :nth-child(5) { background: #f3d4dc; color: #7a2140; }
.dw-trust__text { display: grid; color: var(--c-white); line-height: 1.25; }
.dw-trust__text > span { color: rgba(255, 255, 255, .86); font-size: 13px; }
.dw-trust__text strong { font-size: 17px; font-weight: 700; }
.dw-trust__stars { display: inline-flex; gap: 3px; color: var(--c-gold); }

/* Buttons */
.hero-shell .dw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dw-hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.dw-hbtn:hover { transform: translateY(-2px); }
.dw-hbtn--mint {
  background: var(--clr-mint);
  color: #062f2b;
  box-shadow: 0 12px 30px rgba(90, 216, 202, .35);
}
.dw-hbtn--mint svg { transform: rotate(-45deg); }
.dw-hbtn--mint:hover { background: #74e2d6; color: #062f2b; }
.dw-hbtn--white { background: var(--c-white); color: var(--c-ink); }
.dw-hbtn--white:hover { background: var(--clr-primary-soft-50); color: var(--c-ink); }

/* Right column */
.hero-shell .dw-hero__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 24px;
}
.dw-doccard,
.dw-hstat {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(24, 78, 88, .55);
  color: var(--c-white);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(1, 20, 34, .25);
  animation: dw-rise .8s var(--ease-out) both;
  animation-delay: calc(400ms + var(--i, 0) * var(--stagger));
}
.dw-doccard { grid-column: 1 / -1; padding: 20px; border-radius: 24px; }
.dw-doccard__head { display: flex; align-items: center; gap: 14px; }
.dw-doccard__avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  font-weight: 700;
}
.dw-doccard__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dw-doccard__name { display: block; font-size: 19px; font-weight: 700; line-height: 1.25; }
.dw-doccard__role { display: block; margin-top: 2px; color: rgba(255, 255, 255, .88); font-size: 14px; }
.dw-doccard__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(120, 230, 215, .5);
  border-radius: 999px;
  background: rgba(90, 216, 202, .14);
  font-size: 13px;
  font-weight: 600;
}
.dw-doccard__badge svg { color: var(--clr-mint); }

.dw-doccard__quotes { display: grid; margin-top: 12px; }
.dw-doccard__mark { color: var(--clr-mint); font: 700 34px/0.9 Georgia, serif; }
.dw-doccard__quote {
  grid-row: 2;
  grid-column: 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.dw-doccard__quote.is-active { opacity: 1; visibility: visible; }
.dw-doccard__quote blockquote { margin: 0; font-size: 15px; line-height: 1.6; }
.dw-doccard__quote figcaption { margin-top: 8px; color: rgba(255, 255, 255, .94); font-size: 12.5px; font-weight: 600; }
.dw-doccard__dots { display: flex; gap: 2px; margin: 10px 0 0 -6px; }
.dw-doccard__dots[hidden] { display: none; }
.dw-doccard__dots button {
  width: 20px;
  height: 20px;
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  background-clip: content-box;
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}
.dw-doccard__dots button[aria-pressed="true"] { width: 34px; background-color: var(--clr-mint); }

.dw-doccard__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--clr-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px rgba(1, 50, 60, .3);
  color: var(--c-white);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.dw-doccard__cta:hover { background: var(--clr-primary-dark); color: var(--c-white); }

.dw-hstat { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; }
.dw-hstat__icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
}
.dw-hstat__num { color: var(--clr-mint); font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.dw-hstat__label { color: rgba(255, 255, 255, .92); font-size: 13px; line-height: 1.3; }

@media (max-width: 479px) {
  .dw-hero__kicker { padding: 7px 14px; font-size: 11px; letter-spacing: .1em; }
  .dw-trust { flex-wrap: nowrap; gap: 12px; padding: 8px 18px 8px 8px; }
  .dw-trust__faces > span { width: 32px; height: 32px; margin-left: -8px; font-size: 10.5px; }
  .dw-trust__text strong { font-size: 15px; }
  .dw-trust__stars { display: none; } /* no room on phones; the reviews section shows them */
  .dw-hbtn { flex: 1 1 100%; }
  .dw-hstat { flex-wrap: wrap; gap: 8px; }
  .dw-hstat__icon { width: 38px; height: 38px; }
}

@media (min-width: 768px) {
  .hero-shell .dw-hero__cards { padding: 0 var(--s-6) var(--s-6); }
}

@media (min-width: 1024px) {
  .hero-shell .dw-hero__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    column-gap: clamp(32px, 4vw, 72px);
    align-content: center;
    padding-bottom: 48px;
  }
  .hero-shell .dw-hero__overlay {
    background: linear-gradient(90deg, rgba(1, 28, 46, .9) 0%, rgba(1, 28, 46, .7) 45%, rgba(1, 28, 46, .35) 100%);
  }
  .hero-shell .dw-hero__body { grid-row: 1; grid-column: 1; max-width: 660px; padding: 0; }
  .hero-shell .dw-hero__cards {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0;
  }
  .dw-doccard { padding: 22px; }
  .dw-hstat { gap: 18px; padding: 16px 20px; }
  .dw-hstat__icon { width: 52px; height: 52px; }
  .dw-hstat__num { font-size: 34px; }
  .dw-hstat__label { font-size: 16px; }

  /* Home header over the hero: bigger logo, links and CTA; the scrolled bar
     keeps the compact size (it is fixed, so nothing below moves). */
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-header__inner { height: calc(var(--dw-header-h) + 24px); }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-logo__light img { height: 48px; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-pillnav__list { padding: 6px; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-pillnav__link { padding: 10px 20px; font-size: 15px; font-weight: 600; }
  .dw-header .dw-pillnav__link.is-active { background: var(--clr-mint); color: #062f2b; }
  .dw-header.is-scrolled .dw-header__cta,
  body:not(.dw-nav-overlay) .dw-header .dw-header__cta { border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-ink); }
  .dw-header.is-scrolled .dw-header__cta:hover,
  body:not(.dw-nav-overlay) .dw-header .dw-header__cta:hover { background: var(--clr-primary-soft-50); color: var(--c-ink); }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-header__cta { min-height: 52px; padding: 0 28px; font-size: 15px; font-weight: 700; }
  .page-home.dw-nav-overlay .hero-shell .dw-hero__card { padding-top: calc(var(--dw-header-h) + 24px + 32px); }
}

@media (prefers-reduced-motion: reduce) {
  .dw-doccard, .dw-hstat { animation: none; }
  .dw-doccard__quote { transition: none; }
}


/* ========== HOME HERO: SIZES MATCHED TO THE APPROVED DESIGN ========== */
/* Logo a step larger everywhere; on the home hero the logo with the coloured
   icon and white text. */
.dw-logo img { height: 42px; }
@media (min-width: 768px) { .dw-logo img { height: 46px; } }

@media (min-width: 1024px) {
  /* Header over the hero: light glass pill, 16px links, plain white CTA. */
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-header__inner { height: 92px; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-logo__light img { height: 54px; }
  .dw-header .dw-header__cta svg { display: none; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-pillnav__link { padding: 11px 21px; font-size: 16px; font-weight: 500; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-pillnav__link.is-active { background: var(--clr-mint); color: #062f2b; font-weight: 500; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-header__cta { min-height: 52px; padding: 0 28px; font-size: 15px; font-weight: 600; }
  .dw-nav-overlay .dw-header.has-glass:not(.is-scrolled)::after {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .1);
  }
  .dw-nav-overlay .dw-header:not(.has-glass):not(.is-scrolled) .dw-pillnav__list {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(20, 45, 55, .45);
  }

  /* Scrolled: frosted white bar, light pill, white CTA with a soft shadow. */
  .dw-header.is-scrolled::before,
  body:not(.dw-nav-overlay) .dw-header::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(240, 244, 245, .92));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .dw-header.is-scrolled .dw-pillnav__list,
  body:not(.dw-nav-overlay) .dw-header .dw-pillnav__list { padding: 5px; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 10px rgba(1, 28, 46, .08); }
  .dw-header.is-scrolled .dw-pillnav__link,
  body:not(.dw-nav-overlay) .dw-header .dw-pillnav__link { padding: 9px 20px; font-size: 14.5px; }
  .dw-header.is-scrolled .dw-header__cta,
  body:not(.dw-nav-overlay) .dw-header .dw-header__cta { min-height: 44px; border-color: transparent; box-shadow: 0 4px 16px rgba(1, 28, 46, .12); font-weight: 600; }

  /* Card: content block centred, 140px from the top edge to the first card. */
  .page-home.dw-nav-overlay .hero-shell .dw-hero__card { padding-top: 140px; padding-bottom: 52px; }
  .hero-shell .dw-hero__card { grid-template-columns: minmax(0, 1fr) minmax(0, 398px); }

  .dw-hero__kicker { padding: 7px 16px; font-size: 13px; letter-spacing: .12em; }
  .hero-shell .dw-hero__title { margin-top: 22px; font-size: clamp(44px, 5.3vw, 80px); line-height: .98; letter-spacing: -.03em; }
  .hero-shell .dw-hero__lead { max-width: 565px; margin-top: 14px; font-size: 16px; line-height: 26px; }
  .dw-trust { min-height: 62px; margin-top: 32px; padding: 10px 26px 10px 12px; }
  .hero-shell .dw-hero__actions { gap: 8px; margin-top: 31px; }
  .dw-hbtn--mint { padding: 0 34px; font-size: 17px; font-weight: 500; }
  .dw-hbtn--white { padding: 0 28px; font-size: 15px; font-weight: 600; }

  /* Right column */
  .hero-shell .dw-hero__cards { gap: 15px; }
  .dw-doccard { padding: 18px; }
  .dw-doccard__name { font-size: 20px; }
  .dw-doccard__quotes { min-height: 132px; align-content: start; }
  .dw-doccard__cta { min-height: 46px; background: linear-gradient(90deg, #04807a, #037a74); }
  .dw-hstat { min-height: 85px; padding: 14px 18px; box-sizing: border-box; }
  .dw-hstat__num { font-size: 36px; }
}

@media (min-width: 1200px) {
  .hero-shell .dw-hero__card { border-radius: 40px; }
}

/* Trust pill photos; smaller kicker and stat numbers. */
.dw-trust__faces > img {
  width: 40px;
  height: 40px;
  margin-left: -10px;
  border: 2px solid #0b3340;
  border-radius: 50%;
  background: var(--clr-primary-soft-100);
  object-fit: cover;
}
.dw-trust__faces > img:first-child { margin-left: 0; }
.dw-hstat__num { font-size: 22px; }
@media (max-width: 479px) {
  .dw-trust__faces > img { width: 32px; height: 32px; margin-left: -8px; }
  .dw-trust__faces > img:first-child { margin-left: 0; }
}
@media (min-width: 1024px) {
  .dw-hero__kicker { padding: 6px 14px; font-size: 11.5px; letter-spacing: .1em; }
  .dw-hstat__num { font-size: 28px; }
}


/* ========== ANNOUNCEMENT BAR: TAGLINE · CENTRE LINE · BOOK YOUR VISIT ========== */
/* Solid teal, white text (#04857e: 4.5:1 with white, the brightest teal that passes). */
.dw-ann {
  background: #04857e;
  color: var(--c-white);
  font-size: 13px;
  font-weight: 600;
}
.dw-ann__inner,
.dw-ann__inner::before { content: none; }
.dw-ann__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}
.dw-ann__left { display: none; }
.dw-ann__text { justify-content: flex-start; color: var(--c-white); font-weight: 600; }
.dw-ann__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.dw-ann__cta svg { transition: transform var(--dur-2) var(--ease-out); }
.dw-ann__cta:hover { color: var(--c-white); }
.dw-ann__cta:hover span { text-decoration: underline; text-underline-offset: 3px; }
.dw-ann__cta:hover svg { transform: translateX(3px); }

@media (min-width: 768px) {
  .dw-ann { font-size: 15px; }
  .dw-ann__inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-content: normal;
    gap: 24px;
    min-height: 44px;
  }
  .dw-ann__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
  }
  .dw-ann__left span { overflow: hidden; text-overflow: ellipsis; }
  .dw-ann__text { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .55); }
  .dw-ann__cta { justify-self: end; }
}
@media (min-width: 992px) {
  .dw-ann__inner { min-height: 44px; }
}


/* ========== INFO TOP BAR: HOURS | SUNDAY · ADDRESS · PHONE (centred) ========== */
.dw-topbar { color: var(--c-ink-soft); font-size: 13px; }
.dw-topbar__item svg { color: var(--clr-primary); }
.dw-topbar__sep { width: 1px; height: 16px; margin-inline: 10px; background: currentColor; opacity: .6; }

@media (min-width: 992px) {
  .dw-topbar { font-size: 14px; }
  .dw-topbar__inner { justify-content: center; gap: 56px; height: 43px; }
  .dw-topbar__item { gap: 10px; }
  .dw-topbar__links { gap: 56px; }
  .dw-topbar__link { font-weight: 400; }
}
@media (min-width: 992px) and (max-width: 1279px) {
  .dw-topbar { font-size: 13px; }
  .dw-topbar__inner, .dw-topbar__links { gap: 28px; }
}


/* ========== MOBILE SIDE MENU: DRAWER FROM THE RIGHT + SERVICES PANEL ========== */
.dw-menu {
  inset: 0 0 0 auto;
  width: min(88vw, 380px);
  background: var(--c-white);
  box-shadow: -18px 0 50px rgba(1, 28, 46, .22);
  opacity: 1;
  transform: translateX(100%);
  transition: transform .3s var(--ease-out);
}
.dw-menu.is-open { transform: none; }
.dw-menu::backdrop { background: rgba(1, 28, 46, .45); }

.dw-menu__panel { position: relative; min-height: 100%; overflow-x: hidden; }
.dw-menu__view { display: flex; flex-direction: column; min-height: 100%; }
.dw-menu__view[hidden] { display: none; }
.dw-menu__view.is-entering { animation: dw-menu-in .28s var(--ease-out) both; }
.dw-menu__view.is-returning { animation: dw-menu-back .28s var(--ease-out) both; }
@keyframes dw-menu-in   { from { opacity: .4; transform: translateX(40px); } }
@keyframes dw-menu-back { from { opacity: .4; transform: translateX(-40px); } }

.dw-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 14px 0 16px;
  border-bottom: 0;
}
.dw-menu__top .dw-logo img { height: 40px; }
.dw-menu__x,
.dw-menu__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  box-shadow: 0 2px 8px rgba(1, 28, 46, .06);
  color: var(--c-ink);
  font: 600 14px/1 var(--font-sans);
  cursor: pointer;
}
.dw-menu__x { width: 40px; padding: 0; }
.dw-menu__back { padding: 0 16px 0 12px; }

.dw-menu__body { display: block; max-width: none; padding: 0 0 24px; }
.dw-menu__list { padding: 0 16px; }
.dw-menu__row {
  min-height: 51px;
  border-bottom: 1px solid var(--c-line);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
.dw-menu__row.is-active { color: var(--clr-primary-dark); font-weight: 600; }
.dw-menu__arrow {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--clr-primary-soft-100);
  color: var(--clr-primary-dark);
  transition: transform var(--dur-2) var(--ease-out);
}
.dw-menu__row:hover .dw-menu__arrow { transform: translateX(3px); }
.dw-menu__row.is-active .dw-menu__arrow { background: var(--clr-primary); color: var(--c-white); }

.dw-menu__card {
  margin: 20px 16px 0;
  padding: 14px;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  background: var(--c-white);
  box-shadow: 0 6px 20px rgba(1, 28, 46, .06);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.dw-menu.is-open .dw-menu__card { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * var(--stagger)); }
.dw-menu__wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  background: var(--clr-primary);
  color: var(--c-white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.dw-menu__wa:hover { background: var(--clr-primary-dark); color: var(--c-white); }
.dw-menu__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 4px;
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
}
.dw-menu__small { margin: 0; color: var(--c-ink-soft); font-size: 13px; line-height: 1.45; }
.dw-menu__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--c-ink-2);
  font-size: 14px;
  text-decoration: none;
}
.dw-menu__phone svg { color: var(--c-ink-2); }
.dw-menu__trust {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  font-size: 12.5px;
}
.dw-menu__stars { display: inline-flex; gap: 2px; color: var(--c-gold); }

/* Services panel */
.dw-menu__view--sub { background: linear-gradient(180deg, var(--c-white) 0, var(--clr-primary-soft-50) 220px); }
.dw-menu__group {
  margin: 14px 16px 6px;
  color: var(--c-ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dw-menu__svc { margin: 0; padding: 0 8px; list-style: none; }
.dw-menu__svc a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 5px 8px;
  border-radius: 12px;
  color: var(--c-ink);
  text-decoration: none;
}
.dw-menu__svc a:hover { background: var(--clr-primary-soft-100); }
.dw-menu__svc-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--clr-primary-soft-100);
  color: var(--clr-primary-dark);
}
.dw-menu__svc-text { display: grid; min-width: 0; line-height: 1.25; }
.dw-menu__svc-text strong { font-size: 14.5px; font-weight: 700; }
.dw-menu__svc-text span { overflow: hidden; color: var(--c-ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dw-menu__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 16px 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--clr-primary);
  color: var(--c-white);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.dw-menu__all:hover { color: var(--c-white); background: var(--clr-primary-dark); }

@media (prefers-reduced-motion: reduce) {
  .dw-menu { transition: none; }
  .dw-menu__view.is-entering, .dw-menu__view.is-returning { animation: none; }
}

/* Which announcement parts fit: phones tagline + link; tablets centre line + link; desktop all three. */
.dw-ann__left { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; white-space: nowrap; }
.dw-ann__left span { overflow: hidden; text-overflow: ellipsis; }
.dw-ann__text { display: none; }
@media (min-width: 768px) and (max-width: 991px) {
  .dw-ann__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .dw-ann__left { display: none; }
  .dw-ann__text { display: flex; padding-left: 0; border-left: 0; }
}
@media (min-width: 992px) {
  .dw-ann__text { display: flex; }
}


/* ========== HOME HERO TYPE: PLUS JAKARTA SANS (self-hosted, SIL OFL 1.1) ========== */
/* Latin subset, one file per weight (500–800): static faces lay out far
   faster than the variable font did. assets/fonts/, licence in OFL.txt. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
:root { --font-display: "Plus Jakarta Sans", var(--font-sans); }

.hero-shell .dw-hero__title,
.dw-hero__kicker,
.dw-trust__text,
.dw-hbtn,
.dw-doccard__name,
.dw-hstat__num { font-family: var(--font-display); }

.hero-shell .dw-hero__title { font-weight: 700; letter-spacing: -.025em; word-spacing: .04em; line-height: 1; }
.dw-hero__kicker { font-weight: 700; letter-spacing: .08em; }
.dw-hero__kicker svg { stroke-width: 3; }
.dw-trust__text strong { font-weight: 700; letter-spacing: -.01em; }

.dw-hbtn { min-height: 54px; letter-spacing: -.005em; }
.dw-hbtn--mint { padding: 0 32px; font-size: 17px; font-weight: 500; }
.dw-hbtn--white { padding: 0 28px; font-size: 15px; font-weight: 600; }
.hero-shell .dw-hero__actions { gap: 6px; }

@media (min-width: 1024px) {
  .hero-shell .dw-hero__title { font-size: clamp(44px, 5.3vw, 80px); }
  .dw-hbtn--mint { min-width: 266px; }
  .dw-hbtn--white { min-width: 226px; }

  /* Thinner header over the home hero: 72px bar, 46px pill and CTA. */
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-header__inner { height: 72px; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-logo__light img { height: 48px; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-pillnav__list { padding: 4px; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-pillnav__link { padding: 8px 18px; font-size: 15px; }
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-header__cta { min-height: 44px; padding: 0 24px; font-size: 14.5px; }
  .page-home.dw-nav-overlay .hero-shell .dw-hero__card { padding-top: 120px; }
}


/* ========== TEAM CARD: PHOTO WITH BADGES, BIO, SCHEDULE AND BOOKING ========== */
.dw-dcard {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  background: var(--c-white);
  box-shadow: 0 8px 24px rgba(1, 28, 46, .07);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.dw-dcard:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(1, 28, 46, .12); }

.dw-dcard__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(160deg, #0d3550, #071f33);
}
.dw-dcard__img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.dw-dcard:hover .dw-dcard__img { transform: scale(1.03); }
.dw-dcard__initials { inset: 0; z-index: 0; color: rgba(255, 255, 255, .85); }

.dw-dcard__badges { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.dw-dcard__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(1, 28, 46, .62);
  color: var(--c-white);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dw-dcard__badge--light { border-color: transparent; background: var(--c-white); color: var(--clr-primary-dark); }

.dw-dcard__body { display: flex; flex: 1; flex-direction: column; padding: 18px 18px 12px; color: var(--c-ink); }
.dw-dcard__name { color: var(--c-ink); font-size: 18px; font-weight: 700; line-height: 1.25; }
.dw-dcard__role { margin: 4px 0 0; color: var(--clr-primary-dark); font-size: 14px; font-weight: 600; }
.dw-dcard__bio {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--c-ink-soft);
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.dw-dcard__more {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--clr-primary-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.dw-dcard__more svg { transition: transform var(--dur-2) var(--ease-out); }
.dw-dcard__more:hover svg { transform: translateX(3px); }
.dw-dcard__degrees { margin: 16px 0 0; color: var(--c-ink-soft); font-size: 12.5px; line-height: 1.45; }

.dw-dcard__foot { padding: 12px 18px 18px; border-top: 1px solid var(--c-line); background: #f7fafb; }
.dw-dcard__when {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--c-ink-soft);
  font-size: 13px;
}
.dw-dcard__when span { text-align: right; }
.dw-dcard__book {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--clr-primary-soft-100);
  color: var(--clr-primary-deep);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.dw-dcard__book:hover { background: var(--clr-primary); color: var(--c-white); }


/* ========== FOOTER, TRIMMED: BRAND · TREATMENTS · CLINIC · EXPLORE ========== */
.dw-footer__panel { padding-bottom: var(--s-3); }
.dw-footer__logo { display: inline-block; }
.dw-footer__logo img { display: block; width: auto; height: 46px; }
.dw-footer__disclaimer { margin-top: var(--s-5); }
@media (min-width: 640px) {
  .dw-footer__panel { padding-bottom: var(--s-3); }
  .dw-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .dw-footer__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, 1.15fr) minmax(0, .9fr); column-gap: var(--s-5); }
  .dw-footer__brand { grid-column: auto; }
  .dw-footer__links--2up { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1200px) {
  .dw-footer__panel { padding-bottom: var(--s-4); }
  .dw-footer__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, 1.15fr) minmax(0, .9fr); }
}

/* ========== CAROUSEL CONTROLS: "SEE ALL" PILL + MATCHING PREV / NEXT ========== */
.dw-carousel__nav { gap: 10px; }
.dw-carousel__all {
  height: 44px;
  margin-right: 6px;
  padding: 0 7px 0 18px;
  border: 1px solid var(--clr-primary-soft-200);
  border-radius: 999px;
  background: var(--c-white);
  box-shadow: 0 2px 8px rgba(1, 28, 46, .05);
  font-size: 15px;
  gap: 10px;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.dw-carousel__all .dw-chip-arrow { width: 30px; height: 30px; background: var(--clr-primary); color: var(--c-white); }
.dw-carousel__all:hover { border-color: var(--clr-primary-soft-300); background: var(--clr-primary-soft-50); }
.dw-carousel__all:hover .dw-chip-arrow { transform: translateX(2px); background: var(--clr-primary-dark); }

.dw-carousel__nav .dw-icon-btn {
  border-color: var(--clr-primary-soft-200);
  background: var(--c-white);
  box-shadow: 0 2px 8px rgba(1, 28, 46, .05);
  color: var(--clr-primary-dark);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.dw-carousel__nav .dw-icon-btn:hover { border-color: var(--clr-primary-soft-300); background: var(--clr-primary-soft-50); }
.dw-carousel__nav [data-slider-next] { border-color: var(--clr-primary); background: var(--clr-primary); color: var(--c-white); }
.dw-carousel__nav [data-slider-next]:hover { border-color: var(--clr-primary-dark); background: var(--clr-primary-dark); color: var(--c-white); }
.dw-carousel__nav .dw-icon-btn:disabled,
.dw-carousel__nav .dw-icon-btn:disabled:hover {
  opacity: 1;
  border-color: var(--c-line);
  background: #f1f5f6;
  box-shadow: none;
  color: #8a9ca2;
}
@media (max-width: 639px) {
  .dw-carousel__nav { width: 100%; }
  .dw-carousel__all { margin-right: auto; }
}


/* ========== PREMIUM POLISH: ONE DISPLAY FACE, HEADINGS, BUTTONS, CARDS, MOTION ========== */
/* Plus Jakarta Sans (self-hosted, @font-face above) for every heading, card
   title, button and label; body copy stays on the system stack. */
.section-title,
.dw-ph__title,
.dw-results__title,
.dw-tcard__title,
.dw-bcard__title,
.dw-dcard__name,
.dw-review__name,
.dw-loc__name,
.dw-footer__title,
.dw-mega__title,
.dw-mega__name,
.dw-menu__row,
.dw-menu__group,
.dw-pillnav__link,
.dw-btn,
.dw-dcard__book,
.dw-dcard__more,
.dw-link-arrow,
.dw-eyebrow,
.dw-chip,
.dw-stat-card__num,
.dw-faq summary,
.dw-ann,
h1, h2, h3 { font-family: var(--font-display); }

/* Section headings: bold, tight, with the first word in brand teal (was a thin grey line). */
.section-title { font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.section-title span {
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--clr-primary);
}
.dw-section--mint .section-title span { color: var(--clr-primary-dark); }
.dw-results__title { font-weight: 800; letter-spacing: -.03em; }
.dw-results__title span { color: var(--clr-primary); font-weight: 600; }

/* Eyebrow: a small teal dot before the label. */
.dw-eyebrow { gap: 8px; padding: 7px 14px; font-weight: 700; letter-spacing: .1em; }
.dw-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(4, 128, 122, .18);
}
.dw-eyebrow--on-dark::before { background: var(--clr-mint); box-shadow: 0 0 0 3px rgba(90, 216, 202, .25); }

/* Buttons: depth and a gentle lift. */
.dw-btn { font-weight: 600; letter-spacing: -.005em; }
.dw-btn--primary {
  background: linear-gradient(180deg, #058c85 0%, var(--clr-primary) 100%);
  box-shadow: 0 8px 20px rgba(4, 128, 122, .24), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.dw-btn--primary:hover {
  background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  box-shadow: 0 12px 26px rgba(4, 128, 122, .3), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.dw-btn:hover { transform: translateY(-1px); }
.dw-btn:active { transform: translateY(0) scale(.98); }

/* Cards: one radius, softer resting shadow, deeper on hover. */
.dw-tcard__link,
.dw-bcard__link { border-radius: 24px; }
.dw-tcard__link:hover,
.dw-bcard__link:hover,
.dw-dcard:hover { box-shadow: 0 22px 48px rgba(1, 28, 46, .14); }
.dw-tcard__title,
.dw-bcard__title { letter-spacing: -.015em; }

/* Numbers that count up keep a steady width (no layout shift). */
.dw-num, .dw-stat-card__num, .dw-hstat__num { font-variant-numeric: tabular-nums; }

/* Hero headline: words rise in one by one (main.js wraps them). */
.dw-word { display: inline-block; }
html.js .dw-hero__title.is-splitting .dw-word {
  opacity: 0;
  transform: translateY(.45em);
  animation: dw-word-in .7s var(--ease-out) forwards;
  animation-delay: calc(120ms + var(--w, 0) * 70ms);
}
@keyframes dw-word-in { to { opacity: 1; transform: none; } }
/* The title's own rise is replaced by the per-word one. */
html.js .dw-hero__title.is-splitting { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .dw-hero__title.is-splitting .dw-word { opacity: 1; transform: none; filter: none; animation: none; }
  .dw-btn:hover { transform: none; }
}
/* Word wrappers stay inline and keep the colour of their line (white / mint). */
.hero-shell .dw-hero__title .dw-word { display: inline-block; color: inherit; }
/* Contrast: gradient stays ≥4.5:1 with white at its lightest point. */
.dw-btn--primary { background: linear-gradient(180deg, var(--clr-primary) 0%, #026e69 100%); }
.dw-btn--primary:hover { background: linear-gradient(180deg, var(--clr-primary-dark) 0%, var(--clr-primary-deep) 100%); }
/* Headings on photos and dark panels: mint first word, white rest. */
.dw-ph--photo .section-title span,
.section-title--on-dark span { color: var(--clr-mint); }


/* ========== FINAL QA FIXES (phones) ========== */
/* Hero buttons with long text ("Ask about Root Canal Treatment & …") wrap
   instead of running off the screen. */
@media (max-width: 639px) {
  .dw-ph .dw-btn { max-width: 100%; height: auto; min-height: 48px; padding-block: 10px; white-space: normal; text-align: center; line-height: 1.25; }
}
/* Clinic card: Call + WhatsApp side by side, Directions full width below. */
@media (max-width: 419px) {
  .dw-loc__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-loc__actions > :last-child { grid-column: 1 / -1; }
  .dw-loc__actions .dw-btn { padding-inline: 12px; }
}
/* Tap targets of at least 24px (WCAG 2.5.8). */
.dw-ann__cta { min-height: 32px; }
.dw-doccard__dots button { width: 24px; height: 24px; padding: 8px; }
.dw-doccard__dots button[aria-pressed="true"] { width: 38px; }
.dw-dcard__more { min-height: 32px; }


/* Logo over the hero: same drawn width as the coloured logo of the scrolled
   bar (191px). The white file is proportioned 352x108, the coloured one 332x80. */
@media (min-width: 992px) {
  .dw-nav-overlay .dw-header:not(.is-scrolled) .dw-logo__light img { height: 58px; }
}


/* ========== FIND OUR CLINIC: VISIT CARDS BESIDE THE HEADING ========== */
.dw-locations__head { display: grid; gap: var(--s-3); align-items: end; }
.dw-locations__intro .section-sub { margin-top: var(--s-2); }
.dw-visit { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dw-visit__card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-white);
  box-shadow: 0 8px 22px rgba(1, 28, 46, .06);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.dw-visit__card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(1, 28, 46, .1); }
.dw-visit__icon {
  display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--clr-primary-soft-100); color: var(--clr-primary-dark);
}
.dw-visit__icon--open { background: #dcf7ef; color: #087a55; box-shadow: 0 0 0 4px rgba(8, 122, 85, .08); }
.dw-visit__icon--closed { background: #fdeceb; color: #b42318; }
.dw-visit__text { display: grid; gap: 2px; min-width: 0; line-height: 1.35; }
.dw-visit__text strong { color: var(--c-ink); font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.dw-visit__text span, .dw-visit__text a { color: var(--c-ink-soft); font-size: 13.5px; text-decoration: none; }
.dw-visit__text a:hover { color: var(--clr-primary-dark); text-decoration: underline; }
@media (min-width: 768px) { .dw-visit { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .dw-locations__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: var(--s-6); }
  .dw-visit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dw-visit__card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
}

/* ========== FOOTER: TWO-LINE HOURS, DOCTORS UNDER THE CLINIC ========== */
.dw-footer__hours { display: block; margin: 16px 0 0; }
.dw-footer__status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 14px; }
.dw-footer__status strong { color: var(--c-ink); }
.dw-footer__sittings {
  display: grid; gap: 4px; margin: 10px 0 0; padding: 10px 14px;
  border: 1px solid var(--clr-primary-soft-200); border-radius: 14px; background: var(--c-white);
  max-width: 300px; font-size: 13.5px;
}
.dw-footer__sittings > div { display: flex; justify-content: space-between; gap: 12px; }
.dw-footer__sittings dt { color: var(--c-ink-soft); }
.dw-footer__sittings dd { margin: 0; color: var(--c-ink); font-weight: 600; }
.dw-footer__sittings .is-off dd { color: #b42318; }
.dw-footer__subtitle { margin: 18px 0 8px; color: var(--clr-primary-dark); font: 700 12px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.dw-footer__docs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dw-footer__doc {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px;
  color: inherit; text-decoration: none; transition: background-color var(--dur-2) var(--ease-out);
}
.dw-footer__doc:hover { background: var(--c-white); }
.dw-footer__doc-pic {
  display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px; overflow: hidden;
  border: 2px solid var(--c-white); border-radius: 50%; background: var(--clr-primary-soft-100);
  box-shadow: 0 2px 8px rgba(1, 28, 46, .12); color: var(--clr-primary-dark); font-size: 12px; font-weight: 700;
}
.dw-footer__doc-pic img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dw-footer__doc-text { display: grid; min-width: 0; line-height: 1.3; }
.dw-footer__doc-text strong { color: var(--c-ink); font-size: 14px; }
.dw-footer__doc-text span { overflow: hidden; color: var(--c-ink-soft); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }

/* Big faded brand word at the foot of the footer panel, cropped by the panel edge. */
.dw-footer__panel { padding-bottom: 0 !important; }
.dw-footer__bottom { padding-bottom: var(--s-2); }
.dw-footer__word {
  margin-top: var(--s-2);
  background: linear-gradient(180deg, var(--clr-primary-soft-300) 0%, rgba(118, 206, 201, .15) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 11.8vw;
  font-size: 12.9cqw;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .8;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transform: translateY(16%);
}


/* ========== FIND OUR CLINIC: "PLAN YOUR VISIT" PICKER ========== */
.dw-plan {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 24px; border-radius: 28px; color: var(--c-white);
  background:
    radial-gradient(520px 280px at 100% 0%, rgba(90, 216, 202, .3), transparent 65%),
    radial-gradient(420px 280px at 0% 100%, rgba(1, 121, 177, .35), transparent 60%),
    linear-gradient(150deg, #04605c 0%, #023f4c 60%, #01283a 100%);
  box-shadow: 0 30px 60px -30px rgba(1, 40, 58, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.dw-plan::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.dw-plan::after {
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07); box-shadow: 0 0 0 50px rgba(255, 255, 255, .02), 0 0 0 100px rgba(255, 255, 255, .015);
}
.dw-plan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dw-plan__kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--clr-mint); font: 700 12px/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.dw-plan__title { margin: 8px 0 0; font: 700 clamp(19px, 2vw, 24px)/1.2 var(--font-display); letter-spacing: -.02em; }
.dw-plan__status { display: inline-flex; flex: none; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 600; }
.dw-plan__pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #ff8a80; }
.dw-plan__status.is-open .dw-plan__pulse { background: var(--clr-mint); }
.dw-plan__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: dw-pulse 2s var(--ease-out) infinite; }

.dw-plan__step { display: flex; align-items: center; gap: 8px; margin: 20px 0 10px; color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600; }
.dw-plan__step span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(90, 216, 202, .2); color: var(--clr-mint); font-size: 12px; font-weight: 800; }

.dw-plan__days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.dw-plan__day {
  display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px;
  background: rgba(255, 255, 255, .06); color: var(--c-white); cursor: pointer;
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.dw-plan__day small { color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.dw-plan__day strong { font: 800 22px/1.1 var(--font-display); }
.dw-plan__day:hover { transform: translateY(-2px); border-color: rgba(90, 216, 202, .6); }
.dw-plan__day[aria-checked="true"] { border-color: transparent; background: var(--clr-mint); color: #033b3a; box-shadow: 0 10px 24px -10px rgba(90, 216, 202, .9); }
.dw-plan__day[aria-checked="true"] small { color: #04524d; }

.dw-plan__sittings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dw-plan__sit {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px;
  background: rgba(255, 255, 255, .06); color: var(--c-white); text-align: left; cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), opacity var(--dur-2);
}
.dw-plan__sit:hover:not(:disabled) { border-color: rgba(90, 216, 202, .6); }
.dw-plan__sit-icon { display: inline-grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(90, 216, 202, .16); color: var(--clr-mint); }
.dw-plan__sit-text { display: grid; gap: 2px; }
.dw-plan__sit-text strong { font: 700 15px/1.2 var(--font-display); }
.dw-plan__sit-text small { color: rgba(255, 255, 255, .75); font-size: 12.5px; }
.dw-plan__sit-tick { display: grid; place-items: center; width: 22px; height: 22px; margin-left: auto; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); color: transparent; }
.dw-plan__sit[aria-checked="true"] { border-color: var(--clr-mint); background: rgba(90, 216, 202, .14); }
.dw-plan__sit[aria-checked="true"] .dw-plan__sit-tick { border-color: transparent; background: var(--clr-mint); color: #033b3a; }
.dw-plan__sit:disabled { opacity: .45; cursor: not-allowed; }
.dw-plan__sit:disabled .dw-plan__sit-text small::after { content: " · ended"; }

.dw-plan__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.dw-plan__pick { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; }
.dw-plan__pick svg { flex: none; color: var(--clr-mint); }
.dw-plan__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-plan__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--clr-mint); color: #033b3a; font: 700 14.5px/1 var(--font-display); text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(90, 216, 202, .9); transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.dw-plan__btn:hover { transform: translateY(-2px); background: #74e2d6; color: #033b3a; }
.dw-plan__btn--light { background: rgba(255, 255, 255, .12); color: var(--c-white); border: 1px solid rgba(255, 255, 255, .22); box-shadow: none; }
.dw-plan__btn--light:hover { background: rgba(255, 255, 255, .2); color: var(--c-white); }

@media (max-width: 575px) {
  .dw-plan { padding: 18px 16px; border-radius: 22px; }
  .dw-plan__head { flex-direction: column-reverse; }
  .dw-plan__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dw-plan__sittings { grid-template-columns: minmax(0, 1fr); }
  .dw-plan__actions, .dw-plan__btn { width: 100%; }
  .dw-plan__btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .dw-plan__pulse::after { animation: none; } }

/* ===== Plan your visit: footer-style light panel, compact ===== */
.dw-plan {
  padding: 18px 20px; border: 1px solid var(--clr-primary-soft-200); border-radius: 24px;
  background: var(--clr-primary-soft-50); color: var(--c-ink); box-shadow: 0 14px 34px -24px rgba(1, 40, 58, .35);
}
.dw-plan::before { background-image: radial-gradient(rgba(4, 128, 122, .08) 1px, transparent 1px); }
.dw-plan::after { border-color: rgba(4, 128, 122, .08); box-shadow: 0 0 0 50px rgba(4, 128, 122, .025), 0 0 0 100px rgba(4, 128, 122, .015); }
.dw-plan__kicker { color: var(--clr-primary-dark); }
.dw-plan__title { margin-top: 6px; color: var(--c-ink); font-size: clamp(17px, 1.6vw, 20px); }
.dw-plan__status { border-color: var(--clr-primary-soft-200); background: var(--c-white); color: var(--c-ink-2); padding: 6px 12px; }
.dw-plan__status.is-closed .dw-plan__pulse { background: #d9534f; }
.dw-plan__status.is-open .dw-plan__pulse { background: var(--clr-brand-teal); }
.dw-plan__step { margin: 12px 0 8px; color: var(--c-ink-2); font-size: 12.5px; }
.dw-plan__step span { width: 20px; height: 20px; background: var(--clr-primary-soft-200); color: var(--clr-primary-deep); }

.dw-plan__days { gap: 6px; }
.dw-plan__day { padding: 6px 4px; gap: 0; border-color: var(--clr-primary-soft-200); border-radius: 14px; background: var(--c-white); color: var(--c-ink); }
.dw-plan__day small { color: var(--c-ink-soft); font-size: 10.5px; }
.dw-plan__day strong { font-size: 18px; }
.dw-plan__day:hover { border-color: var(--clr-primary); }
.dw-plan__day[aria-checked="true"] { background: var(--clr-primary); color: var(--c-white); box-shadow: 0 8px 18px -10px rgba(4, 128, 122, .8); }
.dw-plan__day[aria-checked="true"] small { color: rgba(255, 255, 255, .9); }

.dw-plan__sittings { gap: 8px; }
.dw-plan__sit { padding: 9px 12px; gap: 10px; border-color: var(--clr-primary-soft-200); border-radius: 16px; background: var(--c-white); color: var(--c-ink); }
.dw-plan__sit:hover:not(:disabled) { border-color: var(--clr-primary); }
.dw-plan__sit-icon { width: 34px; height: 34px; border-radius: 11px; background: var(--clr-primary-soft-100); color: var(--clr-primary-dark); }
.dw-plan__sit-text strong { font-size: 14px; }
.dw-plan__sit-text small { color: var(--c-ink-soft); font-size: 12px; }
.dw-plan__sit-tick { width: 20px; height: 20px; border-color: var(--clr-primary-soft-300); }
.dw-plan__sit[aria-checked="true"] { border-color: var(--clr-primary); background: var(--clr-primary-soft-100); }
.dw-plan__sit[aria-checked="true"] .dw-plan__sit-tick { background: var(--clr-primary); color: var(--c-white); }

.dw-plan__summary { margin-top: 12px; padding-top: 12px; border-top-color: var(--clr-primary-soft-200); gap: 10px; }
.dw-plan__pick { color: var(--c-ink); font-size: 13.5px; }
.dw-plan__pick svg { color: var(--clr-primary); }
.dw-plan__btn { min-height: 40px; padding: 0 16px; font-size: 13.5px; background: var(--clr-primary); color: var(--c-white); box-shadow: 0 10px 22px -12px rgba(4, 128, 122, .8); }
.dw-plan__btn:hover { background: var(--clr-primary-dark); color: var(--c-white); }
.dw-plan__btn--light { background: var(--c-white); color: var(--clr-primary-deep); border: 1px solid var(--clr-primary-soft-200); box-shadow: none; }
.dw-plan__btn--light:hover { background: var(--clr-primary-soft-100); color: var(--clr-primary-deep); }

/* ===== Plan your visit: extra compact (about half height) ===== */
.dw-plan { padding: 14px 16px; border-radius: 20px; }
.dw-plan__head { align-items: center; }
.dw-plan__head > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.dw-plan__title { margin: 0; font-size: 16px; }
.dw-plan__status { padding: 4px 10px; font-size: 12px; }
.dw-plan__step { display: none; }
.dw-plan__days { margin-top: 10px; }
.dw-plan__day { grid-auto-flow: column; justify-content: center; align-items: baseline; gap: 4px; padding: 7px 4px; border-radius: 11px; }
.dw-plan__day small:last-child { display: none; }
.dw-plan__day strong { font-size: 15px; }
.dw-plan__sittings { margin-top: 8px; }
.dw-plan__sit { padding: 6px 10px; border-radius: 12px; }
.dw-plan__sit-icon { width: 28px; height: 28px; border-radius: 9px; }
.dw-plan__sit-icon svg { width: 16px; height: 16px; }
.dw-plan__sit-text { grid-auto-flow: column; align-items: baseline; justify-content: start; gap: 8px; }
.dw-plan__sit-text strong { font-size: 13.5px; }
.dw-plan__sit-tick { width: 18px; height: 18px; }
.dw-plan__summary { flex-wrap: nowrap; margin-top: 10px; padding-top: 10px; }
.dw-plan__pick { min-width: 0; font-size: 12.5px; }
.dw-plan__pick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dw-plan__actions { flex: none; flex-wrap: nowrap; gap: 6px; }
.dw-plan__btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
@media (max-width: 575px) {
  .dw-plan__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dw-plan__summary { flex-wrap: wrap; }
  .dw-plan__pick span { white-space: normal; }
  .dw-plan__sit-text { grid-auto-flow: row; gap: 0; }
}
@media (max-width: 575px) {
  .dw-plan__head { flex-direction: row; align-items: flex-start; }
  .dw-plan__status { order: 2; }
}

/* =====================================================================
   COOKIE CONSENT BANNER ("We use cookies") — includes/footer.php
   Bottom card on phones (above the Call/Book pill), bottom-left on desktop.
   ===================================================================== */
.dw-cookie {
  position: fixed;
  z-index: 1200;
  left: 12px;
  right: 12px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  padding: 16px 18px;
  background: var(--c-white);
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-24);
  box-shadow: var(--sh-3);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease;
}
.dw-cookie[hidden] { display: none; }
.dw-cookie.is-in { opacity: 1; transform: none; }
.dw-cookie__icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--clr-primary-soft-100); color: var(--clr-primary);
}
.dw-cookie__text p { margin: 0; }
.dw-cookie__title { font-weight: 700; color: var(--c-ink); font-size: 15px; margin-bottom: 2px !important; }
.dw-cookie__text a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 2px; }
.dw-cookie__actions {
  grid-column: 1 / -1;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
.dw-cookie__btn { min-height: 42px; padding: 0 18px; font-size: 14px; flex: 1 1 auto; justify-content: center; }
@media (min-width: 768px) {
  .dw-cookie {
    left: 24px; right: auto; bottom: 24px;
    max-width: 560px;
    grid-template-columns: auto 1fr;
  }
  .dw-cookie__btn { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .dw-cookie { transition: none; } }

/* Nearby-areas line (homepage "Find our clinic" + contact page) */
.dw-areas { margin-top: 10px; font-size: 15px; }
.dw-areas a { color: var(--clr-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.contact-grid-inner + .dw-areas, .container > .dw-areas { max-width: 860px; margin: 24px auto 0; text-align: center; }

/* Related-treatment link list (blog article sidebar) */
.dw-linklist ul { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 6px; }
.dw-linklist li a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 12px;
  color: var(--c-ink); font-weight: 600; font-size: 14.5px; text-decoration: none;
  background: var(--clr-primary-soft-50);
  transition: background .2s ease, color .2s ease;
}
.dw-linklist li a:hover, .dw-linklist li a:focus-visible { background: var(--clr-primary-soft-100); color: var(--clr-primary-dark, var(--clr-primary)); }
.dw-linklist li svg { color: var(--clr-primary); flex: none; }

/* =====================================================================
   THANK-YOU PAGE
   ===================================================================== */
.dw-thanks { padding: clamp(40px, 7vw, 72px) 0; }
.dw-thanks__card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-32);
  box-shadow: var(--sh-2); padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 48px);
}
.dw-thanks__tick {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--clr-primary-soft-100); color: var(--clr-primary);
  box-shadow: 0 0 0 10px var(--clr-primary-soft-50);
}
.dw-thanks__lead { font-size: var(--fs-lead); color: var(--c-ink-2); margin: 10px auto 0; max-width: 560px; }
.dw-thanks__summary {
  margin: 24px auto 0; max-width: 520px; text-align: left;
  display: grid; gap: 8px; padding: 16px 20px; border-radius: var(--r-16);
  background: var(--clr-primary-soft-50); border: 1px solid var(--clr-primary-soft-200);
}
.dw-thanks__summary div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.dw-thanks__summary dt { color: var(--c-ink-soft); }
.dw-thanks__summary dd { margin: 0; font-weight: 600; color: var(--c-ink); text-align: right; }
.dw-thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.dw-thanks__steps {
  list-style: none; padding: 0; margin: 32px auto 0; max-width: 620px; text-align: left;
  display: grid; gap: 12px;
}
.dw-thanks__steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--c-ink-2); }
.dw-thanks__steps b {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--clr-primary); color: #fff; font-size: 13px;
}
.dw-thanks__more { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.dw-thanks__more p { font-weight: 700; color: var(--c-ink); margin: 0 0 12px; }
.dw-thanks__links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dw-thanks__links a {
  padding: 8px 14px; border-radius: var(--r-pill); background: var(--clr-primary-soft-50);
  border: 1px solid var(--clr-primary-soft-200); color: var(--clr-primary-deep); font-weight: 600; font-size: 14px; text-decoration: none;
}
.dw-thanks__links a:hover { background: var(--clr-primary-soft-100); }

/* Privacy policy — cookie table */
.dw-prose .table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--c-line); border-radius: var(--r-16); }
.dw-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.dw-table th, .dw-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.dw-table th { background: var(--clr-primary-soft-50); color: var(--c-ink); font-weight: 700; }
.dw-table tr:last-child td { border-bottom: 0; }
.dw-table code { font-size: 13px; background: var(--clr-primary-soft-50); padding: 1px 6px; border-radius: 6px; }
.dw-thanks__steps a { color: var(--clr-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* =====================================================================
   PATIENT FEEDBACK PAGE (/feedback)
   ===================================================================== */
.dw-fb-photo { display: flex; align-items: center; gap: 16px; }
.dw-fb-photo__preview {
  flex: none; display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--clr-primary-soft-100) center / cover no-repeat;
  color: var(--clr-primary-dark); border: 2px dashed var(--clr-primary-soft-300);
}
.dw-fb-photo__preview.has-img { border-style: solid; border-color: var(--clr-primary); }
.dw-fb-photo__preview.has-img svg { display: none; }
.dw-fb-photo__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.dw-fb-photo__btn { cursor: pointer; padding: 8px 16px; font-size: 14px; }
.dw-fb-photo__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dw-fb-photo__input:focus-visible + .dw-fb-photo__hint,
.dw-fb-photo__btn:focus-within { outline: 2px solid var(--clr-primary); outline-offset: 2px; }
.dw-fb-photo__hint { color: var(--c-ink-soft); font-size: 13px; line-height: 1.45; word-break: break-word; }

.dw-fb-rating { border: 0; margin: 0; padding: 0; min-width: 0; }
.dw-fb-rating legend { padding: 0; margin-bottom: 4px; }
.dw-fb-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.dw-fb-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dw-fb-stars label { cursor: pointer; color: var(--c-line); line-height: 0; transition: color .15s, transform .15s; }
.dw-fb-stars label:hover,
.dw-fb-stars label:hover ~ label,
.dw-fb-stars input:checked ~ label { color: var(--c-gold); }
.dw-fb-stars label:hover { transform: scale(1.08); }
.dw-fb-stars input:focus-visible + label { outline: 2px solid var(--clr-primary); outline-offset: 2px; border-radius: 4px; }

.dw-fb-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--c-ink-2); cursor: pointer; }
.dw-fb-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--clr-primary); }
.dw-fb-aside-note { margin: 16px 0 0; font-size: 14px; color: var(--c-ink-soft); }
.dw-fb-aside-note a { color: var(--clr-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.dw-reviews__share { margin-top: 14px; }
.dw-form .dw-fb-stars input,
.dw-form .dw-fb-photo__input,
.dw-form .dw-fb-consent input { min-height: 0; padding: 0; border: 0; box-shadow: none; }
.dw-form .dw-fb-stars input,
.dw-form .dw-fb-photo__input { width: 1px; height: 1px; }

/* Many testimonials: let the dots wrap instead of running off the card. */
.dw-reviews .dw-dots { flex-wrap: wrap; row-gap: 0; display:none; }
.author-bio-avatar { overflow: hidden; }
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* Featured post badge on the blog index */
.blog-card { position: relative; }
.blog-card-featured {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--c-gold); color: #3a2600; font-size: 12px; font-weight: 700;
}


/* ==============================================================================
   404 PAGE — navbar + one full-screen panel, no footer, no page scroll.
   Markup: 404.php. Sizes use min(vw, vh) so the panel always fits the screen.
   ============================================================================== */
html:has(body.page-404) { height: 100%; overflow: hidden; }
body.page-404 {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f3fafa;
}
body.page-404 > * { flex-shrink: 0; }
body.page-404 > .dw-header-anchor > .dw-header { flex-shrink: 0; }

.nf404 {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vh, 40px) 16px;
  background:
    radial-gradient(60% 70% at 85% 40%, rgba(195, 234, 231, .45), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(228, 245, 244, .9), transparent 70%),
    linear-gradient(180deg, #f6fbfb 0%, #eef8f7 100%);
  outline: none;
}

/* soft waves at the bottom corners */
.nf404__wave {
  position: absolute;
  left: -8%;
  bottom: -14vh;
  width: 46vw;
  height: 26vh;
  border-radius: 50%;
  background: rgba(195, 234, 231, .35);
  pointer-events: none;
}
.nf404__wave--r { left: auto; right: -6%; bottom: -18vh; width: 30vw; background: rgba(195, 234, 231, .25); }

.nf404__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 64px);
}

/* ---------- copy ---------- */
.nf404__copy { min-width: 0; }
.nf404__code {
  display: flex;
  align-items: center;
  gap: .04em;
  margin: 0 0 clamp(8px, 2.4vh, 28px);
  font-family: "Plus Jakarta Sans", var(--font-sans);
  font-weight: 800;
  font-size: clamp(64px, min(14vw, 21vh), 210px);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--clr-primary);
  text-shadow: 0 6px 18px rgba(4, 128, 122, .14);
}
.nf404__zero {
  width: .74em;
  height: .92em;
  margin: 0 .02em;
  color: var(--clr-primary);
  filter: drop-shadow(0 6px 12px rgba(4, 128, 122, .16));
}

.nf404__title {
  margin: 0 0 clamp(6px, 1.6vh, 18px);
  font-family: "Plus Jakarta Sans", var(--font-sans);
  font-weight: 700;
  font-size: clamp(24px, min(3.8vw, 5.4vh), 50px);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: #0d3b45;
}
.nf404__title span { color: var(--clr-brand-teal); }

.nf404__text {
  max-width: 34em;
  margin: 0 0 clamp(14px, 3.4vh, 36px);
  font-size: clamp(14px, min(1.5vw, 2.3vh), 18px);
  line-height: 1.75;
  color: var(--c-ink-soft);
}

.nf404__actions { display: flex; flex-wrap: wrap; gap: clamp(10px, 2vw, 28px); }
.nf404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: clamp(44px, 6.6vh, 54px);
  padding: 0 clamp(20px, 2.4vw, 34px);
  border-radius: var(--r-pill);
  font-family: "Plus Jakarta Sans", var(--font-sans);
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.nf404__btn svg { flex-shrink: 0; }
.nf404__btn--primary { background: var(--clr-primary); color: #fff; box-shadow: 0 10px 24px rgba(4, 128, 122, .25); }
.nf404__btn--primary:hover { background: var(--clr-primary-dark); color: #fff; transform: translateY(-2px); }
.nf404__btn--outline { background: rgba(255, 255, 255, .6); color: var(--clr-primary-dark); border: 1.5px solid var(--clr-primary); }
.nf404__btn--outline:hover { background: var(--clr-primary-soft-100); color: var(--clr-primary-deep); transform: translateY(-2px); }
.nf404__btn:focus-visible { outline: 3px solid var(--clr-brand-blue); outline-offset: 3px; }

/* ---------- art ---------- */
.nf404__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: min(62vh, 560px);
  min-width: 0;
}
.nf404__blob {
  position: absolute;
  inset: 6% -4% 6% 4%;
  background: #dcefee;
  opacity: .75;
  border-radius: 58% 42% 46% 54% / 46% 58% 42% 54%;
  animation: nf404Blob 12s ease-in-out infinite alternate;
}
.nf404__dot { position: absolute; border-radius: 50%; background: #d3ecea; }
.nf404__dot--a { width: 13%; aspect-ratio: 1; top: 0; left: 6%; }
.nf404__dot--b { width: 5%;  aspect-ratio: 1; bottom: 12%; right: 4%; }
.nf404__tooth {
  position: relative;
  height: 100%;
  width: auto;
  max-width: 100%;
  animation: nf404Float 4.5s ease-in-out infinite;
}
@keyframes nf404Float { 50% { transform: translateY(-10px); } }
@keyframes nf404Blob  { to { border-radius: 44% 56% 58% 42% / 56% 44% 56% 44%; } }
@media (prefers-reduced-motion: reduce) { .nf404__tooth, .nf404__blob { animation: none; } }

/* ---------- phones & tablets in portrait: stack, mascot on top ---------- */
@media (max-width: 860px) and (orientation: portrait) {
  .nf404__inner {
    grid-template-columns: 1fr;
    gap: clamp(4px, 2vh, 24px);
    text-align: center;
  }
  .nf404__art { order: -1; height: clamp(130px, 30vh, 380px); }
  .nf404__blob { inset: 4% 14%; }
  .nf404__code { justify-content: center; font-size: clamp(60px, min(26vw, 12vh), 170px); }
  .nf404__title { font-size: clamp(22px, min(7vw, 4.2vh), 42px); }
  .nf404__text { margin-inline: auto; font-size: clamp(13px, min(3.8vw, 2.1vh), 17px); line-height: 1.6; }
  .nf404__actions { justify-content: center; }
}
@media (max-width: 420px) and (orientation: portrait) {
  .nf404__actions { flex-direction: column; align-items: stretch; width: min(100%, 300px); margin-inline: auto; gap: 10px; }
}

/* ---------- short screens (landscape phones): keep 2 columns, tighten ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .nf404 { padding-block: 8px; }
  .nf404__art { height: min(66vh, 300px); }
  .nf404__text { line-height: 1.5; }
  .nf404__btn { min-height: 40px; padding-inline: 18px; font-size: 13px; }
}
@media (max-width: 860px) and (orientation: portrait) and (max-height: 720px) {
  .nf404__art { height: clamp(110px, 22vh, 200px); }
  .nf404__code { font-size: clamp(52px, min(22vw, 10vh), 120px); margin-bottom: 6px; }
  .nf404__title { margin-bottom: 4px; }
  .nf404__text { margin-bottom: 12px; line-height: 1.5; }
  .nf404__actions { gap: 8px; }
  .nf404__btn { min-height: 42px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .nf404__code { font-size: clamp(40px, 15vh, 110px); margin-bottom: 4px; }
  .nf404__title { font-size: clamp(18px, 6.5vh, 30px); margin-bottom: 4px; }
  .nf404__text { font-size: 13px; margin-bottom: 10px; }
  .nf404__actions { gap: 8px; }
  .nf404__btn { min-height: 36px; padding-inline: 14px; gap: 6px; }
}

/* ========== RESULTS: category tabs (Cosmetic / Orthodontic) + labelled thumbs ========== */
.dw-ba__cats[hidden] { display: none; }
.dw-ba__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--s-3, 14px);
  padding: 4px;
  border-radius: 999px;
  background: var(--clr-primary-soft-100);
}
.dw-ba__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--clr-primary-deep);
  font: 600 14px/1 var(--font-sans);
  cursor: pointer;
  transition: background var(--dur-2, .2s) ease, color var(--dur-2, .2s) ease, box-shadow var(--dur-2, .2s) ease;
}
.dw-ba__tab span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--c-white, #fff);
  color: var(--clr-primary-dark);
  font-size: 11.5px;
}
.dw-ba__tab:hover { background: rgba(255, 255, 255, .6); }
.dw-ba__tab[aria-selected="true"] { background: var(--clr-primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(4, 128, 122, .7); }
.dw-ba__tab[aria-selected="true"] span { background: rgba(255, 255, 255, .22); color: #fff; }
.dw-ba__tab:focus-visible { outline: 3px solid var(--clr-brand-teal); outline-offset: 2px; }

.dw-results .dw-ba__thumb { width: 92px; box-shadow: none !important; }
.dw-results .dw-ba__thumb img { width: 80px; margin-inline: auto; transition: box-shadow var(--dur-2, .2s) ease; }
.dw-results .dw-ba__thumb[aria-pressed="true"] img { box-shadow: 0 0 0 3px var(--c-white), 0 0 0 5px var(--clr-primary); }
.dw-ba__thumb-label {
  display: block;
  margin-top: 6px;
  color: var(--c-ink-2);
  font: 600 11.5px/1.25 var(--font-sans);
  text-align: center;
}
.dw-results .dw-ba__thumb[aria-pressed="true"] .dw-ba__thumb-label { color: var(--clr-primary-dark); }
.dw-ba__desc { margin: 4px 0 0; color: var(--c-ink-soft); font-size: 14px; line-height: 1.5; }
@media (max-width: 479px) {
  .dw-results .dw-ba__thumb { width: 74px; }
  .dw-results .dw-ba__thumb img { width: 64px; }
  .dw-ba__tab { padding: 0 12px; font-size: 13px; }
}

/* Footer credit link */
.dw-footer__credit { color: inherit; text-decoration: none; }
.dw-footer__credit strong { font-weight: 700; color: var(--c-ink, #0f1f2e); }
.dw-footer__credit:hover strong, .dw-footer__credit:focus-visible strong { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 3px; }

/* ========== CARE POPUP (home page, after 15 s) ========== */
.dw-care { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; }
.dw-care[hidden] { display: none; }
.dw-care__backdrop { position: absolute; inset: 0; background: rgba(1, 42, 52, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.dw-care__card {
  position: relative; width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  border-radius: 28px; background: #fff; box-shadow: 0 30px 70px -20px rgba(1, 42, 52, .55);
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
  outline: none; overscroll-behavior: contain;
}
.dw-care.is-open .dw-care__backdrop { opacity: 1; }
.dw-care.is-open .dw-care__card { opacity: 1; transform: none; }
html.dw-care-lock { overflow: hidden; }
.dw-care__x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--clr-primary-soft-200); border-radius: 50%; background: #fff; color: var(--c-ink-2); cursor: pointer;
}
.dw-care__x:hover { background: var(--clr-primary-soft-50); color: var(--clr-primary-dark); }
.dw-care__head { padding: 26px 24px 16px; text-align: center; background: linear-gradient(180deg, var(--clr-primary-soft-100), var(--clr-primary-soft-50)); }
.dw-care__photo {
  display: inline-grid; place-items: center; width: 84px; height: 84px; overflow: hidden; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 8px 22px -10px rgba(1, 80, 90, .6); background: var(--clr-primary); color: #fff; font-weight: 700; font-size: 26px;
}
.dw-care__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.dw-care__name { margin: 10px 0 2px; color: var(--clr-primary-dark); font-weight: 700; font-size: 16px; }
.dw-care__meta { margin: 0; color: var(--c-ink-soft); font-size: 12px; line-height: 1.45; }
.dw-care__body { padding: 20px 24px 18px; text-align: center; }
.dw-care__title { margin: 0 0 8px; color: var(--c-ink); font-size: clamp(20px, 4.6vw, 24px); line-height: 1.2; letter-spacing: -.01em; }
.dw-care__text { margin: 0 0 16px; color: var(--c-ink-2); font-size: 14.5px; line-height: 1.55; }
.dw-care__facts { list-style: none; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--clr-primary-soft-200); border-radius: 16px; background: var(--clr-primary-soft-50); text-align: left; }
.dw-care__facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--c-ink-2); }
.dw-care__facts li + li { margin-top: 10px; }
.dw-care__facts strong { color: var(--c-ink); }
.dw-care__ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--clr-primary); }
.dw-care__actions { display: grid; gap: 10px; }
.dw-care__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.dw-care__btn--main { background: var(--clr-primary); color: #fff; box-shadow: 0 10px 22px -12px rgba(4, 128, 122, .9); }
.dw-care__btn--main:hover { background: var(--clr-primary-dark); color: #fff; transform: translateY(-1px); }
.dw-care__btn--line { border: 1.5px solid var(--clr-primary-soft-200); background: #fff; color: var(--clr-primary-dark); }
.dw-care__btn--line:hover { background: var(--clr-primary-soft-50); color: var(--clr-primary-deep); }
.dw-care__later { margin-top: 12px; padding: 6px 12px; border: 0; background: none; color: var(--c-ink-soft); font-size: 13.5px; cursor: pointer; }
.dw-care__later:hover { color: var(--c-ink); text-decoration: underline; }
.dw-care :focus-visible { outline: 3px solid var(--clr-brand-teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dw-care__card, .dw-care__backdrop { transition: none; } }
.dw-care__card:focus, .dw-care__card:focus-visible { outline: none; }
@media (max-width: 599px) {
  .dw-ba__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .dw-ba__tab { justify-content: center; min-height: 44px; padding: 6px 8px; border-radius: 14px; font-size: 12.5px; line-height: 1.2; text-align: center; }
  .dw-ba__tab span { display: none; }
}
