/* =========================================================
   Srishti Fertility — Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  /* === Official Srishti brand palette (Colour Olive brand kit) === */
  --cream: #FBF5F5;
  --raspberry: #C7426A;   /* primary brand */
  --skin: #FCEDE4;        /* warm soft */
  --tulip: #F6B3A2;       /* peach accent */
  --rose: #CF5B7E;        /* mid-pink accent */
  --plum: #5B2B39;        /* deep accent */

  /* Brand gradients */
  --gradient-joy: linear-gradient(135deg, #FBEAF0 0%, #F6B3A2 50%, #CF5B7E 100%);
  --gradient-raspberry: linear-gradient(135deg, #CF5B7E 0%, #5B2B39 100%);
  --gradient-dream: linear-gradient(135deg, #F7EDED 0%, #F9E6CA 50%, #F6B3A2 100%);

  /* Semantic + working aliases (backwards-compatible with existing CSS) */
  --rose-dark: var(--plum);
  --rose-medium: var(--raspberry);
  --rose-soft: #FBEAF0;
  --pink-soft: var(--skin);
  --peach: var(--tulip);
  --cream-warm: #F9E6CA;
  --ink: #2A1F1F;
  --brown: var(--plum);
  --muted: #6E5F60;
  --border: #F2E0E5;
  --white: #FFFFFF;

  --font-display: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  --max-w: 1240px;
  --pad: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--plum);
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); font-weight: 700; }
h3 { font-size: clamp(1.18rem, 1.9vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

/* Italic emphasis in headings — script-style flair tinted raspberry */
h1 em, h2 em, h3 em {
  font-style: normal;
  font-weight: inherit;
  color: var(--raspberry);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--raspberry);
  margin-bottom: 1rem;
  display: inline-block;
}

p { color: var(--muted); font-weight: 400; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { padding: clamp(4rem, 9vw, 7rem) 0; }

/* ---------- Services grid (3-col default, auto 2x2 for 4-item lists) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
/* When grid has exactly 4 cards, switch to 2×2 so no row is half-empty */
.services-grid:has(.service-card:nth-child(4):last-child) {
  grid-template-columns: repeat(2, 1fr);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
/* When grid has exactly 8 cards, switch to 4×2 to fill both rows evenly */
.services-grid:has(.service-card:nth-child(8):last-child) {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 960px) {
  .services-grid,
  .services-grid:has(.service-card:nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (max-width: 600px) {
  .services-grid,
  .services-grid:has(.service-card:nth-child(4):last-child) {
    grid-template-columns: 1fr;
  }
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(91, 43, 57, 0.08);
}
.service-icon {
  width: 44px;
  height: 44px;
  background: var(--rose-soft);
  color: var(--raspberry);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--plum);
  margin: 0 0 0.5rem;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 1rem;
  flex-grow: 1;
}
.card-arrow {
  font-size: 0.85rem;
  color: var(--raspberry);
  font-weight: 600;
}

/* ---------- Utility top bar ---------- */
.topbar {
  background: var(--plum);
  color: var(--cream);
  font-size: 0.82rem;
  padding: 0.55rem 0;
  letter-spacing: 0.01em;
}
.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar-right { gap: 0; }
.topbar a,
.topbar span.topbar-item {
  color: var(--cream);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.1rem 0.65rem;
  transition: color 0.2s;
  font-weight: 600;
  white-space: nowrap;
}
.topbar a:hover { color: var(--tulip); }
.topbar-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.22);
}
.topbar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}
@media (max-width: 880px) {
  .topbar { display: none; }
}

/* ---------- Header / Nav ---------- */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem var(--pad) 0.6rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--plum);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo img, .logo svg { display: block; height: 40px; width: auto; }
@media (max-width: 720px) { .logo img, .logo svg { height: 32px; } }
.logo span { color: var(--raspberry); font-weight: 700; }

.nav-links {
  display: flex;
  gap: 2.75rem;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
  flex: 1;
  margin-left: 2rem;
}
/* Two auto margins split free space — centring the 5 middle items between the
   logo and the right cluster (search · Book · Lang). */
.nav-links > li:first-child { margin-left: auto; }
.nav-links > li.nav-search-li { margin-left: auto; }
.nav-links > li:has(.nav-cta) { margin-left: 0.4rem; }
.nav-links > li.lang-toggle { margin-left: -1rem; }

/* Header inline search: underline-only input + icon (matches reference design) */
.header-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: 160px;
  border-bottom: 1.5px solid var(--border);
  padding: 0.3rem 0 0.35rem;
  transition: border-color 0.2s, width 0.25s ease;
}
.header-search:focus-within {
  width: 220px;
}
.header-search:focus-within {
  border-bottom-color: var(--raspberry);
}
.header-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  padding: 0;
  min-width: 0;
}
.header-search-input::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.header-search-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.header-search-icon:hover { color: var(--raspberry); }
.header-search-icon svg {
  width: 18px;
  height: 18px;
}
.header-search:focus-within .header-search-icon { color: var(--raspberry); }

/* Dropdown of live results sitting just below the input */
.header-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: -0.75rem;
  right: -0.75rem;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(91, 43, 57, 0.16);
  border: 1px solid var(--border);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 200;
  display: none;
  padding: 0.45rem 0;
}
.header-search-results.show { display: block; }
.header-search-result {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, padding-left 0.15s;
}
.header-search-result:last-child { border-bottom: none; }
.header-search-result:hover,
.header-search-result.is-active {
  background: var(--cream-warm);
  padding-left: 1.25rem;
}
.header-search-result-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--raspberry);
}
.header-search-result-title {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--plum);
}
.header-search-empty {
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* Below 1100px viewport, collapse to a slightly narrower search */
@media (max-width: 1100px) {
  .header-search { width: 130px; }
  .header-search:focus-within { width: 180px; }
}
@media (max-width: 880px) {
  .header-search { display: none; }
}

/* Search overlay */
#search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(91, 43, 57, 0.55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#search-overlay.active {
  display: flex;
  opacity: 1;
}
.search-modal {
  background: var(--white);
  border-radius: 20px;
  width: min(600px, 92vw);
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.25s ease;
}
#search-overlay.active .search-modal { transform: translateY(0); }
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--border);
}
.search-icon-svg {
  width: 20px; height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}
#search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  padding: 0;
}
#search-input::placeholder { color: var(--muted); }
.search-close {
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  border: none;
  background: var(--cream-warm);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: background 0.2s, color 0.2s;
}
.search-close:hover {
  background: var(--rose-soft);
  color: var(--raspberry);
}
.search-results {
  max-height: 60vh;
  overflow-y: auto;
}
.search-hint {
  padding: 2rem 1.5rem;
  text-align: center;
}
.search-hint p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
  font-style: italic;
}
.search-result {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1.3rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, padding-left 0.15s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover {
  background: var(--cream-warm);
  padding-left: 1.6rem;
}
.search-result-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--raspberry);
}
.search-result-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--plum);
}
@media (max-width: 600px) {
  #search-overlay { padding-top: 8vh; }
  .search-modal { width: 94vw; }
}
.nav-links > li > a,
.nav-links .has-dropdown > a {
  white-space: nowrap;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 400;
  transition: color 0.2s;
  text-transform: capitalize;
  letter-spacing: 0.01em;
}
@media (max-width: 1150px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.9rem; }
}
.nav-links a:hover, .nav-links a.active { color: var(--rose); }

/* Nav dropdown (Treatments, About) */
.nav-links .has-dropdown {
  position: relative;
  /* Extend the hoverable area down so cursor can cross to the dropdown */
  padding-bottom: 12px;
  margin-bottom: -12px;
}
.nav-links .has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.65;
}
.nav-links .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: 0.5rem 0;
  min-width: 220px;
  list-style: none;
  z-index: 100;
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.21, 1.02, 0.73, 1),
    visibility 0.28s;
  pointer-events: none;
}
.nav-links .has-dropdown:hover .dropdown,
.nav-links .has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
/* Soft caret-rotation cue when dropdown is open */
.nav-links .has-dropdown:hover > a::after,
.nav-links .has-dropdown:focus-within > a::after {
  transform: rotate(180deg);
}
.nav-links .has-dropdown > a::after {
  display: inline-block;
  transition: transform 0.25s ease;
}
.nav-links .dropdown li { margin: 0; }
.nav-links .dropdown a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 0.92rem;
  text-transform: none;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-links .dropdown a:hover {
  background: var(--cream-warm);
  color: var(--rose);
}

.nav-links a.nav-cta {
  background: var(--raspberry);
  color: var(--white);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-links a.nav-cta:hover {
  background: var(--plum);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(199, 66, 106, 0.28);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--cream); padding: 2rem;
    gap: 1.5rem; border-bottom: 1px solid var(--border);
    transform: translateY(-200%); transition: transform 0.3s;
  }
  .nav-links.open { transform: translateY(0); }
  /* Full-row, comfortably-tall tap targets in the open mobile menu */
  .nav-links a { display: block; padding: 0.35rem 0; }
  .nav-toggle { display: block; }
  .nav-links .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 1.25rem;
    background: transparent;
    min-width: 0;
    transition: none;
  }
  .nav-links .has-dropdown > a::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 1.85rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  border: 1px solid transparent;
}
.btn-primary { background: var(--raspberry); color: var(--white); font-weight: 600; }
.btn-primary:hover { background: var(--plum); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--rose); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--rose);
  font-weight: 400;
}
.hero-sub {
  font-size: 1.1rem;
  max-width: 460px;
  margin-bottom: 2.25rem;
  color: var(--muted);
}
.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3/2;
  background: var(--rose-soft);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--cream);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 3/4; }
}

/* ---------- Stats cards (full illustration + content) ---------- */
.stats {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
/* Stats stack vertically — one card at a time so each illustration gets
   the reader's full attention rather than competing in a 3-up grid. */
.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
/* Flat layout — no card background, no shadow. Just the lottie + copy
   sitting on the page so each stat reads as one calm row. */
.stat {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 2rem 0;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  align-items: center;
  gap: 2.25rem;
}
/* Alternate sides so the illustrations create a gentle zig-zag rhythm */
.stats-grid .stat:nth-child(even) {
  grid-template-columns: 1fr minmax(220px, 320px);
}
.stats-grid .stat:nth-child(even) .stat-image { order: 2; }
.stats-grid .stat:nth-child(even) .stat-body  { order: 1; }
/* No hover lift — there's no card to lift */
.stat:hover { transform: none; box-shadow: none; }
.stat:hover .stat-image img { transform: none; }
/* Illustration is constrained to its column and centered */
.stat-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}
.stat-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.21, 1.02, 0.73, 1);
}
.stat:hover .stat-image img {
  transform: scale(1.04);
}
.stat-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  font-weight: 700;
  color: var(--raspberry);
  line-height: 1;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 700;
  color: var(--plum);
  margin: 0 0 0.8rem;
  font-style: normal;
}
.stat-desc {
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  color: var(--ink);
  line-height: 1.6;
  margin: 0.3rem 0 0;
  max-width: 56ch;
}

@media (max-width: 720px) {
  /* Card collapses: illustration on top, copy below — keeps the same
     one-at-a-time vertical flow on phones. */
  .stat,
  .stats-grid .stat:nth-child(even) {
    grid-template-columns: 1fr;
    padding: 1.75rem 0 2rem;
    gap: 1.25rem;
    text-align: center;
  }
  .stats-grid .stat:nth-child(even) .stat-image { order: 0; }
  .stats-grid .stat:nth-child(even) .stat-body  { order: 0; }
  .stat-image { aspect-ratio: 4 / 3; max-width: 340px; margin: 0 auto; }
  .stat-desc { margin-left: auto; margin-right: auto; }
}

/* ---------- Section Header ---------- */
.section-head {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-head h2 em { font-style: normal; color: var(--rose); }
.section-head p { margin-top: 1rem; font-size: 1.05rem; }

/* ---------- About / Care section (two col) ---------- */
.care-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.care-image {
  border-radius: 24px;
  overflow: hidden;
}
.care-image img { width: 100%; height: auto; display: block; }
.care-tabs { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.care-tab {
  padding: 1.4rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: all 0.25s;
}
.care-tab h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
}
.care-tab .indicator {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--cream-warm); display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--rose); font-size: 0.85rem;
  transition: transform 0.3s;
}
.care-tab p {
  margin-top: 1rem;
  font-size: 0.95rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.care-tab.active { background: var(--rose-soft); border-color: var(--rose); }
.care-tab.active .indicator { transform: rotate(45deg); background: var(--rose); color: var(--white); }
.care-tab.active p { max-height: 200px; padding-top: 0.5rem; }

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

/* ---------- Doctors (original card pair) ---------- */
.doctors-section { background: var(--cream-warm); }
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.doctor-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.doctor-image {
  overflow: hidden;
}
.doctor-image img { width: 100%; height: auto; display: block; }
.doctor-content { padding: 2rem; }
.doctor-content h3 { margin-bottom: 0.75rem; font-size: 1.5rem; color: var(--plum); }
.doctor-content p { font-size: 0.95rem; margin-bottom: 1.5rem; color: var(--ink); line-height: 1.6; }
.know-more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--rose); font-weight: 600; font-size: 0.95rem;
  transition: gap 0.2s;
}
.know-more:hover { gap: 0.8rem; }

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

/* ---------- Journey / Process ---------- */
.journey {
  background: linear-gradient(135deg, var(--raspberry) 0%, var(--plum) 100%);
  color: var(--white);
}
.journey .section-head h2, .journey .section-head p { color: var(--white); }
.journey .section-head h2 em { color: var(--tulip); }
.journey .eyebrow { color: var(--rose-soft); }
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
/* When journey has exactly 4 steps, switch to a balanced 2×2 grid */
.journey-grid:has(.journey-step:nth-child(4):last-child) {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 800px) {
  .journey-grid:has(.journey-step:nth-child(4):last-child) { grid-template-columns: 1fr; }
}
/* Default light-background style — used anywhere .journey-step is reused (e.g. first-visit page) */
.journey-step {
  text-align: left;
  padding: 2.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.journey-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(91, 43, 57, 0.08);
}
.journey-step .step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--raspberry);
  opacity: 0.5;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}
.journey-step h3 { color: var(--plum); margin-bottom: 0.75rem; }
.journey-step p { color: var(--ink); font-size: 0.95rem; line-height: 1.55; }

/* When nested inside the dark Journey section, switch to glassmorphic light-on-dark */
.journey .journey-step {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.journey .journey-step:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}
.journey .journey-step .step-num { color: var(--white); opacity: 0.55; }
.journey .journey-step h3 { color: var(--white); }
.journey .journey-step p { color: rgba(255, 255, 255, 0.88); }

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

/* ---------- FAQ Accordion (matches .faq-q / .faq-a / .faq-toggle HTML) ---------- */
.faq-section { background: var(--cream); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q,
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--plum);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q:hover,
.faq-question:hover { color: var(--raspberry); }
.faq-toggle,
.faq-question .plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
  color: var(--plum);
  background: var(--white);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s;
}
.faq-item.open .faq-toggle,
.faq-item.open .faq-question .plus {
  background: var(--raspberry);
  color: var(--white);
  border-color: var(--raspberry);
  transform: rotate(45deg);
}
.faq-a,
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.35s ease;
}
.faq-a p,
.faq-answer p {
  padding: 0 3rem 1.5rem 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.faq-a a,
.faq-answer a {
  color: var(--raspberry);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(199, 66, 106, 0.3);
  text-underline-offset: 3px;
}
.faq-item.open .faq-a,
.faq-item.open .faq-answer { max-height: 500px; }

.faq-category { margin-bottom: 3.5rem; }
.faq-category h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.faq-category .cat-desc { margin-bottom: 1.5rem; }

/* ---------- Contact / CTA ---------- */
.cta-section {
  background: var(--cream-warm);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cta-image { border-radius: 24px; overflow: hidden; aspect-ratio: 3/2; background: var(--cream-warm); }
.cta-image img { width: 100%; height: 100%; object-fit: contain; }
.cta-content h2 { margin-bottom: 1.25rem; }
.cta-content p { margin-bottom: 2rem; font-size: 1.05rem; }

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

/* ---------- Contact cards ---------- */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.contact-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
}
.contact-card h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.contact-card p { font-size: 0.92rem; margin-bottom: 0.75rem; }
.contact-card a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-top: 0.25rem;
  transition: color 0.2s;
}
.contact-card a:hover { color: var(--rose); }

@media (max-width: 800px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
}

/* ---------- Patient Stories ---------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) {
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .stories-grid { grid-template-columns: 1fr; }
}
.story-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
}
.story-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--rose);
  position: absolute;
  top: 1rem; left: 1.5rem;
  line-height: 1;
  opacity: 0.3;
}
.story-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  font-style: normal;
  color: var(--rose);
}
.story-card p { font-size: 0.95rem; margin-bottom: 1.5rem; }
.story-author {
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 600;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ---------- About page specific ---------- */
.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.page-hero h1 { margin-bottom: 1.25rem; }
.page-hero h1 em { font-style: normal; color: var(--rose); }
.page-hero p { font-size: 1.15rem; max-width: 580px; margin: 0 auto; }
.page-hero .hero-cta-group { justify-content: center; }

.page-tags {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2rem;
}
.tag {
  padding: 0.5rem 1.1rem; border-radius: 999px;
  background: var(--cream-warm); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--ink);
}

.doctor-detail {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.doctor-detail .doctor-image {
  border-radius: 24px;
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.doctor-detail h3 { font-size: 2rem; margin-bottom: 1.5rem; }
.doctor-detail p { margin-bottom: 1.25rem; color: var(--muted); }

@media (max-width: 800px) {
  .doctor-detail { grid-template-columns: 1fr; }
  .doctor-detail .doctor-image { position: static; }
}

/* Features (about page) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row .feat-image {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.feature-row .feat-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-row h3 { margin-bottom: 1rem; font-size: 1.75rem; }

@media (max-width: 800px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ============================================================
   PRINT STYLESHEET — for when patients print directions,
   first-visit guide, pricing, or any article from the site.
   ============================================================ */
@media print {
  /* Page setup — generous margins so content doesn't run to the edge */
  @page {
    margin: 18mm 16mm 18mm 16mm;
    size: A4;
  }

  /* Reset for ink saving */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.5;
  }
  body * {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Hide everything non-essential when printing */
  .site-nav,
  .nav-toggle,
  .nav-links,
  .skip-link,
  .lang-toggle,
  .nav-cta,
  .first-visit-callout,
  .toast-container,
  .floating-actions,
  .mobile-sticky-bar,
  .lightbox-overlay,
  footer,
  .cta-section,
  .hero-cta-group,
  .btn,
  .post-share,
  .map-wrapper,
  .map-cta,
  .memberships-marquee,
  #google_translate_element,
  .skiptranslate {
    display: none !important;
  }

  /* Make headings stay with following content */
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid;
    break-after: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  h1 { font-size: 22pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 13pt; }
  h1 em, h2 em, h3 em, h4 em {
    font-style: italic;
    color: #555 !important;
  }

  /* Keep cards / grids together where possible */
  .care-grid,
  .feature-row,
  .doctor-card,
  .doctor-detail,
  .pricing-card,
  .service-card,
  .blog-card,
  .author-card,
  .credentials,
  .cred-row {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Tighten generous web margins */
  .container { padding: 0 !important; max-width: 100% !important; }
  section { padding: 8pt 0 !important; }
  .page-hero, .post-hero {
    padding: 12pt 0 8pt !important;
    background: transparent !important;
  }

  /* Images — keep but limit size */
  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .care-image img,
  .cta-image img,
  .doctor-image img,
  .post-cover img,
  .blog-card-image img {
    max-height: 80mm !important;
    object-fit: contain !important;
  }

  /* Links: show URL after them (so printed page is usable offline) */
  a[href]:not([href^="#"]):not([href^="javascript"]):after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
    word-break: break-all;
  }
  /* But not for nav/footer links (hidden anyway) or icon-only links */
  .socials a:after,
  .nav-links a:after,
  .nf-link:after,
  .know-more:after {
    content: none;
  }

  /* Tables and lists shouldn't break across pages */
  table, ul, ol { page-break-inside: avoid; break-inside: avoid; }

  /* Reveal animations — show everything when printing */
  .reveal, .reveal-children > * {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Print-only helper: a small "Srishti SAFE" footer line at the bottom of each page */
  body::after {
    content: "Srishti Advanced Fertility & Endoscopy (SAFE) · 2nd Floor, Ashok Hospital, Vidya Nagar, Hubli 580021 · +91 98863 06333 · www.srishti.care";
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 4mm;
    font-size: 8pt;
    text-align: center;
    color: #777;
    border-top: 1px solid #ccc;
  }
}

/* ---------- Accessibility ---------- */

/* Skip-to-content link — visible only when focused via keyboard */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--plum);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid var(--tulip);
  outline-offset: 2px;
}

/* Custom focus ring — visible on keyboard focus, invisible on mouse focus */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--raspberry);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible {
  outline-offset: 4px;
}
.nav-links a:focus-visible {
  outline-offset: 6px;
}
.toast-close:focus-visible,
.lightbox-btn:focus-visible,
.lightbox-close:focus-visible {
  outline-color: var(--white);
}

/* High-contrast mode hints (for users with forced-colors enabled) */
@media (forced-colors: active) {
  .btn-primary { border: 2px solid currentColor; }
  .btn-outline { border-width: 2px; }
}

/* ---------- Google Translate: hide ALL default UI ---------- */
#google_translate_element {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
/* Top banner frame */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
.skiptranslate {
  display: none !important;
  visibility: hidden !important;
}
/* "Original text" tooltip / balloon */
.goog-tooltip,
.goog-tooltip:hover,
.goog-te-balloon-frame {
  display: none !important;
}
/* Hide every floating Google Translate UI popup (class names vary over time) */
[id^="goog-gt-"],
[class^="VIpgJd-"],
[class*=" VIpgJd-"] {
  display: none !important;
}
/* Disable the highlight Google adds on translated text */
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
/* Prevent body from being pushed down by the (now-hidden) banner */
body {
  top: 0 !important;
  position: static !important;
  min-height: initial !important;
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.lang-toggle a {
  color: var(--muted);
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.lang-toggle a.active {
  color: var(--raspberry);
  background: var(--rose-soft);
}
.lang-toggle a:hover { color: var(--plum); }
.lang-toggle .lang-sep { color: var(--border); }
@media (max-width: 880px) {
  .lang-toggle { margin: 0.5rem 0 0 0; padding: 0.5rem 0 0; border-top: 1px solid var(--border); width: 100%; }
}

/* ---------- 404 page ---------- */
.not-found {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 5rem) var(--pad);
  text-align: center;
}
.nf-inner { max-width: 640px; }
.nf-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 0.95;
  margin: 0;
  background: linear-gradient(135deg, var(--raspberry), var(--plum));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nf-code em {
  font-style: italic;
  background: linear-gradient(135deg, var(--tulip), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nf-title {
  margin: 1rem 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.nf-text {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 2rem;
}
.nf-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.nf-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.1rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--plum);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nf-link:hover {
  transform: translateY(-3px);
  border-color: var(--rose-soft);
  box-shadow: 0 12px 28px rgba(91, 43, 57, 0.08);
}
.nf-link svg {
  width: 28px;
  height: 28px;
  color: var(--raspberry);
}
.nf-search-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ---------- Legal pages (Privacy, Terms) ---------- */
.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--pad);
}
.legal-body p, .legal-body li {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--ink);
}
.legal-body h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  color: var(--plum);
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--plum);
}
.legal-body ul, .legal-body ol {
  margin: 0.6rem 0 1.25rem 1.25rem;
  padding: 0;
}
.legal-body li { margin-bottom: 0.45rem; }
.legal-body strong { color: var(--plum); font-weight: 700; }
.legal-body a {
  color: var(--raspberry);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(199, 66, 106, 0.3);
  text-underline-offset: 3px;
}
.legal-body a:hover { text-decoration-color: var(--raspberry); }
.legal-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

/* ---------- Blog ---------- */
.blog-hero {
  text-align: center;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 1.5rem;
}
.blog-hero h1 { max-width: 760px; margin: 0 auto 1rem; }
.blog-hero p { max-width: 600px; margin: 0 auto; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(91, 43, 57, 0.10);
  border-color: var(--rose-soft);
}
.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-warm);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 1.5rem 1.5rem 1.65rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.blog-category {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  background: var(--rose-soft);
  color: var(--raspberry);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-card-body h2,
.blog-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--plum);
  line-height: 1.3;
  margin: 0;
}
.blog-card:hover h2,
.blog-card:hover h3 { color: var(--raspberry); }
.blog-card-excerpt {
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}
.blog-card-readtime {
  font-size: 0.8rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.blog-card-readtime::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--rose);
  display: inline-block;
}

/* Featured (first) card spans wider on big screens */
@media (min-width: 900px) {
  .blog-grid .blog-card-featured {
    grid-column: span 2;
    flex-direction: row;
  }
  .blog-grid .blog-card-featured .blog-card-image {
    width: 50%;
    aspect-ratio: auto;
  }
  .blog-grid .blog-card-featured .blog-card-body {
    width: 50%;
    padding: 2rem 2.25rem;
  }
  .blog-grid .blog-card-featured h2,
  .blog-grid .blog-card-featured h3 {
    font-size: 1.6rem;
  }
}

/* ---------- Single blog post layout ---------- */
.post-hero {
  background: var(--rose-soft);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.post-hero .container { max-width: 800px; }
.post-hero .blog-category { margin-bottom: 1.2rem; }
.post-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  font-size: 0.92rem;
  color: var(--plum);
  margin-top: 0.5rem;
}
.post-meta strong {
  font-weight: 700;
  color: var(--raspberry);
}
.post-cover {
  max-width: 1000px;
  margin: -2rem auto 0;
  padding: 0 var(--pad);
}
.post-cover img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 16/8;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(91, 43, 57, 0.10);
}
.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
}
.post-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-top: 1.75rem;
  margin-bottom: 0.7rem;
  color: var(--plum);
}
.post-body p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.post-body ul, .post-body ol {
  margin: 0.5rem 0 1.5rem 1.25rem;
  padding: 0;
}
.post-body li {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}
.post-body strong { color: var(--plum); font-weight: 700; }
.post-body a {
  color: var(--raspberry);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(199, 66, 106, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.post-body a:hover { text-decoration-color: var(--raspberry); }
.post-body blockquote {
  border-left: 4px solid var(--raspberry);
  background: var(--rose-soft);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: var(--plum);
}
.post-body blockquote p { margin-bottom: 0; }
.post-body .callout {
  background: var(--cream-warm);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.85rem;
}
.post-body .callout svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--raspberry); margin-top: 2px; }
.post-body .callout p { margin: 0; }
.post-body .callout strong { display: block; margin-bottom: 0.25rem; }

/* Post share + back-to-blog */
.post-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem var(--pad) 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border);
}
.post-footer a { color: var(--raspberry); font-weight: 600; }
.post-footer .post-share { display: flex; gap: 0.6rem; }
.post-share a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--raspberry);
  transition: background 0.2s, transform 0.2s;
}
.post-share a:hover { background: var(--raspberry); color: var(--white); transform: translateY(-2px); }
.post-share svg { width: 17px; height: 17px; }

/* Author bio card after post body */
.author-card {
  max-width: 760px;
  margin: 1rem auto 0;
  padding: 1.5rem var(--pad);
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--cream-warm);
  border-radius: 18px;
}
.author-card-image {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.author-card-image img { width: 100%; height: 100%; object-fit: cover; }
.author-card-content h4 { margin: 0 0 0.3rem; font-size: 1.1rem; color: var(--plum); }
.author-card-content p { margin: 0; font-size: 0.92rem; color: var(--ink); line-height: 1.55; }

/* ---------- Image lightbox ---------- */
.care-image img,
.feat-image img,
.doctor-image img {
  cursor: zoom-in;
  transition: filter 0.25s ease;
}
.care-image img:hover,
.feat-image img:hover,
.doctor-image img:hover {
  filter: brightness(0.96);
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 6, 10, 0.92);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.show {
  display: flex;
  opacity: 1;
}
.lightbox-image-wrap {
  max-width: 92vw;
  max-height: 82vh;
  position: relative;
  margin: 0 auto;
}
.lightbox-image {
  max-width: 92vw;
  max-height: 82vh;
  display: block;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-select: none;
}
.lightbox-caption {
  position: absolute;
  bottom: -2.75rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0 1rem;
}
.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  padding: 0;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.05);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}
.lightbox-counter {
  position: fixed;
  top: 32px;
  left: 28px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
@media (max-width: 720px) {
  .lightbox-btn { width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { top: 16px; right: 16px; width: 38px; height: 38px; }
  .lightbox-counter { top: 22px; left: 18px; font-size: 0.75rem; }
  .lightbox-caption { bottom: -2.5rem; font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox-overlay { transition: none; }
  .lightbox-btn { transition: none; }
}

/* Scroll-reveal — base hidden state + revealed state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.21, 1.02, 0.73, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger child reveals so cards inside a grid don't all pop at once */
.reveal-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.21, 1.02, 0.73, 1);
}
.reveal-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-children.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-children.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-children.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-children.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-children.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-children.is-visible > *:nth-child(7) { transition-delay: 0.46s; }
.reveal-children.is-visible > *:nth-child(8) { transition-delay: 0.52s; }
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Contact form — preferred slot helpers */
.form-group label .optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: 0.4rem;
}
.form-group input[type="date"] {
  font-family: var(--font-body);
  appearance: none;
  cursor: pointer;
}
.slot-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: -0.5rem 0 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}
.slot-note::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C7426A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  margin-top: 1px;
}

/* Pricing cards (pricing page) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 540px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(91, 43, 57, 0.08);
  border-color: var(--rose-soft);
}
.pricing-card-feature {
  border: 2px solid var(--raspberry);
  position: relative;
}
.pricing-card-feature::before {
  content: 'MOST ASKED';
  position: absolute;
  top: -10px; left: 1.5rem;
  background: var(--raspberry);
  color: var(--white);
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.pricing-card-head {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.pricing-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--plum);
  margin: 0 0 0.5rem;
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--raspberry);
  line-height: 1.1;
}
.pricing-amount span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--plum);
  opacity: 0.7;
}
.pricing-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex-grow: 1;
}
.pricing-includes li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.5rem;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
}
.pricing-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C7426A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}
.pricing-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  line-height: 1.5;
}
.pricing-note a { color: var(--raspberry); font-weight: 600; }

/* First-visit callout banner (contact page) */
.first-visit-callout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(90deg, var(--rose-soft) 0%, var(--skin) 100%);
  border-radius: 18px;
  border: 1px solid rgba(199, 66, 106, 0.18);
  text-decoration: none;
  color: var(--plum);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.first-visit-callout:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(199, 66, 106, 0.12);
}
.fvc-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--raspberry);
}
.fvc-icon svg { width: 24px; height: 24px; }
.fvc-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fvc-content strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--plum);
}
.fvc-content span {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.45;
}
.fvc-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--raspberry);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.25s ease;
}
.first-visit-callout:hover .fvc-arrow { transform: translateX(4px); }
.fvc-arrow svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
  .first-visit-callout { gap: 0.85rem; padding: 0.95rem 1.1rem; }
  .fvc-icon { width: 40px; height: 40px; }
  .fvc-arrow { width: 32px; height: 32px; }
}

/* Visit checklist lists (first-visit page) */
.visit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.visit-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.75rem;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.55;
  border-bottom: 1px solid rgba(91, 43, 57, 0.08);
}
.visit-list li:last-child { border-bottom: 0; }
.visit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C7426A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}
.visit-list li strong { color: var(--plum); font-weight: 700; }

/* Map + Finding-us cards (contact page) */
.map-wrapper {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--cream-warm);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(91, 43, 57, 0.06);
}
.finding-us {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.finding-us-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.25s, transform 0.25s;
}
.finding-us-card:hover {
  border-color: var(--rose-soft);
  transform: translateY(-2px);
}
.finding-us-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-soft);
  border-radius: 12px;
  color: var(--raspberry);
}
.finding-us-icon svg { width: 22px; height: 22px; }
.finding-us-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--plum);
}
.finding-us-content p {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.finding-us-content a { color: var(--raspberry); font-weight: 600; }
.map-cta {
  margin-top: 1.75rem;
  text-align: center;
}
@media (max-width: 800px) {
  .finding-us { grid-template-columns: 1fr; }
}

/* Trust badges (homepage certifications section) */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
.trust-badge {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  align-items: center;
  transition: border-color 0.2s, transform 0.2s;
}
.trust-badge:hover {
  border-color: var(--rose-soft);
  transform: translateY(-1px);
}
.trust-badge svg {
  width: 26px;
  height: 26px;
  color: var(--raspberry);
  flex-shrink: 0;
}
.trust-badge div { display: flex; flex-direction: column; line-height: 1.25; }
.trust-badge strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--plum);
}
.trust-badge span {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
@media (max-width: 560px) {
  .trust-badges { grid-template-columns: 1fr; }
}

/* Doctor credentials panel (about page) — sits on section's cream background */
.credentials {
  margin-top: 1.75rem;
  padding: 1.25rem 0 0.5rem;
  border-top: 2px solid var(--raspberry);
}
.credentials-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--raspberry);
  padding-bottom: 0.6rem;
  margin-bottom: 0.25rem;
}
.credentials-title svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.cred-row {
  display: grid;
  grid-template-columns: minmax(140px, 22%) 1fr;
  gap: 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(91, 43, 57, 0.1);
  align-items: baseline;
}
.cred-row:last-child {
  border-bottom: 0;
}
@media (max-width: 720px) {
  .cred-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
.cred-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--raspberry);
}
.cred-content {
  font-size: 0.94rem;
  color: var(--ink);
  line-height: 1.55;
}
.cred-content > p {
  margin: 0;
  color: var(--ink);
}
.cred-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
}
.cred-list li {
  display: inline-flex;
  align-items: center;
  font-size: 0.94rem;
  color: var(--ink);
}
.cred-list li:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--rose);
  margin-left: 0.7rem;
  opacity: 0.55;
}
.cred-pubs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.cred-pubs .pub-count {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--raspberry);
  letter-spacing: 0.01em;
  border: 1px solid rgba(199, 66, 106, 0.18);
}

/* Memberships — auto-scrolling marquee (matches live srishti.care layout) */
.memberships-marquee {
  position: relative;
  margin-top: 2.5rem;
  overflow: hidden;
  /* Fade the edges so cards appear from / vanish into nothing */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.memberships-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.memberships-marquee:hover .memberships-track {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.membership-card {
  flex-shrink: 0;
  width: 200px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--raspberry);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.membership-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(199, 66, 106, 0.10);
  border-color: var(--rose-soft);
}
.membership-card .badge {
  width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
  flex-shrink: 0;
}
.membership-card .badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Text-fallback badge style (used when no logo image is supplied) */
.membership-card .badge.badge-text {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-soft) 0%, var(--skin) 100%);
  border: 2px solid var(--raspberry);
  color: var(--plum);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.membership-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--raspberry);
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .memberships-track { animation: none; }
}

/* Stats v2 (about page) */
.stats-pretty {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stat-card {
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border);
}
.stat-card .stat-number { font-size: clamp(2.5rem, 4.5vw, 3.5rem); }

@media (max-width: 800px) {
  .stats-pretty { grid-template-columns: 1fr; }
}

/* ---------- Contact page form ---------- */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info-list { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.contact-info-item p, .contact-info-item a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--ink);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
  transition: border 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--rose);
}
.form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 700px) {
  .contact-form-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
footer {
  background: linear-gradient(135deg, var(--raspberry) 0%, var(--plum) 100%);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: var(--cream); }
.footer-brand .logo img { height: 44px; filter: brightness(0) invert(0.96) sepia(0.1); }
.footer-brand p { color: rgba(255,255,255,0.65); margin-top: 1rem; max-width: 320px; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rose-soft);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { color: rgba(255,255,255,0.75); font-size: 0.95rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--rose-soft); }

.footer-contact div { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 0.6rem; }
.footer-contact a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-contact a:hover { color: var(--rose-soft); }
.footer-hours { margin-top: 1.25rem; font-size: 0.9rem; }
.footer-hours strong { display: block; color: var(--cream); margin-bottom: 0.25rem; }

.socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
.socials a:hover { background: var(--rose); color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--rose-soft); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Roomier tap targets for footer links on touch screens */
  .footer-col ul { gap: 0.35rem; }
  .footer-col ul a { display: inline-block; padding: 0.3rem 0; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeUp 0.8s ease-out backwards;
}
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Hover state for clickable service cards (anchor) */
a.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(190, 68, 99, 0.10);
  border-color: var(--rose-soft);
}
a.service-card:hover h3 { color: var(--rose); }
.service-card .card-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--rose);
  font-weight: 600;
}

/* ---------- Toast notifications (Sonner-style) ---------- */
.toast-container {
  position: fixed;
  bottom: 96px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  background: #ffffff;
  border-radius: 14px;
  padding: 0.95rem 1.1rem 0.95rem 1rem;
  box-shadow: 0 12px 32px rgba(91, 43, 57, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 280px;
  max-width: 380px;
  border-left: 4px solid var(--raspberry);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.21, 1.02, 0.73, 1), opacity 0.3s ease;
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast-success { border-left-color: #16a34a; }
.toast-success .toast-icon { color: #16a34a; }
.toast-error { border-left-color: #dc2626; }
.toast-error .toast-icon { color: #dc2626; }
.toast-info { border-left-color: var(--raspberry); }
.toast-info .toast-icon { color: var(--raspberry); }
.toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.toast-content {
  flex: 1;
  line-height: 1.45;
}
.toast-title {
  font-weight: 700;
  margin-bottom: 0.18rem;
  color: var(--plum);
  font-size: 0.95rem;
}
.toast-close {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  margin: -4px -4px 0 0;
  font-size: 1rem;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.toast-close:hover { background: var(--cream-warm); color: var(--plum); }
@media (max-width: 720px) {
  .toast-container {
    bottom: 92px;
    left: 16px;
    right: 16px;
  }
  .toast {
    min-width: 0;
    max-width: 100%;
  }
}

/* ---------- Floating WhatsApp + Call (desktop & mobile) ---------- */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}
.floating-actions a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.floating-actions .fa-whatsapp {
  background: #25D366;
}
.floating-actions .fa-call {
  background: var(--rose);
}
.floating-actions svg {
  display: block;
}

/* ---------- Mobile sticky bottom bar ---------- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  gap: 10px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.mobile-sticky-bar a {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.mobile-sticky-bar .msb-call {
  background: var(--cream-warm);
  color: var(--ink);
  border: 1px solid var(--border);
}
.mobile-sticky-bar .msb-book {
  background: var(--rose);
  color: white;
}
@media (max-width: 720px) {
  .mobile-sticky-bar {
    display: flex;
  }
  body {
    padding-bottom: 76px;
  }
  .floating-actions {
    bottom: 92px;
    right: 16px;
  }
  .floating-actions a {
    width: 48px;
    height: 48px;
  }
}

/* Hero h1 sub-line (after <br>) — slightly lighter than the main brand line */
.h1-sub {
  display: inline-block;
  font-weight: 600;
  color: var(--plum);
  opacity: 0.92;
}
@media (max-width: 720px) {
  .h1-sub { display: inline; }
}

/* First-visit prep guide — minimal editorial line (contact page) */
.first-visit-line {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}
.first-visit-line a {
  color: var(--raspberry);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(199, 66, 106, 0.35);
  text-underline-offset: 3px;
}
.first-visit-line a:hover {
  text-decoration-color: var(--raspberry);
}

/* ---------- Help-grid (Contact Info section) — photo + info side by side ---------- */
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.help-image {
  border-radius: 18px;
  overflow: hidden;
}
.help-image img {
  width: 100%;
  height: auto;
  display: block;
}
.help-content .eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--raspberry);
  margin-bottom: 0.85rem;
}
.help-content h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--plum);
  margin: 0 0 2rem;
}
.help-content h2 em {
  font-style: normal;
  color: var(--raspberry);
}
.help-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 0.85rem 0;
}
.help-item + .help-item {
  border-top: 1px solid var(--border);
}
.help-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--rose-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--raspberry);
}
.help-icon svg { width: 18px; height: 18px; }
.help-item-body {
  flex: 1;
  padding-top: 0.3rem;
}
.help-item-label {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}
.help-item-value {
  display: inline-block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--raspberry);
  text-decoration: none;
  word-break: break-word;
}
.help-item-value a {
  color: var(--raspberry);
  font-weight: 600;
  text-decoration: none;
}
.help-item-value a:hover,
a.help-item-value:hover {
  text-decoration: underline;
  text-decoration-color: rgba(199, 66, 106, 0.4);
  text-underline-offset: 3px;
}
@media (max-width: 800px) {
  .help-grid { grid-template-columns: 1fr; }
}

/* Centered contact form (no side info column) */
.contact-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* =========================================================
   RESPONSIVE POLISH — comprehensive cross-device safety net
   Layered after all base rules so it can correct gaps without
   touching existing declarations. Breakpoints:
     ≤1024px  small laptops / large tablets landscape
     ≤768px   tablets portrait (iPad)
     ≤600px   large phones / small tablets
     ≤480px   most phones
     ≤380px   small phones (iPhone SE etc.)
   ========================================================= */

/* ---- Global overflow safety + base scaling ---- */
/* Use overflow-x:clip (not hidden) so position:sticky on the header still works.
   `hidden` creates a scroll container which breaks the sticky header; `clip`
   prevents horizontal scrolling without that side effect. Fallback for old
   browsers: an inner body wrapper isn't used because clip has 96%+ support. */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
/* Safety fallback: if a browser lacks overflow:clip support, at least keep
   body from scrolling horizontally — sticky on header may still work because
   it's the body, not html, that scrolls in this fallback path. */
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
  html { overflow-x: visible; }
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video, iframe { max-width: 100%; height: auto; }
iframe { display: block; }
.container { width: 100%; }

/* Prevent long unbroken strings (URLs, emails) from blowing layouts */
.post-body, .legal-body, .blog-card-body, .contact-info-item,
.help-item-value, .footer-contact, .topbar, .faq-a, .faq-answer {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* ---- Tablet ≤1024px: gentle adjustments for small laptops & landscape iPad ---- */
@media (max-width: 1024px) {
  .nav-links { gap: 1.4rem; }
  .hero-grid { gap: clamp(1.5rem, 4vw, 3rem); }
}

/* ---- Tablet ≤900px: nav already collapses at 880px; tighten everything else ---- */
@media (max-width: 900px) {
  .blog-grid { gap: 1.25rem; }
  .pricing-grid { gap: 1.1rem; }
  .stats-grid { gap: 1.25rem; }
}

/* ---- Tablet portrait ≤768px — fills the prior "tablet desert" 600–880px ---- */
@media (max-width: 768px) {
  /* Grids collapse to one column on iPad portrait.
     (.stats-grid is intentionally NOT listed — it's a flex column by design.) */
  .services-grid,
  .services-grid:has(.service-card:nth-child(4):last-child),
  .services-grid:has(.service-card:nth-child(8):last-child),
  .stats-pretty,
  .stories-grid,
  .journey-grid,
  .journey-grid:has(.journey-step:nth-child(4):last-child),
  .contact-cards-grid,
  .finding-us,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing: three-col is already active here — keep two for breathing room */
  .pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Two-column hero/feature layouts stack here */
  .hero-grid,
  .care-grid,
  .doctors-grid,
  .doctor-detail,
  .cta-grid,
  .feature-row,
  .feature-row.reverse,
  .help-grid,
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
  .feature-row.reverse { direction: ltr; }
  .doctor-detail .doctor-image { position: static; top: auto; }

  /* Hero image: portrait phone framing reads better than 3/2 */
  .hero-image { aspect-ratio: 4/3; }
  .cta-image { aspect-ratio: 4/3; }

  /* Map: 16/7 is too letterboxed on iPad portrait */
  .map-wrapper { aspect-ratio: 4/3; }

  /* Blog featured card: cancel the row layout from min-width:900px */
  .blog-grid .blog-card-featured { grid-column: auto; flex-direction: column; }
  .blog-grid .blog-card-featured .blog-card-image,
  .blog-grid .blog-card-featured .blog-card-body { width: 100%; }
  .blog-grid .blog-card-featured .blog-card-image { aspect-ratio: 16/9; }
  .blog-grid .blog-card-featured .blog-card-body { padding: 1.5rem; }
  .blog-grid .blog-card-featured h2,
  .blog-grid .blog-card-featured h3 { font-size: 1.25rem; }

  /* Post cover: pull-up margin is too much without nav space */
  .post-cover { margin-top: 0; }
  .post-cover img { aspect-ratio: 16/10; border-radius: 16px; }

  /* Section padding shrinks */
  section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }

  /* Tighter section heads */
  .section-head { margin: 0 auto 2.25rem; }
}

/* ---- Phone ≤600px ---- */
@media (max-width: 600px) {
  :root { --pad: 1.1rem; }

  /* Form: single column inputs */
  .form-row { grid-template-columns: 1fr; gap: 0.85rem; }
  .contact-form { padding: 1.5rem; border-radius: 18px; }

  /* Buttons should be full-width inside hero cta groups */
  .hero-cta-group { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-cta-group .btn { width: 100%; text-align: center; }
  .page-hero .hero-cta-group { align-items: stretch; }

  /* Doctor cards: less internal padding */
  .doctor-content { padding: 1.5rem; }

  /* Stat cards: trim padding */
  .stat { padding: 1.25rem 1.25rem 1.5rem; gap: 1rem; }
  .stat-card { padding: 1.75rem 1.5rem; }

  /* Service / story / blog cards */
  .service-card { padding: 1.4rem; }
  .story-card { padding: 1.5rem; }
  .story-card::before { font-size: 3rem; top: 0.5rem; left: 1rem; }
  .blog-card-body { padding: 1.25rem; }

  /* FAQ — answer needed more right padding before for the close button */
  .faq-a p, .faq-answer p { padding-right: 1.5rem; font-size: 0.95rem; }
  .faq-q, .faq-question { font-size: 1rem; padding: 1.25rem 0; }
  .faq-category h3 { font-size: 1.45rem; }
  .faq-category { margin-bottom: 2.25rem; }

  /* Pricing — single column on small phones (this matches the existing 540px rule) */
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 1.5rem 1.25rem 1.25rem; }

  /* Journey step */
  .journey-step { padding: 1.75rem 1.5rem; }
  .journey-step .step-num { font-size: 2rem; }

  /* Contact info typography down a notch */
  .contact-info-item p, .contact-info-item a { font-size: 1.05rem; }
  .contact-card a { font-size: 1.05rem; }

  /* Footer brand description full width */
  .footer-brand p { max-width: none; }

  /* Author card stacks */
  .author-card { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
  .author-card-image { width: 72px; height: 72px; }

  /* Post footer share row stacks */
  .post-footer { justify-content: flex-start; }

  /* First-visit callout becomes vertical */
  .first-visit-callout { flex-wrap: wrap; }
  .fvc-content { min-width: 0; flex-basis: calc(100% - 80px); }

  /* Page hero typography tighter */
  .page-hero p { font-size: 1.02rem; }

  /* Hero badge inside hero-image becomes smaller and tucked */
  .hero-badge { bottom: 1rem; left: 1rem; font-size: 0.65rem; padding: 0.5rem 0.9rem; letter-spacing: 0.14em; }

  /* Map — slightly taller relative ratio for usability */
  .map-wrapper { aspect-ratio: 4/3; border-radius: 18px; }

  /* Blog post cover */
  .post-cover img { aspect-ratio: 16/11; }

  /* Cred row pubs counts */
  .cred-pubs .pub-count { font-size: 0.75rem; padding: 0.25rem 0.7rem; }

  /* Section padding compresses more */
  section { padding: clamp(2.25rem, 7vw, 3.75rem) 0; }

  /* Nav links list takes full screen height with scroll if very long */
  .nav-links {
    padding: 1.5rem 1.25rem 2rem;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
}

/* ---- Phone ≤480px ---- */
@media (max-width: 480px) {
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.55rem, 6vw, 2rem); }

  /* Nav CTA shrinks so it still fits on one line */
  .nav-links a.nav-cta { padding: 0.65rem 1.1rem; font-size: 0.85rem; }

  /* Smaller floating actions so they don't crowd the screen */
  .floating-actions { right: 12px; bottom: 86px; gap: 10px; }
  .floating-actions a { width: 46px; height: 46px; }

  /* Mobile sticky bar tighter */
  .mobile-sticky-bar { padding: 8px 10px; gap: 8px; }
  .mobile-sticky-bar a { padding: 11px 8px; font-size: 0.9rem; }
  body { padding-bottom: 72px; }

  /* Search modal full-width */
  .search-modal { width: 96vw; border-radius: 16px; }
  .search-input-wrap { padding: 0.9rem 1rem; }

  /* Lightbox tighter */
  .lightbox-image-wrap { max-width: 96vw; max-height: 78vh; }
  .lightbox-image { max-width: 96vw; max-height: 78vh; }

  /* Page tags wrap tighter */
  .page-tags { gap: 0.4rem; }
  .tag { font-size: 0.78rem; padding: 0.4rem 0.85rem; }

  /* Pricing card — slim padding to keep content readable */
  .pricing-card { padding: 1.35rem 1.1rem; }
  .pricing-amount { font-size: 1.35rem; }

  /* Footer-bottom can stack legal links */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.6rem; }

  /* Trust badges narrower */
  .trust-badge { padding: 0.75rem 0.85rem; }
}

/* ---- Very small phones ≤380px (iPhone SE 1st gen, small Android) ---- */
@media (max-width: 380px) {
  :root { --pad: 0.9rem; }
  h1 { font-size: 1.85rem; line-height: 1.12; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.1rem; }

  .contact-form { padding: 1.25rem; }
  .service-card,
  .story-card,
  .blog-card-body,
  .doctor-content,
  .contact-card { padding: 1.15rem; }

  .pricing-card { padding: 1.15rem 0.95rem; }
  .nf-code { font-size: 5rem; }

  .finding-us-icon { width: 36px; height: 36px; }
  .finding-us-icon svg { width: 18px; height: 18px; }

  /* Logo even smaller on tiny screens */
  .logo img, .logo svg { height: 28px; }

  /* Nav CTA further compressed */
  .nav-links a.nav-cta { padding: 0.6rem 1rem; font-size: 0.82rem; }

  /* Toast container hugs edges */
  .toast-container { left: 8px; right: 8px; bottom: 86px; }
  .toast { padding: 0.8rem 0.9rem; font-size: 0.88rem; }
}

/* ---- Landscape phone (short viewport) — keep critical UI visible ---- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .hero-image { aspect-ratio: 16/9; }
  .page-hero { padding: 2rem 0 1.5rem; }
  .nav-links {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
}

/* ---- Flex/grid child safety: prevent overflow from min-content sizes ---- */
.nav-inner, .topbar-inner, .footer-bottom,
.hero-grid > *, .care-grid > *, .doctors-grid > *,
.feature-row > *, .cta-grid > *, .help-grid > *,
.contact-form-grid > *, .doctor-detail > *,
.post-footer > * {
  min-width: 0;
}

/* Inputs/selects/buttons shouldn't punch out of cards */
input, select, textarea, button { max-width: 100%; }

/* =========================================================
   MOBILE NAVIGATION — proper drawer styling for ≤880px
   Overrides desktop margin-left:auto + align-items:center
   leakage that was right-aligning items in the drawer.
   ========================================================= */
@media (max-width: 880px) {
  /* Drawer container — left-aligned, full-width children, neat spacing */
  .nav-links {
    align-items: stretch;
    justify-content: flex-start;
    flex: 0 0 auto;
    margin-left: 0;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: var(--cream);
    box-shadow: 0 12px 32px rgba(91, 43, 57, 0.10);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Cancel desktop spacer rules that pushed first/search/lang items around */
  .nav-links > li:first-child,
  .nav-links > li.nav-search-li,
  .nav-links > li:has(.nav-cta),
  .nav-links > li.lang-toggle {
    margin-left: 0;
  }

  /* Each top-level item is its own row with a divider */
  .nav-links > li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links > li:last-child { border-bottom: 0; }

  /* Top-level links: left-aligned, comfortable tap target */
  .nav-links > li > a {
    display: block;
    width: 100%;
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--plum);
    text-align: left;
    text-transform: capitalize;
    line-height: 1.3;
  }
  .nav-links > li > a.active,
  .nav-links > li > a:hover {
    color: var(--raspberry);
    background: var(--rose-soft);
  }

  /* Dropdown panels: open, flat, left-aligned, slight indent + soft tint */
  .nav-links .dropdown {
    background: rgba(199, 66, 106, 0.04);
    padding: 0.25rem 0 0.5rem;
    border-radius: 0;
  }
  .nav-links .dropdown li { width: 100%; }
  .nav-links .dropdown a {
    display: block;
    padding: 0.7rem 1.25rem 0.7rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    white-space: normal;
  }
  .nav-links .dropdown a:hover,
  .nav-links .dropdown a.active {
    background: var(--rose-soft);
    color: var(--raspberry);
  }

  /* Header search inside drawer — show as a full-width row */
  .nav-links .header-search,
  .nav-links li.nav-search-li .header-search {
    display: flex;
    width: auto;
    margin: 0.5rem 1.25rem;
    padding: 0.5rem 0;
  }
  .nav-links li.nav-search-li { border-bottom: 1px solid var(--border); }

  /* Book Appointment CTA — full-width filled button, not an inline pill */
  .nav-links a.nav-cta {
    display: block;
    width: calc(100% - 2.5rem);
    margin: 0.75rem 1.25rem;
    padding: 0.85rem 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    border-radius: 999px;
  }
  .nav-links > li:has(.nav-cta) { border-bottom: 0; }

  /* Language toggle row — left-aligned, no negative margin */
  .nav-links li.lang-toggle {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    margin: 0;
    border-top: 1px solid var(--border);
    width: 100%;
  }

  /* Animated drawer slide — already set up via transform; tighten the look */
  header.site-nav { position: sticky; }
  .nav-inner { padding: 0.85rem var(--pad); position: relative; }

  /* Hamburger docks at the FAR RIGHT, regardless of where nav-links is */
  .nav-toggle {
    margin-left: auto;     /* pushes it to the right edge of the row */
    margin-right: 0;
    padding: 0.5rem;
    z-index: 60;
    order: 99;             /* belt-and-braces: stays last in flex order */
  }
  .nav-toggle span { transition: transform 0.25s ease, opacity 0.2s ease; }

  /* --- Dropdowns are COLLAPSED by default; expand only when parent is .open --- */
  .nav-links .dropdown {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    background: rgba(199, 66, 106, 0.04);
    transition: max-height 0.3s ease, padding 0.25s ease;
  }
  .nav-links .has-dropdown.open > .dropdown {
    max-height: 600px;
    padding: 0.25rem 0 0.5rem;
  }

  /* Chevron indicator on the parent row (re-enable; was hidden globally for mobile) */
  .nav-links .has-dropdown > a {
    position: relative;
    padding-right: 2.75rem;
  }
  .nav-links .has-dropdown > a::after {
    content: '';
    display: block;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--plum);
    border-bottom: 2px solid var(--plum);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s ease;
    border-left: 0;
    border-top: 0;
    margin-left: 0;
    opacity: 0.7;
  }
  .nav-links .has-dropdown.open > a::after {
    transform: translateY(-30%) rotate(-135deg);
    opacity: 1;
  }
}

/* Slightly tighter row padding on small phones */
@media (max-width: 480px) {
  .nav-links > li > a { padding: 0.85rem 1.1rem; font-size: 0.98rem; }
  .nav-links .dropdown a { padding-left: 1.85rem; font-size: 0.92rem; }
  .nav-links a.nav-cta { margin: 0.6rem 1.1rem; width: calc(100% - 2.2rem); }
}
