/* ==============================================================================
 * DENTAL WORLD KARACHI — LEGACY STYLESHEET (TRANSITIONAL)
 * The pre-redesign main.css. The redesign replaced the shared chrome (header,
 * menu, page hero, footer) and the whole home page; this file now only styles
 * the BODY of the inner pages (services, doctors, blogs, contact, booking,
 * service detail, privacy). Unused rules were pruned (10,943 -> ~5,000 lines).
 * Delete it once those page bodies are rebuilt on main.css.
 * Loaded BEFORE main.css, so every new rule wins on equal specificity.
 * The self-hosted @font-face block was dropped: its woff2 files never existed.
 * ==============================================================================
 */

/* ========== CSS CUSTOM PROPERTIES (DESIGN TOKENS) ========== */
:root {
  /* Brand Colors — Calmer Mint-Teal System */
  --clr-sky-ink:        #6f8196; /* light first word/line of headings */
  --clr-white:          #ffffff;

  /* Aliases for compatibility */
  --clr-primary:        var(--clr-teal-deep);
  --clr-primary-dark:   var(--clr-teal-hover);
  --clr-primary-light:  var(--clr-mint-50);
  --clr-primary-muted:  var(--clr-mint-100);

  /* Typography & Backgrounds */
  --clr-dark:           var(--clr-ink);
  --clr-text-main:      #334155;
  --clr-text-muted:     #64748b;
  --clr-bg-light:       var(--clr-bg-page);
  --clr-navy:           #0a1a2b; /* reserved strictly for footer and dark bands */

  /* Accents */
  --clr-warning:        #f5b94a; /* stars only */
  --clr-accent-gold:    #f5b94a;
  --clr-accent-blue:    #5ca4d3;
  --clr-success:        var(--clr-primary);
  --clr-danger:         #ef4444;
  --clr-border:         #e2e8f0;

  /* Gradients — flat mint/teal and one subtle gradient for primary button */
  --gradient-primary:   linear-gradient(135deg, var(--clr-teal-deep) 0%, var(--clr-primary-dark) 100%);
  --gradient-navy:      linear-gradient(135deg, var(--clr-navy), #06101c);
  --gradient-hero:      linear-gradient(180deg, rgba(10,26,43,0.85) 0%, rgba(10,26,43,0.92) 100%);

  /* Typography */
  --font-body:          'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading:       'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hero:          'Playfair Display', Georgia, serif;

  /* Radius tokens: 16 / 24 / 32 */
  --radius-xs:          6px;
  --radius-sm:          8px;
  --radius-md:          16px;
  --radius-lg:          24px;
  --radius-xl:          32px;
  --radius-pill:        999px;
  --card-radius:        16px;

  /* Shadows (very soft, no heavy glows) */
  --shadow-xs:          0 1px 2px rgba(1, 50, 68, 0.04);
  --shadow-sm:          0 2px 8px rgba(1, 50, 68, 0.05);
  --shadow-md:          0 8px 24px rgba(1, 50, 68, 0.07);
  --shadow-lg:          0 16px 36px rgba(1, 50, 68, 0.09);
  --shadow-xl:          0 24px 48px rgba(1, 50, 68, 0.11);
  --shadow-glow:        none;
  --shadow-glass:       0 8px 24px rgba(0, 0, 0, 0.10);

  /* Transitions */
  --transition-fast:    0.18s ease;
  --transition-base:    0.28s ease;
  --transition-slow:    0.45s ease;

  /* Layout */
  --container-max:      1200px;
  --container-px:       clamp(1rem, 5vw, 2.5rem);
  --nav-height:         76px;
  --section-pad:        clamp(56px, 8vw, 100px);
}

/* ========== RESET ========== */
*, *::before, *::after {
  margin:     0;
  padding:    0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font-body);
  /* clip (not hidden) — overflow-x:hidden turns body into a scroll container,
     which stops window scroll events and breaks the sticky-header state */
  overflow-x:  clip;
  color:       var(--clr-text-main);
}

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

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

a {
  color:           inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size:   inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family:  var(--font-heading);
  line-height:  1.15;
  font-weight:  700;
  color:        var(--clr-dark);
}

/* ========== UTILITY CLASSES ========== */
.container {
  width:     100%;
  max-width: var(--container-max);
  margin:    0 auto;
  padding:   0 var(--container-px);
}

.section-title {
  font-family: var(--font-heading);
  font-size:   clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color:       var(--clr-dark);
  line-height: 1.15;
}

.section-sub {
  font-size:  clamp(.95rem, 2vw, 1.1rem);
  color:      var(--clr-text-muted);
  max-width:  600px;
  margin-top: .75rem;
  line-height: 1.7;
}

.skip-link {
  position:   absolute;
  top:        -100px;
  left:       1rem;
  background: var(--clr-primary);
  color:      var(--clr-white);
  padding:    .5rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index:    9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 1rem; }

/* =====================================================
   NAVBAR
===================================================== */

/* Logo */

.logo-mark {
  width:         40px;
  height:        40px;
  background:    var(--gradient-primary);
  border-radius: var(--radius-sm);
  display:       flex;
  align-items:   center;
  justify-content: center;
  color:         var(--clr-white);
  font-size:     1.2rem;
  font-weight:   700;
  flex-shrink:   0;
  box-shadow:    var(--shadow-glow);
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size:   1.05rem;
  color:       var(--clr-white);
  line-height: 1.15;
  transition:  color var(--transition-fast);
}
.logo-text span {
  display:    block;
  font-size:  .65rem;
  font-weight:400;
  opacity:    .75;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Center pill nav */

/* Chevron for dropdown */

/* Right CTA */

/* Mobile toggle */

/* Mobile drawer */

/* =====================================================
   HERO SECTION
===================================================== */
.hero {
  position:   relative;
  /* Never taller than the fold on a laptop, so the headline, copy and both
     buttons sit above the scroll line at 1366x650 and 1280x600. */
  min-height: min(100svh, 820px);
  display:    flex;
  align-items:center;
  overflow:   hidden;
  background: var(--clr-navy);
}

/* display:contents keeps the <img> a direct layout child of .hero-bg, so the
   picture wrapper cannot interfere with the 100%/100% cover below. */

/* Left column */

/* Primary button — teal gradient with glow */
.btn-hero-primary {
  display:       inline-flex;
  align-items:   center;
  gap:           .5rem;
  background:    var(--gradient-primary);
  color:         var(--clr-white);
  font-weight:   600;
  font-size:     .95rem;
  padding:       .85rem 1.85rem;
  border-radius: var(--radius-pill);
  border:        none;
  cursor:        pointer;
  box-shadow:    var(--shadow-glow);
  transition:    transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}
.btn-hero-primary:hover {
  transform:  translateY(-2px);
  box-shadow: 0 12px 40px rgba(4, 128, 122,0.5);
}

/* Ghost button — DARK bands only (hero, page-hero, cta-band). The name says
   where it belongs: white text and a white border, so it must never be placed
   on a light section. .btn-outline is the light-section twin. */

/* Outline button — LIGHT bands (bg-white, bg-light, cards). Teal border and
   teal label on the page background, and the hover fills solid teal with white
   text, which is the same pair the filled buttons use. */

/* Trust row — three short practice standards, no numbers (the right-hand
   cards already own the figures). */

/* Right column — stacked glass cards */

/* Shared glass card */

/* Review card (light mint) */

/* Mini stat cards (dark glass — stacked under review card) */

/* Scroll indicator */

/* =====================================================
   TRUST BAR
===================================================== */

/* =====================================================
   SERVICES
===================================================== */

.services-filter {
  display:         flex;
  flex-wrap:       wrap;
  gap:             .5rem;
  justify-content: center;
  margin-bottom:   2.5rem;
}
.filter-btn {
  padding:       .45rem 1.1rem;
  border-radius: var(--radius-pill);
  border:        1.5px solid var(--clr-border);
  background:    var(--clr-white);
  color:         var(--clr-text-muted);
  font-size:     .85rem;
  font-weight:   500;
  cursor:        pointer;
  transition:    all var(--transition-fast);
  font-family:   var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
  background:   var(--clr-primary);
  color:        var(--clr-white);
  border-color: var(--clr-primary);
}

.services-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:                   1.5rem;
}

.service-card {
  background:    var(--clr-white);
  border:        1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding:       1.75rem;
  transition:    transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
  display:       flex;
  flex-direction:column;
  gap:           1rem;
}
.service-card:hover {
  transform:    translateY(-4px);
  box-shadow:   var(--shadow-lg);
  border-color: var(--clr-primary-muted);
}

.service-name {
  font-family: var(--font-body);
  font-size:   1rem;
  font-weight: 700;
  color:       var(--clr-dark);
  line-height: 1.3;
}

.service-desc {
  font-size:  .875rem;
  color:      var(--clr-text-muted);
  line-height:1.65;
  flex:       1;
}

.service-link {
  display:     inline-flex;
  align-items: center;
  gap:         .35rem;
  color:       var(--clr-primary);
  font-size:   .85rem;
  font-weight: 600;
  margin-top:  auto;
  transition:  gap var(--transition-fast);
}
.service-link:hover { gap: .6rem; }

/* =====================================================
   ABOUT (DOCTOR PROFILE)
===================================================== */
.about-section {
  padding:    5rem var(--container-px);
  background: var(--clr-bg-light);
}
.about-inner {
  max-width:  var(--container-max);
  margin:     0 auto;
  display:    grid;
  grid-template-columns: 1fr 1.35fr;
  gap:        4rem;
  align-items:center;
}
.about-image-wrap {
  position: relative;
}
.about-image {
  width:         100%;
  border-radius: var(--radius-lg);
  object-fit:    cover;
  aspect-ratio:  4/5;
  background:    var(--clr-primary-muted);
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     5rem;
  overflow:      hidden;
}

.about-accent-card {
  position:      absolute;
  bottom:        -1.5rem;
  right:         -1.5rem;
  background:    var(--clr-white);
  border-radius: var(--radius-md);
  padding:       1rem 1.25rem;
  box-shadow:    var(--shadow-lg);
  display:       flex;
  align-items:   center;
  gap:           .75rem;
  min-width:     200px;
}
.about-accent-icon {
  width:         42px;
  height:        42px;
  border-radius: var(--radius-sm);
  background:    var(--gradient-primary);
  color:         var(--clr-white);
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     1.2rem;
  flex-shrink:   0;
}
.about-accent-label {
  font-size:  .7rem;
  color:      var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.about-accent-value {
  font-size:   1.1rem;
  font-weight: 700;
  color:       var(--clr-dark);
  line-height: 1.2;
}

.about-content { display: flex; flex-direction: column; gap: 1.25rem; }

.about-bio {
  font-size:   1rem;
  color:       var(--clr-text-main);
  line-height: 1.8;
}
.about-bio + .about-bio { color: var(--clr-text-muted); }

.about-highlight-item {
  display:       flex;
  align-items:   center;
  gap:           .6rem;
  background:    var(--clr-white);
  border:        1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding:       .65rem .9rem;
  font-size:     .85rem;
  font-weight:   500;
  color:         var(--clr-dark);
}
.about-highlight-item svg { width: 18px; height: 18px; color: var(--clr-primary); flex-shrink: 0; }

/* =====================================================
   DOCTORS SECTION
===================================================== */
.doctors-section {
  padding:    5rem var(--container-px);
  background: var(--clr-white);
}

.doctors-grid {
  display:               grid;
  /* auto-fill reserved a fourth track for a team of three and left a column of
     empty space on the right; three doctors, three columns. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:                   1.5rem;
  max-width:             var(--container-max);
  margin:                0 auto;
}
/* about-doctor.php features the lead consultant above this row, so the team grid
   is left with a pair. Two tracks of their own width, centred, instead of a
   three-up row with a hole at the end. Scoped to desktop: the selector out-ranks
   the tablet/phone overrides, so it must not be in play below 901px. */
@media (min-width: 901px) {
  .doctors-grid:has(> .doctor-profile-card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 400px));
    justify-content:       center;
  }
}
.doctor-profile-card {
  position:      relative;
  background:    var(--clr-white);
  border:        1.5px solid var(--clr-border);
  border-radius: 18px;
  overflow:      hidden;
  transition:    transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.doctor-profile-card:hover {
  transform:     translateY(-8px);
  border-color:  var(--clr-primary-muted);
  box-shadow:    0 22px 48px -18px rgba(2, 96, 107,.38);
}
.doctor-card-image {
  position:      relative;
  width:         100%;
  aspect-ratio:  4 / 3;
  overflow:      hidden;
  background:    var(--clr-primary-light);
}
.doctor-card-image img {
  position:        absolute;
  inset:           0;
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: center 22%;
  transition:      transform .7s cubic-bezier(.22,.61,.36,1), filter .4s ease;
}
.doctor-profile-card:hover .doctor-card-image img { transform: scale(1.07); }
.doctor-card-shade {
  position:    absolute;
  inset:       0;
  z-index:     1;
  background:  linear-gradient(180deg, rgba(1, 50, 68,.28) 0%, rgba(1, 50, 68,0) 34%, rgba(1, 50, 68,.62) 100%);
  opacity:     .9;
  transition:  opacity .35s ease;
  pointer-events: none;
}
.doctor-profile-card:hover .doctor-card-shade { opacity: 1; }
/* The shade exists to keep white text legible over a face. Over the initials
   monogram there is no face, and the wash just dulls the mint band. */
.doctor-card-image:has(.doctor-avatar-initials) .doctor-card-shade { display: none; }
.doctor-card-badge {
  position:       absolute;
  z-index:        2;
  top:            .7rem;
  left:           .7rem;
  display:        inline-flex;
  align-items:    center;
  gap:            .3rem;
  font-size:      .66rem;
  font-weight:    700;
  letter-spacing: .04em;
  color:          var(--clr-primary-dark);
  background:     rgba(255,255,255,.94);
  padding:        .28rem .6rem;
  border-radius:  var(--radius-pill);
  box-shadow:     0 4px 12px rgba(0,0,0,.18);
}
.doctor-card-body { padding: 1.15rem 1.15rem .35rem; }
.doctor-card-name {
  font-family: var(--font-body);
  font-size:   1.02rem;
  font-weight: 700;
  color:       var(--clr-dark);
  letter-spacing:-.01em;
}
.doctor-card-specialty {
  font-size:  .78rem;
  color:      var(--clr-primary);
  margin-top: .25rem;
  font-weight:600;
  line-height:1.45;
}
.doctor-card-degrees {
  font-size:   .72rem;
  color:       var(--clr-text-muted);
  margin-top:  .45rem;
  line-height: 1.5;
}
.doctor-card-bio {
  font-size:   .8rem;
  color:       var(--clr-text-muted);
  margin-top:  .6rem;
  line-height: 1.6;
  display:     -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient:  vertical;
  overflow:    hidden;
}

.doctor-spec-pill {
  background:    var(--clr-primary-light);
  color:         var(--clr-primary-dark);
  font-size:     .68rem;
  font-weight:   600;
  padding:       .22rem .6rem;
  border-radius: var(--radius-pill);
  white-space:   nowrap;
}
.doctor-card-footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             .5rem;
  margin:          auto .15rem 0 0;
  padding:         .85rem 1.15rem;
  border-top:      1px solid var(--clr-border);
  background:      var(--clr-bg-light);
}

.doctor-stars-row {
  display:     flex;
  align-items: center;
  gap:         .2rem;
  font-size:   .78rem;
  color:       var(--clr-text-muted);
}
.btn-book-sm {
  font-size:     .78rem;
  font-weight:   600;
  color:         var(--clr-primary);
  background:    var(--clr-primary-light);
  border:        none;
  padding:       .35rem .85rem;
  border-radius: var(--radius-pill);
  cursor:        pointer;
  transition:    background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}
.btn-book-sm:hover { background: var(--clr-primary); color: var(--clr-white); }

/* =====================================================
   PROCESS SECTION
===================================================== */

.process-step {
  background:    var(--clr-white);
  border:        1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding:       2rem 1.5rem;
  text-align:    center;
  transition:    transform var(--transition-base), box-shadow var(--transition-base);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* =====================================================
   PRICING
===================================================== */

/* The PKR price page (.pricing-tabs / .pricing-panel / .pricing-table /
   .price-cell / .price-note) is styled once, in the BATCH A layer further
   down this file. The earlier duplicate rules here were removed: they set
   .pricing-panel { display:none } without a matching .active class, which
   hid every panel on the page. */

/* =====================================================
   TESTIMONIALS
===================================================== */

.testimonial-card {
  background:    rgba(255,255,255,0.06);
  border:        1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding:       1.75rem;
  display:       flex;
  flex-direction:column;
  gap:           1rem;
}

/* =====================================================
   BEFORE / AFTER
===================================================== */

.ba-card {
  border-radius: var(--radius-lg);
  overflow:      hidden;
  background:    var(--clr-white);
  border:        1.5px solid var(--clr-border);
  box-shadow:    var(--shadow-sm);
}

/* =====================================================
   FAQ
===================================================== */
.faq-section {
  padding:    5rem var(--container-px);
  background: var(--clr-white);
}
.faq-inner {
  max-width:  var(--container-max);
  margin:     0 auto;
  display:    grid;
  grid-template-columns: 1fr 1.6fr;
  gap:        4rem;
  align-items:start;
}
.faq-header { position: sticky; top: calc(var(--nav-height) + 2rem); }
.faq-list { display: flex; flex-direction: column; gap: .5rem; }

.faq-item {
  border:        1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow:      hidden;
  transition:    border-color var(--transition-fast);
}
.faq-item.open { border-color: var(--clr-primary-muted); }

.faq-question {
  width:         100%;
  display:       flex;
  align-items:   center;
  justify-content:space-between;
  padding:       1rem 1.25rem;
  background:    transparent;
  border:        none;
  font-family:   var(--font-body);
  font-size:     .9rem;
  font-weight:   600;
  color:         var(--clr-dark);
  cursor:        pointer;
  text-align:    left;
  gap:           1rem;
  transition:    background var(--transition-fast);
}
.faq-question:hover { background: var(--clr-bg-light); }
.faq-item.open .faq-question { background: var(--clr-primary-light); color: var(--clr-primary-dark); }

.faq-answer {
  max-height: 0;
  overflow:   hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}
.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding:     0 1.25rem 1.15rem;
  font-size:   .875rem;
  color:       var(--clr-text-muted);
  line-height: 1.75;
}

/* =====================================================
   BLOG
===================================================== */

.blog-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap:                   1.5rem;
  max-width:             var(--container-max);
  margin:                0 auto;
}
.blog-card {
  background:    var(--clr-white);
  border:        1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow:      hidden;
  transition:    transform var(--transition-base), box-shadow var(--transition-base);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.blog-card-thumb {
  width:        100%;
  aspect-ratio: 16/9;
  object-fit:   cover;
  background:   var(--clr-primary-light);
  display:      flex;
  align-items:  center;
  justify-content: center;
  font-size:    3rem;
  transition:   transform var(--transition-base);
  overflow:     hidden;
}
.blog-card:hover .blog-card-thumb { transform: scale(1.04); }

.blog-card-body { padding: 1.35rem; }
.blog-tag {
  display:       inline-block;
  background:    var(--clr-primary-light);
  color:         var(--clr-primary);
  font-size:     .72rem;
  font-weight:   600;
  padding:       .25rem .7rem;
  border-radius: var(--radius-pill);
  margin-bottom: .65rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.blog-card-title {
  font-family: var(--font-body);
  font-size:   .95rem;
  font-weight: 700;
  color:       var(--clr-dark);
  line-height: 1.4;
  margin-bottom:.5rem;
}
.blog-card-excerpt {
  font-size:  .83rem;
  color:      var(--clr-text-muted);
  line-height:1.65;
}
.blog-card-footer {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-top:      1rem;
  padding-top:     .85rem;
  border-top:      1px solid var(--clr-border);
  font-size:       .78rem;
  color:           var(--clr-text-muted);
}

/* =====================================================
   CTA BANNER
===================================================== */
.cta-section {
  padding:    5rem var(--container-px);
  background: var(--gradient-primary);
  position:   relative;
  overflow:   hidden;
}
.cta-section::before {
  content:  '';
  position: absolute;
  top:      -60%;
  right:    -10%;
  width:    500px;
  height:   500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.cta-inner {
  max-width:   var(--container-max);
  margin:      0 auto;
  text-align:  center;
  position:    relative;
  z-index:     1;
  display:     flex;
  flex-direction:column;
  align-items: center;
  gap:         1.5rem;
}
.cta-title {
  font-family: var(--font-heading);
  font-size:   clamp(1.75rem, 4vw, 2.75rem);
  color:       var(--clr-white);
  font-weight: 800;
  max-width:   680px;
}
.cta-sub {
  font-size:   clamp(.9rem, 2vw, 1.05rem);
  color:       rgba(255,255,255,0.95); /* AA on the teal band */
  max-width:   520px;
  line-height: 1.7;
}
.cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn-cta-white {
  display:       inline-flex;
  align-items:   center;
  gap:           .5rem;
  background:    var(--clr-white);
  color:         var(--clr-primary-dark);
  font-weight:   700;
  font-size:     .95rem;
  padding:       .9rem 2rem;
  border-radius: var(--radius-pill);
  border:        none;
  cursor:        pointer;
  box-shadow:    var(--shadow-md);
  transition:    transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-cta-outline {
  display:       inline-flex;
  align-items:   center;
  gap:           .5rem;
  background:    transparent;
  color:         var(--clr-white);
  font-weight:   600;
  font-size:     .95rem;
  padding:       .9rem 2rem;
  border-radius: var(--radius-pill);
  border:        1.5px solid rgba(255,255,255,0.5);
  cursor:        pointer;
  transition:    background var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.8); }

/* =====================================================
   FOOTER
===================================================== */

/* WhatsApp float */

/* Back to top */
.back-to-top {
  position:       fixed;
  bottom:         5.5rem;
  right:          1.5rem;
  width:          44px;
  height:         44px;
  border-radius:  50%;
  background:     var(--clr-primary);
  color:          var(--clr-white);
  border:         none;
  cursor:         pointer;
  display:        flex;
  align-items:    center;
  justify-content:center;
  box-shadow:     var(--shadow-glow);
  z-index:        899;
  opacity:        0;
  transform:      translateY(10px);
  transition:     opacity var(--transition-fast), transform var(--transition-fast);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--clr-primary-dark); }

/* =====================================================
   FORMS
===================================================== */
.form-group {
  display:        flex;
  flex-direction: column;
  gap:            .45rem;
}
.form-label {
  font-size:   .85rem;
  font-weight: 600;
  color:       var(--clr-dark);
}
.form-control {
  padding:       .75rem 1rem;
  border:        1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size:     .9rem;
  color:         var(--clr-text-main);
  background:    var(--clr-white);
  outline:       none;
  transition:    border-color var(--transition-fast), box-shadow var(--transition-fast);
  width:         100%;
}
.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow:   0 0 0 3px rgba(4, 128, 122,0.14);
}
.form-control.error { border-color: var(--clr-danger); }
.form-control::placeholder { color: var(--clr-text-muted); }

textarea.form-control {
  resize:     vertical;
  min-height: 110px;
}

select.form-control { cursor: pointer; }

.btn-submit {
  display:       inline-flex;
  align-items:   center;
  justify-content:center;
  gap:           .5rem;
  background:    var(--gradient-primary);
  color:         var(--clr-white);
  font-size:     .95rem;
  font-weight:   700;
  padding:       .9rem 2rem;
  border-radius: var(--radius-pill);
  border:        none;
  cursor:        pointer;
  box-shadow:    var(--shadow-glow);
  transition:    transform var(--transition-fast), box-shadow var(--transition-fast);
  width:         100%;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(4, 128, 122,0.45); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Multi-step booking */

.step-circle {
  width:         36px;
  height:        36px;
  border-radius: 50%;
  border:        2px solid var(--clr-border);
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-size:     .85rem;
  font-weight:   700;
  color:         var(--clr-text-muted);
  transition:    all var(--transition-fast);
  background:    var(--clr-white);
}
.step-circle.active { border-color: var(--clr-primary); background: var(--clr-primary); color: var(--clr-white); }
.step-circle.done { border-color: var(--clr-success); background: var(--clr-success); color: var(--clr-white); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:     1rem;
}

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes floatCard {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-8px);}
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0);    }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1;   }
  50%       { opacity: .55;}
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Entrance animation utility.
   fill-mode `both` rather than a base `opacity: 0`: the keyframe's own 0%
   state covers the delay, and if the animation never runs at all — no JS is
   not enough to matter here, but prefers-reduced-motion rules that set
   `animation: none` are — the element keeps its natural opacity and stays
   readable instead of being stuck invisible. */

[data-delay="1"] { animation-delay: .1s; }
[data-delay="2"] { animation-delay: .2s; }
[data-delay="3"] { animation-delay: .35s; }
[data-delay="4"] { animation-delay: .5s; }
[data-delay="5"] { animation-delay: .65s; }

/* Hero entrance. The stagger is deliberately short: the H1 is the LCP element
   on this page and Chrome will not record LCP for it while its opacity is 0,
   so every second of delay here is a second added to the reported LCP.
   The right-hand column is NOT animated here — it carries the idle float as
   well, and both animations have to be declared in one shorthand. See the
   motion block at the end of this file. */

/* Stat counter */

/* Section reveal */
/* Scroll-reveal start state.
   Gated on the `js` class that includes/header.php writes inline, so a visitor
   without JavaScript sees every section at full opacity instead of an empty
   page: the .visible class that lifts each element is added by
   initSectionReveal(), and nothing else would ever add it. */
.js .reveal {
  opacity:    0;
  transform:  translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
===================================================== */

/* Tablet: hide desktop nav center, show hamburger */
@media (max-width: 900px) {

  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image { aspect-ratio: 4/3; }
  .about-accent-card { right: 1rem; bottom: 1rem; }

  .faq-inner { grid-template-columns: 1fr; gap: 2rem; }
  .faq-header { position: static; }

}

@media (max-width: 640px) {
  :root { --nav-height: 64px; }

  .services-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr 1fr; }
  
  .blog-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

}

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

/* =====================================================
   MEGA MENU — FULL-WIDTH GLASS DROPDOWN
   Markup lives OUTSIDE .site-header: the pill's
   backdrop-filter would otherwise become the menu's
   containing block and squeeze it to pill width.
===================================================== */

body:has(.mega-menu-wrap:hover) .mega-menu,
body:has(.mega-menu-wrap:focus-within) .mega-menu {
  opacity:      1;
  pointer-events: all;
  visibility:   visible;
  transform:    none;
  transition:   opacity 0.2s ease, visibility 0s;
}

/* Column layout */

/* The chevron is decoration on a row that is already fully clickable; keeping
   it in the flow cost the label ~24px of width it needs. */

/* Right promo column */

/* Mega bottom strip */

/* =====================================================
   HOME PAGE — SERVICES OVERVIEW GRID
===================================================== */

.hp-service-card {
  background:    var(--clr-white);
  border:        1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding:       1.5rem;
  display:       flex;
  flex-direction:column;
  gap:           .85rem;
  transition:    transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
  text-decoration: none;
  color:         inherit;
}
.hp-service-card:hover {
  transform:    translateY(-5px);
  box-shadow:   var(--shadow-lg);
  border-color: var(--clr-primary);
}

/* =====================================================
   HOME PAGE — ABOUT / WHY US (two-column)
===================================================== */

/* =====================================================
   HOME PAGE — TREATMENT PROCESS TIMELINE
===================================================== */

/* Connecting line */

.process-step-item {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  text-align:     center;
  padding:        0 1rem;
  position:       relative;
  z-index:        1;
}

/* =====================================================
   HOME PAGE — FIRST VISIT BAND (examine → explain → decide)
===================================================== */

.first-visit-card {
  display:        flex;
  flex-direction: column;
  padding:        1.75rem 1.6rem 1.6rem;
}

/* =====================================================
   HOME PAGE — BEFORE/AFTER DRAG SLIDER
===================================================== */

.ba-slider-card {
  border-radius: var(--radius-lg);
  overflow:      hidden;
  background:    rgba(255,255,255,0.05);
  border:        1px solid rgba(255,255,255,0.1);
}

/* =====================================================
   HOME PAGE — TESTIMONIALS CAROUSEL
===================================================== */

/* The visible dot stays 8px, but it now sits inside a 24x44 button: the raw
   8px target failed Lighthouse target-size and the brief wants 44px taps. */

/* =====================================================
   HOME PAGE — APPOINTMENT CTA FORM BANNER
===================================================== */

/* The unpicked "Choose a treatment" row is :invalid — it must read as a
   placeholder on the white field, not as white-on-white invisible text. */

/* =====================================================
   HOME PAGE — FOOTER (updated class names)
===================================================== */

/* Sticky mobile bar */

/* =====================================================
   ADDITIONAL RESPONSIVE FOR NEW SECTIONS
===================================================== */
@media (max-width: 900px) {

  body { padding-bottom: 4.5rem; }
}

/* ========== STEP 5: BOT HONEYPOT + TOAST NOTIFICATIONS ========== */
/* Honeypot: visually removed, but still DOM-present so bots fill it */
.hp-field-wrap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Toast notifications (booking / form AJAX feedback) */
.dw-toast-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}
.dw-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: min(320px, 88vw);
  max-width: min(420px, 92vw);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--clr-success);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--clr-text-main);
  pointer-events: auto;
  transform: translateY(12px);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.dw-toast.show { transform: translateY(0); opacity: 1; }
.dw-toast--success { border-left-color: var(--clr-success); }
.dw-toast--error   { border-left-color: var(--clr-danger); }
.dw-toast--warn    { border-left-color: var(--clr-warning); }
.dw-toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.dw-toast--success .dw-toast-icon { background: var(--clr-success); }
.dw-toast--error   .dw-toast-icon { background: var(--clr-danger); }
.dw-toast--warn    .dw-toast-icon { background: var(--clr-warning); }

@media (prefers-reduced-motion: reduce) {
  .dw-toast { transition: none; transform: none; }
}

/* ========== BLOG / SERVICE ARTICLE LAYOUT (responsive, mobile-collapsing) ========== */
.blog-article-layout,
.two-col-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: flex-start;
}
.blog-article-sidebar,
.two-col-sidebar { position: sticky; top: 100px; }

@media (max-width: 900px) {
  .blog-article-layout,
  .two-col-layout { grid-template-columns: 1fr; }
  .blog-article-sidebar,
  .two-col-sidebar { position: static; top: auto; }
}

/* ========== TOKEN ALIASES — used by per-page inline styles ========== */
:root {
  --color-teal-50:    var(--clr-primary-light);
  --color-teal-300:   var(--clr-primary-soft-300);
  --color-teal-500:   var(--clr-primary);
  --color-teal-600:   var(--clr-primary-dark);
  --color-primary-900:#123047;
  --color-primary-950:var(--clr-navy);
  --color-text-body:  var(--clr-text-main);
  --color-text-muted: var(--clr-text-muted);
  --color-text-inverse-muted: rgba(255, 255, 255, 0.75);
  --color-bg-alt:     var(--clr-bg-light);
  --color-border:     var(--clr-border);
  --color-border-subtle: #eef2f7;
  --color-danger:     var(--clr-danger);
  --radius-xl:        28px;
  --radius-full:      var(--radius-pill);
}

/* Dark page-banner sections (blog, booking, service, contact headers) */

/* ============================================================================
   INNER-PAGE COMPONENT SYSTEM
   Buttons · Forms · Booking Stepper · Blogs · FAQ · Article · Drawer · Utils
   ============================================================================ */

/* ---------- 1. Button system ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .78rem 1.65rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid rgba(4, 128, 122, .45);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--clr-white);
  box-shadow: 0 6px 18px rgba(4, 128, 122, .28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--clr-white);
  color: var(--clr-dark);
  border-color: var(--clr-border);
}
.btn-secondary:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary-dark)); /* AA with white text: was var(--clr-primary) (2:1) */
  color: var(--clr-white);
  box-shadow: 0 6px 18px rgba(4, 128, 122, .30);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(4, 128, 122, .45);
}

.btn-sm {
  min-height: 44px;
  padding: .55rem 1.2rem;
  font-size: .86rem;
}

.btn-block { width: 100%; }

/* ---------- 2. Form controls ---------- */

/* Honeypot safety (wrap already off-screen) */
.hp-label {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- 3. Booking stepper & slots ---------- */
.booking-container-card {
  max-width: 920px;
  margin-inline: auto;
  background: var(--clr-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.booking-progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.step-indicator-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  flex: 1;
  color: var(--clr-text-muted);
}

.step-circle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--clr-border);
  background: var(--clr-white);
  font-size: .95rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  transition: all .3s ease;
}

.step-title-text {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.step-indicator-item.active .step-circle {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--clr-white);
  box-shadow: var(--shadow-glow);
}
.step-indicator-item.active .step-title-text { color: var(--clr-primary-dark); }

.step-indicator-item.completed .step-circle {
  background: var(--clr-primary-light);
  border-color: var(--clr-primary-muted);
  color: var(--clr-primary-dark);
}
.step-indicator-item.completed .step-title-text { color: var(--clr-primary-dark); }

.booking-form-step { animation: fadeSlideUp .4s ease both; }

.time-slot-pill {
  background: var(--clr-white);
  color: var(--clr-text-main);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
}
.time-slot-pill:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary-dark);
}
.time-slot-pill.selected {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--clr-white) !important;
  box-shadow: 0 4px 14px rgba(4, 128, 122, .35);
}

/* Success dialog lives in the BATCH A layer at the end of this file
   (.booking-dialog-overlay / .modal-card-box) — one home for the component. */
@keyframes modalPop {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 4. Blogs grid & cards ---------- */

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.32;
  color: var(--clr-dark);
  margin-bottom: .6rem;
}
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--clr-primary-dark); }

.blog-card-excerpt {
  flex: 1;
  font-size: .92rem;
  line-height: 1.68;
  color: var(--clr-text-muted);
  margin-bottom: 1.1rem;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
}

.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .87rem;
  font-weight: 600;
  color: var(--clr-primary);
  text-decoration: none;
  transition: color .2s ease, gap .2s ease;
}
.blog-card-read-more:hover {
  color: var(--clr-primary-dark);
  gap: .55rem;
}

/* ---------- 5. Article typography (blog posts) ---------- */
.lead {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-primary-900);
  margin-bottom: 1.5rem;
}

.article-typography-flow > *:first-child { margin-top: 0; }
.article-typography-flow p {
  margin-bottom: 1.35rem;
  color: var(--clr-text-main);
}
.article-typography-flow h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--clr-dark);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.article-typography-flow h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--clr-dark);
  margin: 2rem 0 .75rem;
  line-height: 1.35;
}
.article-typography-flow a {
  color: var(--clr-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-typography-flow a:hover { color: var(--clr-primary); }
.article-typography-flow ul,
.article-typography-flow ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}
.article-typography-flow li {
  margin-bottom: .5rem;
  line-height: 1.7;
}
.article-typography-flow li::marker { color: var(--clr-primary); }
.article-typography-flow strong { color: var(--clr-dark); }
.article-typography-flow img {
  border-radius: var(--radius-md);
  margin-block: 1.5rem;
}

/* ---------- 6. FAQ accordion ---------- */

.faq-item-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item-card.open {
  border-color: var(--clr-primary-muted);
  box-shadow: var(--shadow-sm);
}

.faq-summary-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.4rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--clr-dark);
  transition: color .2s ease;
}
.faq-summary-btn:hover { color: var(--clr-primary-dark); }
.faq-summary-btn:focus-visible {
  outline: 3px solid rgba(4, 128, 122, .45);
  outline-offset: -3px;
}
.faq-summary-btn::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.faq-item-card.open .faq-summary-btn::after {
  content: '−';
  background: var(--clr-primary);
  color: var(--clr-white);
}

.faq-contact-btn { margin-top: 2.25rem; }

/* ---------- 7. Pricing rows (fallback skin) ---------- */

/* ---------- 8. Section utilities & headers ---------- */

.section-sub {
  margin-top: .75rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--clr-text-muted);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 9. Navbar / logo / trust bar bits ---------- */

.logo-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--clr-white);
}

.logo-sub {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}

/* ---------- 10. Mobile drawer internals ---------- */

/* Collapsed via max-height — JS animates inline max-height */

/* ---------- 11. Homepage misc components ---------- */

.why-about-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .25rem;
  font-weight: 600;
  color: var(--clr-primary-dark);
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.why-about-link:hover { color: var(--clr-primary); }

.doctor-stars-score {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--clr-dark);
}

/* ---------- 12. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn,
.faq-summary-btn::after,
.modal-card-box,
.booking-form-step {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover { transform: none; }
}

/* =====================================================
   HOMEPAGE POLISH — form contrast, BA photos, carousel,
   blog & pricing cards, reveal safety
===================================================== */

/* Light pill label on dark/teal sections */

/* Booking note readable on teal + full-width submit */

/* Honeypot standalone field */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

/* Before/After real photos + dark-section captions */

/* Testimonial slide readability + stars + 2-per-view at tablet */

/* Blog cards: equal heights, clamped title & excerpt */
.blog-grid .blog-card { display:flex; flex-direction:column; }
.blog-grid .blog-card-thumb img {
  width:100%; height:100%; object-fit:cover; display:block;
}
.blog-grid .blog-card-title {
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.blog-grid .blog-card-excerpt {
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  flex: 1; margin-bottom: 0;
}
.blog-grid .blog-card-footer { margin-top: 1rem; }

/* Pricing cards: flex column so disclaimer/link align at bottom */

/* No ::before tick here — the markup already renders a sprite check icon, and
   the pseudo-element was painting a second ✓ in front of it. */

/* Reveal: never hide content if JS/observer is unavailable.
   `html:not(.js)` is the real version of the no-js guard that used to sit here
   — no script ever added a `no-js` class, so it matched nothing. The start
   state above is already gated on `.js`, so this is the belt-and-braces case
   for a stylesheet loaded while the inline marker in the head was blocked. */
html:not(.js) .reveal,
.reveal.visible { opacity:1; }
@media (prefers-reduced-motion: reduce) {
  /* Needs the `.js` prefix to match the specificity of the gated start state. */
  .js .reveal { opacity:1; transform:none; transition:none; }
}

/* =====================================================
   PREMIUM UI PASS — booking form rebuild, scroll progress,
   staggered reveals, micro-interactions
===================================================== */

/* --- Booking panel (bottom CTA) --- */

@keyframes apptLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(118, 206, 201,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(118, 206, 201,0); }
  100% { box-shadow: 0 0 0 0 rgba(118, 206, 201,0); }
}

/* Equal-height, predictable fields */

/* --- Scroll progress bar --- */
.dw-scroll-progress {
  position:    fixed;
  top:         0; left: 0;
  height:      3px;
  /* Full width scaled from 0 instead of an animated `width`: a width change
     re-lays-out the whole page on every scroll frame, whereas a transform is
     composited. The script drives --/style.transform. */
  width:       100%;
  transform:   scaleX(0);
  transform-origin: left center;
  z-index:     1200;
  background:  var(--gradient-primary, linear-gradient(90deg, var(--clr-primary), var(--clr-primary-dark)));
  box-shadow:  0 0 12px rgba(4, 128, 122,.55);
  transition:  transform .08s linear;
  pointer-events: none;
}

/* --- Staggered reveals ---
   No blanket `will-change` here. It used to promote every .reveal element to
   its own compositing layer at once — on a mid-range phone that is ~50 layers
   of extra memory and paint work for a transition that only lasts .65s. The
   browser composites opacity/transform transitions on its own. */

/* --- Card micro-interactions --- */
.hp-service-card,
.blog-card,
.ba-slider-card {
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.blog-card:hover {
  transform:  translateY(-8px);
  box-shadow: 0 24px 50px -22px rgba(15,31,46,.32);
}
.blog-card-thumb img { transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.blog-card:hover .blog-card-thumb img { transform: scale(1.08); }
.hp-service-card:hover {
  transform:  translateY(-6px);
  box-shadow: 0 20px 44px -20px rgba(2, 96, 107,.4);
}
.ba-slider-card:hover { border-color: rgba(4, 128, 122,.55); }

/* --- Focus visibility for keyboard users --- */

@media (prefers-reduced-motion: reduce) {
  
  .doctor-card-image img,
  .blog-card-thumb img { transition: none; }
  .dw-scroll-progress { transition: none; }
}

.doctor-card-exp {
  position:       absolute;
  z-index:        2;
  top:            .7rem;
  right:          .7rem;
  font-size:      .66rem;
  font-weight:    700;
  color:          #ffffff;
  background:     rgba(1, 50, 68,.62);
  border:         1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(6px);
  padding:        .28rem .6rem;
  border-radius:  var(--radius-pill);
}

@media (max-width: 640px) {
  .doctors-grid { grid-template-columns: 1fr; }
  .doctor-card-image { aspect-ratio: 16 / 10; }
  .doctor-card-exp { display: none; }
}
@media (max-width: 900px) and (min-width: 641px) {
  .doctors-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Booking CTA trust list --- */

/* =====================================================
   HERO MATCH — compact right column, larger headline
===================================================== */

/* =====================================================
   BATCH A — ICON SPRITE PRIMITIVES
   Every icon on the site is one inline <symbol> drawn at
   1.75px stroke on a 24px grid. Tiles are the tinted
   rounded squares used by cards, menus and process steps.
===================================================== */
.dw-icon-sprite {
  position: absolute;
  width:    0;
  height:   0;
  overflow: hidden;
}
.dw-icon {
  display:     block;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dw-icon-tile {
  width:         48px;
  height:        48px;
  border-radius: 12px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  background:    var(--clr-primary-light);
  border:        1px solid var(--clr-primary-muted);
  color:         var(--clr-primary-dark);
  transition:    background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  flex-shrink:   0;
}
.dw-card:hover .dw-icon-tile,
.hp-service-card:hover .dw-icon-tile {
  background: var(--gradient-primary);
  border-color: var(--clr-primary-dark);
  color:    var(--clr-white);
}

.dw-stars {
  display:   inline-flex;
  align-items: center;
  gap:       2px;
}
.dw-star { color: var(--clr-warning); }

/* =====================================================
   BATCH A — TYPOGRAPHY
   Playfair Display is for H1/H2 only. Every number that
   must look like a number (stats, prices, ratings) takes
   .dw-num: Poppins 600 with lining, tabular figures —
   Playfair's old-style texturing numerals made "5.0" and
   "10K+" render with lowered, uneven digits.
===================================================== */
h1, .h1, h2, .h2 { font-family: var(--font-heading); }
h3, h4, h5, h6 {
  font-family:   var(--font-body);
  font-weight:   700;
  letter-spacing:-.01em;
}
.dw-num {
  font-family:            var(--font-body);
  font-weight:            600;
  font-variant-numeric:   lining-nums tabular-nums;
  font-feature-settings:  "lnum" 1, "tnum" 1;
  letter-spacing:         -.015em;
}

/* =====================================================
   BATCH A — SECTION RHYTHM + TINTS
   .section-pad owns the vertical rhythm only; horizontal
   padding belongs to .container, so sections never get
   double side padding.
===================================================== */
.section-pad { padding: var(--section-pad) 0; }

.faq-section,
.doctors-section { padding-left: 0; padding-right: 0; }
.bg-light { background: var(--clr-bg-light); }
.bg-white { background: var(--clr-white); }
.bg-dark  { background: var(--clr-navy); }

/* =====================================================
   BATCH A — SECTION HEAD (badge + H2 + subtitle)
   Rendered by dw_section_head(). Two variants: is-center
   (640px measure, truly centered) and is-left.
===================================================== */
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.is-center {
  max-width:     640px;
  margin-inline: auto;
  text-align:    center;
}
.section-head.is-center .section-sub { margin-inline: auto; }
.section-head.is-left {
  max-width:     640px;
  margin-inline: 0;
  text-align:    left;
}
.section-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            .5rem;
  font-family:    var(--font-body);
  font-size:      .74rem;
  font-weight:    600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color:          var(--clr-primary-dark);
  background:     var(--clr-primary-light);
  border:         1px solid var(--clr-primary-muted);
  padding:        .35rem .9rem;
  border-radius:  var(--radius-pill);
}
.section-head .section-title { margin-top: .95rem; }
.section-head .section-sub   { margin-top: .9rem; }

/* Heads that sit on a dark band (before/after section) */
.bg-dark .section-badge {
  background:   rgba(4, 128, 122,.16);
  border-color: rgba(4, 128, 122,.4);
  color:        var(--color-teal-300);
}
.bg-dark .section-title { color: var(--clr-white); }
.bg-dark .section-sub   { color: rgba(255,255,255,.72); }

/* =====================================================
   BATCH A — UNIFIED CARD
   One radius, one hairline border, one layered shadow and
   one hover lift for every card family on the site.
===================================================== */
:root {
  --card-radius:  16px;
  --card-border:  1px solid var(--clr-border);
  --card-shadow:  0 1px 2px rgba(15,31,46,.05), 0 10px 24px -12px rgba(15,31,46,.14);
  --card-shadow-hover: 0 2px 4px rgba(15,31,46,.06), 0 22px 44px -16px rgba(2, 96, 107,.28);
}
.dw-card {
  background:    var(--clr-white);
  border:        var(--card-border);
  border-radius: var(--card-radius);
  box-shadow:    var(--card-shadow);
  overflow:      hidden;
  transition:    transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}
a.dw-card:hover,
.dw-card:hover {
  transform:    translateY(-4px);
  box-shadow:   var(--card-shadow-hover);
  border-color: var(--clr-primary-muted);
}
.dw-card:focus-within { border-color: var(--clr-primary); }

/* "Most popular" style ribbon for a featured card */

/* Equal-height rows: every card in a grid stretches, not just the tallest */

.doctors-grid,
.blog-grid { align-items: stretch; }
.hp-service-card,
.doctor-profile-card,
.first-visit-card,
.blog-card { height: 100%; }

/* Testimonial slides sit in a flex row, not a grid. A percentage height makes
   the item's cross-size definite, which silently cancels the track's stretch —
   so each card sized to its own quote and the rows jagged. */

/* Buttons and links inside cards never wrap onto a second line */
.btn-book-sm,
.blog-card-read-more { white-space: nowrap; }

/* Multi-line titles are clamped so every card in a row matches */

/* =====================================================
   BATCH A — HERO RIGHT COLUMN
   Icon-led mini stats replace the stock patient-face
   avatars (a real patient photo must never be guessed).
===================================================== */

/* =====================================================
   BATCH A — DOCTOR CARDS
   Photo (4/5, top-anchored) or a neutral initials avatar
   until the clinic supplies a real photograph. PMDC and
   experience badges stack in one column; one full-width
   single-line action per card.
===================================================== */
.doctor-profile-card {
  display:        flex;
  flex-direction: column;
  border-radius:  var(--card-radius);
}
/* 4/3 keeps the card about the height of the guide cards beside it; the 4/5
   band made the team row the tallest block on the page. */
.doctor-card-image { aspect-ratio: 4 / 3; }
.doctor-card-image img { object-position: top center; }
.doctor-avatar-initials {
  position:      absolute;
  inset:         0;
  display:       flex;
  align-items:   center;
  justify-content: center;
  font-family:   var(--font-body);
  font-size:     2.5rem;
  font-weight:   700;
  letter-spacing:.02em;
  color:         var(--clr-primary-dark);
  /* Medallion drawn as a background layer, never a pseudo-element: a positioned
     ::before would paint over the initials, and a background layer always sits
     under the text. It makes an un-supplied photograph read as a deliberate
     monogram instead of an empty frame. */
  background:
    radial-gradient(circle 53px at 50% 50%,
      rgba(255,255,255,.55) 0 44px,
      rgba(255,255,255,0)   44px 49px,
      rgba(2, 96, 107,.20)  49px 50.5px,
      rgba(255,255,255,0)   50.5px),
    radial-gradient(120% 90% at 50% 0%, var(--clr-primary-soft-50) 0%, var(--clr-primary-light) 60%, var(--clr-primary-soft-100) 100%);
}
.doctor-card-badges {
  position:       absolute;
  z-index:        2;
  top:            .7rem;
  left:           .7rem;
  right:          .7rem;
  display:        flex;
  flex-direction: column;
  align-items:    flex-start;
  gap:            .35rem;
}
.doctor-card-badge {
  position:   static;
  background: rgba(255,255,255,.95);
  color:      var(--clr-primary-dark);
  font-size:  .65rem;
  gap:        .3rem;
}
.doctor-card-badge .dw-icon { color: var(--clr-primary); }
.doctor-card-exp {
  position:      static;
  display:       inline-flex;
  align-items:   center;
  font-family:   var(--font-body);
  font-size:     .65rem;
  font-weight:   600;
  color:         var(--clr-white);
  background:    rgba(1, 50, 68,.62);
  padding:       .26rem .6rem;
  border-radius: var(--radius-pill);
  white-space:   nowrap;
}
.doctor-card-body { flex: 1 1 auto; }
.doctor-card-degrees {
  display:            -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:           hidden;
}
.doctor-card-footer {
  display:         grid;
  gap:             .6rem;
  align-items:     center;
  justify-content: stretch;
}
.doctor-stars-row { justify-content: space-between; }
.doctor-card-schedule {
  font-size:   .72rem;
  color:       var(--clr-text-muted);
  display:     inline-flex;
  align-items: center;
  gap:         .35rem;
}
.btn-book-sm {
  width:      100%;
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  gap:           .45rem;
  min-height:    44px;
  font-size:     .82rem;
}

/* =====================================================
   BATCH A — PRICING PREVIEW
===================================================== */

   /* one grid-level note, not four */

/* =====================================================
   BATCH A — BEFORE / AFTER SLIDER
   A real range input overlays the image: pointer drag,
   touch drag and arrow keys all work; the visible handle
   is decorative. The reveal position lives in --pos.
===================================================== */

/* Keyboard focus must stay visible even though the input is transparent */

.ba-slider-card.dw-card {
  background: rgba(255,255,255,.05);
  border:     1px solid rgba(255,255,255,.12);
  box-shadow: none;
}
.ba-slider-card.dw-card:hover {
  transform:    translateY(-4px);
  box-shadow:   0 22px 44px -20px rgba(0,0,0,.6);
  border-color: rgba(118, 206, 201,.5);
}

/* Legacy slider markup — no longer used anywhere */

/* =====================================================
   BATCH A — WHY-US COLLAGE
   Main image centre-cropped, second small image overlaps
   the corner, experience badge kept.
===================================================== */

.why-about-link { display: inline-flex; align-items: center; gap: .4rem; }

/* =====================================================
   BATCH A — TESTIMONIAL SLIDES
===================================================== */

/* =====================================================
   BATCH A — BLOG CARDS
===================================================== */
.blog-card { display: flex; flex-direction: column; }
/* 1200/630 is the dashboard's blog banner ratio. At the old 16/10 the cover
   crop ate ~95px of each side, and these banners have the article title
   baked into the artwork, so the first letters were being cut off. */
.blog-card-thumb { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--clr-primary-light); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.blog-card-title {
  display:            -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:           hidden;
}
.blog-card-excerpt {
  display:            -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:           hidden;
}
.blog-meta { font-size: .74rem; color: var(--clr-text-muted); font-variant-numeric: lining-nums tabular-nums; }
.blog-card-read-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; }

/* =====================================================
   BATCH A — FAQ +/− INDICATOR
===================================================== */
.faq-ico { position: relative; width: 22px; height: 22px; flex-shrink: 0; margin-left: auto; }
.faq-ico .dw-icon {
  position:   absolute;
  inset:      0;
  margin:     auto;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.faq-ico-minus { opacity: 0; }
.faq-item.open .faq-ico-plus  { opacity: 0; transform: rotate(90deg); }
.faq-item.open .faq-ico-minus { opacity: 1; }

/* =====================================================
   BATCH A — QUICK BOOKING CTA
   Deep teal→navy gradient so the white heading and body
   copy clear WCAG AA (flat brand teal only reached 2.7:1).
   Every field is 48px tall with AA-safe placeholders and
   inline error messages.
===================================================== */

.appt-date  { letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; }
.field-error {
  font-size:   .75rem;
  line-height: 1.45;
  color:       #b3261e;
  margin-top:  .35rem;
}
.field-error[hidden] { display: none; }

/* =====================================================
   BATCH A — FLOATING STACK (WhatsApp + back to top)
   One stacked container, 12px apart, never over content.
===================================================== */

/* The stack sits above the mobile call/book bar, never on it */

/* Bottom room so the stack never covers the footer bottom bar */

/* =====================================================
   BATCH A — FOOTER
===================================================== */

/* =====================================================
   BATCH A — SHARED INNER-PAGE PRIMITIVES
   Used by contact.php and the inner pages so they stop
   inventing one-off layouts for the same thing.
   (The inner-page banner itself moved to the single
   .page-hero / .ph-* block at the foot of this file —
   it is rendered once by includes/page-hero.php now.)
===================================================== */

.clinic-card-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:                   1.25rem;
}
/* Cards stack: head row, then copy, then the action link. A flex ROW here laid
   the address paragraphs and the "Get directions" link out side by side, and
   the link ran straight past the card edge. */
.info-card {
  display:        flex;
  flex-direction: column;
  gap:            .5rem;
  padding:        1.35rem;
}
.info-card-head {
  display:     flex;
  align-items: center;
  gap:         .7rem;
  margin-bottom: .1rem;
}
.info-card-head h3 {
  font-family: var(--font-body);
  font-size:   .98rem;
  font-weight: 700;
  color:       var(--clr-dark);
}
.info-card > p {
  font-size:   .85rem;
  color:       var(--clr-text-main);
  line-height: 1.65;
  word-break:  break-word;
}
.info-card-landmark {
  font-size:   .76rem;
  color:       var(--clr-text-muted);
  line-height: 1.55;
}
.info-card-link {
  display:        flex;
  align-items:    center;
  gap:            .4rem;
  align-self:     flex-start;
  margin-top:     .3rem;
  font-size:      .8rem;
  font-weight:    700;
  color:          var(--clr-primary-dark);
  text-decoration: none;
}
.info-card-link svg { flex: none; color: var(--clr-primary); }
.info-card-link:hover { color: var(--clr-primary); text-decoration: underline; }
.hours-list {
  display:    flex;
  flex-direction: column;
  gap:        .4rem;
  margin-top: .15rem;
  list-style: none;
}
.hours-list > li {
  display:     flex;
  justify-content: space-between;
  align-items: baseline;
  gap:         1rem;
  font-size:   .82rem;
}
.hours-list > li > span { color: var(--clr-text-muted); }
.hours-list > li > b {
  color:       var(--clr-dark);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}

.dw-form { display: flex; flex-direction: column; gap: 1.1rem; }
.dw-form .form-group { gap: .4rem; }
.dw-form input,
.dw-form select,
.dw-form textarea {
  min-height:  48px;
  width:       100%;
  border:      1px solid #cbd5e1;
  border-radius:12px;
  padding:     0 .9rem;
  font-size:   .9rem;
  color:       var(--clr-dark);
  background:  var(--clr-white);
}
.dw-form textarea { height: auto; min-height: 120px; padding: .7rem .9rem; }
.dw-form input:focus,
.dw-form select:focus,
.dw-form textarea:focus {
  outline:      none;
  border-color: var(--clr-primary);
  box-shadow:   0 0 0 3px rgba(4, 128, 122,.2);
}
.dw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-banner {
  display:      flex;
  align-items:  flex-start;
  gap:          .65rem;
  font-size:    .84rem;
  line-height:  1.6;
  border-radius:12px;
  padding:      .9rem 1.1rem;
  background:   var(--clr-primary-light);
  border:       1px solid var(--clr-primary-muted);
  color:        var(--clr-primary-deep);
}
.form-banner.is-err { background: #fdf1f0; border-color: #f3c3bf; color: #8f1d18; }
.whatsapp-cta {
  display:      flex;
  align-items:  center;
  gap:          .7rem;
  padding:      1.1rem 1.25rem;
  border-radius:var(--card-radius);
  background:   var(--clr-primary-dark);
  color:        var(--clr-white);
  font-weight:  600;
  font-size:    .88rem;
  transition:   transform var(--transition-fast), box-shadow var(--transition-fast);
}
.whatsapp-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0,0,0,.45); }
.whatsapp-cta span { display: block; font-weight: 400; font-size: .78rem; opacity: .85; margin-top: .15rem; }
.map-frame {
  border-radius: var(--card-radius);
  overflow:      hidden;
  border:        1px solid var(--clr-border);
  background:    var(--clr-bg-light);
}
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }
.side-note {
  font-size:   .8rem;
  line-height: 1.65;
  color:       var(--clr-text-muted);
  background:  var(--clr-white);
  border:      1px solid var(--clr-border);
  border-left: 3px solid var(--clr-primary);
  border-radius:12px;
  padding:     .95rem 1.1rem;
}

.contact-grid-inner {
  display:               grid;
  grid-template-columns: 1.05fr .95fr;
  gap:                   clamp(1.5rem, 4vw, 3rem);
  align-items:           start;
}

/* ------------------------------------------------------------------------------
   BATCH A — LONG-FORM TEXT + 404
   .dw-prose carries legal / article copy so no page needs inline styles again.
------------------------------------------------------------------------------ */
.dw-prose {
  max-width:     860px;
  margin-inline: auto;
  padding:       clamp(1.75rem, 4vw, 3rem);
  font-size:     .95rem;
  line-height:   1.85;
  color:         var(--clr-text-main);
}
.dw-prose h2 {
  font-size:     1.2rem;
  color:         var(--clr-dark);
  margin:        2rem 0 .6rem;
  scroll-margin-top: 6rem;
}
.dw-prose h2:first-of-type { margin-top: 1.25rem; }
.dw-prose p  { margin-bottom: 1rem; }
.dw-prose ul { padding-left: 1.15rem; margin-bottom: 1.15rem; }
.dw-prose li { margin-bottom: .45rem; }
.dw-prose a  { color: var(--clr-primary-dark); font-weight: 600; }
.dw-prose-lead {
  font-size:   1.05rem;
  line-height: 1.75;
  color:       var(--clr-dark);
  font-weight: 500;
}
.dw-prose-foot {
  margin-top:  2rem;
  padding-top: 1.25rem;
  border-top:  1px solid var(--clr-border);
  font-size:   .8rem;
  color:       var(--clr-text-muted);
}

.nf-help {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             1.25rem;
  padding:         1.5rem 1.75rem;
  border-radius:   var(--card-radius);
  background:      var(--clr-primary-light);
  border:          1px solid var(--clr-primary-muted);
}
.nf-help-title { font-size: 1.1rem; color: var(--clr-dark); }
.nf-help-sub   { font-size: .85rem; color: var(--clr-primary-deep); margin-top: .3rem; }
.nf-help-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.nf-links {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap:                   1rem;
  margin-top:            2rem;
}
.nf-link {
  display:     flex;
  align-items: center;
  gap:         .7rem;
  padding:     .95rem 1.1rem;
  font-size:   .86rem;
  font-weight: 600;
  color:       var(--clr-dark);
}

/* ------------------------------------------------------------------------------
   BATCH A — SHARED INNER-PAGE BANDS
   .cta-band replaces the old flat var(--clr-primary) footer CTA, which failed
   AA contrast with white text. (The hero button row now lives in the single
   .ph-actions rule at the foot of this file.)
------------------------------------------------------------------------------ */
.cta-band {
  padding:    clamp(3.25rem, 6vw, 5rem) var(--container-px);
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary-dark) 42%, #0c1b2a 100%);
  text-align: center;
}
.cta-band-inner { max-width: 720px; }
.cta-band .section-badge {
  color:        var(--clr-primary-soft-200);
  background:   rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
}
.cta-band .section-title { color: var(--clr-white); }
.cta-band .section-sub   { color: rgba(255,255,255,.86); margin-top: 1rem; }
.cta-band-actions {
  display:      flex;
  flex-wrap:    wrap;
  gap:          .75rem;
  justify-content: center;
  margin-top:   2rem;
}

/* Treatment directory */
.svc-filter-bar {
  padding:     1.75rem var(--container-px) 0;
  background:  var(--clr-white);
}
.svc-filter-bar .services-filter { margin-bottom: 0; }
.filter-btn {
  display:     inline-flex;
  align-items: center;
  gap:         .45rem;
  min-height:  40px;
  font-weight: 600;
}
.filter-count {
  font-size:      .7rem;
  font-weight:    700;
  padding:        .1rem .45rem;
  border-radius:  var(--radius-pill);
  background:     var(--clr-bg-light);
  color:          var(--clr-text-muted);
}
.filter-btn.active .filter-count { background: rgba(255,255,255,.22); color: #fff; }
.services-grid         { align-items: stretch; }
.services-grid .service-card {
  display:           flex;
  position:          relative;
  padding:           1.6rem;
  gap:               .85rem;
}
.services-grid .service-card[hidden] { display: none; }
.service-card:hover .dw-icon-tile { background: var(--gradient-primary); color: var(--clr-white); }
.svc-card-cat {
  font-size:      .68rem;
  font-weight:    700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color:          var(--clr-primary-dark);
}
.service-card .service-name { font-size: 1.02rem; }
.services-empty {
  text-align:  center;
  padding:     3rem 1rem;
  color:       var(--clr-text-muted);
  font-size:   .9rem;
}
.services-empty a { color: var(--clr-primary-dark); font-weight: 600; }

/* ------------------------------------------------------------------------------
   BATCH A — TREATMENT DETAIL PAGE
------------------------------------------------------------------------------ */
.svc-specs {
  display:        flex;
  flex-wrap:      wrap;
  gap:            1.5rem;
  margin-top:     1.75rem;
  padding-top:    1.4rem;
  border-top:     1px solid rgba(255,255,255,.16);
}
.svc-spec dt {
  display:     flex;
  align-items: center;
  gap:         .35rem;
  font-size:   .7rem;
  font-weight: 700;
  letter-spacing:.03em;
  text-transform: uppercase;
  color:       var(--clr-primary-soft-200);
}
.svc-spec dd {
  margin:      .3rem 0 0;
  font-size:   .88rem;
  font-weight: 500;
  color:       var(--clr-white);
  max-width:   26ch;
}
.svc-body { min-width: 0; }
.svc-hero-image {
  margin:       0 0 2.25rem;
  padding:      0;
  overflow:     hidden;
  aspect-ratio: 16 / 9;
}
.svc-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-h2 {
  font-size:     clamp(1.5rem, 3vw, 2rem);
  color:         var(--clr-dark);
  margin-bottom: .85rem;
}
.svc-h3 {
  font-size:     1.15rem;
  color:         var(--clr-dark);
  margin:        2.5rem 0 1.1rem;
}
.svc-lead {
  font-size:     1rem;
  line-height:   1.85;
  color:         var(--clr-text-main);
}
.benefit-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:                   .85rem;
  list-style:            none;
}
.benefit-item {
  display:     flex;
  align-items: flex-start;
  gap:         .7rem;
  padding:     1rem 1.1rem;
  font-size:   .88rem;
  line-height: 1.6;
  color:       var(--clr-text-main);
  background:  var(--clr-bg-light);
  border:      1px solid var(--clr-border);
  border-radius:12px;
}
.benefit-check { color: var(--clr-primary-dark); flex-shrink: 0; margin-top: .1rem; }
.svc-steps {
  display:     flex;
  flex-direction: column;
  gap:         .9rem;
  list-style:  none;
  counter-reset: none;
}
.svc-step {
  display:     flex;
  align-items: flex-start;
  gap:         1rem;
  padding:     1.25rem 1.35rem;
}
.svc-step-num {
  flex-shrink:   0;
  width:         34px;
  height:        34px;
  display:       flex;
  align-items:   center;
  justify-content: center;
  border-radius: 50%;
  font-size:     .85rem;
  font-weight:   700;
  color:         var(--clr-white);
  background:    var(--gradient-primary);
}
.svc-step-title { font-size: 1rem; color: var(--clr-dark); margin-bottom: .3rem; }
.svc-step-desc  { font-size: .87rem; color: var(--clr-text-muted); line-height: 1.7; }
.svc-faq .faq-item.open .faq-answer { max-height: 640px; }

.svc-side-card {
  position:  sticky;
  top:       100px;
  padding:   1.75rem;
  display:   flex;
  flex-direction: column;
  gap:       .85rem;
}
.svc-side-label {
  font-size:      .7rem;
  font-weight:    700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color:          var(--clr-primary-dark);
}

.svc-side-note { font-size: .8rem; line-height: 1.65; color: var(--clr-text-muted); }
.svc-side-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .35rem; }
.svc-side-standards {
  display:     flex;
  flex-direction: column;
  gap:         .6rem;
  list-style:  none;
  margin-top:  .5rem;
  padding-top: 1.15rem;
  border-top:  1px solid var(--clr-border);
}
.svc-side-standards li {
  display:     flex;
  align-items: flex-start;
  gap:         .6rem;
  font-size:   .8rem;
  line-height: 1.55;
  color:       var(--clr-text-main);
}
.svc-side-standards .dw-icon { color: var(--clr-primary-dark); flex-shrink: 0; margin-top: .12rem; }
.svc-side-hours {
  display:     flex;
  align-items: flex-start;
  gap:         .55rem;
  font-size:   .75rem;
  line-height: 1.55;
  color:       var(--clr-text-muted);
  margin-top:  .25rem;
}

.svc-related {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:                   1rem;
  margin-top:            1.75rem;
}
.svc-related-card {
  display:   grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "icon name arrow" "icon cat arrow";
  align-items: center;
  column-gap:  .9rem;
  padding:     1.05rem 1.15rem;
}
.svc-related-card .dw-icon-tile { grid-area: icon; }
.svc-related-name { grid-area: name; font-size: .92rem; font-weight: 700; color: var(--clr-dark); }
.svc-related-cat  { grid-area: cat;  font-size: .74rem; color: var(--clr-text-muted); margin-top: .15rem; }
.svc-related-arrow { grid-area: arrow; color: var(--clr-primary); transition: transform var(--transition-fast); }
.svc-related-card:hover .svc-related-arrow { transform: translateX(3px); }

/* =====================================================
   BATCH A — TEAM PAGE (about-doctor.php)
===================================================== */
.about-image { position: relative; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image .doctor-avatar-initials { font-size: 4.5rem; }

.about-role {
  font-size:   1rem;
  font-weight: 600;
  color:       var(--clr-primary);
}
.degree-pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.degree-pill {
  background:    var(--clr-primary-light);
  color:         var(--clr-primary-dark);
  font-size:     .74rem;
  font-weight:   600;
  padding:       .3rem .75rem;
  border-radius: var(--radius-pill);
  white-space:   nowrap;
}
.about-quote {
  border-left:   4px solid var(--clr-primary);
  background:    var(--clr-primary-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding:       1.1rem 1.25rem;
  margin:        0;
  font-style:    italic;
  font-size:     .95rem;
  line-height:   1.7;
  color:         var(--clr-dark);
}
.about-sub-label {
  font-size:      .72rem;
  font-weight:    700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:          var(--clr-text-muted);
  margin-bottom:  .55rem;
}
.about-facts {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap:                   .75rem;
}
.about-fact {
  display:     flex;
  align-items: flex-start;
  gap:         .6rem;
  font-size:   .82rem;
  line-height: 1.55;
  color:       var(--clr-text-main);
}
.about-fact .dw-icon { color: var(--clr-primary-dark); margin-top: .15rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.tech-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:                   1.25rem;
}
.tech-card {
  background:    rgba(255,255,255,.05);
  border:        1px solid rgba(255,255,255,.12);
  border-radius: var(--card-radius);
  padding:       1.75rem;
}
.tech-card .dw-icon-tile {
  background:   rgba(4, 128, 122,.16);
  border-color: rgba(4, 128, 122,.34);
  color:        var(--color-teal-300);
}
.tech-card h3 {
  font-family: var(--font-body);
  font-size:   1rem;
  font-weight: 700;
  color:       var(--clr-white);
  margin:      1.1rem 0 .5rem;
}
.tech-card p {
  font-size:   .87rem;
  line-height: 1.7;
  color:       rgba(255,255,255,.7);
}

/* =====================================================
   BATCH A — PKR PRICE PAGE
===================================================== */

/* =====================================================
   BATCH A — BLOG INDEX (blogs.php)
   Same .blog-card dw-card primitive as the homepage grid,
   plus the newsletter panel that posts to contact.php.
===================================================== */
.blog-empty {
  text-align: center;
  padding:    3rem 1rem;
  color:      var(--clr-text-muted);
  font-size:  .92rem;
}
.blog-empty a { color: var(--clr-primary-dark); font-weight: 600; }

.blog-newsletter {
  margin:          3.5rem auto 0;
  max-width:       620px;
  padding:         clamp(1.75rem, 4vw, 2.5rem);
  text-align:      center;
  background:      var(--clr-bg-light);
  border:          1px solid var(--clr-border);
  border-radius:   var(--card-radius);
  box-shadow:      var(--card-shadow);
}
.blog-newsletter-icon { display: flex; justify-content: center; margin-bottom: .9rem; }
.blog-newsletter h3 {
  font-family:   var(--font-heading);
  font-size:     1.35rem;
  color:         var(--clr-dark);
  margin-bottom: .5rem;
}
.blog-newsletter > p {
  font-size:   .88rem;
  color:       var(--clr-text-muted);
  line-height: 1.65;
  margin:      0 auto 1.4rem;
  max-width:   44ch;
}
.blog-newsletter-form {
  display:       flex;
  gap:           .6rem;
  flex-wrap:     wrap;
  justify-content: center;
  max-width:     460px;
  margin:        0 auto;
}
.blog-newsletter-input {
  flex:       1 1 220px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  text-align:  left;
}
.blog-newsletter-btn { flex: 0 0 auto; white-space: nowrap; }
.blog-newsletter-note {
  font-size:   .76rem;
  color:       var(--clr-text-muted);
  line-height: 1.6;
  margin:      1rem auto 0;
  max-width:   52ch;
}

/* =====================================================
   BATCH A — FORM STATE (every form on the site)
   .is-invalid used to be styled only inside the dark
   homepage CTA band, so on white pages an invalid field
   showed the message but no border. Now one rule set.
===================================================== */
.req { color: var(--clr-danger); font-weight: 700; }
.opt { color: var(--clr-text-muted); font-weight: 400; font-size: .78rem; }
.form-hint {
  font-size:   .78rem;
  line-height: 1.55;
  color:       var(--clr-text-muted);
  /* The groups in the booking steps carry no margin of their own, so a hint is
     the one piece of text that would otherwise sit flush on the next label. */
  margin:      .1rem 0 .9rem;
}

.form-control.is-invalid,
.dw-form input.is-invalid,
.dw-form select.is-invalid,
.dw-form textarea.is-invalid {
  border-color: var(--clr-danger);
  box-shadow:   0 0 0 3px rgba(198, 40, 40, .12);
}
.field-error {
  display:      flex;
  align-items:  flex-start;
  gap:          .35rem;
  margin:       .1rem 0 0;
  font-size:    .78rem;
  line-height:  1.5;
  font-weight:  600;
  color:        var(--clr-danger);
}

/* =====================================================
   BATCH A — BOOKING WIZARD (book-appointment.php)
   ===================================================== */
.booking-wrap { max-width: 940px; margin-inline: auto; }

.booking-progress-bar {
  list-style:   none;
  margin:       0 0 2.25rem;
  padding:      0 0 1.5rem;
}
.step-indicator-item { list-style: none; }

.booking-form-step[hidden] { display: none; }

.booking-step-title {
  font-family:   var(--font-heading);
  font-size:     clamp(1.2rem, 2.4vw, 1.45rem);
  color:         var(--clr-dark);
  margin:        0 0 .4rem;
}
.booking-step-help {
  font-size:   .86rem;
  color:       var(--clr-text-muted);
  line-height: 1.6;
  margin:      0 0 1.75rem;
}

.booking-step-nav {
  display:       flex;
  justify-content: space-between;
  align-items:   center;
  gap:           .75rem;
  margin-top:    2rem;
}
.booking-step-nav.is-end { justify-content: flex-end; }

.btn-ghost-back {
  display:       inline-flex;
  align-items:   center;
  gap:           .45rem;
  padding:       .7rem 1.15rem;
  min-height:    48px;
  border:        1.5px solid var(--clr-border);
  border-radius: var(--radius-pill);
  background:    transparent;
  color:         var(--clr-text-main);
  font-family:   var(--font-body);
  font-size:     .85rem;
  font-weight:   600;
  cursor:        pointer;
  white-space:   nowrap;
  transition:    border-color var(--transition-fast), color var(--transition-fast);
}
.btn-ghost-back:hover { border-color: var(--clr-primary); color: var(--clr-primary-dark); }

.booking-slot-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap:                   .7rem;
  margin-top:            .35rem;
}
.time-slot-pill {
  padding:      .75rem 1.1rem;
  min-height:   48px;
  font-family:  var(--font-body);
  font-size:    .82rem;
  text-align:   center;
  transition:   all var(--transition-fast);
}

.booking-policy {
  display:      flex;
  align-items:  flex-start;
  gap:          .6rem;
  margin:       1.5rem 0 0;
  padding:      1rem 1.15rem;
  background:   var(--clr-primary-light);
  border:       1px solid var(--clr-primary-muted);
  border-radius:12px;
  font-size:    .81rem;
  line-height:  1.6;
  color:        var(--clr-primary-deep);
}
.booking-policy .dw-icon { flex-shrink: 0; margin-top: .1rem; }

.booking-footnote {
  display:      flex;
  align-items:  flex-start;
  gap:          .55rem;
  max-width:    760px;
  margin:       1.5rem auto 0;
  font-size:    .79rem;
  line-height:  1.65;
  color:        var(--clr-text-muted);
}
.booking-footnote .dw-icon { flex-shrink: 0; margin-top: .15rem; color: var(--clr-primary); }

/* =====================================================
   BATCH A — CONFIRMATION DIALOG (includes/script.php)
   The overlay toggles on .active only — no inline styles
   and no MutationObserver fighting the stylesheet.
===================================================== */
.booking-dialog-overlay {
  position:     fixed;
  inset:        0;
  z-index:      999;
  display:      none;
  align-items:  center;
  justify-content: center;
  padding:      1.5rem;
  background:   rgba(10, 25, 47, .65);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter:         blur(5px);
}
.booking-dialog-overlay.active {
  display: flex;
  animation: fadeIn .25s ease both;
}
.modal-card-box {
  position:     relative;
  width:        100%;
  max-width:    480px;
  padding:      clamp(1.75rem, 4vw, 2.25rem);
  text-align:   center;
  background:   var(--clr-white);
  border-radius:var(--radius-lg);
  box-shadow:   var(--shadow-xl);
  animation:    modalPop .3s cubic-bezier(.34, 1.56, .64, 1) both;
}
.modal-close-x {
  position:      absolute;
  top:           .85rem;
  right:         .85rem;
  width:         36px;
  height:        36px;
  display:       grid;
  place-items:   center;
  border:        1px solid var(--clr-border);
  border-radius: 50%;
  background:    var(--clr-bg-light);
  color:         var(--clr-text-muted);
  cursor:        pointer;
  transition:    all var(--transition-fast);
}
.modal-close-x:hover { color: var(--clr-danger); border-color: var(--clr-danger); }
.modal-tick {
  display:      grid;
  place-items:  center;
  width:        58px;
  height:       58px;
  margin:       0 auto 1rem;
  border-radius:50%;
  background:   var(--clr-primary-light);
  color:        var(--clr-primary-dark);
}
.modal-title {
  font-family: var(--font-heading);
  font-size:   1.3rem;
  color:       var(--clr-dark);
  margin-bottom:.55rem;
}
.modal-copy {
  font-size:   .85rem;
  line-height: 1.65;
  color:       var(--clr-text-muted);
  margin-bottom:1.5rem;
}
.modal-actions {
  display:       flex;
  gap:           .75rem;
  justify-content: center;
  flex-wrap:     wrap;
}

/* ------------------------------------------------------------------------------
   BATCH A — COST GUIDE LONG-FORM (cost-guides.php)
------------------------------------------------------------------------------ */

/* The card hover-lift belongs to clickable tiles, not to a page of reading. */

.dw-prose h3 {
  font-size: 1.02rem;
  color:     var(--clr-dark);
  margin:    1.9rem 0 .55rem;
}

/* ------------------------------------------------------------------------------
   BATCH A — ARTICLE PAGE (blog-post.php)
   (The byline and cover-adjacent hero rules moved into the single .ph-* block
   at the foot of this file; the article body keeps what is printed below.)
------------------------------------------------------------------------------ */
.article-shell { max-width: 1080px; margin-inline: auto; }
/* Reading surfaces stay still — the hover-lift belongs to clickable tiles. */
article.article-card:hover {
  transform:    none;
  box-shadow:   var(--card-shadow);
  border-color: var(--clr-border);
}
.article-cover {
  /* Same ratio as the banner artwork — see .blog-card-thumb. */
  aspect-ratio: 1200 / 630;
  overflow:     hidden;
  background:   var(--clr-bg-light);
}
.article-cover img {
  width:  100%;
  height: 100%;
  object-fit: cover;
  display:    block;
}
.article-body { padding: clamp(1.5rem, 3.5vw, 2.5rem); font-size: 1rem; }
.author-bio {
  display:     flex;
  flex-wrap:   wrap;
  align-items: flex-start;
  gap:         1.15rem;
  margin:      0 clamp(1.5rem, 3.5vw, 2.5rem);
  padding:     1.6rem 0 0;
  border-top:  1px solid var(--clr-border);
}
.author-bio-avatar {
  flex:         none;
  width:        58px;
  height:       58px;
  display:      grid;
  place-items:  center;
  border-radius: 50%;
  background:   var(--clr-primary-light);
  color:        var(--clr-primary-dark);
  font-weight:  700;
  font-size:    1.05rem;
}
.author-bio-text { flex: 1 1 260px; min-width: 0; }
.author-bio-name {
  font-family:   var(--font-heading);
  font-size:     1.05rem;
  color:         var(--clr-dark);
  margin-bottom: .2rem;
}
.author-bio-role {
  font-size:     .8rem;
  font-weight:   600;
  color:         var(--clr-primary-dark);
  margin-bottom: .35rem;
}
.author-bio-degrees {
  font-size:     .76rem;
  color:         var(--clr-text-muted);
  margin-bottom: .6rem;
  line-height:   1.55;
}
.author-bio-note {
  font-size:    .84rem;
  color:        var(--clr-text-muted);
  line-height:  1.65;
  margin:       0;
}
.tag-list {
  display:   flex;
  flex-wrap: wrap;
  gap:       .45rem;
  margin:    1.4rem clamp(1.5rem, 3.5vw, 2.5rem) 0;
}
.tag-chip {
  padding:        .3rem .8rem;
  border:         1px solid var(--clr-border);
  border-radius:  var(--radius-pill);
  background:     var(--clr-bg-light);
  font-size:      .72rem;
  font-weight:    600;
  letter-spacing: .02em;
  color:          var(--clr-primary-dark);
}
.share-row {
  display:        flex;
  flex-wrap:      wrap;
  align-items:    center;
  justify-content: space-between;
  gap:            .9rem;
  margin:         1.6rem clamp(1.5rem, 3.5vw, 2.5rem) 0;
  padding:        1.15rem clamp(1.15rem, 2.5vw, 1.5rem);
  border-top:     1px solid var(--clr-border);
  background:     var(--clr-bg-light);
}
.share-label {
  font-size:   .82rem;
  font-weight: 700;
  color:       var(--clr-dark);
  margin:      0;
}
.share-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.side-card {
  padding:       clamp(1.35rem, 3vw, 1.65rem);
  margin-bottom: 1.25rem;
  border-radius: var(--card-radius);
}
.side-card-title {
  font-family:   var(--font-heading);
  font-size:     1.12rem;
  color:         var(--clr-dark);
  margin-bottom: .5rem;
}
.side-card-text {
  font-size:   .85rem;
  line-height: 1.7;
  color:       var(--clr-text-muted);
  margin-bottom: 1.15rem;
}
.side-card-alt,
.side-card-call {
  display:     flex;
  align-items: center;
  justify-content: center;
  gap:         .45rem;
  margin-top:  .8rem;
  font-size:   .8rem;
  font-weight: 600;
  color:       var(--clr-primary-dark);
  text-decoration: none;
}
.side-card-alt:hover,
.side-card-call:hover { text-decoration: underline; }
.side-card--solid {
  background:   var(--gradient-navy);
  border-color: transparent;
}
.side-card--solid .side-card-title { color: var(--clr-white); }
.side-card--solid .side-card-text  { color: rgba(255, 255, 255, .76); }
.side-card--solid .side-card-call  { color: var(--clr-primary-soft-200); }
.article-nav { display: grid; gap: .15rem; }
.article-nav a {
  display:     flex;
  align-items: center;
  gap:         .5rem;
  padding:     .7rem .2rem;
  font-size:   .82rem;
  font-weight: 600;
  color:       var(--clr-text-main);
  text-decoration: none;
}
.article-nav a + a { border-top: 1px solid var(--clr-border); }
.article-nav a:hover { color: var(--clr-primary-dark); }
.article-nav svg { flex: none; color: var(--clr-primary); }

/* =====================================================
   TREATMENT DIRECTORY — card pricing, concern pathways,
   standards strip
   (services.php section build; sits before the responsive
   banner so BATCH A overrides still win)
===================================================== */

.svc-grid-foot {
  margin:      2.25rem 0 0;
  text-align:  center;
  font-size:   .8rem;
  color:       var(--clr-text-muted);
}
.svc-grid-foot a {
  color:           var(--clr-primary-dark);
  font-weight:     600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Concern → treatment pathways */
.svc-path-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(296px, 1fr));
  gap:                   1.25rem;
}
.svc-path-card {
  display:       flex;
  flex-direction: column;
  gap:           .6rem;
  padding:       1.5rem 1.4rem;
}
.svc-path-head {
  display:     flex;
  align-items: center;
  gap:         .75rem;
}
.svc-path-title {
  font-family: var(--font-heading);
  font-size:   1.1rem;
  font-weight: 700;
  color:       var(--clr-dark);
  line-height: 1.3;
  margin:      0;
}
.svc-path-line {
  margin:     0;
  font-size:  .84rem;
  line-height:1.7;
  color:      var(--clr-text-muted);
}
.svc-path-label {
  margin:          .55rem 0 0;
  font-size:       .68rem;
  font-weight:     700;
  letter-spacing:  .05em;
  text-transform:  uppercase;
  color:           var(--clr-primary-dark);
}
.svc-path-links {
  list-style: none;
  margin:     .45rem 0 0;
  padding:    0;
  display:    flex;
  flex-direction: column;
  gap:        .4rem;
}
.svc-path-links a {
  display:        flex;
  align-items:    center;
  justify-content:space-between;
  gap:            .6rem;
  padding:        .5rem .7rem;
  border:         1px solid var(--clr-border);
  border-radius:  var(--radius-md);
  background:     var(--clr-white);
  font-size:      .82rem;
  font-weight:    600;
  color:          var(--clr-text-main);
  text-decoration:none;
  transition:     border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.svc-path-links a:hover {
  border-color:   var(--clr-primary-muted);
  background:     var(--clr-primary-light);
  color:          var(--clr-primary-dark);
}
.svc-path-links svg { flex: none; color: var(--clr-primary); }
.svc-path-foot {
  margin:     2.25rem 0 0;
  text-align: center;
  font-size:  .86rem;
  color:      var(--clr-text-muted);
}
.svc-path-foot a {
  color:       var(--clr-primary-dark);
  font-weight: 600;
}

/* What every treatment includes */
.svc-std-inner {
  display:               grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap:                   clamp(2rem, 5vw, 4rem);
  align-items:           start;
}
.svc-std-pills {
  list-style: none;
  margin:     1.5rem 0 0;
  padding:    0;
  display:    flex;
  flex-wrap:  wrap;
  gap:        .5rem;
}
.svc-std-pills li {
  display:     inline-flex;
  align-items: center;
  gap:         .4rem;
  padding:     .42rem .8rem;
  border:      1px solid var(--clr-border);
  border-radius: var(--radius-pill);
  background:  var(--clr-white);
  font-size:   .75rem;
  font-weight: 600;
  color:       var(--clr-text-main);
}
.svc-std-pills svg { flex: none; color: var(--clr-primary); }
.svc-std-inner .why-about-link { margin-top: 1.6rem; }
.svc-std-grid {
  list-style: none;
  margin:     0;
  padding:    0;
  display:    grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:        1rem;
  align-items: stretch;
}
.svc-std-item {
  position:       relative;
  display:        flex;
  flex-direction: column;
  gap:            .55rem;
  padding:        1.4rem 1.3rem;
  overflow:       hidden;
}
.svc-std-num {
  position:    absolute;
  top:         1.05rem;
  right:       1.15rem;
  font-size:   1.35rem;
  font-weight: 800;
  line-height: 1;
  color:       var(--clr-primary-muted);
  opacity:     .65;
}
.svc-std-title {
  margin:      0;
  font-family: var(--font-body);
  font-size:   .92rem;
  font-weight: 700;
  line-height: 1.45;
  color:       var(--clr-dark);
}
.svc-std-desc {
  margin:      0;
  font-size:   .8rem;
  line-height: 1.7;
  color:       var(--clr-text-muted);
}
@media (max-width: 980px) {
  .svc-std-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .svc-std-grid  { grid-template-columns: 1fr; }
}

/* =====================================================
   PRICE PAGE — flow steps, inclusions, low-cost lines,
   cost-guide cards
   (pricing.php section build; before the responsive banner)
===================================================== */

/* =============================================================================
   BOOKING PAGE — request flow, urgency band, first-visit list
   The slot windows follow the chosen day's opening hours, so the caption under
   the pill group has to be readable without stealing focus from the form.
============================================================================= */
.booking-hours-line {
  display:     flex;
  align-items: center;
  gap:         .45rem;
  margin:      .45rem 0 0;
  font-size:   .78rem;
  font-weight: 600;
  color:       var(--clr-primary-dark);
}
.booking-hours-line svg { color: var(--clr-primary); flex-shrink: 0; }

.booking-slot-caption {
  margin:     .6rem 0 0;
  font-size:  .76rem;
  line-height:1.6;
  color:      var(--clr-text-muted);
  min-height: 1.2em;
}

.book-flow {
  list-style:  none;
  margin:      0;
  padding:     0;
  display:     grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:         1.25rem;
}
.book-flow-step {
  position:       relative;
  display:        flex;
  flex-direction: column;
  gap:            .5rem;
  padding:        1.6rem 1.5rem;
  border:         1px solid var(--clr-border);
  border-radius:  var(--card-radius);
  background:     var(--clr-white);
  box-shadow:     var(--card-shadow);
}
.book-flow-num {
  position:    absolute;
  top:         1.35rem;
  right:       1.4rem;
  font-size:   1.35rem;
  font-weight: 800;
  line-height: 1;
  color:       var(--clr-primary-muted);
}
.book-flow-ico {
  display:       inline-flex;
  align-items:   center;
  justify-content: center;
  width:         44px;
  height:        44px;
  border-radius: var(--radius-md);
  background:    var(--clr-primary-light);
  color:         var(--clr-primary-dark);
  margin-bottom: .15rem;
}
.book-flow-title {
  margin:      0;
  font-family: var(--font-heading);
  font-size:   1.05rem;
  font-weight: 700;
  color:       var(--clr-dark);
  line-height: 1.3;
  padding-right: 2rem;
}
.book-flow-text {
  margin:     0;
  font-size:  .82rem;
  line-height:1.75;
  color:      var(--clr-text-muted);
}

.book-urgent {
  display:     flex;
  align-items: center;
  gap:         1.1rem;
  flex-wrap:   wrap;
  margin-top:  2.25rem;
  padding:     1.4rem 1.5rem;
  border:      1.5px solid var(--clr-primary-muted);
  border-left: 5px solid var(--clr-primary);
  border-radius: var(--card-radius);
  background:  var(--clr-primary-light);
}
.book-urgent-body { flex: 1 1 320px; min-width: 0; }
.book-urgent-title {
  margin:      0 0 .3rem;
  font-family: var(--font-heading);
  font-size:   1.1rem;
  font-weight: 700;
  color:       var(--clr-dark);
}
.book-urgent-text {
  margin:     0;
  font-size:  .84rem;
  line-height:1.75;
  color:      var(--clr-text-main);
}
.book-urgent-text a {
  color:       var(--clr-primary-dark);
  font-weight: 700;
}
.book-urgent-btn { flex-shrink: 0; }

.book-visit-inner {
  display:               grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap:                   2.5rem;
  align-items:           start;
}
.book-visit-list {
  list-style: none;
  margin:     1.5rem 0 0;
  padding:    0;
  display:    grid;
  gap:        1.1rem;
}
.book-visit-item {
  display:     grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap:         .9rem;
  align-items: start;
  padding:     1.15rem 1.2rem;
  border:      1px solid var(--clr-border);
  border-radius: var(--radius-md);
  background:  var(--clr-white);
}
.book-visit-num {
  display:       flex;
  align-items:   center;
  justify-content: center;
  width:         34px;
  height:        34px;
  border-radius: 50%;
  background:    var(--clr-primary-light);
  color:         var(--clr-primary-dark);
  font-size:     .82rem;
  font-weight:   800;
}
.book-visit-title {
  margin:      0 0 .25rem;
  font-size:   .97rem;
  font-weight: 700;
  color:       var(--clr-dark);
  line-height: 1.4;
}
.book-visit-text {
  margin:     0;
  font-size:  .82rem;
  line-height:1.7;
  color:      var(--clr-text-muted);
}

.book-visit-side {
  position: sticky;
  top:      110px;
  padding:  1.6rem 1.5rem;
  display:  flex;
  flex-direction: column;
  gap:      .9rem;
}
.book-visit-side-title {
  margin:      0;
  font-family: var(--font-heading);
  font-size:   1.12rem;
  font-weight: 700;
  color:       var(--clr-dark);
}
.book-visit-bring {
  list-style: none;
  margin:     0;
  padding:    0;
  display:    grid;
  gap:        .7rem;
}
.book-visit-bring li {
  display:     flex;
  align-items: flex-start;
  gap:         .55rem;
  font-size:   .83rem;
  line-height: 1.65;
  color:       var(--clr-text-main);
}
.book-visit-bring svg { color: var(--clr-primary); flex-shrink: 0; margin-top: .2rem; }
.book-visit-fee {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             .8rem;
  margin:          .2rem 0 0;
  padding:         .8rem .95rem;
  border-radius:   var(--radius-md);
  background:      var(--clr-bg-light);
  border:          1px solid var(--clr-border);
  font-size:       .82rem;
  font-weight:     600;
  color:           var(--clr-text-main);
}
.book-visit-fee b {
  font-size:   .95rem;
  font-weight: 800;
  color:       var(--clr-primary-dark);
  white-space: nowrap;
}
.book-visit-link {
  display:     flex;
  align-items: center;
  gap:         .4rem;
  font-size:   .79rem;
  font-weight: 700;
  color:       var(--clr-primary-dark);
}
.book-visit-link svg { color: var(--clr-primary); }

@media (max-width: 1024px) {
  .book-visit-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .book-visit-side  { position: static; }
}
@media (max-width: 900px) {
  .book-flow { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .book-urgent { padding: 1.2rem; }
  .book-urgent-btn { width: 100%; justify-content: center; }
}

/* =============================================================================
   CONTACT PAGE — channel router, live status, emergency pathway
============================================================================= */
.contact-status {
  display:        flex;
  align-items:    center;
  flex-wrap:      wrap;
  gap:            .55rem 1rem;
  margin:         1.35rem auto 0;
  padding:        .6rem 1.05rem;
  width:          fit-content;
  max-width:      100%;
  border-radius:  var(--radius-pill);
  border:         1px solid var(--clr-border);
  background:     var(--clr-white);
  font-size:      .8rem;
  font-weight:    600;
  color:          var(--clr-text-main);
}
.contact-status b {
  display:     flex;
  align-items: center;
  gap:         .35rem;
  font-weight: 500;
  color:       var(--clr-text-muted);
}
.contact-status-dot {
  width:        9px;
  height:       9px;
  border-radius: 50%;
  flex-shrink:  0;
}
.contact-status.is-open  { border-color: var(--clr-primary-muted); }
.contact-status.is-open  .contact-status-dot { background: var(--clr-primary); }
.contact-status.is-open  > span:not(.contact-status-dot) { color: var(--clr-primary-dark); }
.contact-status.is-closed .contact-status-dot { background: var(--clr-text-muted); }

.contact-route-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
  gap:                   1.1rem;
}
.contact-route-card {
  display:        flex;
  flex-direction: column;
  gap:            .5rem;
  padding:        1.5rem 1.4rem;
  transition:     transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast);
}
.contact-route-card:hover {
  transform:    translateY(-4px);
  border-color: var(--clr-primary-muted);
  box-shadow:   var(--shadow-lg);
}
.contact-route-name {
  margin:      0;
  font-family: var(--font-heading);
  font-size:   1.05rem;
  font-weight: 700;
  color:       var(--clr-dark);
}
.contact-route-value {
  font-size:   .92rem;
  font-weight: 700;
  color:       var(--clr-primary-dark);
  word-break:  break-word;
}
.contact-route-best {
  display:     flex;
  flex-direction: column;
  gap:         .2rem;
  margin:      .1rem 0 0;
  font-size:   .81rem;
  line-height: 1.65;
  color:       var(--clr-text-main);
}
.contact-route-best span {
  font-size:      .65rem;
  font-weight:    800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color:          var(--clr-text-muted);
}

.contact-route-cta {
  display:        inline-flex;
  align-items:    center;
  gap:            .4rem;
  margin-top:     auto;
  padding-top:    .5rem;
  font-size:      .79rem;
  font-weight:    700;
  color:          var(--clr-primary-dark);
}
.contact-route-cta svg { color: var(--clr-primary); }

.contact-emg {
  padding:   1.9rem 1.8rem;
  display:   grid;
  gap:       1.6rem;
  border:    1.5px solid var(--clr-primary-muted);
  background: var(--clr-white);
}
.contact-emg-head {
  display:     flex;
  align-items: center;
  gap:         .95rem;
  flex-wrap:   wrap;
}
.contact-emg-title {
  margin:      0;
  font-family: var(--font-heading);
  font-size:   1.3rem;
  font-weight: 700;
  color:       var(--clr-dark);
  line-height: 1.3;
}
.contact-emg-sub {
  margin:     .2rem 0 0;
  font-size:  .82rem;
  color:      var(--clr-text-muted);
}
.contact-emg-steps {
  list-style: none;
  margin:     0;
  padding:    0;
  display:    grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:        1.1rem;
}
.contact-emg-step {
  padding:     1.15rem 1.15rem;
  border:      1px solid var(--clr-border);
  border-radius: var(--radius-md);
  background:  var(--clr-bg-light);
}
.contact-emg-num {
  display:       flex;
  align-items:   center;
  justify-content: center;
  width:         30px;
  height:        30px;
  margin-bottom: .6rem;
  border-radius: 50%;
  background:    var(--clr-primary);
  color:         var(--clr-white);
  font-size:     .8rem;
  font-weight:   800;
}
.contact-emg-step h3 {
  margin:      0 0 .3rem;
  font-size:   .95rem;
  font-weight: 700;
  color:       var(--clr-dark);
}
.contact-emg-step p {
  margin:     0;
  font-size:  .8rem;
  line-height:1.7;
  color:      var(--clr-text-muted);
}
.contact-emg-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .contact-emg-steps { grid-template-columns: 1fr; }
  .contact-emg-actions > a { flex: 1 1 auto; justify-content: center; }
}

/* =====================================================
   CONTACT — ONE REASON PER BLOCK
   The page reads as steps: reach us → find us → send an inquiry →
   emergency. These three pieces carry the parts that had no component
   yet; the route cards, info cards, map frame and emergency band reuse
   the rules above.
===================================================== */

/* Under the route cards: the site publishes two numbers, so the page says
   plainly which is which instead of leaving the visitor to guess. */
.contact-legend {
  display:        flex;
  align-items:    flex-start;
  gap:            .6rem;
  margin:         1.4rem 0 0;
  padding:        .95rem 1.1rem;
  font-size:      .82rem;
  line-height:    1.7;
  color:          var(--clr-text-main);
  background:     var(--clr-primary-light);
  border:         1px solid var(--clr-primary-muted);
  border-radius:  var(--radius-md);
}
.contact-legend svg { flex: none; margin-top: 3px; color: var(--clr-primary-dark); }
.contact-legend strong { color: var(--clr-dark); }

/* The column beside the inquiry form stacks its own blocks. */
.contact-side {
  display:       grid;
  gap:           1.15rem;
  align-content: start;
}

/* Visit row: address, timings and the map are three cards of one row, so the
   map keeps its own height instead of stretching under a tall column. */
.contact-visit-grid > .map-frame { align-self: start; }

/* The little aside notes: icon tile beside the copy, not stacked above it. */
.side-note { display: flex; align-items: flex-start; gap: .7rem; }
.side-note .dw-icon-tile { flex: none; }
.side-note > div { display: flex; flex-direction: column; gap: .25rem; }
.side-note strong { color: var(--clr-dark); font-weight: 600; }
.side-note .info-card-link { margin-top: .35rem; }

/* "After you press send" — the honest version of a confirmation message. */
.contact-next {
  padding:       1.3rem 1.35rem;
  border:        1px solid var(--clr-border);
  border-radius: var(--card-radius);
  background:    var(--clr-bg-light);
}
.contact-next-title {
  margin:      0 0 .9rem;
  font-family: var(--font-heading);
  font-size:   1.02rem;
  font-weight: 700;
  color:       var(--clr-dark);
}
.contact-next-list {
  display:    grid;
  gap:        .85rem;
  margin:     0;
  padding:    0;
  list-style: none;
  counter-reset: none;
}
.contact-next-list > li {
  display:   flex;
  align-items: flex-start;
  gap:       .65rem;
  font-size: .81rem;
  line-height: 1.65;
  color:     var(--clr-text-muted);
}
.contact-next-list strong { color: var(--clr-text-main); font-weight: 600; }
.contact-next-num {
  flex:          none;
  display:       flex;
  align-items:   center;
  justify-content: center;
  width:         24px;
  height:        24px;
  margin-top:    1px;
  border-radius: 50%;
  background:    var(--clr-primary);
  color:         var(--clr-white);
  font-size:     .72rem;
  font-weight:   800;
}

@media (max-width: 900px) {
  .contact-legend { text-align: left; }
}

/* =====================================================
   HOME — LIGHT BANDS BELOW THE HERO
   The clinic's own "coming soon" page is a soft white → mint → pale-blue
   wash. That treatment belongs to the content under the hero: the hero
   keeps the navy operatory photo, so the white nav text and the glass
   cards over it stay exactly as they were.
===================================================== */

/* White-band sections: the wash opens on white so the hero seam is clean. */

.page-home .doctors-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--clr-primary-soft-50) 100%);
}

/* Tinted-band sections: mint into pale blue, the two colours of the board. */

.page-home .faq-section {
  background: linear-gradient(180deg, var(--clr-primary-soft-50) 0%, #eef4fb 100%);
}

/* ---------- Decorative layer: rings + drawn line-art tooth ---------- */

/* Bottom-right line-art tooth: the strokes draw in once, then the mark
   breathes. pathLength="1" in the markup lets one dash value describe the
   whole silhouette at every echo scale. */

/* ---------- Services board + hours ---------- */

/* These cards hold information, they are not clickable — no lift. */

/* Three classes: matches .dw-card:hover .dw-icon-tile above, and is later. */

/* The closed row carries no sitting pill, so span the free columns. */

/* Booking date picker on a closed day. The grid holds only this note then,
   so 1/-1 spans the whole row and the hidden slot field cannot be posted. */
.booking-slot-closed {
  grid-column:   1 / -1;
  margin:        0;
  padding:       1rem 1.1rem;
  border:        1px dashed var(--clr-border);
  border-radius: var(--radius-md);
  background:    var(--clr-bg-light);
  font-size:     .85rem;
  line-height:   1.6;
  color:         var(--clr-text-muted);
}

@keyframes toothDraw { to { stroke-dashoffset: 0; } }
@keyframes toothBreathe {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50%      { transform: translateY(-10px) rotate(-2deg) scale(1.02); }
}
@keyframes orbDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -26px, 0); }
}

/* =====================================================
   BATCH A — RESPONSIVE OVERRIDES
   Re-declared at the end of the file so they win against
   the earlier top-level rules they replace.
===================================================== */
@media (max-width: 900px) {

  .contact-grid-inner { grid-template-columns: 1fr; }
  .dw-form-row   { grid-template-columns: 1fr; }
  /* auto-fit left a single card stranded on its own row here — three reasons,
     three cards side by side reads cleaner than 2 + 1. */
  .contact-route-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
  .contact-route-card { padding: 1.15rem 1rem; }
  .contact-route-best { font-size: .76rem; }
  .contact-route-value { font-size: .85rem; }
  /* Same reasoning: the three steps are one sequence, so they stay in a row. */
  
  .first-visit-card { padding: 1.35rem 1.15rem 1.2rem; }

  /* Two cards, then the map full width under them. */
  .contact-visit-grid > .map-frame { grid-column: 1 / -1; }
}
/* Tablet portrait: three columns squeeze the bullets, so two across with the
   closing step full width under them. Bounded below 641px so the 1-column rule
   further down is never re-widened by this one. */

@media (max-width: 640px) {
  .dw-icon-tile         { width: 44px; height: 44px; }
  .contact-route-grid   { grid-template-columns: 1fr; gap: .9rem; }
  .contact-route-card   { padding: 1.35rem 1.25rem; }
  .contact-route-value  { font-size: .92rem; }
  .contact-visit-grid   { grid-template-columns: 1fr; }
  
  .doctor-card-image    { aspect-ratio: 4 / 3; }
  .doctor-avatar-initials { font-size: 2.25rem; }
  
  .section-head.is-left { margin-inline: auto; text-align: center; }
  .about-accent-card { right: .75rem; bottom: .75rem; padding: .8rem 1rem; }
  /* Stacked cards get their breathing room back. */
  
  .first-visit-card { padding: 1.75rem 1.5rem 1.5rem; }

  /* 16px stops iOS zooming the viewport on focus */
  
  .dw-form input,
.dw-form select,
.dw-form textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-card,
.hp-service-card,
.doctor-profile-card,
.blog-card { transition: none !important; }
  .dw-card:hover,
  .hp-service-card:hover,
  .doctor-profile-card:hover,
  .ba-slider-card.dw-card:hover { transform: none; }
}

/* =====================================================
   BATCH 1 — PUBLIC-SITE BUG FIXES
   Late overrides for the reported list. One block per bug number, each
   naming the bug it closes, so the original sections above stay readable
   as the history of the file.
===================================================== */

/* ── 1.10 LOGO GLOW ─────────────────────────────────────────────
   The teal glow behind the mark read as a blur smudge once the navbar
   turns white. The tile goes flat with a hairline edge in both states. */
.logo-mark {
  box-shadow: none;
  border:     1px solid var(--clr-primary-dark);
}

/* ── 1.4 FLOATING BUTTONS ───────────────────────────────────────
   52px each, 12px apart, 20px clear of the corner. z-index 900 keeps the
   pair under the mega menu (999) and over page content. Below 901px the
   stack disappears entirely: the sticky Call / WhatsApp / Book bar is the
   mobile affordance, so no circle ever sits on top of a button. */

/* Between 901px and 1299px the container is fluid, so the stack would land
   on the right edge of cards, the FAQ plus icons and the process text. The
   72px it needs is given as container padding instead; wider desktops have
   real margin around the 1240px container and are left untouched. */
@media (min-width: 901px) and (max-width: 1299px) {
  .container { padding-right: calc(var(--container-px) + 4.5rem); }
}

/* Sticky bottom bar — three actions, so the label stays short and the
   WhatsApp row keeps the brand green that reads as the chat channel. */

/* ── 1.9 SELECT ARROW ───────────────────────────────────────────
   Native arrows differ per browser and broke the 48px field rhythm. One
   sprite-matched chevron, painted from a data URI, on every select. */
select.form-control,
.form-control-select,
.dw-form select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  min-height:         48px;
  height:             48px;
  padding-right:      2.5rem;
  background-color:   var(--clr-white);
  background-image:   url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9d94' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.6 9.2 12 15.4l6.4-6.2'/%3E%3C/svg%3E");
  background-repeat:  no-repeat;
  background-position:right .85rem center;
  background-size:    16px 16px;
}
textarea.form-control { height: auto; }
/* Focus and error states are shared by inputs, selects and textareas. */
select.form-control:focus-visible,
.dw-form select:focus-visible,
.form-control:focus-visible {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(4, 128, 122,.22);
}
.form-control.is-invalid,
.dw-form .is-invalid,
select.form-control.is-invalid {
  border-color: var(--clr-danger);
  box-shadow:   0 0 0 3px rgba(179,38,30,.14);
}
.dw-form select option,
select.form-control option { color: var(--clr-dark); background: var(--clr-white); }

/* ── 1.7 CATEGORY / TAG PILLS ───────────────────────────────────
   A pill that is a flex child of a column stretched to the full card width.
   Every tag now hugs its label and sits at the start of the row. */
.blog-tag,
.doctor-spec-pill,
.degree-pill,
.tag-chip {
  display:    inline-flex;
  align-items:center;
  width:      fit-content;
  align-self: flex-start;
}

/* ── 1.6 BUTTON CONTRAST ON LIGHT BANDS ─────────────────────────
   .btn-outline is the light-section twin of .btn-ghost-light: teal border
   and teal label on white/grey, filled teal on hover. The filled buttons
   keep their own pair. */

/* =====================================================
   BATCH 2 — HOME DESIGN UPGRADE
   Deliberately the last block in the file: every rule here is an
   override of an earlier BATCH A block, and a later rule of equal
   specificity wins. Sub-banners follow the letters of the brief —
   A hero clinician card, B/C service cards, D doctor cards,
   E before-after gate, F guide cards, G stories, H rhythm, I motion.
===================================================== */

/* ── A. HERO CLINICIAN CARD ─────────────────────────────────────
   The right column is three cards — clinician, patients, dentists —
   all on the same dark glass so the column reads as one object.
   The quote stack is CSS grid, not absolute positioning: every quote
   occupies the same cell, the tallest one sizes the card, and the
   crossfade therefore cannot shift anything around it. */

/* ── H. TRUST BAND (replaces the chip board and the marquee) ────
   Four static standards, icon + two short lines. Slim by design: it is
   a bridge between the hero and the treatments, not a section of its own. */

/* ── B/C. SERVICE CARDS ─────────────────────────────────────────
   The card is now image-led: media flush to the top edge, body padded.
   Without a photograph the media area is a teal panel carrying the
   treatment's own sprite icon at poster scale — never an empty block. */

.hp-service-card {
  padding:   0;
  gap:       0;
  overflow:  hidden;
}

/* ── D. DOCTOR CARDS ────────────────────────────────────────────
  No photograph supplied is the normal case today, so the drawn panel is
  the designed state, not a fallback: gradient ground, faint repeated
  tooth silhouettes, initials in the heading face, specialty mark. */

/* Replaces the old inset:0 monogram (a background layer on the text itself).
   Inside the panel the initials are a grid item, so they must be re-flowed
   rather than stretched across the frame. */
.doctor-avatar-initials {
  position:      relative;
  inset:         auto;
  width:         clamp(94px, 27%, 120px);
  aspect-ratio:  1;
  border-radius: 50%;
  font-size:     clamp(1.65rem, 2.4vw, 2.1rem);
  color:         var(--clr-primary-dark);
  background:    radial-gradient(circle at 34% 28%,
                 rgba(255,255,255,.96) 0%, rgba(255,255,255,.6) 58%, rgba(255,255,255,.24) 100%);
  border:        1px solid rgba(255,255,255,.9);
  box-shadow:    0 12px 30px -12px rgba(1, 50, 68,.35);
}

/* One wrapping row: at 320px-wide cards a PMDC number and an experience
   label no longer stack into two ribbons over the face. */
.doctor-card-badges {
  flex-direction: row;
  flex-wrap:      wrap;
  align-items:    center;
  gap:            .4rem;
}

/* Qualifications sit on one line; the full string stays reachable through the
   title attribute and the untruncated list on the profile page. */
/* Degrees wrap onto up to three lines instead of one ellipsised line. Measured
   on Dr. Amir's card the single-line form clipped 204 px of real qualification
   text at every width; three lines is what the narrowest card (231 px content
   at 1024 px) needs to show all of it. */
.doctor-card-degrees {
  display:            -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space:        normal;
  overflow:           hidden;
  margin-top:         .5rem;
}
.doctors-grid { gap: 1.5rem; }

/* ── B. PROCESS — one section, one rail ─────────────────────────
   The four steps keep a single connecting line, but it is now a real
   element so JS can fill it as the section scrolls through. */

/* Without JS — or below the two-column breakpoint, where a horizontal rail
   would point at nothing — --rail stays 1 and the line is simply whole. */

/* ── F. GUIDE CARDS ─────────────────────────────────────────────
   16/10 like the service cards, so the two grids share a rhythm. The
   drawn panel carries only the category mark — the title is never
   reprinted on top of the artwork. */
.blog-card-thumb { position: relative; aspect-ratio: 16 / 10; }
.blog-card:hover .blog-card-thumb { transform: none; }
.blog-card-img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  /* The card reuses each post's 1200x630 social banner, whose headline is set
     against the LEFT margin. Cover-cropping that into a 16/10 box centres the
     crop, so the first two characters of every title were sliced off. Anchoring
     left keeps the text whole and eats the decorative circles on the right. */
  object-position: left center;
  display:    block;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-draw {
  position:     absolute;
  inset:        0;
  display:      flex;
  align-items:  center;
  justify-content: center;
  background:   linear-gradient(150deg, var(--clr-primary-soft-50) 0%, var(--clr-primary-light) 58%, var(--clr-primary-soft-100) 100%);
  color:        rgba(2, 96, 107,.42);
}
.blog-grid { gap: 1.5rem; }
.blog-card-body { gap: .5rem; }

/* ── G. PATIENT STORIES ─────────────────────────────────────────
   The quote mark replaces the curly quotes that used to sit in the copy,
   and the track takes a mouse drag as well as a touch swipe. */

/* ── H. CLINIC HOURS BOARD ON THE DARK BOOKING BAND ─────────────
   The board moved here from under the hero, where it repeated the
   treatments. Same rows, inverted surface so it belongs to the band. */

/* ── H. BAND ALTERNATION ────────────────────────────────────────
   Uniform surfaces that strictly alternate white / soft teal, so no two
   neighbouring bands match at the seam and only the booking band is dark.
   The retired section names still listed above (.process-timeline-section,
   .marquee-section, .clinic-board-section) no longer exist in the markup. */

.page-home .doctors-section                 { background: var(--clr-white); }

.page-home .faq-section                     { background: var(--clr-white); }

/* ── I. MOTION ──────────────────────────────────────────────────
   Transform and opacity only — nothing that reflows. The hero column
   drifts 6px over 6s, staggered so the three cards never move as one block.

   Entrance and float are declared in ONE shorthand here, and this is the only
   place the right-hand column's animation is set. `animation` is a shorthand:
   a second rule that says `animation: heroFloat …` on its own discards the
   earlier `fadeUp … forwards`, and since that discarded rule used to carry
   `opacity: 0` on the element itself, all three cards rendered fully
   transparent at every width — the empty right-hand side of the hero. The
   float is listed last so it wins the transform once it starts, while fadeUp
   keeps supplying the opacity end state. */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Two comma-separated delays map to the two animations in order: when each
   card fades in, and when its drift begins. The float always starts after its
   own entrance has finished. */

/* The magnetic primary CTA moves by a few pixels written inline by JS; the
   transition keeps it elastic instead of elastic-band snap on release. */
.btn-hero-primary { transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow var(--transition-base), background var(--transition-fast), color var(--transition-fast); }

/* Smooth anchor jumps land under the fixed header without this: :where() keeps
   the specificity at zero so any local scroll-margin rule still wins. */
:where(section[id], article[id], h2[id], h3[id]) { scroll-margin-top: calc(var(--nav-height) + 28px); }

/* ── RESPONSIVE ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {

  .blog-card-img { transition: none; }
  
  /* Anchor jumps should still land instantly, not slide. */
  html { scroll-behavior: auto; }
}

/* ==============================================================================
   BATCH 3 — QA PASS: 44px TAP TARGETS
   Measured across 1920 / 1440 / 1366 / 1280 / 1024 / 768 / 390. Nothing here
   is a visual redesign; each rule only grows a hit area that the sweep found
   under the 44px floor the brief sets.
   ============================================================================== */

/* Primary navigation pills — were 35px tall inside a 76px bar, so the bar
   geometry is unchanged; the pill simply fills more of the space it already
   had. */

/* Hamburger — 37x29 measured, and it is the only way into the drawer below
   1024px. */

/* Footer social marks — 40px circles. */

/* "Read profile" — an inline 18px text link that is the only route from a
   doctor card to their full profile. */

/* Keyboard skip link — offscreen until focused, but still a real target. */
.skip-link {
  min-height:  44px;
  display:     inline-flex;
  align-items: center;
}

/* The phone number in the top trust bar sits in a slim 40px strip; growing
   the text would resize the bar, so the hit area is extended past the glyph
   box instead. Only vertical padding is added, so it cannot steal clicks from
   a sibling link. */

/* Carousel dots — 24px wide hit area was under the floor; at 44px the row can
   overflow a narrow phone once the testimonial count grows, so the nav wraps
   and centres rather than clipping. */

/* Footer link lists are dense by design — 14 rows per column. On pointer
   devices they get a 28px row, which clears the WCAG 2.5.8 24px floor without
   tripling the footer's height; on touch layouts (≤1023px, where the drawer
   nav is in use anyway) they go to the full 44px. */

/* Page-specific targets the 7-width sweep caught outside the homepage:
   breadcrumb links, the services filter pills, the contact route rows and the
   sticky mobile bar. Each is a block-level control, so growing it to 44px
   costs nothing but a little vertical rhythm. */

.filter-btn,
.contact-route-value,
.contact-route-cta,
.info-card-link,
.book-visit-link {
  display:     inline-flex;
  align-items: center;
  min-height:  44px;
}

/* Two last measured stragglers: the "Describe it to the front desk" link at the
   foot of the symptom-path cards on services.php (326x39) and the booking
   page's primary tel button (43px). The earlier rule named .svc-path-links a,
   which is not where that link lives. */
.svc-path-links a,
.svc-path-foot a { min-height: 44px; display: inline-flex; align-items: center; }
.btn-hero-primary { min-height: 44px; }

/* Width, not height: these two are single short words ("Home"), so they clear
   44px tall but measure 38-41px wide. min-width widens the hit area without
   moving the visible text, which stays left-aligned in its row. */

/* =====================================================
   BATCH 3 — QA PASS: AA CONTRAST ON FILLED TEAL SURFACES
   White on --clr-primary (var(--clr-primary)) measures 3.34:1, under the 4.5:1 AA floor
   for body-size text, and var(--clr-primary) text on white measures the same 3.34:1.
   Filled teal becomes --clr-primary-dark (var(--clr-primary-dark): 5.19:1 with white) and teal
   label text becomes --clr-primary-dark too (4.89–5.19:1 on the light bands).
   Icon-only controls (back-to-top, social chips, carousel arrows) stay on
   --clr-primary — a glyph is a non-text control and only needs 3:1.
   Playfair display headings stay on --clr-primary as well: they clear the
   large-text 3:1 threshold.
===================================================== */
.filter-btn:hover,
.filter-btn.active {
  background:   var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
}

/* The count pill inside a filled chip was white-on-translucent (2.53:1).
   Inverted to a solid white pill so the number reads at 5.19:1. */
.filter-btn.active .filter-count {
  background: var(--clr-white);
  color:      var(--clr-primary-dark);
}

.skip-link                             { background: var(--clr-primary-dark); }

.step-circle.active                    { background: var(--clr-primary-dark); border-color: var(--clr-primary-dark); }
.contact-emg-num,
.contact-next-num                      { background: var(--clr-primary-dark); }
.btn-book-sm:hover                     { background: var(--clr-primary-dark); border-color: var(--clr-primary-dark); }

.about-role,
.blog-card-read-more { color: var(--clr-primary-dark); }

.blog-tag              { color: var(--clr-primary-dark); }
.blog-card-read-more:hover { color: var(--clr-dark); }

/* =====================================================
   PART 1 — HERO RIGHT COLUMN
   Three glass cards (clinician, patients, specialists) on one 1200px
   container edge, a 16px rhythm, 340-380px width, an icon-left stat row
   and a transform-only float. Appended last so source order settles the
   long argument with the earlier hero blocks; every reduced-motion
   exception is re-declared here because a media query adds no specificity
   and the guard at line ~8528 would otherwise be outrun by these rules.
===================================================== */

/* 1. THE CONTAINER EDGE.
   .nav-wrapper is max-width:1200px with no side padding of its own (the
   header supplies the 40px), while .hero-content is 1200px INCLUDING its
   own 40px padding. Measured at 1366: nav content box 76-1276, hero inner
   box 116-1236. Widening the hero box by the padding it already carries
   puts the H1 and the card column on the nav's exact left/right edges. */

/* 2. THE COLUMN: 360px (the brief allows 340-380), 16px between cards.
   The fill stays the dark glass rather than the literal
   rgba(255,255,255,.10): that light fill over the clinic photograph puts
   white body text at about 1.06:1, and the same brief requires AA contrast
   and a dark enough overlay behind the cards. Radius/blur/border follow
   the brief exactly. */

/* 2b. Clinician avatar: the brief asks for the initials on a teal gradient.
   The monogram was a pale wash with dark letters; it is now the brand teal
   running into --clr-primary-dark, with white initials (3.34:1 at the light
   end, 5.19:1 at the dark end — a 16.8px 800-weight monogram is large text,
   so both clear AA). Still initials, not a photo: the clinic has not
   supplied a head-shot yet. */

/* 3. MINI STAT CARDS: icon on the left, number and label on the right, all
   in one row. .mini-stat-icon only ever set display:flex, so the direction
   kept coming from .mini-stat-card (column) and the number sat above the
   label instead of beside the icon. */

/* Inside the card the 28px number and the 14px label share one line, so they
   have to sit on a common baseline — as plain inline spans the smaller one
   dropped to the number's baseline and read like a typo. */

/* 3b. AA inside the cards. The faintest line in the column is the quote
   attribution at 11px; over the darkest plausible photo it sat at ~4.0:1, so
   it moves to 72% white (5.6:1). The right-hand scrim below is what makes
   that figure hold on any photograph the clinic swaps in later. */

/* 4. MOTION: CSS-only, so a failed script never hides a card. fadeUp is
   the entrance (delays .0/.12/.24s), heroFloat the perpetual 6s rise of
   0 to -6px (delays 0/.8/1.6s). Two animations in one shorthand need two
   positional delays. transform only, so nothing repaints on layout. */

/* 5. THE FLOATING STACK GUTTER.
   The WhatsApp + back-to-top stack is fixed 20px from the right edge, so the
   cards need 72px of clear space there.
     - 901-1439px: the old +4.5rem padding-right hack is replaced by the
       container's own padding, because point 1 widened the box and the hack
       would now double up (and it made the hero 72px narrower than the nav at
       1024). Below 1281px the box is still fluid, so its 40px padding plus the
       photo margin already clear the stack; measured clearance there is 19px
       at 901px and 32px at 1280px.
     - 1201-1439px: the box is pinned at 1280 or its centring margin is tiny,
       which would put the cards within ~16px of the stack (measured -32px, an
       actual overlap, at exactly 1280px). The column steps 48px inward there
       (measured 16px at 1280, 59px at 1366, 48px at 1440). Above 1440px the
       real margin is wide enough and the cards stay flush. */

/* 6. 1024px AND BELOW: the cards leave the sidebar and go under the text
   in their own two-column grid, clinician card full width on top. The old
   breakpoints only collapsed the hero at 900px, which left the third card
   ending at y=777 on a 768px-tall 1024 screen. */

/* 7. TABLET AND MOBILE: one column, clinician card first (it already is in
   the DOM), never wider than 360px, and the hero keeps a sticky-bar of
   clearance under it so the last card can sit above the mobile action bar. */

/* 8. REDUCED MOTION: no float, no entrance travel, and the quote changes
   instantly instead of crossfading. */

/* =====================================================
   PART 1 — INNER PAGE HERO (includes/page-hero.php)
   One banner for all nine inner pages, replacing the copies that used to live
   in each template (and in the deleted .page-hero-* / .page-hero-inner /
   .article-byline / .nf-code rules). Structure: full-bleed .ph-bg (photo or CSS
   pattern) → .ph-scrim (left-heavy navy wash, so white copy stays AA on any
   photograph) → .ph-inner on the SAME 1200px box the navbar uses. Everything is
   CSS-only: the entrance and the 14s backdrop zoom never wait on JS.
===================================================== */
:root { --page-hero-h: clamp(260px, 34vh, 380px); }

.page-hero {
  position:      relative;
  isolation:     isolate;
  overflow:      hidden;
  min-height:    var(--page-hero-h);
  display:       flex;
  align-items:   center;
  /* --nav-height clears the fixed pill header; the rest is breathing room
     under the trust bar, which still occupies the flow. */
  padding-block: calc(var(--nav-height) + clamp(1.25rem, 2.5vw, 2rem)) clamp(1.75rem, 3.5vw, 2.5rem);
  color:         var(--clr-white);
  background:    var(--gradient-navy);
}

/* 1a. PHOTOGRAPHY VARIANT — the img is the LCP element, preloaded in <head>. */

/* 1b. Left-heavy navy wash: .94 at the copy edge falling to .58 at the right,
   so the white H1 always sits on near-opaque navy where the text is, while the
   photograph still reads on the empty right half. */

/* 2. PATTERN FALLBACK — no photo (or a photo the client has not supplied yet)
   still gets a designed banner: navy gradient + teal glow + dot grid + a faint
   clinic mark on the right. Never a flat empty block. */

/* 4. THE 1200px BOX. .container caps at 1200px *including* its padding while
   .nav-wrapper caps at 1200px *excluding* it, so without this the copy would
   start 40px right of the logo at 1366. Same trap as the homepage hero. */

/* 5. BREADCRUMBS — chevron between items, current page not a link. */

/* 4b. BADGE / TITLE / SUBTITLE — left-aligned, in one measure. */

.page-hero .section-badge {
  background:   rgba(4, 128, 122, .20);
  border-color: rgba(4, 128, 122, .46);
  color:        var(--clr-primary-soft-200);
}

/* 6. BYLINE CHIPS (blog posts) — author, date, reading time over the scrim. */

/* 4c. ACTIONS sit on the same left edge as the copy, not centred under it. */

/* Banner content that pages pass through $hero_extra has to survive navy. */

/* The treatment facts are a wrapping flex row (see .svc-specs). On a phone the
   26ch value limit forced every fact onto its own line, which made the banner
   taller than the screen. Narrower gaps and no per-item cap pair them up. */

/* 7. ENTRANCE — badge → title → subtitle, 80ms apart, translate+opacity only.
   Separate from the homepage keyframes so the two heroes never share a name. */
@keyframes phFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes phZoom {
  from { transform: scale(1);    }
  to   { transform: scale(1.06); }
}

@media (max-width: 639px) {
  .page-hero { padding-block-start: calc(var(--nav-height) + 1.25rem); }

}

/* Reduced motion: nothing travels and the backdrop never zooms, but every
   element keeps its final opacity (animation: none drops the 'both' fill). */

/* =====================================================
   UPLOADED BRAND LOCKUP (dashboard → Settings → clinic logo)
   Two copies of the clinic's artwork ship: the file exactly as uploaded,
   and a sibling "<name>-reversed.png" whose dark ink is knocked out to
   white. CSS shows whichever one the surface behind it needs, so the logo
   sits flat on the navy hero, drawer and footer with no plate behind it.
   When no reversed file exists dw_site_logo() emits a bare .logo-lockup,
   and the plate below is what keeps full-colour art readable on navy.
   ===================================================== */

/* Each variant is already legible on the surface it is shown on. */

/* =====================================================
   POLISHED APPOINTMENT CTA FORM (Card & Inputs UI)
===================================================== */

/* =====================================================
   DYNAMIC NAVBAR LOGO (White on top, colored on scroll)
===================================================== */

/* Top State (Not Scrolled): Show pure white logo */

/* Scrolled State: Show original full-color logo */

/* =====================================================
   SOFT MINT BACKGROUND (Same as 'Why patients trust us')
===================================================== */

/* Left Column Typography on Light Background */

/* Clinic Hours Card on Light Background */

/* The booking form card elevated beautifully on this background */

/* =====================================================
   CLEAN WHITE THEME FOR MOBILE NAVIGATION DRAWER
===================================================== */

/* Nav links in single row (icon + text inline) */

/* Mobile CTA buttons */

/* ==============================================================================
   🌟 ULTRA-PREMIUM MODERN REDESIGN PASS (Luxury Healthcare Aesthetic)
   Stripe/Linear-grade glassmorphism, refined typography, and elevated micro-interactions
   ============================================================================== */

:root {
  /* Modern High-End Dental Palette */
  --clr-teal-glow:      rgba(4, 128, 122, 0.28);

  /* Deep Luxury Slate/Navy */
  --clr-navy:           #091e2f;
  --clr-dark:           #0b1a28;
  --clr-text-main:      #1e293b;
  --clr-text-muted:     #64748b;
  --clr-border:         #e2e8f0;
  --clr-bg-light:       #f8fafc;

  /* Modern Glass Shadows */
  --shadow-sm:          0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-md:          0 12px 24px -6px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg:          0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl:          0 28px 60px -15px rgba(15, 23, 42, 0.18), 0 12px 24px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow:        0 10px 30px -4px rgba(4, 128, 122, 0.45);
}

/* Base Body & Layout */
body {
  background-color: #ffffff;
  color: var(--clr-text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ── 1. FLOATING NAVBAR PILL ── */

/* ── 2. HERO SECTION & TYPOGRAPHY ── */

.btn-hero-primary {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary-dark) 100%) !important;
  border-radius: 12px !important;
  padding: 0.95rem 2rem !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 25px -4px rgba(4, 128, 122, 0.5) !important;
  transition: all 0.25s ease !important;
}

.btn-hero-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 35px -6px rgba(4, 128, 122, 0.65) !important;
}

/* Hero Right Glass Cards */

/* ── 3. SECTION HEADINGS POLISH ── */
.section-head {
  margin-bottom: 3.5rem !important;
}

.section-badge {
  background: var(--clr-primary-soft-50) !important;
  color: var(--clr-primary-dark) !important;
  border: 1px solid var(--clr-primary-soft-100) !important;
  padding: 0.4rem 1rem !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.06em !important;
  border-radius: 999px !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  margin-bottom: 0.85rem !important;
}

/* ── 4. STYLISH SERVICE & TREATMENT CARDS ── */
.hp-service-card,
.service-card {
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
  position: relative !important;
}

.hp-service-card:hover,
.service-card:hover {
  transform: translateY(-8px) !important;
  border-color: var(--clr-primary-soft-200) !important;
  box-shadow: 0 24px 48px -12px rgba(4, 128, 122, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.04) !important;
}

.service-name {
  color: #0c1b2a !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin-top: 0.25rem !important;
}

.service-desc {
  color: #64748b !important;
  line-height: 1.65 !important;
  font-size: 0.92rem !important;
}

/* ── 5. BLOG CARDS REDESIGN ── */
.blog-card {
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.07) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

.blog-card:hover {
  transform: translateY(-8px) !important;
  border-color: var(--clr-primary-soft-200) !important;
  box-shadow: 0 24px 50px -12px rgba(4, 128, 122, 0.2) !important;
}

.blog-tag {
  background: var(--clr-primary-soft-50) !important;
  color: var(--clr-primary-dark) !important;
  border: 1px solid var(--clr-primary-soft-100) !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  border-radius: 8px !important;
  padding: 0.3rem 0.75rem !important;
}

.blog-card-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0c1b2a !important;
  line-height: 1.45 !important;
}

/* ── 6. PROCESS STEPS & HOW IT WORKS ── */
.process-step {
  border-radius: 20px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.05) !important;
  transition: all 0.3s ease !important;
}

.process-step:hover {
  transform: translateY(-6px) !important;
  border-color: var(--clr-primary-soft-200) !important;
  box-shadow: 0 18px 36px -10px rgba(4, 128, 122, 0.16) !important;
}

/* ── 7. TESTIMONIALS & REVIEWS SECTION ── */

.testimonial-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(14px) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.3s ease !important;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-5px) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* ── 8. MOBILE RESPONSIVENESS REFINEMENTS ── */
@media (max-width: 768px) {

  .section-head {
    margin-bottom: 2.25rem !important;
  }
  
  .hp-service-card,
  .service-card,
  .blog-card,
  .process-step {
    border-radius: 16px !important;
  }
  
  .btn-hero-primary {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==============================================================================
   BATCH 1 & BATCH 2 — DESIGN SYSTEM UPGRADE
   Mint-Teal Palette | Two-Tone Headings | Sticky Header | Rounded Hero Card | Marquee
   ============================================================================== */

/* ---------- Site Canvas & Section Alternation ---------- */
body {
  background-color: var(--clr-bg-page);
  color: var(--clr-text-main);
}

/* ---------- Two-Tone Heading System ---------- */
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head.is-center {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}
.section-head.is-center .section-sub {
  margin-inline: auto;
}
.section-head.is-left {
  max-width: 680px;
  margin-inline: 0;
  text-align: left;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-teal-deep);
  background: var(--clr-mint-100);
  border: 1px solid rgba(118, 206, 201, 0.35);
  padding: .35rem .95rem;
  border-radius: var(--radius-pill);
  margin-bottom: .85rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 6.5vw, 42px);
  font-weight: 700;
  color: var(--clr-ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title span {
  display: block;
  color: var(--clr-sky-ink);
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: .25rem;
}

.section-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 16px);
  color: var(--clr-text-muted);
  max-width: 60ch;
  margin-top: .75rem;
  line-height: 1.65;
}

/* ---------- Announcement Bar ---------- */

/* ---------- Sticky Clean White Header ---------- */

/* ---------- Full-Screen Mobile Menu Drawer ---------- */

/* ---------- HERO: Rounded Photo Card Inside Page Margins ---------- */

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--gradient-primary);
  color: var(--clr-white);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.85rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  opacity: .95;
}

/* On mobile, ensure hero padding clears sticky bottom bar */
@media (max-width: 768px) {

  .btn-hero-primary {
    justify-content: center;
    width: 100%;
    min-height: 50px;
  }

}

/* ---------- Specialties MARQUEE Strip ---------- */

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==============================================================================
   REGRESSION FIXES & DARK CONTRAST SYSTEM
   1. Inner Page Hero Text Contrast & Height (clamp(240px, 32vh, 340px))
   2. Slim 36px Unified Header (max 120px desktop / 96px mobile)
   3. Home Hero at 1366x690 with Playfair Display & Restored Right Column
   4. Dark Section Contrast Audit & Overrides
   ============================================================================== */

/* ---------- 1 & 4. INNER PAGE HERO & DARK BACKGROUND SECTIONS ---------- */
.page-hero {
  min-height: clamp(240px, 32vh, 340px) !important;
  max-height: 400px;
  padding-top: calc(var(--nav-height, 68px) + 1.25rem) !important; padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem) !important;
  background: var(--clr-navy) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Force pure white / high-contrast colors in .page-hero and dark bands */
.page-hero .section-title,
.bg-dark .section-title {
  color: #ffffff !important;
  font-family: var(--font-heading) !important;
  font-size: clamp(2rem, 4vw, 3.15rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
  margin-top: .6rem !important;
}

.page-hero .section-title span,
.bg-dark .section-title span {
  display: block !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  margin-bottom: .25rem !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}

.page-hero .section-sub,
.bg-dark .section-sub {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem) !important;
  line-height: 1.65 !important;
  max-width: 600px !important;
  margin-top: .65rem !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35) !important;
}

.page-hero .section-badge {
  background: rgba(118, 206, 201, 0.22) !important;
  border: 1px solid rgba(118, 206, 201, 0.5) !important;
  color: var(--clr-primary-soft-300) !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* ---------- 2. SLIM 36px UNIFIED HEADER ---------- */

/* Sticky Header constraint */

/* ---------- 3. HOME HERO: 1366x690 VIEWPORT OPTIMIZED ---------- */

/* Right column: doctor card + mini stat cards */

@media (max-width: 991px) {

  .btn-hero-primary {
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }
}

/* ---------- 5. DARK SECTION TEXT CONTRAST AUDIT ---------- */

@media (max-width: 768px) {
  .page-hero {
    padding-top: 2.25rem !important;
    padding-bottom: 2rem !important;
    min-height: auto !important;
  }
  
}
