/*
 * Stallingboek public site. Palette from the subject: a farm yard in the polder with painted parking bays.
 * Pine (barn wood, hedges), marking yellow (bay lines), asphalt (yard surface), a pale sky tint for bands.
 * Signature: the yellow bay lines (logo, hero strip, the .bay box).
 */
:root {
    --bg: #f4f6f3;
    --surface: #ffffff;
    --text: #1c2622;
    --muted: #55625b;
    --line: #d6ddd7;
    --pine: #1f4a3a;
    --pine-2: #2b5f4b;
    --on-pine: #f2f6f3;
    --on-pine-muted: #c9dbd1;
    --accent: #1f4a3a;
    --accent-text: #ffffff;
    --marking: #f2c230;
    --marking-text: #1c2622;
    --asphalt: #2e3a36;
    --sky: #e3ecea;
    --ok-bg: #e4efe8;
    --err-bg: #fbeaea;
    --err: #9b1c1c;
    --shadow: 0 18px 40px -18px rgb(28 38 34 / .45);
    --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #141c19;
        --surface: #1b2622;
        --text: #e7ece9;
        --muted: #a5b1ab;
        --line: #30403a;
        --pine: #1f4a3a;
        --pine-2: #275644;
        --accent: #9fd3b8;
        --accent-text: #10201a;
        --sky: #19251f;
        --ok-bg: #18302a;
        --err-bg: #3a1c1c;
        --err: #fca5a5;
        --shadow: 0 18px 40px -18px rgb(0 0 0 / .7);
        color-scheme: dark;
    }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.6 var(--font); }
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: .005em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: 44px; line-height: 1.08; margin: 0 0 14px; }
h2 { font-size: 30px; line-height: 1.15; margin: 40px 0 12px; }
h3 { font-size: 22px; line-height: 1.2; margin: 0 0 6px; }
.lead { font-size: 20px; color: var(--muted); }
.muted { color: var(--muted); }

/* Header */
header.site { background: var(--surface); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 68px; gap: 16px; }
header.site .brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--text); text-decoration: none; }
header.site .brand img { width: 36px; height: 36px; }
main { padding: 32px 0 56px; }
main.has-hero { padding-top: 0; }

/* Buttons */
.btn { display: inline-block; background: var(--marking); color: var(--marking-text); border: 2px solid var(--marking); border-radius: 8px; padding: 12px 22px; font: 600 18px/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.05); }
.btn.secondary { background: transparent; color: var(--accent); border-color: currentColor; }
.btn.small { padding: 7px 14px; font-size: 16px; white-space: nowrap; }
.btn.on-pine { background: transparent; color: var(--on-pine); border-color: rgb(255 255 255 / .55); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0 0; }

/* Signature: bay lines seen from above */
.bays { height: 16px; background: var(--asphalt) repeating-linear-gradient(90deg, var(--marking) 0 5px, transparent 5px 112px); background-position: 20px 0; }

/* Generic photo hero (yard page, guides, pilot) */
.hero { position: relative; color: var(--on-pine); background: var(--pine); overflow: hidden; }
.hero img.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(31 74 58 / .94) 0%, rgb(31 74 58 / .82) 42%, rgb(31 74 58 / .15) 78%); }
.hero__inner { position: relative; z-index: 1; padding: 76px 20px 60px; }
.hero__card { max-width: 580px; }
.hero__card h1 { color: #fff; }
.hero__card p { color: var(--on-pine-muted); font-size: 20px; }
.hero__credit { position: absolute; z-index: 1; right: 16px; bottom: 6px; max-width: calc(100% - 32px); font-size: 12px; color: rgb(255 255 255 / .8); }
.hero__credit a { color: inherit; }
.hero--slim .hero__inner { padding: 44px 20px 32px; }
.hero .crumbs { color: inherit; opacity: .9; }

/* Home: product hero */
.phero { background: var(--pine); color: var(--on-pine); overflow: hidden; }
.phero .wrap { display: grid; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.phero h1 { color: #fff; font-size: 52px; }
.phero p { color: var(--on-pine-muted); font-size: 20px; }
.phero__proof { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 6px; color: var(--on-pine); font-size: 17px; }
.phero__proof li { display: flex; gap: 10px; align-items: baseline; }
.phero__proof li::before { content: ""; flex: none; width: 4px; height: 14px; background: var(--marking); border-radius: 1px; transform: translateY(1px); }
.phero__visual { position: relative; min-height: 300px; }
.phero__photo { width: 100%; height: 100%; min-height: 300px; object-fit: cover; border-radius: 14px; display: block; opacity: .9; }
.shot { display: block; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgb(0 0 0 / .08); }
.shot__bar { display: flex; gap: 6px; padding: 8px 12px; background: #e9eeeb; }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c3ccc7; }
.shot img { display: block; width: 100%; height: auto; }
.phero .shot { position: absolute; left: -28px; right: 48px; bottom: -36px; }
.phero__credit { position: absolute; right: 10px; top: 8px; font-size: 12px; color: rgb(255 255 255 / .85); }
@media (min-width: 900px) { .phero .wrap { grid-template-columns: 1fr 1.1fr; } .phero__visual { min-height: 420px; } .phero__photo { min-height: 420px; } }
@media (max-width: 899px) { .phero__visual { min-height: 0; } .phero__photo { height: 220px; min-height: 0; } .phero .shot { position: relative; left: 0; right: 0; bottom: 0; margin: -70px 14px 0; } }

/* Home: feature rows with real screens */
.rows { display: grid; gap: 56px; margin: 56px 0; }
.row { display: grid; gap: 28px; align-items: center; }
.row__text .picto { margin-bottom: 10px; }
.row__text p { margin: 0 0 10px; }
@media (min-width: 860px) { .row { grid-template-columns: 1fr 1.15fr; } .row--flip .row__text { order: 2; } }

/* Home: reasons as a list, no boxes */
.points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 22px 40px; }
.points li { display: flex; gap: 16px; align-items: flex-start; }
.points strong { display: block; font-family: var(--font-head); font-size: 21px; }
.points p { margin: 2px 0 0; color: var(--muted); }
@media (min-width: 760px) { .points { grid-template-columns: 1fr 1fr; } }

/* Bands */
.band { background: var(--sky); padding: 48px 0; margin: 48px 0; }
main > .band:last-child { margin-bottom: -56px; }
.band h2 { margin-top: 0; }
.band--pine { background: var(--pine); color: var(--on-pine); }
.band--pine h2 { color: #fff; }
.band--pine p { color: var(--on-pine-muted); }
.band--pine a:not(.btn) { color: #fff; }

/* Prices */
.prices { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 20px; }
.prices table td, .prices table th { padding: 14px 8px; }
.prices tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; background: var(--marking); color: var(--marking-text); font-weight: 600; font-size: 15px; border-radius: 999px; padding: 3px 12px; }

/* Content blocks shared by other pages */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 16px 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.bay { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; box-shadow: inset 4px 0 0 var(--marking), inset -4px 0 0 var(--marking); }
.bay .picto { margin-bottom: 10px; }
.bay strong { display: block; font-family: var(--font-head); font-size: 21px; }
a.bay--link { display: block; color: inherit; text-decoration: none; }
a.bay--link:hover strong, a.bay--link:focus-visible strong { text-decoration: underline; }
a.bay--link p { margin-bottom: 0; }
.picto { display: block; width: 48px; height: 48px; flex: none; }
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 24px 0; }
.fact { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.fact strong { display: block; font-family: var(--font-head); font-size: 19px; }
.split { display: grid; gap: 28px; align-items: center; }
.split img { border-radius: 12px; width: 100%; height: auto; }
.split .picto { width: 48px; height: 48px; border-radius: 6px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } }

/* Forms and tables */
label { display: block; font-weight: 600; margin: 14px 0 4px; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in oklab, var(--marking) 70%, transparent); outline-offset: 1px; border-color: var(--pine-2); }
input[type=checkbox], input[type=radio] { width: auto; margin-right: 8px; accent-color: var(--pine-2); }
@media (prefers-color-scheme: dark) { input[type=checkbox], input[type=radio] { accent-color: var(--marking); } }
.check { font-weight: 400; display: flex; align-items: flex-start; }
.status { background: var(--ok-bg); padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.errors { background: var(--err-bg); color: var(--err); padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-head); font-size: 17px; }
.num { text-align: right; white-space: nowrap; }
.hp { position: absolute; left: -10000px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots label { font-weight: 400; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--surface); display: flex; align-items: center; }
details.day { border-top: 1px solid var(--line); padding: 8px 0; }
details.day summary { cursor: pointer; font-weight: 600; }

/* Footer */
footer.site { background: var(--asphalt); color: #c9d2cd; padding: 28px 0 32px; font-size: 15px; }
footer.site a { color: #e7ece9; }
footer.site .legal-links { margin-top: 8px; }

/* Legal, pilot, guides */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal table { display: block; overflow-x: auto; margin: 16px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pilot-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.pilot-steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.pilot-steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 6px; background: var(--pine); color: #fff; font-weight: 700; display: grid; place-items: center; box-shadow: inset 3px 0 0 var(--marking), inset -3px 0 0 var(--marking); }
.pilot-steps strong { display: block; }
details.faq { border-top: 1px solid var(--line); padding: 12px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 8px 0 0; }
.crumbs { font-size: 15px; margin-bottom: 8px; color: var(--muted); }
.crumbs a { color: inherit; }
.guide h2 { margin-top: 36px; }
.guide table { margin: 16px 0 8px; }
.sources a { overflow-wrap: anywhere; }
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media (max-width: 600px) {
    body { font-size: 17px; }
    .wrap { padding: 0 18px; }
    h1, .phero h1 { font-size: 34px; }
    h2 { font-size: 26px; }
    header.site .brand { font-size: 20px; line-height: 1.15; }
    header.site .brand img { width: 30px; height: 30px; }
    .hero::after { background: rgb(31 74 58 / .86); }
    .table-wrap { overflow-x: auto; }
    .phero .wrap { padding-top: 40px; padding-bottom: 40px; }
}

/* Guide index: a plain list with bay-line dividers instead of a card grid. */
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--marking); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: block; padding: 18px 0; color: inherit; text-decoration: none; }
.guide-list strong { display: block; font-family: var(--font-head); font-size: 23px; color: var(--accent); }
.guide-list p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.guide-list a:hover strong, .guide-list a:focus-visible strong { text-decoration: underline; }
