/* fatbike.vn: huisstijl. Zand, lakrood, goud en het groen van de rijstvelden
   rond Ninh Bình. Werkt in licht en donker. */
:root {
  --bg: #F2EADB;
  --bg2: #EAE0CC;
  --card: #F8F3E8;
  --ink: #1F1C17;
  --muted: #6B6358;
  --line: #D9CFBB;
  --accent: #B5292A;
  --gold: #D9A83A;
  --ok: #2E7D4F;
  --rim: #8C8273;
  /* landschap */
  --far: #C9D0C7;
  --near: #A3B393;
  --veg: #7F9872;
  --river: #BCCFCE;
  --ripple: #E6EEEC;
  --paddy1: #BBD09A;
  --paddy2: #A1BF7C;
  --paddy3: #8BAE66;
  --rows: #6E9350;
  --radius: 14px;
  --gutter: clamp(16px, 5vw, 56px);
  --max: 1100px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14130F;
    --bg2: #1B1914;
    --card: #1F1D17;
    --ink: #F2EADB;
    --muted: #A39A8B;
    --line: #35311F;
    --accent: #E2524A;
    --gold: #E6B857;
    --ok: #6FCB93;
    --rim: #7A7264;
    --far: #23292A;
    --near: #2E3A2C;
    --veg: #3B4C37;
    --river: #1F2E36;
    --ripple: #3A4F58;
    --paddy1: #2A3B22;
    --paddy2: #31452A;
    --paddy3: #3A5231;
    --rows: #557546;
  }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 7.5vw, 4.8rem); letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: 18px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p + p { margin-top: 12px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.prose a, .faq a, .lead a { color: var(--accent); }

/* Korte Vietnamese kop boven een sectiekop */
.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.kicker::before {
  content: ""; display: inline-block; width: 18px; height: 3px; background: var(--gold);
  vertical-align: middle; margin-right: 10px; border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Kop en menu */
.top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  padding: 22px var(--gutter) 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none;
}
.logo svg { width: 28px; height: 28px; }
.logo b, .foot-brand b { font-weight: 800; }
.logo span, .foot-brand span { color: var(--accent); }
.menu-btn {
  display: none; background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer; border-radius: 8px;
}
.menu-btn svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 22px; list-style: none; padding: 0; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav .lang {
  border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; color: var(--ink);
}
.nav .lang:hover { border-color: var(--ink); }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .nav a { display: block; padding: 8px 0; font-size: 1.05rem; }
}

/* Hero */
.hero { padding: 48px var(--gutter) 8px; }
.hero-text { max-width: 44rem; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 500; color: var(--muted);
  border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 14px 6px 12px; margin-bottom: 26px;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.hero .lead { margin-top: 22px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 40rem; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Landschap met fiets (src/partials/scene.svg, gemaakt door tools/scene.py).
   De viewBox omvat alleen de fiets, zodat die altijd heel in beeld blijft; de
   lagen lopen erbuiten door en vullen de breedte. */
.scene { width: 100%; height: clamp(180px, 30vh, 320px); overflow: hidden; margin-top: 18px; }
.scene .far { fill: var(--far); }
.scene .near { fill: var(--near); }
.scene .veg { fill: var(--veg); }
.scene .river { fill: var(--river); }
.scene .ripple { stroke: var(--ripple); stroke-width: 2; fill: none; }
.scene .paddy1 { fill: var(--paddy1); }
.scene .paddy2 { fill: var(--paddy2); }
.scene .paddy3 { fill: var(--paddy3); }
.scene .rows { stroke: var(--rows); stroke-width: 1.2; fill: none; opacity: 0.55; }
.scene .tufts { opacity: 0.7; }
.scene .ground { fill: var(--bg); }
.scene .road { stroke: var(--ink); stroke-width: 3; }
.scene .marks { stroke: var(--muted); stroke-width: 3; stroke-dasharray: 18 62; stroke-linecap: round; animation: road 0.5s linear infinite; }
.scene .frame { stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.scene .part { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.scene .tyre { stroke: var(--ink); stroke-width: 20; fill: none; }
.scene .tread { stroke: var(--ink); stroke-width: 6; stroke-dasharray: 5 6.7; fill: none; }
.scene .rim { stroke: var(--rim); stroke-width: 3; fill: none; }
.scene .spoke { stroke: var(--rim); stroke-width: 2.5; }
.scene .hub, .scene .saddle, .scene .head, .scene .hull { fill: var(--ink); }
.scene .oar { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.scene .hat { fill: var(--gold); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.scene .torso { stroke: var(--ink); stroke-width: 16; stroke-linecap: round; fill: none; }
.scene .leg { stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.scene .leg.back { stroke: var(--muted); }
.scene .arm { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.scene .layer-far { animation: slide 120s linear infinite; }
.scene .layer-near { animation: slide 60s linear infinite; }
.scene .layer-river { animation: slide 40s linear infinite; }
.scene .layer-paddy { animation: slide 22s linear infinite; }
.scene .spin { transform-box: fill-box; transform-origin: center; animation: spin 2.4s linear infinite; }
.scene .bob { animation: bob 0.6s ease-in-out infinite alternate; }
@keyframes slide { to { transform: translateX(-1200px); } }
@keyframes road { to { stroke-dashoffset: 80; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { to { transform: translateY(-2px); } }

/* Foto over de volle breedte */
.photo { margin: 0; }
.photo img { width: 100%; height: clamp(220px, 46vw, 540px); object-fit: cover; }
.photo figcaption { padding: 10px var(--gutter) 0; font-size: 0.85rem; color: var(--muted); }
.photo figcaption::before { content: ""; display: inline-block; width: 12px; height: 3px; background: var(--gold); vertical-align: middle; margin-right: 8px; border-radius: 2px; }

/* Secties */
.section { padding: 56px var(--gutter); }
.section.alt { background: var(--bg2); }
.section.tight { padding-top: 32px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.wrap-narrow { max-width: 44rem; }
.intro { max-width: 44rem; margin-bottom: 28px; }
.prose { max-width: 44rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.more { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 38px; height: 38px; color: var(--accent); margin-bottom: 14px; }
.card p { color: var(--muted); }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before {
  content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: #1F1C17; font-weight: 800; margin-bottom: 12px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Donker blok met een lotus als watermerk */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--bg); border-radius: 22px; padding: 36px 40px;
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between;
}
.cta::after {
  content: ""; position: absolute; right: -30px; bottom: -70px; width: 300px; height: 300px; pointer-events: none; opacity: 0.16;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23F2EADB' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M50 15C62 35 62 60 50 75C38 60 38 35 50 15Z'/%3E%3Cpath d='M50 75C30 70 18 55 16 32C34 38 46 55 50 75Z'/%3E%3Cpath d='M50 75C70 70 82 55 84 32C66 38 54 55 50 75Z'/%3E%3Cpath d='M50 75C28 80 10 72 4 58C22 58 40 64 50 75Z'/%3E%3Cpath d='M50 75C72 80 90 72 96 58C78 58 60 64 50 75Z'/%3E%3Cpath d='M10 88Q50 98 90 88'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (prefers-color-scheme: dark) {
  .cta::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%2314130F' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M50 15C62 35 62 60 50 75C38 60 38 35 50 15Z'/%3E%3Cpath d='M50 75C30 70 18 55 16 32C34 38 46 55 50 75Z'/%3E%3Cpath d='M50 75C70 70 82 55 84 32C66 38 54 55 50 75Z'/%3E%3Cpath d='M50 75C28 80 10 72 4 58C22 58 40 64 50 75Z'/%3E%3Cpath d='M50 75C72 80 90 72 96 58C78 58 60 64 50 75Z'/%3E%3Cpath d='M10 88Q50 98 90 88'/%3E%3C/svg%3E"); }
}
.cta > * { position: relative; }
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--bg); opacity: 0.8; max-width: 36rem; }
.cta .kicker { color: var(--gold); }
.cta .btn-ghost { border-color: var(--bg); color: var(--bg); }
.cta .btn-ghost:hover { background: var(--bg); color: var(--ink); }

.table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 700; }

.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .ic { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 3px; }

/* Vragen en antwoorden */
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--accent); font-weight: 800; font-size: 1.4rem; line-height: 1; flex: none;
  transition: transform 0.2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq > div { padding: 0 0 18px; color: var(--muted); max-width: 44rem; }
.faq > div p + p { margin-top: 10px; }

/* Knoppen en formulieren */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(0.92); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: 0.6; cursor: wait; }

.form { display: grid; gap: 16px; max-width: 42rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field small { color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181, 41, 42, 0.18); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--accent); }
.form-note { font-size: 0.9rem; color: var(--muted); }

/* Voettekst */
.foot {
  border-top: 3px solid var(--gold); padding: 36px var(--gutter) 28px; margin-top: 24px;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px 40px; font-size: 0.92rem; color: var(--muted);
}
.foot-brand b { font-size: 1.1rem; color: var(--ink); }
.foot-brand p { margin-top: 8px; max-width: 26rem; }
.foot-nav { list-style: none; padding: 0; display: grid; gap: 6px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-nav a[aria-current="page"] { color: var(--ink); }
.foot-meta { display: grid; gap: 10px; align-content: start; }
.foot-cta { font-weight: 700; color: var(--accent) !important; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr; } }

/* Foutpagina */
.err-page { padding: 64px var(--gutter) 24px; }

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