/* ─── TOKENS ─────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:          #FAFAF7;
  --bg-alt:      #F1EFEA;
  --surface:     #FFFFFF;
  --ink:         #2B2C2E;
  --ink-soft:    #5A5B5D;
  --muted:       #626365;
  --sand:        #B8B1A2;
  --amber:       #F5CA5C;
  --line:        rgba(90, 91, 93, 0.18);
  --font:        'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h:       72px;
  --max-w:       1160px;
  --section-pad: clamp(4rem, 9vw, 7rem);
}

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

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

html { scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

/* ─── NAVBAR ─────────────────────────────────────── */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img { height: 40px; width: auto; max-width: none; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); border-bottom-color: var(--amber); }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

#lang-toggle,
.nav-burger {
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
#lang-toggle { white-space: nowrap; display: inline-block; text-decoration: none; }
#lang-toggle:hover { border-color: var(--ink-soft); }
.nav-burger { display: none; font-size: 1.1rem; }

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: #000000; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-soft); }

a:focus-visible,
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ─── HERO ───────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(245, 202, 92, 0.22), transparent 55%),
    var(--bg);
}

.hero-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; }

.hero-logo { width: 88px; height: 88px; margin-bottom: 1.5rem; mix-blend-mode: multiply; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

#home h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-figure {
  margin: 2rem 0 2.5rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero-number {
  display: block;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.12em;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ─── SECTIONS ───────────────────────────────────── */
section:not(#home) { padding: var(--section-pad) 1.5rem; }
#group, #commitments { background: var(--bg-alt); }

.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ─── BOOKS ──────────────────────────────────────── */
.books-head { margin-bottom: 3rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  border-radius: 8px;
  padding: 1.5rem;
}
.fact-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.fact p { color: var(--ink); }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.tier {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--ink);
  color: #FFFFFF;
}
.tier-number { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; }
.tier-unit { font-size: 0.95rem; color: var(--sand); }
.tier-text { margin-top: 0.35rem; color: #E4E2DD; }
.tiers-note { margin-top: 1rem; color: var(--ink-soft); }

/* ─── GROUP ──────────────────────────────────────── */
.group-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-label { font-size: 0.85rem; color: var(--muted); }

.worldmap img { border-radius: 8px; mix-blend-mode: multiply; }
.worldmap figcaption { margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted); text-align: center; }

.subsection-title { font-size: 1.3rem; font-weight: 800; margin: 4rem 0 1.5rem; }

.timeline { list-style: none; border-left: 2px solid var(--line); margin-left: 0.5rem; }
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0 0 1.25rem 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sand);
}
.timeline-year { font-weight: 700; }
.timeline-item p { color: var(--ink-soft); }
.timeline-item--today::before { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 202, 92, 0.3); }
.timeline-item--today p { color: var(--ink); font-weight: 600; }

/* ─── SERVICES ───────────────────────────────────── */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}
.service {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 600;
}

/* ─── COMMITMENTS ────────────────────────────────── */
.commitments {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.commitment {
  padding: 1.75rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.commitment-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.commitment ul { display: flex; flex-direction: column; gap: 0.5rem; }
.commitment li li,
.commitment ul li { color: var(--ink-soft); padding-left: 1rem; position: relative; }
.commitment ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 2px;
  background: var(--amber);
}

/* ─── FORMS ──────────────────────────────────────── */
.quote-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.quote-form { margin-top: 3.5rem; max-width: 820px; }
.form-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
fieldset.form-group { border: none; padding: 0; margin: 0; }
.form-group label,
.form-group legend { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.1rem; }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  resize: vertical;
  width: 100%;
  min-width: 0;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink-soft); }

.checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.form-group .check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}
.form-group .check input { accent-color: var(--ink); padding: 0; }

.quote-form .btn { align-self: flex-start; }

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  background: var(--surface);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-inner img { height: 30px; width: auto; }

/* ─── FAQ ────────────────────────────────────────── */
#faq { border-top: 1px solid var(--line); }
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
}
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.faq-item p { margin-top: 0.75rem; color: var(--ink-soft); }

/* ─── CONTACT ────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-details li { display: flex; flex-direction: column; }
.contact-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-details a { color: var(--ink); font-weight: 600; }

/* ─── LEGAL / PRIVACY ────────────────────────────── */
.footer-legal {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.legal-list { display: grid; gap: 0.35rem; }
.legal-list div { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 1rem; }
.footer-legal p { max-width: 80ch; }

/* ─── SKIP LINK ──────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  background: var(--ink);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav-burger { display: block; }
  .nav-logo img { height: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .group-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .commitments { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .nav-inner { gap: 0.75rem; padding: 0 1rem; }
  .nav-logo img { height: 26px; }
  .facts { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.1rem; }
  .legal-list div { grid-template-columns: 1fr; gap: 0; }
  .form-row,
  .form-row--3 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
