/* ==========================================================================
   Deedmed Landing Page Stylesheet
   ----------------------------------------------------------------------
   Single source of truth for all visual styles. Architecture: design
   tokens via CSS custom properties, then components, then responsive
   overrides. No framework, no preprocessor. Edit in place; no build.
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Typography — Mulish for body (clean, professional, multilingual);
     Fraunces for display headings (serif warmth for medical context).
     Noto Sans Sinhala as fallback for Sinhala characters — browsers
     automatically pick the right font per character. */
  /* --font-display: 'Fraunces', 'Noto Sans Sinhala','AbhayaLibra', Georgia, serif; */
  --font-display: 'MalithiWeb', Georgia, serif; 
  /* --font-body: 'Mulish', 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
  --font-body: 'Mulish', 'Abhayalibre', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand colors — sourced from Deedmed logo */
  --brand-primary: #0052E4;   /* Deep brand blue — primary CTAs, links */
  --brand-accent:  #30B8F3;   /* Cyan accent — highlights, rotator word */
  --brand-primary-hover: #0040B3;
  --brand-accent-hover:  #1FA3DE;

  /* Legacy variable aliases — point at brand colors so existing styles continue to work */
  --blue-primary: var(--brand-primary);
  --blue-dark:    #002B7A;
  --blue-mist:    #E8F1FF;
  --blue-deep:    #051A3D;
  --blue-bright:  var(--brand-accent);
  --blue-soft:    #B8D1FB;

  /* Surface */
  --cream-bg:       #F7F9FC;
  --cream-warm:     #FAFBFE;
  --cream-surface:  #FFFFFF;

  /* Ink (text) */
  --ink-1: #0A1929;
  --ink-2: #364152;
  --ink-3: #6B7588;
  --ink-4: #9AA3B2;

  /* Accent system */
  --sage:      #7B9E89;
  --sage-soft: #E8EFEA;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;

  /* Elevation */
  --shadow-xs:   0 1px 2px rgba(10, 25, 41, 0.04);
  --shadow-sm:   0 2px 8px rgba(10, 25, 41, 0.06);
  --shadow-md:   0 8px 24px rgba(10, 25, 41, 0.08);
  --shadow-soft: 0 8px 24px rgba(10, 25, 41, 0.06);
  --shadow-lg:   0 20px 48px rgba(10, 25, 41, 0.12);
  --shadow-brand: 0 8px 24px rgba(0, 82, 228, 0.24);

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --header-height: 72px;
  --wrap-max: 1180px;
}


/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-1);
  background: var(--cream-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-primary); text-decoration: none; }
a:hover { text-decoration: underline; }


/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
}

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink-1);
}

.section-title .italic { font-style: italic; color: var(--blue-primary); }

.section-sub {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}




/* ==========================================================================
   4. HERO ROTATING PHRASE — three parts (prefix, variable, contrast)
   ========================================================================== */

/* All three rotating spans share the same fade-in/out behavior */
.rw-prefix,
.rw-variable,
.rw-contrast {
  display: inline-block;
  vertical-align: bottom;
  position: relative;
}

/* The accent variable (the italicized brand-colored word) gets a reserved
   width so the longest phrase ("Sydney to Galle") doesn't cause layout shift.
   The other two parts flow naturally — they're shorter and changes are less
   visually disruptive. */
.rw-variable {
  /* min-width: 9ch; */
  display: inline-block;
}

/* Each part holds a .rw-current child that animates */
.rw-prefix .rw-current,
.rw-variable .rw-current,
.rw-contrast .rw-current {
  display: inline-block;
  animation: rw-fade-in 0.5s var(--ease-out);
}

.rw-prefix.is-exiting .rw-current,
.rw-variable.is-exiting .rw-current,
.rw-contrast.is-exiting .rw-current {
  animation: rw-fade-out 0.35s var(--ease-in);
}

@keyframes rw-fade-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes rw-fade-out {
  from { opacity: 1; transform: translateY(0);     filter: blur(0); }
  to   { opacity: 0; transform: translateY(-14px); filter: blur(4px); }
}

/* Backward-compat: keep old .rotating-word selector working if it ever appears */
.rotating-word {
  display: inline-block;
  position: relative;
  min-width: 4ch;
  vertical-align: bottom;
}
.rotating-word .rw-current {
  display: inline-block;
  animation: rw-fade-in 0.5s var(--ease-out);
}
.rotating-word.is-exiting .rw-current {
  animation: rw-fade-out 0.35s var(--ease-in);
}


/* ==========================================================================
   5. DOCTORS CAROUSEL
   ========================================================================== */

.doctors-section {
  padding: 80px 0;
  background: var(--cream-bg);
}

.doc-carousel { position: relative; }

.doc-carousel-viewport {
  overflow: hidden;
  margin: 0 -8px;
  padding: 8px;
}

.doc-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.7s var(--ease-soft);
  will-change: transform;
}

.doc-card-full {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 280px;
  background: var(--cream-surface);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(20,20,40,0.04), 0 4px 16px rgba(20,20,40,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-card-full:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(20,20,40,0.08);
}

.doc-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.doc-avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.doc-avatar-lg[data-color="blue"]  { background: linear-gradient(135deg, #1A56DB, #0A2A6B); }
.doc-avatar-lg[data-color="sage"]  { background: linear-gradient(135deg, #7B9E89, #4A6B5A); }
.doc-avatar-lg[data-color="rose"]  { background: linear-gradient(135deg, #C4849A, #8B5A6B); }
.doc-avatar-lg[data-color="amber"] { background: linear-gradient(135deg, #D4A24C, #8B6A2A); }

.doc-card-info { flex: 1; min-width: 0; }

.doc-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.doc-card-specialty {
  font-size: 13px;
  color: var(--blue-primary);
  font-weight: 500;
  margin-top: 3px;
}

.doc-card-quals {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 14px;
  line-height: 1.5;
}

.doc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.doc-meta-pill {
  font-size: 11px;
  font-weight: 500;
  background: var(--blue-mist);
  color: var(--blue-primary);
  padding: 4px 10px;
  border-radius: 999px;
}

.doc-meta-pill.rating {
  background: rgba(212, 162, 76, 0.12);
  color: #8B6A2A;
}

.doc-card-avail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4A6B5A;
  font-weight: 500;
  padding-top: 14px;
  border-top: 1px solid rgba(20,20,40,0.06);
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7B9E89;
  box-shadow: 0 0 0 4px rgba(123, 158, 137, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(123, 158, 137, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(123, 158, 137, 0.05); }
}

.doc-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.doc-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-surface);
  border: 1px solid rgba(20,20,40,0.1);
  font-size: 18px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
  display: grid;
  place-items: center;
}

.doc-nav:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: white;
  transform: scale(1.05);
}

.doc-nav:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 3px;
}

.doc-dots { display: flex; gap: 8px; }

.doc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(20,20,40,0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.doc-dot.active {
  background: var(--blue-primary);
  width: 24px;
  border-radius: 4px;
}

.doc-dot:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 3px;
}

.doctors-cta { text-align: center; margin-top: 32px; }

.cta-secondary {
  color: var(--blue-primary);
  font-weight: 500;
  font-size: 15px;
}


/* ==========================================================================
   6. TESTIMONIAL CAROUSEL
   ========================================================================== */

.reviews { padding: 80px 0; }

.testimonial-carousel {
  max-width: 860px;
  margin: 0 auto;
}

.testi-viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
}

.testi-track {
  display: flex;
  transition: transform 0.6s var(--ease-soft);
  will-change: transform;
}

.testi-card {
  flex: 0 0 100%;
  padding: 48px 40px;
  background: var(--cream-surface);
  text-align: center;
}

.testi-stars {
  font-size: 18px;
  color: #D4A24C;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.testi-text {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-1);
  letter-spacing: -0.01em;
  margin: 0 auto 24px;
  max-width: 640px;
  font-weight: 400;
}

.testi-author { font-size: 13px; color: var(--ink-3); }

.testi-author strong {
  color: var(--ink-1);
  font-weight: 500;
  margin-right: 6px;
}

.testi-controls {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.testi-dots { display: flex; gap: 8px; }

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(20,20,40,0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testi-dot.active {
  background: var(--blue-primary);
  width: 24px;
  border-radius: 4px;
}

.testi-dot:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 3px;
}


/* ==========================================================================
   7. SIMPLE STARTER HERO (placeholder for the full hero design)
   --------------------------------------------------------------------------
   The full hero exists in your existing index.html. This stylesheet is
   the externalized version of the styles used by the carousel and
   rotating word — drop in the full hero CSS from your existing file.
   ========================================================================== */

.hero {
  position: relative;
  padding: 50px 0 80px;
  background: linear-gradient(180deg, #FBFCFE 0%, #F4F7FD 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Decorative background layers — pure CSS, no image dependencies */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

/* CHANGED: opacity 0.28 → 0.50, size 480 → 560 — brings the gradient forward */
.hero-glow-cyan {
  top: -120px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(48, 184, 243, 0.50) 0%, rgba(48, 184, 243, 0) 70%);
}

/* CHANGED: opacity 0.14 → 0.30, size 520 → 600 — matches the cyan boost */
.hero-glow-blue {
  bottom: -160px;
  left: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 82, 228, 0.30) 0%, rgba(0, 82, 228, 0) 70%);
}

/* NEW: third drifting accent glow as a pseudo-element on .hero-bg.
   No HTML change required — the rose-tinted shape slowly drifts behind the
   hero copy, giving the "mirror / aurora" depth without overwhelming text. */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 35%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle, rgba(195, 132, 154, 0.22) 0%, rgba(195, 132, 154, 0) 70%);
  animation: heroGlowDrift 18s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -28px) scale(1.10); }
}

/* CHANGED: opacity 0.5 → 0.65 — the dot grid is now a touch more present,
   reinforcing the "structured medical product" feel without dominating. */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 82, 228, 0.07) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.65;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

/* Two-column hero layout */
.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;

}

@media (min-width: 880px) {
  .hero-grid-layout {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
  }
}

@media (min-width: 1100px) {
  .hero-grid-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 72px;
  }
}

.hero-content {
  max-width: 580px;
}

.hero-h {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
        font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  margin: 20px 0 22px;
  color: var(--ink-1);

}

.english-hero-h {
  font-weight: 500;
}

.hero-h-sub-sinhala {
  /* font-weight: 500; */
  font-size: clamp(32px, 4.5vw, 44px) !important;
  line-height: 1.3;
  display: block;
  width: 100%;
}

.sinhala-hero-h {
    font-weight: 700 !important;

}

.hero-h .accent {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 540px;
  line-height: 1.6;
  margin: 0 0 32px;
}

/* Device mockup container */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-devices {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  /* Adds depth without competing with the background glow */
  filter: drop-shadow(0 24px 40px rgba(10, 25, 41, 0.16))
          drop-shadow(0 8px 16px rgba(10, 25, 41, 0.08));
  /* Subtle entrance animation on page load */
  animation: heroDevicesIn 0.9s var(--ease-out) both;
}

@keyframes heroDevicesIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive: keep image proportional on smaller screens */
@media (max-width: 880px) {
  .hero {
    padding: 56px 0 64px;
  }
  .hero-content {
    text-align: left;
  }
  .hero-devices {
    max-width: 540px;
  }
  .hero-glow-cyan {
    width: 360px;
    height: 360px;
    top: -80px;
    right: -80px;
  }
  .hero-glow-blue {
    width: 400px;
    height: 400px;
  }
  .hero-bg::after {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 56px;
  }
  .hero-devices {
    max-width: 100%;
  }
  .hero-sub {
    font-size: 16px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-devices {
    animation: none;
  }
  .hero-bg::after {
    animation: none;
  }
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--blue-primary);
  color: white;
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.cta-primary:hover {
  background: var(--brand-primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}


/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 900px) {
  .doc-card-full { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (max-width: 600px) {
  .doctors-section,
  .reviews { padding: 56px 0; }

  .doc-card-full { flex: 0 0 100%; min-width: 0; }

  .testi-card { padding: 32px 24px; }
  .testi-text { font-size: 18px; }
}


/* ==========================================================================
   9. ACCESSIBILITY — REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .rotating-word .rw-current,
  .rotating-word.is-exiting .rw-current,
  .rw-prefix .rw-current,
  .rw-variable .rw-current,
  .rw-contrast .rw-current,
  .rw-prefix.is-exiting .rw-current,
  .rw-variable.is-exiting .rw-current,
  .rw-contrast.is-exiting .rw-current,
  .avail-dot,
  .doc-carousel-track,
  .testi-track {
    animation: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   10. TRUST STRIP — Three ways to book
   ========================================================================== */

section.ways { padding: 80px 0; background: var(--cream-bg); }
.ways-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .ways-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.way-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream-surface);
  border: 1px solid rgba(20, 20, 40, 0.08);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.way-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--blue-soft);
}
.way-card.recommended {
  border: 2px solid var(--blue-primary);
}

.way-recommended-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.way-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.method-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.method-icon.online    { background: #c6ecf8; }
.method-icon.phone     { background: #f8ecc6; }
.method-icon.whatsapp  { background: #DCF8C6; }


.way-icon.online    { background: var(--blue-mist); }
.way-icon.online svg { stroke: var(--blue-primary); }
.way-icon.phone     { background: var(--sage-soft); }
.way-icon.phone svg { stroke: var(--sage); }
.way-icon.whatsapp  { background: #DCF8C6; }
.way-icon.whatsapp svg { stroke: #128C7E; }
.way-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.way-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.way-tagline {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 18px;
  font-weight: 500;
}
.way-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}
.way-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 8px;
  line-height: 1.5;
}
.way-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-primary);
}

.way-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.way-action.primary {
  background: var(--blue-primary);
  color: white;
}
.way-action.primary:hover {
  background: var(--blue-dark);
  text-decoration: none;
}
.way-action.outline {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid rgba(20, 20, 40, 0.15);
}
.way-action.outline:hover {
  /* border-color: var(--blue-primary);
  color: var(--blue-primary); */
  border-color: #fda31d;
  color:  #fda31d;
  text-decoration: none;
}
.way-action.whatsapp-btn {
  background: #25D366;
  color: white;
}
.way-action.whatsapp-btn:hover {
  background: #128C7E;
  text-decoration: none;
}
.way-action svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.way-action.whatsapp-btn svg {
  fill: currentColor;
  stroke: none;
}

.way-meta {
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.4;
}

/* ==========================================================================
   11. HOW IT WORKS — Three steps (dark section)
   ========================================================================== */

section.howit {
  padding: 80px 0;
  background: var(--blue-deep);
  color: white;
  position: relative;
  overflow: hidden;
}
section.howit::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(92, 138, 245, 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(123, 158, 137, 0.08), transparent 50%);
  pointer-events: none;
}
section.howit .wrap { position: relative; z-index: 1; }
section.howit .section-title { color: white; }
section.howit .section-title .italic { color: var(--blue-bright); }
section.howit .section-sub { color: rgba(255, 255, 255, 0.7); }
section.howit .section-eyebrow { color: var(--blue-bright); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.step {
  position: relative;
  padding-left: 56px;
}
@media (min-width: 768px) {
  .step { padding-left: 0; padding-top: 56px; }
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-primary);
  color: white;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  display: grid;
  place-items: center;
}

.step-h {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.step-p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   12. PRIMARY CARE — What we cover (8-card grid)
   ========================================================================== */

section.primary-care {
  padding: 80px 0;
  background: var(--cream-warm);
  position: relative;
  z-index: 1;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .care-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.care-card {
  display: block;
  background: var(--cream-surface);
  border: 1px solid rgba(20, 20, 40, 0.06);
  border-radius: var(--r-md);
  padding: 20px 18px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.care-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--blue-soft);
  text-decoration: none;
}

.care-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--blue-mist);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.care-icon svg {
  width: 18px; height: 18px;
  stroke: var(--blue-primary);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.care-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-1);
  margin-bottom: 4px;
}
.care-desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

.specialists-soon {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--cream-surface);
  border: 1px dashed var(--blue-soft);
  border-radius: var(--r-md);
  flex-wrap: wrap;
}
.specialists-soon-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-mist);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.specialists-soon-icon svg {
  width: 16px; height: 16px;
  stroke: var(--blue-primary);
  fill: none;
  stroke-width: 2;
}
.specialists-soon-text {
  flex: 1;
  font-size: 14px;
  color: var(--ink-2);
  min-width: 220px;
  line-height: 1.5;
}
.specialists-soon-text strong {
  font-weight: 500;
  color: var(--ink-1);
}

/* ==========================================================================
   13. SERVICES — Everything your GP would do
   ========================================================================== */

section.services { padding: 80px 0; background: var(--cream-warm); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 40px;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--cream-surface);
  border: 1px solid rgba(20, 20, 40, 0.06);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--blue-mist);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.service-icon svg {
  width: 22px; height: 22px;
  stroke: var(--blue-primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.service-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ==========================================================================
   14. REDUCED MOTION — extend existing rule for new sections
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .way-card,
  .care-card,
  .service-card {
    transition: none !important;
  }
}


/* ==========================================================================
   15. SITE HEADER — Responsive nav with logo
   ========================================================================== */

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--brand-primary);
  color: white;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(10, 25, 41, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 36px;
  width: auto;
  max-width: 100%;
  display: block;
}
.site-logo:hover {
  text-decoration: none;
}

/* Primary nav (desktop) */
.site-nav {
  display: flex;
  align-items: center;
}
.site-nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-list a:not(.cta-primary):not(.lang-opt):not(.nav-login) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 8px 0;
}
.site-nav-list a:not(.cta-primary):not(.lang-opt):not(.nav-login):hover {
  color: var(--brand-primary);
}
/* Scroll-spy: in-view section link */
.site-nav-list a.is-active-section {
  color: var(--brand-primary);
}
.site-nav-list .cta-primary {
  padding: 9px 22px;
  font-size: 14px;
}

.nav-page-links {
  margin-left: 10px;
}

/* Utility cluster (toggle · login · book) */
.nav-utility {
  display: flex;
  align-items: center;
}
.nav-lang {
  margin-left: 8px;
}

/* Plain-text Login link — low emphasis, so "Book now" is the only button */
.nav-login {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 8px 4px;
}
.nav-login:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

/* Two-state language toggle — both languages visible, active half highlighted */
.lang-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(0, 82, 228, 0.25);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  font-size: 13px;
  line-height: 1;
}
.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  min-width: 36px;
}
.lang-opt:not(.active):hover {
  background: var(--blue-mist);
  color: var(--brand-primary);
  text-decoration: none;
}
.lang-opt.active {
  background: #34BAF4;
  color: #ffffff;
  cursor: default;
}
/* Desktop: show the abbreviation (EN / සිං), hide the full word */
.lang-full { display: none; }
.lang-short { display: inline; }

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: 8px;
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink-1);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Mobile breakpoints */
@media (max-width: 880px) {
  .site-header .wrap {
    min-height: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .site-logo img {
    height: 30px;
  }
  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 101;                      /* always above the drawer */
  }
  /* Header opaque on mobile and above the drawer */
  .site-header {
    background: #ffffff;
    z-index: 100;
  }
  .site-logo {
    position: relative;
    z-index: 101;                      /* logo always clickable, never covered */
  }
  /* Mobile drawer sits BELOW the header (top: 60px) and never overlaps it.
     Hidden state uses visibility + opacity + a small transform so nothing
     bleeds over the header and there's no stray scrollbar when closed. */
  .site-nav {
    position: fixed;
    top: 60px;                         /* starts just below the 60px header */
    left: 0;
    right: 0;
    background: var(--cream-surface);
    border-bottom: 1px solid rgba(10, 25, 41, 0.06);
    box-shadow: var(--shadow-md);
    z-index: 90;                       /* below header (100) */
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;                /* fully removed from view when closed */
    transition: transform 0.28s var(--ease-out),
                opacity 0.28s var(--ease-out),
                visibility 0s linear 0.28s;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.28s var(--ease-out),
                opacity 0.28s var(--ease-out),
                visibility 0s linear 0s;
  }
  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    width: 100%;
  }
  .site-nav-list li {
    width: 100%;
  }
  /* Reset the desktop flex cluster — in the drawer every item is a full row */
  .nav-utility {
    display: block;
    width: 100%;
  }
  /* Plain nav links + login = full-width rows */
  .site-nav-list a:not(.cta-primary):not(.lang-opt) {
    display: block;
    padding: 14px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(10, 25, 41, 0.04);
  }
  /* Language toggle — centered row, keeps its pill shape */
  .nav-lang {
    display: flex;
    justify-content: center;
    margin-left: 0;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(10, 25, 41, 0.04);
  }
  /* Drawer has room — show full language names, not abbreviations */
  .lang-short { display: none; }
  .lang-full  { display: inline; }
  .lang-toggle {
    font-size: 15px;
  }
  .lang-opt {
    padding: 10px 28px;          /* wider tap target for full words */
    min-width: 0;
  }
  .site-nav-list .cta-primary {
    display: block;
    margin: 12px 20px;
    padding: 14px 22px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .site-logo img {
    height: 26px;
  }
}


/* ==========================================================================
   16. SITE FOOTER — Dark blue, structured layout
   ========================================================================== */

.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 24px;
  margin-top: 80px;
}

.site-footer .wrap {
  /* uses default wrap styles */
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-contact a:hover {
  color: var(--brand-accent);
  text-decoration: none;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: white;
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover {
  color: white;
  text-decoration: none;
}

/* Responsive footer */
@media (max-width: 880px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 48px 0 20px;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-bottom-links {
    gap: 16px;
    flex-wrap: wrap;
  }
}


/* ==========================================================================
   17. FAQ — Replaces inline styles
   ========================================================================== */

.faq-list {
  max-width: 720px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(10, 25, 41, 0.08);
  padding: 18px 0;
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  font-size: 17px;
  color: var(--ink-1);
  list-style: none;
  position: relative;
  padding-right: 32px;
  transition: color 0.2s ease;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--brand-primary);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-question::after {
  content: '−';
}
.faq-question:hover {
  color: var(--brand-primary);
}

.faq-answer {
  color: var(--ink-2);
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.65;
}


/* ==========================================================================
   18. REDUCED MOTION — extend rule for new components
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .menu-toggle,
  .faq-question,
  .faq-item[open] .faq-question::after {
    transition: none !important;
  }
}


/* ==========================================================================
   19. SINHALA TYPOGRAPHY — applied when lang="si" is set on <html>
   Sinhala characters have ascenders/descenders that need more line-height
   than Latin equivalents. These selectors only fire on the Sinhala page.
   ========================================================================== */

/* :lang(si) {
  line-height: 1.6;
} */

/* Sinhala-specific sizing — characters are denser, words longer */
/* :lang(si) .hero-h {
  font-size: clamp(34px, 5vw, 54px);  */

/* :lang(si) .section-title {
  font-size: clamp(32px, 4.5vw, 48px);   
} */

/* :lang(si) .hero-sub {
  font-size: 18px;  
} */

/* :lang(si) .section-eyebrow,
:lang(si) .way-name, */


/* :lang(si) .site-nav-list a {
  font-size: 16px; 
} */

/* :lang(si) .hero-h,
:lang(si) .section-title,
:lang(si) .doc-card-name,
:lang(si) .care-name,
:lang(si) .service-name,
:lang(si) .way-name,
:lang(si) .step-h {
  line-height: 1.3;
} */

/* Sinhala doesn't conventionally use italics for emphasis — they look wrong.
   Switch italic spans to bold weight on the Sinhala page only. */
/* :lang(si) .italic,
:lang(si) .hero-h .accent {
  font-style: normal;
  font-weight: 600;
} */

:lang(si) body {
  font-family: 'Mulish','MalithiWeb', Georgia, serif;
  font-size: 24px;        /* up from browser default 16px */
  line-height: 1.85;      /* Abhaya needs slightly more vertical breathing room */
}

/* Headings: Abhaya Libre also; relax the size reductions from section 19 */
:lang(si) .hero-h {
  font-family:   'Abhaya Libre', serif;
  font-size: clamp(50px, 5vw, 80px);   /* was clamp(24px, 4.5vw, 46px) */
}

:lang(si) .accent{
   padding: 0px 8px 0px 0px; 
    font-size: clamp(48px, 4vw, 70px); 
   /* border: 1px solid orange; */
}

:lang(si)  .sinhala-hero-h {
  /* display: block; */
  width: 100%;
  /* border: 1px solid orange; */
}

:lang(si) .section-title {
  font-family:   'Abhaya Libre', serif;
  font-size: clamp(30px, 4.8vw, 42px);     /* was clamp(24px, 3.5vw, 36px) */
}

:lang(si) .hero-sub {
  font-size: 20px;                        /* was 16px */
   font-family:   'Abhaya Libre', serif;
   line-height: 1.60; 
}

:lang(si) .section-sub {
  font-size: 18px;                        /* match body bump */
}

/* Component text that benefits from the bump */
:lang(si) .featured-cat-title {
  font-size: 32px;                        /* was 16px */
   font-family:   'Abhaya Libre', serif;
}

:lang(si) .featured-name {
  font-size: 20px; 
     font-family:   'Abhaya Libre', serif;  
}
:lang(si) .doc-card-name,
:lang(si) .way-name,
:lang(si) .step-h,
:lang(si) .service-name,
:lang(si) .cta-strip-title,
:lang(si) .testi-text {
  font-family: 'Abhaya Libre', 'MalithiWeb', serif;
   font-size: 20px;     
}


/* ==========================================================================
   21. QUICK CONCERNS — symptom/concern chips right after the hero
   ========================================================================== */

.concerns {
  padding: 56px 0 64px;
  background: var(--cream-surface);
  border-bottom: 1px solid rgba(10, 25, 41, 0.05);
}

.concerns-head {
  max-width: 640px;
  margin: 0 auto 28px;
  text-align: center;
}

.concerns-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ink-1);
}
.concerns-title .italic {
  font-style: italic;
  color: var(--brand-primary);
}

.concerns-sub {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

.concerns-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.concern-chip {
  display: inline-flex;
  align-items: center;
  padding: 20px 38px;
  background: var(--cream-bg);
  border: 1px solid rgba(0, 82, 228, 0.12);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.concern-chip:hover {
  /* background: var(--blue-mist); */
  background: #f3cd8c3d;
  /* border-color: rgba(0, 82, 228, 0.3); */
  border-color: #D4A24C;
  /* color: var(--brand-primary); */
  color: #D4A24C;
  text-decoration: none;
  transform: translateY(-1px);
}

.concerns-all {
  text-align: center;
  margin-top: 28px;
}
.concerns-all-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-primary);
  text-decoration: none;
}
.concerns-all-link:hover {
  text-decoration: underline;
}

:lang(si) .concern-chip {
  font-size: 18px;
  line-height: 1.4;
}

@media (max-width: 560px) {
  .concerns {
    padding: 44px 0 48px;
  }
  .concerns-grid {
    gap: 8px;
  }
  .concern-chip {
    padding: 9px 15px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .concern-chip {
    transition: none !important;
  }
}


/* ==========================================================================
   22. TRUST BAR — slim strip under the hero, instant reassurance
   ========================================================================== */

.trust-bar {
   position: relative;
  overflow: hidden;


  /* background: var(--cream-surface); */
     background:
    linear-gradient(
      120deg,
       rgb(1, 24, 68) 0%,
       rgb(1, 47, 127) 20%,
      rgb(3, 70, 141) 60%,
      rgb(13, 19, 87) 100%
    );

 color: whitesmoke;
  border-top: 1px solid rgba(10, 25, 41, 0.05);
  border-bottom: 1px solid rgba(10, 25, 41, 0.05);
  padding: 16px 0;
}


.trust-bar::before {
  content: '';
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.05),
      transparent 40%,
      rgba(0,0,0,0.08)
    );

  pointer-events: none;
}

.trust-bar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  /* color: var(--ink-2); */
}

/* CRITICAL: explicit SVG sizing. Without this, the base `svg { display:block }`
   reset lets these icons balloon to full container width. */
.trust-bar-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Shield + lock read as "safety" — give them the green accent */
.trust-bar-item:first-child svg,
.trust-bar-item:last-child svg {
  stroke: #1D9E75;
}

@media (max-width: 600px) {
  .trust-bar-list {
    gap: 10px 18px;
  }
  .trust-bar-item {
    font-size: 12px;
  }
  .trust-bar-item svg {
    width: 16px;
    height: 16px;
  }
}


/* ==========================================================================
   23. TRUST SECTION — dark, hybrid Q&A + diaspora + honest stats
   ========================================================================== */

section.trust {
  padding: 80px 0;
  background: var(--blue-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
section.trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(48, 184, 243, 0.10), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(0, 82, 228, 0.12), transparent 50%);
  pointer-events: none;
}
section.trust .wrap { position: relative; z-index: 1; }

.trust-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
section.trust .section-eyebrow { color: var(--brand-accent); }
section.trust .section-title { color: #fff; }
section.trust .section-title .italic {
  color: var(--brand-accent);
  font-style: italic;
}
section.trust .section-sub { color: rgba(255, 255, 255, 0.72); }

.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.trust-stat {
  text-align: center;
}
.trust-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: var(--brand-accent);
  line-height: 1.1;
}
.trust-stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  line-height: 1.4;
}

.trust-qa {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  max-width: 940px;
  margin: 0 auto;
}
.trust-qa-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.trust-qa-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(48, 184, 243, 0.12);
  display: grid;
  place-items: center;
}
/* Explicit SVG sizing here too */
.trust-qa-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--brand-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-qa-text h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.trust-qa-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0;
}

.trust-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.trust-cta-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trust-cta-link:hover {
  color: #fff;
}

:lang(si) .trust-qa-text h3 {
  line-height: 1.4;
}

@media (max-width: 760px) {
  .trust-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }
  .trust-qa {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  section.trust {
    padding: 56px 0;
  }
  .trust-qa-icon {
    width: 38px;
    height: 38px;
  }
  .trust-qa-icon svg {
    width: 19px;
    height: 19px;
  }
}


/* ==========================================================================
   24. GLOBAL SVG SAFETY NET — any inline icon SVG without explicit size
   inside a content section gets a sane default, so a missing rule can never
   again let an icon balloon to full width.
   ========================================================================== */

.trust-bar-item svg,
.trust-qa-icon svg,
.concern-chip svg {
  max-width: 100%;
}


/* ==========================================================================
   25. FEATURED DOCTOR CATEGORIES — three promotional carousels (NEW)
   --------------------------------------------------------------------------
   Rendered entirely by JS into <section id="featured">. The outer heading
   comes from strings.featured.{heading,subheading}; each category subsection
   comes from strings.featured.categories[key].{title,subtitle}. Doctors are
   filtered from common.doctors where featuredIn[] contains the key.
   ========================================================================== */

.featured-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream-bg) 100%);
  position: relative;
  overflow: hidden;
}
/* Soft decorative blob behind the section — pure CSS, no HTML change */
.featured-section::before {
  content: '';
  position: absolute;
  top: 8%;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 184, 243, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  z-index: 0;
}
.featured-section .wrap {
  position: relative;
  z-index: 1;
}

.featured-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.featured-cat {
  margin-bottom: 56px;
}
.featured-cat:last-child {
  margin-bottom: 0;
}

.featured-cat-head {
  margin-bottom: 22px;
  max-width: 720px;
}
.featured-cat-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-1);
  margin: 0 0 6px;
  line-height: 1.25;
}
.featured-cat-subtitle {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}

.featured-carousel {
  position: relative;
}
.featured-viewport {
  overflow: hidden;
  margin: 0 -8px;
  padding: 8px 8px 4px;
}
.featured-track {
  display: flex;
  gap: 16px;
  transition: transform 0.6s var(--ease-soft);
  will-change: transform;
}

.featured-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 240px;
  background: var(--cream-surface);
  border-radius: var(--r-lg);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-xs);
  border: 1px solid rgba(20, 20, 40, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.featured-card:hover {
  transform: translateY(-3px);
  /* box-shadow: var(--shadow-md);
  border-color: rgba(0, 82, 228, 0.18); */
   border-color: var(--cat-accent, rgba(0, 82, 228, 0.18));
  box-shadow:
    0 0 0 1.5px var(--cat-accent,  rgba(0, 82, 228, 0.18)),
    0 0 20px    var(--cat-glow,    rgba(0, 82, 228, 0.12)),
    var(--shadow-md);
}

.featured-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: var(--blue-mist);
  position: relative;
  flex-shrink: 0;
}
.featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-avatar {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.02em;
}
/* Gradient avatars match the doctor-card color system exactly */
.featured-avatar[data-color="blue"]  { background: linear-gradient(135deg, #1A56DB, #0A2A6B); }
.featured-avatar[data-color="sage"]  { background: linear-gradient(135deg, #7B9E89, #4A6B5A); }
.featured-avatar[data-color="rose"]  { background: linear-gradient(135deg, #C4849A, #8B5A6B); }
.featured-avatar[data-color="amber"] { background: linear-gradient(135deg, #D4A24C, #8B6A2A); }

.featured-rating {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #8B6A2A;
  background: rgba(212, 162, 76, 0.15);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.featured-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 14px;
}
.featured-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-1);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.featured-specialty {
  font-size: 13px;
  color: var(--brand-primary);
  font-weight: 500;
  margin-bottom: 8px;
}
.featured-quals {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

.featured-book-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--brand-primary);
  color: white;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.featured-book-btn:hover {
  background: var(--brand-primary-hover);
  text-decoration: none;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand);
}

.featured-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.featured-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-surface);
  border: 1px solid rgba(20, 20, 40, 0.1);
  font-size: 16px;
  color: var(--ink-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}


.featured-nav:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
  transform: scale(1.05);
}
.featured-nav:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

/* Sinhala adjustments — names/specialties run longer */
:lang(si) .featured-cat-title { line-height: 1.4; }
:lang(si) .featured-name      { line-height: 1.4; }

@media (max-width: 900px) {
  .featured-card { flex: 0 0 calc((100% - 16px) / 2); }
}

@media (max-width: 600px) {
  .featured-section { padding: 56px 0; }
  .featured-cat     { margin-bottom: 44px; }
  /* .featured-card    { flex: 0 0 calc(100% - 0px); min-width: 0; } */
  .featured-card     { flex: 0 0 82%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-card {
    transition: none !important;
  }
  .featured-card:hover {
    box-shadow: var(--shadow-md) !important;
    border-color: var(--cat-accent, rgba(0, 82, 228, 0.18)) !important;
  }
  .featured-track,
  .featured-nav,
  .featured-book-btn {
    transition: none !important;
  }
}


/* ── B. NAV BUTTON STATES ───────────────────────────────────────────────── */
 
/* Disabled / at-limit state — dimmed, non-interactive */
.featured-nav.is-end {
  opacity: 0.25;
  pointer-events: none;
  cursor: default;
  transform: none !important;   /* cancel scale on :hover while disabled */
}
 
/* Arrive pulse — JS adds .nav-attract to the next button on first render.
   Uses background + ring (not transform) to avoid clashing with :hover scale.
   Runs 3 times, then JS removes the class. */
@keyframes nav-attract-pulse {
  0%, 100% {
    background: var(--cream-surface);
    color: var(--ink-2);
    box-shadow: none;
  }
  45%, 55% {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 0 0 5px rgba(0, 82, 228, 0.18), 0 0 0 9px rgba(0, 82, 228, 0.06);
  }
}
 
.featured-nav.nav-attract {
  animation: nav-attract-pulse 0.85s ease-in-out 3;
}
 
/* While the pulse is running, :hover shouldn't fight the animation.
   After the class is removed, hover works normally. */
.featured-nav.nav-attract:hover {
  animation-play-state: paused;
}

.featured-dots {
  display: flex;
  align-items: center;
  gap: 6px;
    flex: 1;  /* takes all left-side space → prev + next buttons sit together at far right */

}
 
.featured-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(20, 20, 40, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
 
.featured-dot.active {
  background: var(--brand-primary);
  width: 18px;
  border-radius: 3px;
}
 
.featured-dot:hover {
  background: rgba(0, 82, 228, 0.35);
}
 
.featured-dot:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}
 
@media (prefers-reduced-motion: reduce) {
  .featured-dot { transition: none !important; }
}
 
/* Reduced motion: never run the pulse */
@media (prefers-reduced-motion: reduce) {
  .featured-nav.nav-attract {
    animation: none;
  }
}

/* ==========================================================================
   26. CTA STRIP — Still have questions? (post-FAQ, pre-footer) NEW
   --------------------------------------------------------------------------
   A vivid gradient band offering one last conversion opportunity: call
   the hotline or send a WhatsApp. Text is pre-rendered in HTML for
   no-JS / SEO, but JS overrides it from strings.ctaStrip per language.
   ========================================================================== */

.cta-strip {
  padding: 64px 0;
  margin: 70px 0px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      120deg,
      #051A3D 0%,
      #002B7A 35%,
      #0040B3 70%,
      #0052E4 100%
    );
  color: white;
  isolation: isolate;
}
/* Aurora-style radial highlights — mirrors the hero language for cohesion */
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(48, 184, 243, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 82% 70%, rgba(48, 184, 243, 0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.cta-strip .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.cta-strip-content {
  max-width: 560px;
}
.cta-strip-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: white;
  line-height: 1.2;
}
.cta-strip-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  line-height: 1.55;
}

.cta-strip-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.cta-strip-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Call button — white pill on the dark gradient */
.cta-strip-btn.call {
  background: white;
  color: var(--brand-primary);
}
.cta-strip-btn.call:hover {
  background: var(--blue-mist);
  color: var(--brand-primary-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(10, 25, 41, 0.25);
}

/* WhatsApp button — official green, filled icon */
.cta-strip-btn.whatsapp {
  background: #25D366;
  color: white;
}
.cta-strip-btn.whatsapp:hover {
  background: #128C7E;
  text-decoration: none;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.40);
}
.cta-strip-btn.whatsapp svg {
  fill: currentColor;
  stroke: none;
}

:lang(si) .cta-strip-title { line-height: 1.35; }
:lang(si) .cta-strip-sub   { line-height: 1.65; }

@media (max-width: 760px) {
  .cta-strip { padding: 52px 0; }
  .cta-strip .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .cta-strip-content { max-width: none; }
  .cta-strip-actions { justify-content: center; }
}

@media (max-width: 480px) {
  .cta-strip-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-strip-btn { transition: none !important; }
}



/* ================================================================ */
/* Follow Us Social Media Item Styles */
/* =================================================================== */

.follow-us-section {
  padding: 55px 0px;
}

.sm-strip-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.sm-item {
  padding: 2px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0px 20px;
  background: var(--cream-surface);
 border: 1px solid rgba(20, 20, 40, 0.06);
  border-radius: var(--r-md);
   text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

:lang(si) .sm-item {
font-family: 'Mulish','MalithiWeb', Georgia, serif;
font-size: 16px;    
}

.sm-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--blue-soft);
  text-decoration: none;
}

/* --- Availability row hidden --- */
/* Uncomment the reverse when availability data becomes live. */
.doc-card-avail { display: none; }
 
/* Remove the border-top that was visually separating the avail row.
   Without the row, the bottom of the meta pills is now the card's floor. */
.doc-card-meta  { margin-bottom: 0; }
 
 
/* --- Doctor photo in the main carousel card avatar slot --- */
/* When buildDoctorCard detects a photoUrl it adds .has-photo.
   Without this, the gradient background bleeds around the photo. */
.doc-avatar-lg.has-photo {
  overflow: hidden;
  
  /* Gradient background intentionally kept — shows briefly while image loads */
}
.doc-avatar-lg.has-photo img {
  width: 90% !important;
  /* height: 90% !important; */
  object-fit: cover;
  display: block;
  /* justify-content: center;
  align-items: center; */
  border-radius: 50%;   /* belt-and-suspenders: the parent clips it already */
}

 /* Three additions:
     A. Peek cards — mobile shows 82% card + visible slice of the next card
     B. Nav button states — pulse on arrive, dim when at limit
     C. Dot indicators — position in the carousel
   ========================================================================== */