/* ===========================================================
   CLINIC.CSS — MedStake Chisipite Online Clinic
   Sesame-inspired layout · MedStake blue (#004AAD) · WhatsApp green CTAs
   =========================================================== */

:root {
  --blue:        #004AAD;
  --blue-700:    #00367E;
  --blue-500:    #1565D8;
  --blue-100:    #d7e4f8;
  --blue-50:     #eaf1fc;
  --blue-bg:     #eef3fc;     /* hero / soft section tint */

  --green:       #1db954;     /* WhatsApp action */
  --green-600:   #18a449;
  --wa:          #25d366;

  --ink:         #0c1a2b;
  --text:        #36434f;
  --muted:       #6a7889;
  --line:        #e6ebf2;
  --tile:        #f4f6fa;     /* sesame-style tile bg */
  --tile-hover:  #eaeef5;
  --surface:     #ffffff;

  /* category accent colours (for tile icons) */
  --c-weight:  #1565d8;
  --c-travel:  #e8833a;
  --c-general: #0fa3a3;
  --c-mens:    #3b56d6;
  --c-womens:  #d6489b;
  --c-skin:    #8b5cf6;
  --c-chronic: #e0463f;
  --c-sexual:  #a23ca6;

  --radius-pill: 999px;
  --radius-lg:   22px;
  --radius-md:   16px;
  --radius-sm:   12px;

  --shadow-sm:   0 1px 3px rgba(12,26,43,.06);
  --shadow-md:   0 8px 24px rgba(12,26,43,.08);
  --shadow-lg:   0 20px 48px rgba(0,74,173,.14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
.theme-health { background: var(--surface); color: var(--text); }
body {
  font-family: var(--font);
  line-height: 1.6;
  font-size: 16px;
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.12; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-50);
  padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); margin-bottom: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-blue  { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-blue:hover { background: var(--blue-700); box-shadow: var(--shadow-md); }
.btn-green { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--green-600); box-shadow: var(--shadow-md); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--blue-50); }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn svg { width: 18px; height: 18px; }

/* ---- Announcement ---- */
.topbar {
  background: var(--blue); color: #eaf1fc; text-align: center;
  font-size: 0.85rem; font-weight: 500; padding: 0.55rem 1rem;
}
.topbar strong { color: #fff; font-weight: 700; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0.6rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { color: var(--blue); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-text span { color: var(--muted); font-size: 0.72rem; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--text); font-size: 0.9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-links .btn { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===================== HERO (chat interface) ===================== */
.hero { background: linear-gradient(180deg, #fff 0%, var(--blue-bg) 100%); padding: 3.5rem 0 4rem; }
.hero-inner { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.035em;
  margin-bottom: 0.8rem;
}
.hero h1 .accent { color: var(--blue); }
.hero .lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--text); max-width: 38ch; margin: 0 auto 1.8rem; }

/* availability row */
.avail { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 0.75rem; }
.avail-left { display: flex; align-items: center; gap: 0.6rem; }
.avail-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
  background-image: url('assets/optimized/19.webp'); background-repeat: no-repeat;
  background-size: 250%; background-position: 53% 21%; }
.avail-num { font-size: 0.88rem; font-weight: 700; color: var(--green-600); }
.avail-num .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: middle; }
.avail-time { font-size: 0.85rem; color: var(--muted); }

/* chat box */
.chatbox {
  background: #fff; border: 2px solid var(--blue); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem 1.2rem; text-align: left;
}
.chatbox label { display: block; font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: 0.6rem; }
.chatbox textarea {
  width: 100%; border: none; outline: none; resize: none;
  font-family: inherit; font-size: 1.05rem; color: var(--ink); background: transparent;
  min-height: 64px; line-height: 1.5;
}
.chatbox textarea::placeholder { color: #9aa6b4; }
.chatbox-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.hipaa { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.hipaa svg { width: 15px; height: 15px; }

/* quick pills */
.quick-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.2rem; }
.qp {
  font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem; cursor: pointer; transition: .2s;
}
.qp:hover { border-color: var(--blue); color: var(--blue); }

/* trust stats */
.trust { display: flex; justify-content: center; gap: 2.6rem; margin-top: 2.4rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; }
.trust-item .ti-ico { color: var(--blue); }
.trust-item .ti-ico svg { width: 22px; height: 22px; }
.trust-item b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.trust-item span { font-size: 0.8rem; color: var(--muted); }

/* ===================== Sections scaffolding ===================== */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--blue-bg); }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 0.5rem; }
.section-head p { color: var(--muted); font-size: 1.04rem; }

/* ===================== Featured big photo cards ===================== */
.bigcards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bigcard {
  position: relative; display: block; min-height: 340px;
  border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  box-shadow: var(--shadow-md); transition: transform .4s cubic-bezier(.2,1,.3,1), box-shadow .4s;
}
.bigcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.bigcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,1,.3,1); }
.bigcard:hover img { transform: scale(1.07); }
.bigcard .btn { transition: transform .25s ease, background .2s, color .2s, border-color .2s; }
.bigcard:hover .btn { transform: translateY(-2px); }
.bigcard::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,18,33,.8) 0%, rgba(8,18,33,.45) 32%, rgba(8,18,33,.15) 58%, rgba(8,18,33,.82) 100%); }
.bigcard-body { position: relative; z-index: 2; padding: 1.8rem; height: 100%;
  display: flex; flex-direction: column; }
.bigcard-body h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-bottom: 0.5rem; }
.bigcard-body p { color: rgba(255,255,255,.92); font-size: 0.98rem; max-width: 30ch; }
.bigcard-body .btn { margin-top: auto; align-self: flex-start; }
/* highlighted feature (cervical cancer screening) */
.bigcard.feature { min-height: 340px; border: 2px solid var(--blue); }
.bigcard.feature .bigcard-body { justify-content: flex-end; }
.bigcard.feature .bigcard-body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.bigcard.feature .bigcard-body p { max-width: 48ch; font-size: 1.05rem; }
.bigcard.feature .bigcard-body .btn { margin-top: 0.8rem; }
.bigcard.feature::after { background:
  linear-gradient(90deg, rgba(8,18,33,.92) 0%, rgba(8,18,33,.66) 40%, rgba(8,18,33,.12) 100%),
  linear-gradient(180deg, rgba(8,18,33,0) 55%, rgba(8,18,33,.45) 100%); }
.bigcard.feature img { object-position: 50% 35%; }
.bigcard-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: var(--radius-pill); margin-bottom: 0.7rem; box-shadow: var(--shadow-sm); }

/* ===================== Service tiles (Sesame style) ===================== */
.tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1.8rem;
  -ms-overflow-style: none; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-family: inherit; padding: 0.5rem 1.15rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-pill); background: #fff; color: var(--text);
  font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: .2s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile {
  --cat: var(--blue);
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(12,26,43,.05);
  padding: 1.5rem 1.5rem 1.4rem; min-height: 158px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .25s;
  animation: fadeIn .35s ease both;
  will-change: transform;
}
/* all tiles use the MedStake logo blue for one cohesive brand look
   (per-category colours kept in :root in case we want accents back later) */

.tile-ico {
  width: 50px; height: 50px; margin-bottom: 1.1rem;
  display: grid; place-items: center; border-radius: 14px;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 15%, #ffffff);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .25s, color .25s, box-shadow .25s;
}
.tile-ico svg { width: 28px; height: 28px; }

.tile-title { font-size: 1.06rem; font-weight: 700; color: var(--ink); margin-top: auto; line-height: 1.25; transition: color .2s; }
.tile-sub { font-size: 0.84rem; color: var(--muted); margin-top: 0.25rem; }

.tile-arrow { position: absolute; top: 1.3rem; right: 1.3rem; color: var(--cat);
  opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.tile-arrow svg { width: 20px; height: 20px; }

/* hover: lift + colour-matched glow, icon fills and pops, title tints, arrow slides in */
.tile:hover {
  transform: translateY(-6px);
  border-color: var(--cat);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--cat) 26%, transparent);
}
.tile:hover .tile-ico {
  background: var(--cat); color: #fff;
  transform: translateY(-2px) scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--cat) 42%, transparent);
}
.tile:hover .tile-title { color: var(--cat); }
.tile:hover .tile-arrow { opacity: 1; transform: none; }

.no-results { display: none; text-align: center; color: var(--muted); padding: 3rem 1rem; font-size: 1.05rem; }

.more-wrap { text-align: center; margin-top: 2rem; }
.more-btn {
  font-family: inherit; background: #fff; border: 1.5px solid var(--blue); color: var(--blue);
  padding: 0.85rem 2.2rem; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.more-btn:hover { background: var(--blue); color: #fff; box-shadow: var(--shadow-md); }

/* ===================== How it works ===================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 2rem 1.6rem; box-shadow: var(--shadow-sm); }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; margin-bottom: 1.1rem; }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.45rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ===================== Why us ===================== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 0.9rem; }
.why-icon svg { width: 24px; height: 24px; }
.why-item b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 0.3rem; }
.why-item p { font-size: 0.9rem; color: var(--muted); }

/* ===================== CTA ===================== */
.cta { text-align: center; background: var(--blue); border-radius: var(--radius-lg); padding: 2.6rem 1.5rem; color: #fff; max-width: 640px; margin: 0 auto; }
.cta h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 800; margin-bottom: 0.5rem; }
.cta p { color: #d7e4f8; font-size: 0.98rem; margin-bottom: 1.3rem; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ---- Treatment detail modal ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(12,26,43,.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem; opacity: 0; transition: opacity .25s; }
.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 460px; width: 100%; padding: 1.8rem;
  position: relative; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto;
  transform: translateY(18px) scale(.98); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.modal-overlay.open .modal { transform: none; }
.modal-close { position: absolute; top: 0.9rem; right: 0.9rem; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: #eef1f5; color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer; transition: background .2s; }
.modal-close:hover { background: #e1e6ec; }
.modal-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; padding-right: 2.2rem; }
.modal-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.modal-ico svg { width: 28px; height: 28px; }
.modal-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); }
.modal-head h3 { font-size: 1.32rem; font-weight: 700; color: var(--ink); margin-top: 2px; line-height: 1.2; }
.modal-desc { color: var(--text); font-size: 0.98rem; line-height: 1.6; margin-bottom: 1.2rem; }
.modal-steps { display: flex; flex-direction: column; gap: 0.65rem; background: var(--blue-bg);
  border-radius: var(--radius-md); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.modal-steps div { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--text); }
.modal-steps b { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 0.76rem; display: grid; place-items: center; flex-shrink: 0; }
.modal-trust { font-size: 0.8rem; color: var(--muted); text-align: center; margin-bottom: 1.1rem; }
.modal-cta { width: 100%; }

/* ---- Questionnaire ---- */
.quiz-modal { max-width: 480px; }
.quiz-progress { height: 5px; background: var(--blue-50); border-radius: 999px; margin: 0.1rem 0 1.4rem; overflow: hidden; }
.quiz-bar { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .35s cubic-bezier(.16,1,.3,1); }
.q-actions { display: flex; flex-direction: column; gap: 0.7rem; }
.q-actions .btn { width: 100%; }
.q-link { text-align: center; font-size: 0.86rem; color: var(--muted); text-decoration: underline; }
.q-link:hover { color: var(--blue); }
.q-num { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.5rem; }
.q-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 1.2rem; line-height: 1.3; }
.q-options { display: flex; flex-direction: column; gap: 0.6rem; }
.q-option { display: flex; align-items: center; gap: 0.75rem; text-align: left; width: 100%; padding: 0.9rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-md); background: #fff; font-family: inherit; font-size: 0.96rem;
  color: var(--ink); cursor: pointer; transition: border-color .18s, background .18s; }
.q-option:hover, .q-option.sel { border-color: var(--blue); background: var(--blue-50); }
.q-option .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: .18s; }
.q-option.sel .dot { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.q-input, .q-field input, .q-field select { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; font-family: inherit; font-size: 0.96rem; color: var(--ink); background: #fff; }
.q-input { resize: vertical; }
.q-input:focus, .q-field input:focus, .q-field select:focus { outline: none; border-color: var(--blue); }
.q-fields { display: flex; flex-direction: column; gap: 0.8rem; }
.q-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.q-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; }
.q-nav { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.q-back { background: #fff; border: 1.5px solid var(--line); color: var(--text); border-radius: var(--radius-pill);
  padding: 0.75rem 1.2rem; font-family: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: border-color .2s; }
.q-back:hover { border-color: var(--muted); }
.q-nav .btn { flex: 1; }
.q-summary { background: var(--blue-bg); border-radius: var(--radius-md); padding: 0.3rem 1.1rem; margin-bottom: 1.1rem; }
.q-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--blue-100); font-size: 0.9rem; }
.q-row:last-child { border-bottom: none; }
.q-row b { color: var(--muted); font-weight: 600; flex-shrink: 0; }
.q-row span { color: var(--ink); font-weight: 600; text-align: right; }
.q-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.q-chip { padding: 0.6rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: #fff;
  font-family: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.q-chip:hover { border-color: var(--blue); }
.q-chip.sel { border-color: var(--blue); background: var(--blue); color: #fff; }
.q-note { font-size: 0.84rem; color: var(--muted); margin: -0.4rem 0 0.9rem; }
.q-tabs { display: flex; gap: 0.3rem; margin-bottom: 1rem; background: #eef1f5; padding: 0.3rem; border-radius: var(--radius-pill); }
.q-tab { flex: 1; padding: 0.55rem; border: none; background: transparent; border-radius: var(--radius-pill);
  font-family: inherit; font-weight: 600; font-size: 0.84rem; color: var(--muted); cursor: pointer; transition: .18s; }
.q-tab.sel { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.q-alert { background: #fdeceb; border: 1px solid #f3c4bf; border-left: 4px solid #c0392b; color: #8a2a1f;
  border-radius: var(--radius-md); padding: 0.85rem 1rem; font-size: 0.88rem; line-height: 1.55; margin: 0.3rem 0 1rem; }
.q-alert b { color: #a02a1c; }

/* ---- Conversational chat ---- */
.chat-overlay { position: fixed; inset: 0; z-index: 600; background: rgba(12,26,43,.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s; }
.chat-overlay.open { opacity: 1; }
.chat-overlay[hidden] { display: none; }
.chat-win { width: 100%; max-width: 440px; height: 90vh; max-height: 780px; background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg); transform: translateY(22px); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.chat-overlay.open .chat-win { transform: none; }
@media (min-width: 640px) { .chat-overlay { align-items: center; padding: 1.2rem; } .chat-win { border-radius: var(--radius-lg); height: 80vh; } }
.chat-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1.1rem; background: var(--blue); color: #fff; }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; }
.chat-ava svg { width: 22px; height: 22px; }
.chat-id { flex: 1; line-height: 1.15; }
.chat-id b { font-size: 0.95rem; font-weight: 700; display: block; }
.chat-id span { font-size: 0.74rem; color: #cfe0f7; }
.chat-id .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #36d399; margin-right: 4px; }
.chat-close { width: 32px; height: 32px; border: none; background: rgba(255,255,255,.15); color: #fff; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.chat-close:hover { background: rgba(255,255,255,.3); }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; background: var(--blue-bg); display: flex; flex-direction: column; gap: 0.55rem; }
.msg { max-width: 84%; padding: 0.7rem 0.95rem; border-radius: 16px; font-size: 0.93rem; line-height: 1.5; animation: msgIn .25s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.msg.alert { align-self: flex-start; background: #fdeceb; border: 1px solid #f3c4bf; border-left: 3px solid #c0392b; color: #8a2a1f; }
.msg.chat-cheer { align-self: center; background: rgba(29,185,84,.12); color: var(--green-600); border: none;
  font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; max-width: none; }
.msg.typing { display: inline-flex; gap: 4px; align-items: center; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa6b4; display: inline-block; animation: typdot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typdot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-input { border-top: 1px solid var(--line); padding: 0.7rem; background: #fff; }
.chat-replies { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chat-reply { padding: 0.5rem 0.9rem; border: 1.5px solid var(--blue-100); border-radius: var(--radius-pill); background: var(--blue-50);
  color: var(--blue); font-family: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: .18s; }
.chat-reply:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.chat-reply.sel { background: var(--blue); color: #fff; border-color: var(--blue); }
.chat-textrow { display: flex; gap: 0.5rem; align-items: center; }
.chat-textrow input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 0.7rem 1rem; font-family: inherit; font-size: 0.92rem; color: var(--ink); outline: none; }
.chat-textrow input:focus { border-color: var(--blue); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--blue); color: #fff;
  cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.chat-send:hover { background: var(--blue-700); }
.chat-send svg { width: 18px; height: 18px; }
.chat-cta { display: flex; width: 100%; }
.bm-msg { max-width: 92%; }
.bm-hint { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem; text-align: center; }
.bm-svg { width: 208px; max-width: 100%; display: block; margin: 0 auto; }
.bm-body { fill: #f5f8fc; stroke: var(--line-2); stroke-width: 1.5; }
.bm-navel { fill: var(--muted); }
.bm-cell rect { fill: rgba(0,74,173,.04); stroke: var(--blue-100); stroke-width: 1; transition: fill .15s, stroke .15s; }
.bm-cell text { fill: var(--muted); font: 700 7.5px var(--font); pointer-events: none; }
.bm-cell { cursor: pointer; }
.bm-cell:hover rect { fill: rgba(0,74,173,.12); stroke: var(--blue); }
.bm-cell.sel rect { fill: var(--blue); stroke: var(--blue); }
.bm-cell.sel text { fill: #fff; }

/* ---- Hero provenance note ---- */
.chat-note { max-width: 540px; margin: 0.9rem auto 0; font-size: 0.84rem; line-height: 1.55; color: var(--muted); }
.chat-note a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Safety / clinical governance ---- */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.safety-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.safety-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.sc-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--blue-50); color: var(--blue); margin-bottom: 0.9rem; }
.sc-ico svg { width: 23px; height: 23px; }
.safety-card h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 0.35rem; }
.safety-card p { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.safety-card a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Chat consent gate ---- */
.chat-consent { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.8rem; line-height: 1.5; color: var(--muted); margin-bottom: 0.6rem; cursor: pointer; }
.chat-consent input { margin-top: 0.15rem; width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }
.chat-consent a { color: var(--blue); font-weight: 600; }
.chat-cta.is-disabled { opacity: 0.5; pointer-events: auto; cursor: not-allowed; filter: grayscale(0.3); }
.chat-consent.shake { animation: shake .4s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }

/* ===== Ro-style stepped quiz ===== */
.quiz-overlay { position: fixed; inset: 0; z-index: 600; background: #faf9f6; display: flex; flex-direction: column;
  opacity: 0; transition: opacity .25s ease; }
.quiz-overlay[hidden] { display: none; }
.quiz-overlay.open { opacity: 1; }
.quiz-top { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; flex-shrink: 0; }
.quiz-back, .quiz-x { width: 38px; height: 38px; border: none; background: transparent; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; transition: background .2s; }
.quiz-back:hover, .quiz-x:hover { background: rgba(12,26,43,.07); }
.quiz-back svg, .quiz-x svg { width: 21px; height: 21px; }
.quiz-prog { flex: 1; height: 6px; background: var(--blue-50); border-radius: 99px; overflow: hidden; }
.quiz-prog-bar { display: block; height: 100%; width: 6%; background: var(--blue); border-radius: 99px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.quiz-scroll { flex: 1; overflow-y: auto; }
.quiz-main { max-width: 560px; margin: 0 auto; width: 100%; padding: 1.6rem 1.2rem 2rem; }
.quiz-help { color: var(--muted); font-size: 0.98rem; line-height: 1.55; margin-bottom: 1.1rem; }
.quiz-cheer { display: inline-block; margin-bottom: 0.85rem; padding: 0.32rem 0.72rem; border-radius: 999px;
  background: rgba(29, 185, 84, 0.1); color: var(--green-600); font-size: 0.85rem; font-weight: 700; letter-spacing: -0.01em; }
.quiz-done { text-align: center; padding: 1.6rem 0 0.5rem; }
.quiz-check { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; background: rgba(29, 185, 84, 0.12);
  color: var(--green-600); display: grid; place-items: center; font-size: 2rem; font-weight: 800; animation: msgIn .3s ease; }
.quiz-q { font-size: clamp(1.45rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.4rem; color: var(--ink); }
.quiz-opts { display: flex; flex-direction: column; gap: 0.7rem; }
.quiz-opt { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; width: 100%; text-align: left;
  padding: 1.05rem 1.2rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font-family: inherit; font-size: 1.02rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.quiz-opt:hover { border-color: var(--blue); }
.quiz-opt.sel { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }
.qo-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center;
  color: #fff; flex-shrink: 0; transition: background .15s, border-color .15s; }
.qo-tick svg { width: 13px; height: 13px; opacity: 0; transition: opacity .15s; }
.quiz-opt.sel .qo-tick { background: var(--blue); border-color: var(--blue); }
.quiz-opt.sel .qo-tick svg { opacity: 1; }
.quiz-input { width: 100%; padding: 0.95rem 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font-family: inherit; font-size: 1.05rem; color: var(--ink); }
.quiz-input:focus { outline: none; border-color: var(--blue); }
.quiz-fields { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.2rem; }
.quiz-seg { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.quiz-seg button { flex: 1; min-width: 96px; padding: 0.8rem 0.6rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-family: inherit; font-size: 0.94rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-seg button:hover { border-color: var(--blue); }
.quiz-seg button.sel { border-color: var(--blue); background: var(--blue-50); }
.quiz-alert { margin-top: 1.1rem; background: #fdecea; border: 1px solid #f3c4be; border-left: 3px solid #d8412f; color: #8a2b22;
  border-radius: 12px; padding: 0.9rem 1rem; font-size: 0.9rem; line-height: 1.55; }
.quiz-alert[hidden] { display: none; }
.quiz-summary { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0.2rem 1rem; margin-bottom: 1.2rem; }
.quiz-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.quiz-row:last-child { border-bottom: none; }
.quiz-row span { color: var(--muted); }
.quiz-row b { color: var(--ink); text-align: right; }
.quiz-advice { display: flex; flex-direction: column; gap: 0.3rem; background: var(--blue-bg); border: 1px solid var(--blue-100); border-left: 3px solid var(--blue);
  border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 1.2rem; font-size: 0.93rem; line-height: 1.55; color: var(--ink); }
.quiz-advice b { color: var(--blue); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.quiz-advice.urgent { background: #fdecea; border-color: #f3c4be; border-left-color: #d8412f; }
.quiz-advice.urgent b { color: #b23a2f; }
.quiz-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.quiz-consent input { margin-top: 0.15rem; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.quiz-consent a { color: var(--blue); font-weight: 600; }
.quiz-consent.shake { animation: shake .4s; }
.quiz-foot { flex-shrink: 0; padding: 0.9rem 1.2rem calc(0.9rem + env(safe-area-inset-bottom)); background: #faf9f6; border-top: 1px solid var(--line); display: none; }
.quiz-foot.show { display: block; }
.quiz-btn { display: block; width: 100%; max-width: 560px; margin: 0 auto; text-align: center; padding: 1rem 1.2rem; border: none;
  border-radius: 99px; background: var(--blue); color: #fff; font-family: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer;
  transition: background .2s, opacity .2s, transform .1s; }
.quiz-btn:hover { background: var(--blue-700); }
.quiz-btn:active { transform: scale(.99); }
.quiz-btn.green { background: var(--green); }
.quiz-btn.green:hover { background: var(--green-600); }
.quiz-btn.is-disabled { opacity: .45; pointer-events: auto; cursor: not-allowed; }

/* ---- Location ---- */
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.location-info h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 0.6rem; }
.location-info > p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin-bottom: 1.3rem; }
.location-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.6rem; }
.location-list li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.96rem; font-weight: 600; color: var(--ink); }
.li-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.li-ico svg { width: 19px; height: 19px; }
.location-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.location-map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---- Legal pages ---- */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.legal-wrap .eyebrow { margin-bottom: 0.8rem; }
.legal-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.5rem; }
.legal-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.2rem; }
.legal-wrap h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.legal-wrap p, .legal-wrap li { color: #33475b; font-size: 0.96rem; line-height: 1.7; }
.legal-wrap ul { padding-left: 1.2rem; margin: 0.4rem 0 0.8rem; display: flex; flex-direction: column; gap: 0.3rem; }
.legal-wrap a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.legal-callout { background: var(--blue-bg); border-left: 3px solid var(--blue); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink); }

/* ===================== Footer ===================== */
.footer { background: #0c1a2b; color: #9fb0c4; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-compliance { max-width: 70ch; margin: 0 auto 1rem; font-size: 0.76rem; line-height: 1.6; color: #7e90a6; }
.footer-bottom a { color: #9fb0c4; text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }
.footer-brand img { height: 76px; width: auto; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; max-width: 30ch; }
.footer h4 { color: #fff; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer ul li, .footer ul li a { font-size: 0.86rem; color: #9fb0c4; transition: color .2s; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: 0.8rem; color: #6a7d93; }

/* ---- Floating WhatsApp ---- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 300; width: 56px; height: 56px;
  border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .bigcards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0.4rem; background: #fff; padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.5rem 0; }
  .nav-links .btn { justify-content: center; }
  .nav-toggle { display: flex; }
  .section { padding: 3.2rem 0; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .tile { padding: 1.2rem; min-height: 130px; }
  .tile-title { font-size: 0.95rem; }
  .why-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .trust { gap: 1.4rem; }
  .avail { justify-content: center; }
}

/* ---- Page transitions ---- */
body { transition: opacity .3s ease-in-out; opacity: 1; }
body.page-enter, body.page-transition { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
