/* ==========================================================================
   Main stylesheet — no external fonts, frameworks or CDNs.
   Colours and typography are controlled from the custom properties below.
   ========================================================================== */

:root {
  --navy: #0f1e33;
  --navy-2: #172a45;
  --paper: #f8f6f1;
  --surface: #ffffff;
  --text: #1b2533;
  --muted: #566070;
  --line: #e3dfd5;
  --accent: #b08d57;
  --accent-text: #7d5f30;
  --on-dark: #f3efe6;
  --on-dark-muted: #b9c1cd;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgb(15 30 51 / 6%), 0 8px 24px rgb(15 30 51 / 7%);
  --container: 72rem;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d141f;
    --surface: #141d2a;
    --text: #e9e6df;
    --muted: #a7afbb;
    --line: #253043;
    --accent: #c9a46a;
    --accent-text: #d8b57e;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
.icon { width: 1.5rem; height: 1.5rem; flex: none; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 46rem; }
.section { padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.9rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.section-head { max-width: 44rem; margin-bottom: 2.75rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: 0.7rem 1rem; border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn .icon { width: 1.15rem; height: 1.15rem; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #14110b; }
.btn--primary:hover { background: #c29d65; }
.btn--ghost { border-color: rgb(243 239 230 / 40%); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); }
.btn--outline { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn--outline:hover { border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(248 246 241 / 88%);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) { .site-header { background: rgb(13 20 31 / 85%); } }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; margin-right: auto; }
.brand svg { width: 2.1rem; height: 2.1rem; color: var(--navy); }
@media (prefers-color-scheme: dark) { .brand svg { color: #24395a; } }
.brand-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.01em; }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem; background: none; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 0.9rem; font: inherit; font-size: 0.95rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.1rem; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.98rem; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav-list a:hover { border-color: var(--line); }
.nav-list a[aria-current="page"] { border-color: var(--accent); }

.lang-switch { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0.2rem; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a {
  display: block; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--muted); text-decoration: none;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }

@media (max-width: 56rem) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .js .site-nav {
    position: absolute; inset: 100% 0 auto 0; padding: 1.25rem 1.25rem 1.75rem;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .nav-list { flex-direction: column; gap: 0.25rem; width: 100%; }
  .nav-list a { display: block; font-size: 1.1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .nav-list a[aria-current="page"] { color: var(--accent-text); border-color: var(--line); }
  html:not(.js) .site-nav { width: 100%; padding-bottom: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(176 141 87 / 28%), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgb(64 99 150 / 35%), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-inner { position: relative; padding-block: clamp(4.5rem, 3rem + 8vw, 9rem); }
.hero h1 { max-width: 48rem; color: #fff; animation: rise 0.7s ease both; }
.hero .lead { color: var(--on-dark-muted); animation: rise 0.7s 0.08s ease both; }
.hero .btn-row { margin-top: 2rem; animation: rise 0.7s 0.16s ease both; }
.hero .eyebrow { color: var(--accent); }
.hero--page .hero-inner { padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem); }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin: 3rem 0 0; padding: 1.5rem 0 0; list-style: none;
  border-top: 1px solid rgb(243 239 230 / 15%); color: var(--on-dark-muted); font-size: 0.95rem;
}
.trust-row li { display: flex; align-items: center; gap: 0.5rem; }
.trust-row .icon { width: 1.1rem; height: 1.1rem; color: var(--accent); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.section--alt .card { background: var(--paper); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.65rem; margin-bottom: 1.25rem;
  background: rgb(176 141 87 / 14%); color: var(--accent-text);
}
.card-link { margin-top: auto; padding-top: 0.5rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.card-link .icon { width: 1rem; height: 1rem; transition: transform 0.15s ease; }
.card-link:hover .icon { transform: translateX(3px); }

.price { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.price strong { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--text); font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.3rem 0; color: var(--muted); }
.check-list .icon { width: 1.15rem; height: 1.15rem; margin-top: 0.3rem; color: var(--accent-text); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 1.75rem; border-top: 2px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 0.75rem;
  font-family: var(--font-serif); font-size: 1.9rem; color: var(--accent); line-height: 1;
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; }

/* Figures */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin: 0; }
.figure { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.figure dt { font-family: var(--font-serif); font-size: 2.6rem; line-height: 1.1; color: var(--text); }
.figure dd { margin: 0.4rem 0 0; color: var(--muted); }

/* Split */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

/* Quote */
.quote { margin: 0; padding: 2rem 2.25rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.5; margin-bottom: 0.8rem; }
.quote footer { color: var(--muted); font-size: 0.95rem; }

/* Facts table */
.facts { width: 100%; border-collapse: collapse; font-size: 1rem; }
.facts th, .facts td { text-align: left; padding: 0.85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-weight: 600; width: 42%; padding-right: 1rem; }
.facts td { color: var(--muted); }

/* Team */
.person { display: flex; gap: 1.1rem; align-items: center; }
.avatar {
  display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; flex: none;
  background: var(--navy); color: var(--accent); font-family: var(--font-serif); font-size: 1.35rem;
}
.person h3 { margin: 0; font-size: 1.15rem; }
.person p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact-card { flex-direction: row; gap: 1.1rem; align-items: flex-start; }
.contact-card .card-icon { margin: 0; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.contact-card a { font-weight: 600; overflow-wrap: anywhere; }
.contact-card address { font-style: normal; color: var(--muted); }
.soon { color: var(--muted); font-style: italic; }
.site-footer .soon { color: var(--on-dark-muted); }

/* CTA band */
.cta { background: var(--navy); color: var(--on-dark); border-radius: calc(var(--radius) * 1.5); padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; margin-bottom: 0.4rem; }
.cta p { color: var(--on-dark-muted); margin: 0; max-width: 36rem; }

/* Prose (privacy policy) */
.prose h2 { font-size: 1.55rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.prose li { margin-bottom: 0.35rem; }
.prose .meta { color: var(--muted); font-size: 0.95rem; }
.note { padding: 1rem 1.25rem; border-radius: var(--radius); background: rgb(176 141 87 / 12%); border: 1px solid rgb(176 141 87 / 35%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding-block: 3.5rem 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.footer-grid h2 { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 0.2rem 0; }
.footer-grid address { font-style: normal; }
.footer-brand { font-family: var(--font-serif); font-size: 1.35rem; color: #fff; margin-bottom: 0.5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(243 239 230 / 12%); font-size: 0.875rem; }

/* ---------- Language chooser & 404 ---------- */
.center-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.center-page .brand { margin: 0 auto 2rem; justify-content: center; }
.choice-list { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; list-style: none; padding: 0; margin: 2rem 0 0; }
.error-code { font-family: var(--font-serif); font-size: clamp(4rem, 3rem + 6vw, 7rem); line-height: 1; color: var(--accent); margin: 0 0 1rem; }
.center-page .lang-block + .lang-block { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }

@media print {
  .site-header, .site-footer, .cta, .skip-link { display: none !important; }
  .hero { background: none; color: #000; }
  .hero h1 { color: #000; }
  body { background: #fff; color: #000; }
}
