/* TrueUnity Insurance Services — mobile-first stylesheet
   Colors, spacing and type live in the tokens below. Change a token to restyle the whole site. */

:root {
  --navy-900: #0a1f44;
  --navy-800: #13305e;
  --navy-700: #1b3a6b;
  --text: #1a2f52;
  --muted: #4a5d78;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-500: #14b8a6;
  --teal-100: #ccf0eb;
  --teal-50: #eefaf8;
  --sky-50: #f4f8fc;
  --white: #ffffff;
  --border: #d6e0ea;
  --border-strong: #9fb1c7;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #067647;
  --success-bg: #ecfdf3;
  --warn-bg: #fff8e6;
  --warn-text: #7a4b00;

  --font-head: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06), 0 1px 3px rgba(10, 31, 68, 0.08);
  --shadow: 0 6px 24px rgba(10, 31, 68, 0.10);
  --shadow-lg: 0 18px 50px rgba(10, 31, 68, 0.16);

  --gutter: 20px;
  --max: 1160px;
  --header-h: 64px;
  --mobilebar-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  padding-bottom: calc(var(--mobilebar-h) + env(safe-area-inset-bottom));
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.18;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 7.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 5.4vw, 2.35rem); font-weight: 750; letter-spacing: -0.015em; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-800); }
strong { color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Language-specific blocks (long prose is written in both languages) */
html[lang="ht"] [data-lang-only="en"],
html:not([lang="ht"]) [data-lang-only="ht"] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px;
  font-family: var(--font-head); font-size: 1.08rem; font-weight: 700; line-height: 1.2;
  border-radius: 12px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur), border-color var(--dur), color var(--dur), box-shadow var(--dur), transform 120ms;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 6px 18px rgba(15, 118, 110, 0.28); }
.btn-primary:hover { background: var(--teal-800); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy-900); border-color: var(--navy-900); }
.btn-secondary:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy-800); color: var(--navy-900); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn .spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Gov disclaimer strip ---------- */
.notice-strip {
  background: var(--navy-900); color: #e6edf7;
  font-size: 0.86rem; line-height: 1.45; padding: 8px 0; text-align: center;
}
.notice-strip a { color: #9ff0e4; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 48px; }
.brand-mark { width: 54px; height: 54px; flex: none; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy-900); letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-head); font-weight: 700; font-size: 0.64rem; color: var(--teal-700); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; padding: 3px; background: #fff;
}
.lang-toggle button {
  font: 600 0.84rem/1 var(--font-head); color: var(--muted);
  background: transparent; border: 0; border-radius: 999px; padding: 0 12px; min-height: 44px; min-width: 44px; cursor: pointer; white-space: nowrap;
}
.menu-btn { flex: none; }
/* Small phones (iPhone SE, compact Androids): keep the header on one line */
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { font-size: 0.56rem; }
  .lang-toggle button { padding: 0 8px; min-width: 40px; }
}
@media (max-width: 350px) {
  :root { --gutter: 14px; }
  .brand-sub { display: none; }
  .brand-mark { width: 42px; height: 42px; }
  .menu-btn { width: 44px; height: 44px; }
}
.lang-toggle button[aria-pressed="true"] { background: var(--navy-900); color: #fff; }
.lang-toggle .long { display: none; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; color: var(--navy-900);
}
.menu-btn svg { width: 24px; height: 24px; }

.main-nav { display: none; }
.header-call { display: none; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; padding: 16px var(--gutter) calc(var(--mobilebar-h) + 24px);
  overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; padding: 0 4px; border-bottom: 1px solid var(--border);
  font: 650 1.15rem var(--font-head); color: var(--navy-900); text-decoration: none;
}
.mobile-menu li a[aria-current="page"] { color: var(--teal-700); }
.mobile-menu .menu-cta { display: grid; gap: 12px; margin-top: 24px; }

/* ---------- Sticky mobile contact bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(10, 31, 68, 0.08);
}
.mobile-bar .btn { min-height: 54px; padding: 10px 12px; font-size: 1rem; }
.mobile-bar.single { grid-template-columns: 1fr; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--teal-50) 0%, #fff 62%); padding-bottom: 8px; }
.hero-grid { display: flex; flex-direction: column; }
/* The banner is always shown whole — never cropped — so faces, logo and text stay intact. */
/* Phone/tablet: banner runs edge to edge and its lower edge fades softly into the page,
   so the photo and the headline read as one connected design (no crop, no box). */
.hero-banner {
  margin: 0 calc(-1 * var(--gutter));
  /* Same dissolve as desktop: a soft fade on the left edge and a longer fade at the bottom. */
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.35) 0%, #000 9%), linear-gradient(to bottom, #000 68%, rgba(0,0,0,0.5) 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, rgba(0,0,0,0.35) 0%, #000 9%), linear-gradient(to bottom, #000 68%, rgba(0,0,0,0.5) 86%, transparent 100%);
          mask-composite: intersect;
}
.hero-banner img { width: 100%; height: auto; display: block; }
.hero-content { position: relative; z-index: 1; margin-top: -14px; padding: 0 0 8px; }



/* "Why Florida families choose TrueUnity" photo — shown whole, framed */
.why-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; background: #fff; }
.why-photo img { width: 100%; height: auto; display: block; border-radius: calc(var(--radius-lg) - 6px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 0.82rem/1.2 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-800); background: var(--teal-100); padding: 7px 12px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow svg { width: 16px; height: 16px; }
.hero h1 { margin-bottom: 14px; }
.hero .lead { font-size: 1.14rem; color: var(--muted); max-width: 36ch; margin-bottom: 26px; }
.hero-ctas { display: grid; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--navy-800); font-weight: 500; }
.trust-row svg { width: 20px; height: 20px; color: var(--teal-700); flex: none; }

/* Quick start card (homepage) */
.quick-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 24px 20px; margin-top: 24px; position: relative; z-index: 2;
}
.quick-card h2 { font-size: 1.35rem; text-align: center; margin-bottom: 18px; }
.quick-go .fine-print { margin: 12px 0 0; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.choice-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 104px; padding: 12px 6px; text-align: center;
  border: 2px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer;
  font: 700 0.98rem/1.2 var(--font-head); color: var(--navy-900);
  transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur);
}
.choice-tile:hover { border-color: var(--teal-500); }
.choice-tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-tile .dot {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border-strong);
  display: grid; place-items: center; transition: all var(--dur);
}
.choice-tile .dot svg { width: 18px; height: 18px; color: #fff; opacity: 0; transition: opacity var(--dur); }
.choice-tile:has(input:checked) { border-color: var(--teal-700); background: var(--teal-50); box-shadow: 0 0 0 3px rgba(20,184,166,0.18); }
.choice-tile:has(input:checked) .dot { background: var(--teal-700); border-color: var(--teal-700); }
.choice-tile:has(input:checked) .dot svg { opacity: 1; }
.choice-tile:has(input:focus-visible) { outline: 3px solid var(--teal-500); outline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--sky-50); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

.grid { display: grid; gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); margin-bottom: 14px;
}
.icon-badge svg { width: 28px; height: 28px; }

.steps { counter-reset: step; display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 22px 20px 22px 76px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-900); color: #fff; font: 800 1.1rem var(--font-head);
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

.tier-card { border-top: 6px solid var(--tier, var(--teal-700)); }
.tier-card .pct { font: 800 2rem/1 var(--font-head); color: var(--navy-900); margin: 4px 0 8px; }
.tier-card .pct small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.tier-bronze { --tier: #a76a3a; }
.tier-silver { --tier: #8d99a8; }
.tier-gold { --tier: #c9a227; }
.tier-platinum { --tier: #4a6a8a; }
.fine-print { font-size: 0.9rem; color: var(--muted); }

.help-list { display: grid; gap: 12px; }
.help-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 14px 20px; border: 2px solid var(--border); border-radius: var(--radius);
  background: #fff; text-decoration: none; color: var(--navy-900); font: 650 1.08rem var(--font-head);
  transition: border-color var(--dur), background-color var(--dur);
}
.help-option:hover { border-color: var(--teal-700); background: var(--teal-50); color: var(--navy-900); }
.help-option svg { width: 22px; height: 22px; color: var(--teal-700); flex: none; }

.split { display: grid; gap: 28px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 24px; height: 24px; color: var(--teal-700); flex: none; margin-top: 2px; }

.cta-band {
  background: var(--navy-900); color: #e6edf7; border-radius: var(--radius-lg);
  padding: 36px 24px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d3e6; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn-secondary:hover { background: #fff; color: var(--navy-900); }
.cta-actions { display: grid; gap: 12px; max-width: 520px; margin: 22px auto 0; }

.disclaimer-box {
  border: 1px solid var(--border); border-left: 5px solid var(--teal-700);
  background: var(--sky-50); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 0.95rem; color: var(--navy-800);
}
.disclaimer-box p:last-child { margin-bottom: 0; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--teal-50), #fff); padding: 40px 0 28px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }
.draft-flag {
  background: var(--warn-bg); color: var(--warn-text); border: 1px solid #f1d38b;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.95rem; margin-bottom: 24px;
}

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 20px; font: 700 1.08rem/1.35 var(--font-head); color: var(--navy-900);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; width: 12px; height: 12px; flex: none; border-right: 2.5px solid var(--teal-700); border-bottom: 2.5px solid var(--teal-700);
  transform: rotate(45deg) translateY(-3px); transition: transform var(--dur);
}
.faq-list details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq-list .answer { padding: 0 20px 18px; color: var(--muted); }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px 20px;
}
.field { margin-bottom: 18px; }
.field label, .field .label {
  display: block; font: 650 1rem/1.3 var(--font-head); color: var(--navy-900); margin-bottom: 6px;
}
.req { color: var(--danger); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 54px; padding: 12px 14px;
  font: 400 1.06rem/1.3 var(--font-body); color: var(--navy-900);
  background: #fff; border: 1.5px solid var(--border-strong); border-radius: 10px;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.input:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.22); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input.big { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.12em; text-align: center; font-family: var(--font-head); }
.input::placeholder { color: #9aa9bc; opacity: 1; }
.input.big::placeholder { color: #c3cedb; font-weight: 600; }
.hint { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
.error-msg { display: none; align-items: flex-start; gap: 6px; color: var(--danger); font-size: 0.95rem; font-weight: 600; margin-top: 8px; }
.error-msg.show { display: flex; }
.error-msg svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.row-2 { display: grid; gap: 0 14px; }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--sky-50);
  font-size: 0.92rem; line-height: 1.5; color: var(--navy-800); margin-bottom: 12px; cursor: pointer;
}
.consent input { width: 24px; height: 24px; flex: none; margin: 1px 0 0; accent-color: var(--teal-700); cursor: pointer; }
.consent[data-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: 10px; padding: 14px 16px; margin-top: 14px; font-weight: 600; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--success-bg); color: var(--success); }
.form-status.err { background: var(--danger-bg); color: var(--danger); }
.test-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warn-bg); color: var(--warn-text); border: 1px solid #f1d38b;
  border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; margin-bottom: 18px;
}
.test-banner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* ---------- Questionnaire ---------- */
.quiz-wrap { padding: 20px 0 40px; background: linear-gradient(180deg, var(--teal-50), #fff 320px); min-height: 70vh; }
.quiz-shell { max-width: 640px; margin: 0 auto; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; font: 600 0.92rem var(--font-head); color: var(--muted); margin-bottom: 8px; }
.progress { height: 10px; border-radius: 999px; background: #e3ebf3; overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-700), var(--teal-500)); transition: width 420ms var(--ease-out); }
.quiz-card { margin-top: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px 20px 22px; overflow: hidden; }
.quiz-step { animation: stepIn 360ms var(--ease-out) both; }
.quiz-step.back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.quiz-step legend, .quiz-step .q-title {
  font: 750 clamp(1.4rem, 5.6vw, 1.85rem)/1.22 var(--font-head); color: var(--navy-900);
  padding: 0; margin: 0 0 8px; text-wrap: balance;
}
.quiz-step fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz-step .q-help { color: var(--muted); margin-bottom: 20px; }
.options { display: grid; gap: 10px; }
.options.cols-2 { grid-template-columns: 1fr 1fr; }
.options.cols-4 { grid-template-columns: repeat(4, 1fr); }
.option {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 60px; padding: 12px 16px; border: 2px solid var(--border); border-radius: 12px; background: #fff;
  cursor: pointer; font: 650 1.06rem/1.25 var(--font-head); color: var(--navy-900);
  transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur);
}
.option:hover { border-color: var(--teal-500); }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option .radio {
  width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--border-strong);
  display: grid; place-items: center; transition: all var(--dur);
}
.option .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform var(--dur) var(--ease-out); }
.option:has(input:checked) { border-color: var(--teal-700); background: var(--teal-50); box-shadow: 0 0 0 3px rgba(20,184,166,0.16); }
.option:has(input:checked) .radio { background: var(--teal-700); border-color: var(--teal-700); }
.option:has(input:checked) .radio::after { transform: scale(1); }
.option:has(input:focus-visible) { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.option.center { justify-content: center; text-align: center; font-size: 1.25rem; }
.option.center .radio { display: none; }
.option.tile { flex-direction: column; justify-content: center; text-align: center; min-height: 120px; gap: 10px; }
.option.tile svg { width: 36px; height: 36px; color: var(--teal-700); }
.option .opt-sub { display: block; font: 400 0.9rem/1.35 var(--font-body); color: var(--muted); margin-top: 2px; }
.quiz-nav { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 24px; }
.quiz-nav .btn-ghost { min-width: 110px; }
.quiz-nav.first { grid-template-columns: 1fr; }
.quiz-foot { margin-top: 18px; text-align: center; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.quiz-foot svg { width: 18px; height: 18px; color: var(--teal-700); flex: none; }

.confirm { text-align: center; }
.confirm-icon { width: 84px; height: 84px; margin: 4px auto 16px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; animation: pop 480ms var(--ease-out) both; }
.confirm-icon svg { width: 46px; height: 46px; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ref-code { display: inline-block; font: 700 1.05rem var(--font-head); letter-spacing: 0.08em; background: var(--sky-50); border: 1px dashed var(--border-strong); border-radius: 8px; padding: 6px 12px; color: var(--navy-900); }
.next-steps { text-align: left; margin: 22px 0; }
.summary-list { text-align: left; margin: 0 0 18px; padding: 14px 16px; background: var(--sky-50); border-radius: 10px; font-size: 0.95rem; }
.summary-list div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 600; color: var(--navy-900); text-align: right; }

/* ---------- Contact page ---------- */
.contact-tiles { display: grid; gap: 14px; }
.contact-tile { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--navy-900); }
.contact-tile:hover { border-color: var(--teal-700); color: var(--navy-900); }
.contact-tile .icon-badge { margin: 0; flex: none; }
.contact-tile > span:last-child { min-width: 0; }
.contact-tile strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.contact-tile span { color: var(--muted); font-size: 0.95rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--sky-50); border: 1px solid var(--border); border-radius: 14px; padding: 5px; margin-bottom: 20px; }
.tabs button { min-height: 50px; border: 0; border-radius: 10px; background: transparent; font: 700 1rem var(--font-head); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c7d3e6; padding: 44px 0 28px; margin-top: 0; font-size: 0.95rem; }
.site-footer a { color: #e6edf7; text-decoration: none; }
.site-footer a:hover { color: #9ff0e4; text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand .brand-mark { width: 84px; height: 84px; background: #fff; border-radius: 18px; padding: 6px; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.footer-email svg { width: 18px; height: 18px; flex: none; color: #9ff0e4; }
.contact-email { display: block; font: 700 1.05rem var(--font-head); color: var(--teal-700) !important; overflow-wrap: anywhere; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #9ff0e4; }
.footer-brand p { margin-top: 12px; max-width: 40ch; }
.footer-col h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-phone { font: 800 1.35rem var(--font-head); color: #fff !important; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 32px; padding-top: 22px; font-size: 0.86rem; line-height: 1.6; color: #aebbd0; }
.footer-legal p { margin-bottom: 0.8em; }

/* ---------- Chat launcher (shown only when a chatbot is configured) ---------- */
.chat-launcher {
  position: fixed; right: 16px; bottom: calc(var(--mobilebar-h) + 16px + env(safe-area-inset-bottom)); z-index: 105;
  display: none; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--navy-900); color: #fff; font: 700 1rem var(--font-head); box-shadow: var(--shadow-lg); cursor: pointer;
}
.chat-launcher.show { display: inline-flex; }
.chat-launcher svg { width: 22px; height: 22px; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero-ctas { grid-template-columns: auto auto; justify-content: start; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .cta-actions { grid-template-columns: 1fr 1fr; }
  .contact-tiles { grid-template-columns: repeat(2, 1fr); }
  .quiz-card { padding: 34px 32px 28px; }
  .form-card { padding: 30px 28px; }
  .quick-card { padding: 28px; }
  .options.cols-2-md { grid-template-columns: 1fr 1fr; }
  .lang-toggle .short { display: none; }
  .lang-toggle .long { display: inline; }
  .hero-content { margin-top: -24px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none !important; }
  .chat-launcher { bottom: 24px; right: 24px; }
  :root { --header-h: 76px; }
  .header-call { display: inline-flex; min-height: 46px; padding: 8px 16px; font-size: 0.98rem; white-space: nowrap; }
  .brand-mark { width: 62px; height: 62px; }

  /* Desktop: banner sits on the right at its natural 16:9 shape (never cropped) and its
     left and bottom edges dissolve into the page, like the original homepage design. */
  .hero { background: linear-gradient(100deg, #fff 0%, #fff 38%, var(--teal-50) 100%); padding-bottom: 24px; overflow: hidden; }
  .hero-banner {
    position: absolute; top: 0; right: 0; width: min(60vw, 1150px); margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 12%, #000 24%), linear-gradient(to bottom, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 12%, #000 24%), linear-gradient(to bottom, #000 78%, transparent 100%);
            mask-composite: intersect;
  }
  .hero-grid { display: flex; flex-direction: row; align-items: center; min-height: calc(min(60vw, 1150px) * 0.5628 - 20px); padding: 32px 0 0; }
  .hero-content { margin-top: 0; padding: 0; max-width: min(44%, 540px); }
  .hero h1 { font-size: clamp(2.4rem, 3.6vw, 3.25rem); }

  /* Quick start becomes one horizontal bar under the hero */
  .quick-card { display: grid; grid-template-columns: auto 1fr minmax(260px, auto); align-items: center; gap: 24px; margin-top: 40px; padding: 20px 24px; }
  .quick-card h2 { margin: 0; text-align: left; font-size: 1.3rem; }
  .quick-card .choice-row { margin: 0; }
  .quick-card .choice-tile { flex-direction: row; min-height: 60px; gap: 10px; }
  .quick-card .choice-tile .dot { width: 26px; height: 26px; }
  .quick-go .fine-print { margin-top: 8px; }
  .section { padding: 84px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cta-band { padding: 56px 40px; }
  .page-hero { padding: 64px 0 40px; }
  .contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
  .contact-tiles { grid-template-columns: 1fr; }
}

/* ---------- Wide desktop: full navigation in the header ---------- */
@media (min-width: 1200px) {
  .menu-btn, .mobile-menu { display: none !important; }
  .main-nav { display: block; }
  .main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .main-nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; border-radius: 8px; white-space: nowrap;
    font: 600 0.96rem var(--font-head); color: var(--navy-800); text-decoration: none;
  }
  .main-nav a:hover { background: var(--sky-50); color: var(--navy-900); }
  .main-nav a[aria-current="page"] { color: var(--teal-700); box-shadow: inset 0 -3px 0 var(--teal-500); border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Phone & tablet homepage polish (kept last so it takes priority) ---------- */
@media (max-width: 1023px) {
  .hero .eyebrow { margin-bottom: 14px; box-shadow: 0 2px 10px rgba(15, 118, 110, 0.12); }
  .hero h1 { font-size: clamp(2rem, 8.2vw, 2.9rem); line-height: 1.12; margin-bottom: 12px; }
  .hero .lead { font-size: 1.08rem; line-height: 1.55; margin-bottom: 22px; }
  .hero-ctas .btn { min-height: 56px; font-size: 1.06rem; }
  /* Trust points become tidy chips, matching the inline row on desktop */
  .trust-row { gap: 8px; margin-top: 18px; }
  .trust-row li {
    background: #fff; border: 1px solid var(--border); border-radius: 999px;
    padding: 6px 10px; font-size: 0.8rem; font-weight: 600; line-height: 1.2; gap: 5px;
  }
  .trust-row svg { width: 15px; height: 15px; }
  .quick-card { margin-top: 26px; padding: 22px 18px; }
  .quick-card h2 { font-size: 1.25rem; margin-bottom: 14px; }
  .choice-tile { min-height: 96px; font-size: 0.95rem; }
}

/* ---------- Appointment booking picker ---------- */
.booking .label { margin-bottom: 10px; }
.date-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.date-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 72px; padding: 8px 4px; border: 2px solid var(--border); border-radius: 12px; background: #fff;
  font-family: var(--font-head); color: var(--navy-900); cursor: pointer; touch-action: manipulation;
  transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur);
}
.date-btn .dow { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.date-btn .dnum { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.date-btn .mon { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot-btn {
  min-height: 50px; padding: 8px 6px; border: 2px solid var(--border); border-radius: 10px; background: #fff;
  font: 700 0.98rem var(--font-head); color: var(--navy-900); cursor: pointer; touch-action: manipulation;
  transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur);
}
.date-btn:hover, .slot-btn:hover { border-color: var(--teal-500); }
.date-btn[aria-pressed="true"], .slot-btn[aria-pressed="true"] {
  border-color: var(--teal-700); background: var(--teal-700); color: #fff; box-shadow: 0 0 0 3px rgba(20,184,166,0.2);
}
.date-btn[aria-pressed="true"] .dow, .date-btn[aria-pressed="true"] .mon { color: #d6f5f0; }
.link-btn {
  margin-top: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer;
  font: 700 0.98rem var(--font-head); color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px;
}
.booking-loading { display: flex; align-items: center; gap: 10px; min-height: 72px; color: var(--muted); font-weight: 600; }
.spinner.dark { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--teal-700); animation: spin 0.8s linear infinite; flex: none; }
@media (min-width: 640px) {
  .slot-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(var(--mobilebar-h) + 14px + env(safe-area-inset-bottom)); z-index: 106;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(10, 31, 68, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; box-shadow: 0 10px 26px rgba(10, 31, 68, 0.3); }
.wa-float:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 3px; }
.wa-float .wa-icon { width: 30px; height: 30px; }
.wa-badge { background: #e8f8ee; color: #128c4b; }
.wa-badge .wa-icon { width: 28px; height: 28px; }
.footer-wa .wa-icon { width: 18px; height: 18px; flex: none; color: #9ff0e4; }
@media (min-width: 1024px) { .wa-float { bottom: 24px; right: 24px; width: 60px; height: 60px; } }
@media print { .wa-float { display: none; } }
