/* ============ Tokens ============ */
:root {
  --teal-900: #0b3f3f;
  --teal-700: #0f5c5c;
  --teal-600: #167070;
  --teal-100: #dcecea;
  --cream: #fbf6ec;
  --cream-2: #f3ead9;
  --terra: #b4502b;
  --terra-dark: #8f3d1d;
  --ink: #1d2b2b;
  --muted: #4a5b5b;
  --line: #d9cfbb;
  --white: #fff;
  --error: #a3261a;
  --focus: #8f3d1d;
  --radius: 14px;
  --shadow: 0 2px 10px rgb(11 63 63 / 10%);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
html.large-text { font-size: 125%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--teal-900); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 6.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--teal-700); text-underline-offset: .18em; }
a:hover { color: var(--terra-dark); }
ul, ol { padding-left: 1.2em; }
main:focus { outline: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .final-cta :focus-visible, .site-footer :focus-visible { outline-color: #ffd9a8; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.center-text { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); }
.plain { list-style: none; padding: 0; margin: 0; }

.skip-link {
  position: absolute; left: .75rem; top: -4rem; z-index: 100;
  background: var(--teal-900); color: #fff; padding: .8rem 1.1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: .75rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; min-width: 48px; padding: .7rem 1.4rem;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { min-height: 56px; padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-900); color: #fff; }
.btn-accent { background: var(--terra); color: #fff; }
.btn-accent:hover { background: var(--terra-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--teal-900); border-color: var(--teal-700); }
.btn-outline:hover { background: var(--teal-100); color: var(--teal-900); }
.btn-light { background: #fff; color: var(--teal-900); }
.btn-light:hover { background: var(--cream-2); color: var(--teal-900); }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 1rem; }
.cta-row.center { justify-content: center; }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(251 246 236 / 97%); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--teal-900); min-height: 48px; }
.brand-mark {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--teal-700); color: #fff; font: 600 1.4rem var(--font-head);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font: 600 1.25rem var(--font-head); }
.brand-text small { font-size: .78rem; color: var(--muted); }
.nav-toggle {
  min-height: 48px; padding: 0 1.1rem; font: 500 1rem var(--font-body);
  background: transparent; border: 2px solid var(--teal-700); border-radius: 999px; color: var(--teal-900); cursor: pointer;
}
.site-nav { display: none; width: 100%; padding-bottom: 1rem; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; padding: 0; margin: 0 0 .8rem; }
.site-nav li a {
  display: flex; align-items: center; min-height: 48px; padding: 0 .25rem;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.site-nav li a:hover { color: var(--terra-dark); }
.nav-actions { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.text-toggle {
  min-height: 48px; padding: 0 1rem; font: 500 .95rem var(--font-body);
  background: transparent; color: var(--teal-900); border: 2px solid var(--line); border-radius: 999px; cursor: pointer;
}
.text-toggle[aria-pressed="true"] { background: var(--teal-100); border-color: var(--teal-700); }
/* Without JS the menu simply stays open */
html:not(.js) .site-nav { display: block; }
html:not(.js) .nav-toggle { display: none; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .site-nav, html:not(.js) .site-nav { display: flex; align-items: center; gap: 1.2rem; width: auto; padding: 0; }
  .site-nav ul { display: flex; gap: .2rem; margin: 0; }
  .site-nav li a { border: 0; padding: 0 .65rem; font-size: .95rem; border-radius: 8px; }
  .site-nav li a:hover { background: var(--cream-2); }
}

/* ============ Hero ============ */
.hero { padding: 2rem 0 2.5rem; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem; padding: .4rem .95rem;
  font-size: .92rem; font-weight: 500; color: var(--teal-900);
  background: var(--teal-100); border-radius: 999px;
}
.dot { width: .65rem; height: .65rem; border-radius: 50%; background: #1f8a4c; box-shadow: 0 0 0 4px rgb(31 138 76 / 22%); }
.hero-lang { font-weight: 500; color: var(--teal-900); }
.hero-note { font-size: .95rem; color: var(--muted); }
.hero-media img { width: 100%; border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 5 / 4; object-fit: cover; }
@media (min-width: 52rem) {
  .hero { padding: 4rem 0; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; }
}

/* ============ Credentials ============ */
.creds { background: var(--teal-900); color: #fff; }
.creds-list { list-style: none; margin: 0; padding: 1rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: center; font-size: .95rem; }
.creds-list li::before { content: "✓"; margin-right: .5rem; color: #ffd9a8; font-weight: 600; }

/* ============ Sections ============ */
.section { padding: 3.5rem 0; }
.section-tint { background: var(--cream-2); }
.section-dark { background: var(--teal-700); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-intro { max-width: 46rem; color: var(--muted); }
.page-head { padding: 2.5rem 0 0; }
.privacy-note { padding: .8rem 1rem; background: var(--teal-100); border-radius: 10px; font-size: .95rem; }

/* Cards */
.cards { display: grid; gap: 1rem; margin-top: 1.8rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); margin: 0; }
.card h3 { margin-bottom: .4em; }
.card p { margin-bottom: .8em; }
.tag {
  display: inline-block; margin: 0; padding: .25rem .7rem; font-size: .8rem; font-weight: 500; line-height: 1.4;
  color: var(--teal-900); background: var(--teal-100); border-radius: 999px;
}
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* About */
.about-grid { display: grid; gap: 2rem; align-items: center; }
.about-media img { width: 100%; max-width: 380px; margin: 0 auto; border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
@media (min-width: 52rem) { .about-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }

/* Pills / chips */
.pill-list, .chips { list-style: none; padding: 0; margin: 1.2rem 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list li { padding: .55rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.chips li { padding: .45rem 1rem; background: #fff; color: var(--teal-900); border: 1px solid var(--teal-600); border-radius: 999px; font-size: .95rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { position: relative; padding: 1.4rem 1.4rem 1.4rem 4.6rem; background: rgb(255 255 255 / 10%); border-radius: var(--radius); counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 1.2rem; top: 1.2rem;
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: #fff; color: var(--teal-900); font: 600 1.2rem var(--font-head);
}
.steps p { margin: 0; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Fees */
.ticks { list-style: none; padding: 0; margin: 1.4rem 0; }
.ticks li { position: relative; padding: .9rem 1rem .9rem 1rem; margin-bottom: .7rem; background: #fff; border-left: 5px solid var(--teal-700); border-radius: 8px; }

/* Referral */
.referral { background: var(--terra); color: #fff; padding: 2.4rem 0; }
.referral h2 { color: #fff; margin-bottom: .4em; }
.referral p { margin: 0; max-width: 40rem; }
.referral-inner { display: grid; gap: 1.4rem; align-items: center; }
.referral .btn-accent { background: #fff; color: var(--terra-dark); }
.referral .btn-accent:hover { background: var(--cream-2); color: var(--terra-dark); }
.referral :focus-visible { outline-color: #fff; }
@media (min-width: 52rem) { .referral-inner { grid-template-columns: 1fr auto; gap: 3rem; } }

/* Why */
.why-grid { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.why-grid li { padding: 1.2rem 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.why-grid strong { display: block; color: var(--teal-900); }
@media (min-width: 40rem) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: .8rem 1.2rem; font-weight: 500; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--terra); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.2rem; margin: 0 0 1.1rem; color: var(--muted); }

/* Final CTA */
.final-cta { background: var(--teal-900); color: #fff; text-align: center; padding: 4rem 0; }
.final-cta h2 { color: #fff; }

/* Prose pages */
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }

/* ============ Form ============ */
.form-section { padding-top: 1.5rem; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { font: 600 1.5rem var(--font-head); color: var(--teal-900); margin-bottom: 1.2rem; padding: 0; }
.field { margin-bottom: 1.6rem; scroll-margin-top: 6rem; }
.label { display: block; margin: 0 0 .5rem; font-weight: 500; }
.req, .opt { font-weight: 400; font-size: .85rem; color: var(--muted); }
.hint { font-size: .9rem; color: var(--muted); margin: .5rem 0 0; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: .7rem 1rem; font: inherit; color: var(--ink);
  background: #fff; border: 2px solid #8a9a97; border-radius: 10px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.choices { display: grid; gap: .6rem; }
.choice {
  display: flex; align-items: center; gap: .85rem; min-height: 52px; padding: .55rem 1rem;
  background: #fff; border: 2px solid var(--line); border-radius: 10px; cursor: pointer;
}
.choice:hover { border-color: var(--teal-600); }
.choice:has(input:checked) { border-color: var(--teal-700); background: var(--teal-100); }
.choice input { flex: none; width: 1.4rem; height: 1.4rem; accent-color: var(--teal-700); margin: 0; }
@media (min-width: 40rem) {
  .choices-compact { grid-template-columns: repeat(4, 1fr); }
  .choices-compact .choice { padding: .55rem .7rem; font-size: .95rem; }
}
.field.invalid .label { color: var(--error); }
.field.invalid input[type="text"], .field.invalid input[type="tel"], .field.invalid input[type="email"],
.field.invalid select, .field.invalid textarea, .field.invalid .choice { border-color: var(--error); }
.error { margin: .5rem 0 0; color: var(--error); font-weight: 500; font-size: .95rem; }
.error::before { content: "⚠ "; }
.form-status { padding: 1rem 1.2rem; border-radius: 10px; background: #fbe9e6; color: var(--error); border: 1px solid var(--error); font-weight: 500; }
.form-nav { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* JS-enhanced wizard */
.progress { margin-bottom: 1.6rem; }
.progress-label { margin: 0 0 .5rem; font-weight: 500; color: var(--muted); }
.progress-track { height: 12px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 33.33%; background: var(--teal-700); border-radius: 999px; transition: width .3s; }
.wizard .step[hidden] { display: none; }

/* ============ Footer ============ */
.site-footer { background: var(--teal-900); color: #e8f0ee; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.8rem; }
.footer-brand { font: 600 1.3rem var(--font-head); color: #fff; margin-bottom: .4rem; }
.footer-h { font: 600 1rem var(--font-body); color: #ffd9a8; margin: 0 0 .6rem; }
.site-footer .plain li { margin-bottom: .3rem; }
.site-footer .plain a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / 20%); font-size: .88rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ============ Sticky mobile bar ============ */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: .7rem;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--cream); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgb(11 63 63 / 12%);
}
.sticky-bar .btn { flex: 1; }
body { padding-bottom: 5rem; }
@media (min-width: 52rem) {
  .sticky-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ============ Motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
