/* ABC Translation Belize — single stylesheet, no framework */
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-var.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f6f1;
  --surface: #ffffff;
  --ink: #16203a;
  --muted: #555e72;
  --line: #d8dcd2;
  --blue: #1c3c8c;
  --blue-deep: #122a66;
  --blue-tint: #e7ecf7;
  --red: #b3202d;
  --leaf: #2f6b4f;
  --focus: #f2b705;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.4vw, 2.8rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.4vw, 3.7rem);
  --radius: 6px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 650; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 46rem; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { padding-top: 0; }
.section-lead { color: var(--muted); max-width: 42rem; margin-bottom: 1.8rem; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); max-width: 40rem; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.65rem 1.25rem; border-radius: var(--radius);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); color: #fff; text-decoration: none; }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue-tint); text-decoration: none; }
.btn-light { background: #fff; color: var(--blue-deep); }
.btn-light:hover { background: var(--blue-tint); color: var(--blue-deep); text-decoration: none; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 2.4rem; height: 2.4rem; color: var(--red); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.brand-sub { font-size: 0.85rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.nav-list { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--red); }
.nav-toggle { display: none; }
.nav-cta { min-height: 2.5rem; padding: 0.45rem 1rem; }

.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.4rem 0.7rem; font: 500 0.95rem var(--sans); color: var(--ink); cursor: pointer;
}
.lang-btn svg { width: 1.1rem; height: 1.1rem; }
.lang-menu {
  list-style: none; margin: 0; padding: 0.4rem 0; position: absolute; right: 0; top: calc(100% + 0.4rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(22, 32, 58, 0.12); min-width: 11rem;
}
.js .lang-menu { display: none; }
.js .lang-switch.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 0.5rem 1rem; color: var(--ink); text-decoration: none; }
.lang-menu a:hover { background: var(--blue-tint); }
.lang-menu a[aria-current] { font-weight: 700; color: var(--blue); }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.5rem 0.9rem; font: 600 0.95rem var(--sans); color: var(--ink); cursor: pointer;
  }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.4rem; gap: 1rem;
  }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .lang-menu { position: static; box-shadow: none; margin-top: 0.4rem; }
  .js .lang-menu { display: block; }
  .lang-btn { display: none; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 1rem 0 0; font-size: var(--step--1); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Home hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 19ch; font-size: clamp(2.2rem, 1.7rem + 2.2vw, 3.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.5rem; color: var(--muted); font-size: 0.97rem; }
.hero-points li { padding-left: 1.5rem; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.4rem; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }

/* The document + seal: the page's one signature moment */
.hero-doc { display: flex; justify-content: center; }
.doc {
  position: relative; width: min(100%, 22rem); aspect-ratio: 0.72; background: var(--surface);
  border: 1px solid var(--line); border-radius: 3px; padding: 2.2rem 2rem;
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -24px rgba(22, 32, 58, 0.35);
  transform: rotate(-2deg);
}
.doc::before {
  content: ""; position: absolute; inset: 0.9rem; border: 1px solid var(--blue-tint); pointer-events: none;
}
.doc-head { display: flex; justify-content: space-between; margin-bottom: 1.8rem; }
.doc-head span { display: block; height: 0.7rem; background: var(--blue); border-radius: 2px; }
.doc-head span:first-child { width: 45%; }
.doc-head span:last-child { width: 22%; background: var(--line); }
.doc-lines { display: grid; gap: 0.75rem; }
.doc-lines i { display: block; height: 0.45rem; background: #e4e7df; border-radius: 2px; }
.doc-lines i.s { width: 62%; margin-bottom: 0.6rem; }
.doc-sign { position: absolute; left: 2rem; bottom: 4.2rem; width: 38%; }
.doc-sign svg { width: 100%; height: auto; color: var(--blue); }
.doc-sign::after { content: ""; display: block; height: 1px; background: var(--muted); margin-top: 0.2rem; }
.doc-langs { position: absolute; left: 2rem; bottom: 2rem; font-family: var(--serif); font-style: italic; font-size: 0.85rem; color: var(--muted); }
.doc-seal {
  position: absolute; right: -2rem; bottom: 2.2rem; width: 10.5rem; color: var(--red);
  transform: rotate(-14deg); opacity: 0.92; mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: no-preference) {
  .doc-seal { animation: stamp 0.55s cubic-bezier(.2, .9, .3, 1.2) 0.5s both; }
  @keyframes stamp {
    0% { transform: rotate(-30deg) scale(1.6); opacity: 0; }
    70% { transform: rotate(-12deg) scale(0.96); opacity: 0.95; }
    100% { transform: rotate(-14deg) scale(1); opacity: 0.92; }
  }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(1.8rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-hero h1 { font-size: var(--step-3); max-width: 22ch; }
.hero-cta { margin-top: 1.5rem; }

/* Services grouped */
.svc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 3rem; }
.svc-legalization { grid-column: 2; grid-row: 1 / span 3; }
.svc-group h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; color: var(--red); padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
.svc-group ul, .svc-list { list-style: none; margin: 0; padding: 0; }
.svc-group li a, .svc-list li a {
  display: grid; gap: 0.15rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.svc-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--blue); }
.svc-short { color: var(--muted); font-size: 0.97rem; }
.svc-group li a:hover .svc-name, .svc-list li a:hover .svc-name { text-decoration: underline; text-underline-offset: 0.2em; }
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; border-top: 2px solid var(--ink); }

/* Steps (a real sequence) */
.steps-section { background: var(--blue-tint); padding-top: clamp(2.5rem, 6vw, 4.5rem) !important; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--serif); font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: var(--blue); margin-bottom: 0.7rem;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.steps-section + .section { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

/* Districts */
.districts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.district { padding: 1.2rem 1.2rem 1.2rem 0; border-bottom: 1px solid var(--line); }
.district h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.district h3 a { color: var(--ink); text-decoration: none; }
.district h3 a:hover { color: var(--blue); text-decoration: underline; }
.district ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; font-size: 0.95rem; }

.district-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.district-card { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.district-card p { color: var(--muted); }
.inline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }

/* Languages */
.lang-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip a {
  display: inline-block; padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.95rem;
}
.chip a:hover { border-color: var(--blue); color: var(--blue); }
.chip-local a { border-color: var(--blue); color: var(--blue); font-weight: 600; background: var(--blue-tint); }
.lang-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.lang-card { border-top: 2px solid var(--blue); padding-top: 1rem; }
.lang-card p { color: var(--muted); font-size: 0.97rem; }

/* Content layouts */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.8em; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 1.5rem; border-radius: 0 0 var(--radius) var(--radius); }
.side-card h2 { font-size: 1.15rem; }
.side-card h2 + ul { margin-bottom: 1.5rem; }
.side-card ul:last-child { margin-bottom: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding: 0.35rem 0 0.35rem 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.85em; width: 0.75rem; height: 0.42rem; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }
.two-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.two-lists h2 { font-size: var(--step-1); }
.link-list { list-style: none; padding: 0; margin: 0; columns: 1; }
.link-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }

.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.values li { border-top: 2px solid var(--red); padding-top: 1rem; }
.values p { color: var(--muted); font-size: 0.97rem; }

/* FAQ */
.faq-block h2 { margin-top: 1.5em; }
.faq-block h2:first-child { margin-top: 0; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; list-style: none; padding: 1rem 2.2rem 1rem 0; position: relative;
  font-family: var(--serif); font-weight: 600; font-size: 1.12rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.85rem; font-family: var(--sans); font-size: 1.4rem; color: var(--blue); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--muted); padding-right: 2rem; }

/* CTA band */
.cta-band { background: var(--blue-deep); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; margin-top: clamp(1rem, 4vw, 2rem); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5dcef; max-width: 40rem; margin: 0; }
.cta-actions { display: grid; gap: 0.8rem; justify-items: start; }
.cta-link { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 500; }
.cta-link:hover { color: #fff; text-decoration: underline; }
.cta-link svg, .contact-aside svg, .footer-contact svg { width: 1.2rem; height: 1.2rem; flex: none; }

/* Contact + form */
.contact-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 4.5rem) !important; }
.page-hero + .contact-section { border-top: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-intro { color: var(--muted); }
.quote-form .row.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.field abbr { color: var(--red); text-decoration: none; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid #bfc4ba; border-radius: var(--radius); padding: 0.65rem 0.75rem; min-height: 2.9rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--blue); background: #fff; }
.field input[type=file] { font: inherit; font-size: 0.95rem; max-width: 100%; }
.field .help { color: var(--muted); font-size: var(--step--1); margin: 0.3rem 0 0; }
.field.check { display: flex; gap: 0.7rem; align-items: flex-start; }
.field.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; accent-color: var(--blue); }
.field.check label { font-weight: 400; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); border-width: 2px; }
.field.invalid label { color: var(--red); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.price-note { margin: 0; color: var(--muted); font-size: var(--step--1); }
.form-status { margin-top: 1rem; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--leaf); }
.form-status.err { color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact-aside h2 { font-size: 1.15rem; }
.contact-aside ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.contact-aside li a { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0; font-weight: 600; overflow-wrap: anywhere; }

/* Thanks / chooser */
.thanks { text-align: left; }
.thanks-seal { width: 6.5rem; color: var(--red); margin-bottom: 1.5rem; }
.root-chooser .chooser { padding: 4rem var(--gutter); }
.chooser-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; max-width: 20rem; }
.chooser-list a { display: block; padding: 0.8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--serif); font-size: 1.2rem; text-decoration: none; }

/* Footer */
.site-footer { background: var(--ink); color: #c9cfdc; padding: 3.5rem 0 1.5rem; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 2rem; }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; color: #fff; font-weight: 700; }
.footer-brand span { color: #f08a93; font-weight: 400; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.5rem; overflow-wrap: anywhere; }
.more { margin-top: 0.7rem; }
.more a { color: #9fb3e6; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid #2c375a; margin-top: 2.5rem; padding-top: 1.2rem; font-size: var(--step--1); }
.footer-base p { margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .split, .contact-grid, .cta-inner { grid-template-columns: 1fr; }
  .hero-doc { order: -1; }
  .doc { width: min(58%, 13rem); padding: 1.2rem 1rem; }
  .doc-lines { gap: 0.5rem; }
  .doc-head { margin-bottom: 1rem; }
  .doc-sign { left: 1rem; bottom: 2.6rem; }
  .doc-seal { width: 5.4rem; right: -1.4rem; bottom: 1.6rem; }
  .doc-langs { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .districts, .lang-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .svc-legalization { grid-column: auto; grid-row: auto; }
  .svc-groups, .svc-list, .district-cards, .two-lists, .districts, .lang-cards, .values, .hero-points,
  .quote-form .row.two, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media print {
  .site-header, .site-footer, .cta-band, .quote-form, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
