:root {
  --navy-950: #0f1a2c;
  --navy-900: #16233a;
  --navy: #2c3f5d;
  --navy-100: #e6ebf2;
  --gold: #c8a84e;
  --gold-300: #e2cd8f;
  --gold-50: #faf5e6;
  --paper: #f7f5f0;
  --white: #ffffff;
  --ink: #1b2433;
  --muted: #5b6474;
  --line: #e3dfd5;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 26, 44, .06), 0 12px 40px rgba(15, 26, 44, .16);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.wrap--narrow { max-width: 760px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .day:focus-visible, .time:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn--primary { background: var(--gold); color: var(--navy-950); }
.btn--primary:hover { background: var(--gold-300); }
.btn--primary:disabled { opacity: .6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 1.05rem; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- top bar ---------- */
.topbar { background: var(--navy-950); color: #fff; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; }
.brand img { width: 120px; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.lang-toggle { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; height: 36px; min-width: 44px; font: 600 .85rem var(--sans); cursor: pointer; }
.lang-toggle:hover { border-color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(200,168,78,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy) 100%);
  color: #e9edf4;
  padding-block: 48px 72px;
}
.hero h1 { color: #fff; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
/* Grid children default to min-width:auto; without this the scrollable date strip widens the page on phones. */
.hero__grid > *, .help__grid > *, .about__grid > *, .footer__grid > * { min-width: 0; }
.hero__copy { padding-top: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.lede { font-size: 1.125rem; color: #cfd7e3; max-width: 36em; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230f1a2c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat;
}
.lawyer { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.lawyer img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); }
.lawyer strong { display: block; color: #fff; }
.lawyer span { display: block; font-size: .875rem; color: #b9c3d2; }
.lawyer .langs { color: var(--gold-300); }

/* ---------- booking card ---------- */
.booking { background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; scroll-margin-top: 16px; }
.booking__head h2 { font-size: 1.5rem; margin-bottom: 2px; }
.booking__head > p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.price-badge {
  display: inline-block; background: var(--gold); color: var(--navy-950); font: 700 .72rem/1 var(--sans);
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; margin-bottom: 10px;
}
.progress { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 4px 0 20px; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width .3s ease; }

.back-link { background: none; border: 0; padding: 4px 0; margin: -6px 0 10px; font: 500 .875rem var(--sans); color: var(--muted); cursor: pointer; }
.back-link:hover { color: var(--navy); }

.screen { border: 0; padding: 0; margin: 0; min-width: 0; }
.screen:not([hidden]), .hint-box:not([hidden]), .reveal:not([hidden]) { animation: screen-in .28s ease both; }
@keyframes screen-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.reveal:not([hidden]) { animation-name: reveal-in; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen, .hint-box, .reveal { animation: none !important; } .progress span { transition: none; } }

.screen__q { display: block; float: none; width: 100%; padding: 0; font: 600 1.3rem/1.3 var(--serif); color: var(--navy-900); margin: 0 0 4px; }
.screen__q:focus { outline: none; }
.screen__count { font-size: .82rem; color: var(--muted); margin: 0 0 16px; }

.options { display: grid; gap: 10px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span {
  display: flex; align-items: center; min-height: 56px; padding: 12px 48px 12px 18px; border: 1.5px solid var(--line);
  border-radius: 12px; font-weight: 500; background: #fff; cursor: pointer; transition: border-color .12s, background-color .12s; position: relative;
}
.option span::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border: 1.5px solid var(--line); border-radius: 50%; transition: all .12s;
}
.option:hover span { border-color: var(--navy); }
.option input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.option input:checked + span { border-color: var(--navy); background: var(--navy-100); }
.option input:checked + span::after {
  border-color: var(--navy); background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/12px no-repeat;
}

.hint-box p { background: var(--gold-50); border-left: 3px solid var(--gold); color: var(--navy-900); padding: 14px 16px; border-radius: 8px; margin: 0 0 16px; }
.form-error { color: var(--danger); font-size: .9rem; font-weight: 500; margin: 10px 0 0; }
.more-link { background: none; border: 0; padding: 6px 0; margin: 0 0 12px; font: 600 .9rem var(--sans); color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.tz-note { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.tz-note strong { color: var(--ink); font-weight: 600; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day {
  flex: none; width: 64px; padding: 8px 0; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  display: grid; justify-items: center; gap: 0; font: 500 .75rem/1.3 var(--sans); color: var(--muted); cursor: pointer; scroll-snap-align: start;
  text-transform: capitalize;
}
.day strong { font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.day:hover { border-color: var(--navy); }
.day.is-selected { background: var(--navy); border-color: var(--navy); color: #cfd7e3; }
.day.is-selected strong { color: #fff; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 18px; }
.time { min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 600 .92rem var(--sans); color: var(--navy-900); cursor: pointer; }
.time:hover { border-color: var(--navy); }
.time.is-selected { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 400 1rem var(--sans); color: var(--ink); background: #fff;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-100); }
.field .is-invalid, .is-invalid { border-color: var(--danger) !important; }
.picked { background: var(--gold-50); border: 1px solid var(--gold-300); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin-bottom: 16px; color: var(--navy-900); }
.field--inline { display: flex; align-items: center; gap: 10px; }
.field--inline label { margin: 0; font-weight: 500; color: var(--muted); white-space: nowrap; }
.field--inline select { width: auto; flex: 1; min-height: 42px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 6px 0 16px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- sections ---------- */
section.how, section.help, section.about, section.faq { padding-block: 72px; }
.how { background: var(--white); }
.how__grid { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how__grid p { color: var(--muted); }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); font: 700 1.1rem var(--serif); margin-bottom: 14px; }

.help__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tiles li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; border-top: 3px solid var(--gold); }
.tiles p { margin: 0; color: var(--muted); font-size: .92rem; }

.about { background: var(--navy-950); color: #cfd7e3; }
.about h2 { color: #fff; }
.about__grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.about__grid > img { border-radius: var(--radius); aspect-ratio: 2 / 3; object-fit: cover; max-width: 100%; }
.badges { display: flex; gap: 20px; align-items: center; margin: 8px 0 28px; }
.badges img { height: 36px; width: auto; padding: 6px 10px; border-radius: 6px; }

.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 48px 18px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

.footer { background: var(--navy-950); color: #b9c3d2; padding-block: 48px 110px; border-top: 1px solid rgba(255,255,255,.08); }
.footer a { color: #fff; }
.footer strong { color: #fff; display: block; margin-bottom: 8px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer img { margin-bottom: 14px; }

.mobile-cta { display: none; }

.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin-inline: auto;
  background: var(--white); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow); padding: 16px 18px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.consent-bar p { margin: 0; font-size: .875rem; flex: 1 1 260px; }
.consent-bar .row { flex: 0 0 auto; }

/* ---------- thank-you / prose ---------- */
.ty__main { padding-block: 56px; }
.ty__card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 32px; text-align: center; }
.ty__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--navy-950); display: grid; place-items: center; margin: 0 auto 18px; }
.ty__card .lede { color: var(--muted); }
.ty__when { font: 600 1.35rem/1.3 var(--serif); color: var(--navy-900); }
.picked small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.ty__meet { font-size: .85rem; color: var(--muted); margin-top: 8px; word-break: break-all; }
.ty__next { text-align: left; margin: 28px 0 20px; padding-left: 20px; display: grid; gap: 10px; }
.prose { padding-block: 40px 72px; }
.prose h1 { font-size: 2rem; margin-top: 1em; }
.prose h2 { font-size: 1.25rem; margin-top: 1.5em; }

/* ---------- responsive ---------- */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media (max-width: 960px) {
  .hero__grid, .help__grid, .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__copy { padding-top: 0; }
  /* Phones/tablets: headline, then the free-consultation card, then the supporting details. */
  .hero__grid { gap: 0; }
  .hero__copy { display: contents; }
  .hero__copy .eyebrow { order: 1; }
  .hero__copy h1 { order: 2; }
  .hero__copy .lede { order: 3; margin-bottom: 20px; }
  .hero__grid .booking { order: 4; }
  .hero__copy .checks { order: 5; margin: 28px 0 20px; }
  .hero__copy .lawyer { order: 6; }
  .about__grid > img { max-width: 260px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 28px 40px; }
  .checks { margin: 18px 0 22px; }
  .booking { padding: 20px 16px; }
  .topbar__phone span { display: none; }
  .how__grid, .tiles, .footer__grid { grid-template-columns: 1fr; }
  section.how, section.help, section.about, section.faq { padding-block: 48px; }
  .screen__q { font-size: 1.2rem; }
  .mobile-cta {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
    border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  .mobile-cta { transition: transform .2s; }
  .mobile-cta .btn--ghost { flex: 0 0 96px; }
  .mobile-cta .btn--primary { flex: 1; }
  .consent-bar { bottom: 80px; }
}

/* Paid-consultation bits */
.price-badge { background: var(--gold); color: var(--navy-950); font-weight: 700; }
.credit-note { margin: 8px 0 0; font-size: .85rem; color: var(--navy-900); background: var(--gold-50); border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 6px; }
.cancelled-note { margin: 10px 0 0; font-size: .85rem; color: var(--danger); font-weight: 500; }
.pay-note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.ty__paid { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--gold-50); border: 1px solid var(--gold-300); font-size: .85rem; font-weight: 600; color: var(--navy-900); }
.ty__state { color: var(--muted); }
