/* Four Rivers Development — site styles. No external fonts or frameworks. */
:root {
  --bg: #f7f3ec; --surface: #fffdf9; --tint: #efe8dc; --text: #1d2b30; --muted: #4f5e64;
  --brand: #1f5a63; --brand-strong: #154047; --brand-soft: #d9e9e8; --accent: #b0603b; --line: #ddd3c4;
  --on-brand: #ffffff; --good: #2f6b3a; --warn: #8a5a00; --bad: #a3322a;
  --good-bg: #e4f0e2; --warn-bg: #f8ecd2; --bad-bg: #f7e1dd;
  --river-1: #8fb9bd; --river-2: #c9a78b; --river-3: #a9c3a4; --river-4: #b9c7d6;
  --radius: 14px; --shadow: 0 1px 2px rgba(29,43,48,.06), 0 8px 24px rgba(29,43,48,.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #13222a; --surface: #1a2d35; --tint: #172931; --text: #ede7dc; --muted: #b4bec0;
  --brand: #84c7cb; --brand-strong: #a9dcdf; --brand-soft: #1f3d44; --accent: #e3a27f; --line: #2d434c;
  --on-brand: #0f2328; --good: #8fd49b; --warn: #f0c46a; --bad: #f4a097;
  --good-bg: #1c3a26; --warn-bg: #3a3018; --bad-bg: #42221f;
  --river-1: #3b6b70; --river-2: #6b5545; --river-3: #4c6a4b; --river-4: #4b5d70;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.3rem); }
h3, .h3 { font-size: 1.3rem; }
h1 em { font-style: italic; color: var(--brand); }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--brand); color: var(--on-brand); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.brand-sub { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: .75rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.btn) { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .97rem; }
.site-nav a:not(.btn):hover { background: var(--tint); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav-cta { margin-left: .4rem; }
.theme-toggle, .nav-toggle { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-toggle { display: none; border-radius: 10px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { display: none; position: absolute; inset: 4.25rem 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a:not(.btn) { padding: .8rem .5rem; font-size: 1.05rem; }
  .site-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 3px 0 0 var(--brand); padding-left: .9rem; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .theme-toggle { align-self: flex-start; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.35rem; border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: var(--on-brand); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-strong); }
.btn-small { min-height: 2.6rem; padding: .5rem 1rem; font-size: .95rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; transform: none; }
.text-link { font-weight: 600; }
.text-link::after { content: " →"; }

/* Sections */
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.eyebrow a { color: inherit; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 42rem; }
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.hero-inner { position: relative; }
.hero h1 { max-width: 18ch; }
.hero-rivers { position: absolute; top: 0; right: 0; width: 58%; height: 100%; opacity: .8; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent 20%, #000 60%); mask-image: linear-gradient(to right, transparent 20%, #000 60%); }
.hero-rivers path, .footer-rivers path { fill: none; stroke-width: 3; stroke-linecap: round; }
.hero-rivers path:nth-child(1), .footer-rivers path:nth-child(1) { stroke: var(--river-1); }
.hero-rivers path:nth-child(2), .footer-rivers path:nth-child(2) { stroke: var(--river-2); }
.hero-rivers path:nth-child(3), .footer-rivers path:nth-child(3) { stroke: var(--river-3); }
.hero-rivers path:nth-child(4), .footer-rivers path:nth-child(4) { stroke: var(--river-4); }
@media (max-width: 900px) { .hero-rivers { width: 100%; opacity: .22; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.page-hero { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--tint), var(--bg)); }
.quick-check, .checker-form { max-width: 38rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem .6rem; box-shadow: var(--shadow); }
.quick-check label, .checker-form label { font-weight: 600; display: block; margin-bottom: .4rem; }
.quick-check-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.quick-check-row input { flex: 1 1 14rem; }
input[type="text"], input[type="email"], input[type="url"], select, textarea { width: 100%; min-height: 3rem; padding: .65rem .9rem; border: 1.5px solid color-mix(in srgb, var(--muted) 55%, var(--line)); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--brand); outline-offset: 1px; }

/* Steps & cards */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step-num { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin-bottom: .9rem; }
.cards { display: grid; gap: 1.25rem; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card-feature { border: 2px solid var(--brand); }
.card-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); background: var(--brand-soft); padding: .2rem .6rem; border-radius: 999px; margin-bottom: .8rem; }
.card-tag-concept { color: var(--warn); background: var(--warn-bg); }
.price { font-family: var(--serif); margin-bottom: .8rem; }
.price-amount { font-size: 2rem; font-weight: 700; color: var(--text); }
.price-lg .price-amount { font-size: 2.6rem; }
.price-note, .price-from { font-family: var(--sans); color: var(--muted); font-size: .95rem; }
.work-card img { border-radius: 10px; border: 1px solid var(--line); margin-bottom: 1.1rem; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.split { display: grid; gap: 2rem; align-items: center; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.split-wide { align-items: start; }
.callout { background: var(--brand-soft); border-radius: var(--radius); padding: 1.75rem; }
.callout > :last-child { margin-bottom: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 1.8rem; margin-bottom: .55rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .55em; width: .9rem; height: .5rem; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.columns-2 { columns: 2 16rem; column-gap: 2rem; }
.columns-2 li { break-inside: avoid; }
.cta-band { background: var(--brand-soft); text-align: center; }
.cta-inner { max-width: 44rem; }
.cta-inner .hero-actions { justify-content: center; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 2rem; }
.faq p { margin: .6rem 0 0; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; margin-bottom: .4rem; font-size: 1.2rem; }
.shot-pair { margin: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
.shot-pair img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot-pair .shot-mobile { max-width: 260px; }
.shot-pair figcaption { grid-column: 1 / -1; }
@media (min-width: 760px) { .shot-pair { grid-template-columns: 1fr 240px; } }

/* Forms */
.field-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field-full { grid-column: 1 / -1; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; }
.checkbox input { width: 1.35rem; height: 1.35rem; margin-top: .2rem; flex: none; accent-color: var(--brand); }
.checkbox label { font-weight: 400; }
.req { color: var(--bad); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-form { position: relative; }
.turnstile-slot { margin: 1rem 0; min-height: 1px; }
.form-error { color: var(--bad); font-weight: 600; }
.form-status:not(:empty) { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 10px; }
.form-status.is-ok { background: var(--good-bg); color: var(--text); }
.form-status.is-error { background: var(--bad-bg); color: var(--text); }

/* Checker report */
.report-summary { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.score-ring { --score: 0; --ring: var(--brand); width: 7.5rem; height: 7.5rem; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ring) calc(var(--score) * 1%), var(--tint) 0); }
.score-ring span { display: grid; place-items: center; width: 5.9rem; height: 5.9rem; border-radius: 50%; background: var(--surface); font: 700 2rem/1 var(--serif); }
.score-ring small { display: block; font: 400 .75rem/1 var(--sans); color: var(--muted); margin-top: .2rem; }
.report-summary h2 { margin-bottom: .3rem; font-size: 1.6rem; overflow-wrap: anywhere; }
.report-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .92rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 520px) { .report-summary { grid-template-columns: 1fr; justify-items: start; } }
.report-group { margin-bottom: 1.5rem; }
.report-group h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.check-item { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; background: var(--surface); border: 1px solid var(--line); border-left-width: 5px; border-radius: 10px; padding: .85rem 1rem; }
.check-item.pass { border-left-color: var(--good); }
.check-item.warn { border-left-color: var(--warn); }
.check-item.fail { border-left-color: var(--bad); }
.check-item.info { border-left-color: var(--line); }
.badge { grid-row: span 2; align-self: start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .2rem .55rem; border-radius: 999px; min-width: 4.4rem; text-align: center; }
.pass .badge { background: var(--good-bg); color: var(--good); }
.warn .badge { background: var(--warn-bg); color: var(--warn); }
.fail .badge { background: var(--bad-bg); color: var(--bad); }
.info .badge { background: var(--tint); color: var(--muted); }
.check-item strong { display: block; }
.check-item p { margin: 0; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.check-item .fix { color: var(--text); margin-top: .3rem; }
.psi { margin: 1.5rem 0; }
.psi-score { font: 700 1.6rem/1.2 var(--serif); }
.report-cta { margin-top: 1.5rem; }
.spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { position: relative; background: var(--tint); border-top: 1px solid var(--line); padding: 3.5rem 0 2rem; margin-top: 0; }
.footer-rivers { position: absolute; top: -1px; left: 0; width: 100%; height: 40px; opacity: .7; }
.footer-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: .3rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.footer-links a { display: inline-block; padding: .3rem 0; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
[tabindex="-1"]:focus { outline: none; }
.price-vat { margin-top: 1.25rem; }
.terms { margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.terms div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.terms dt { font-weight: 600; }
.terms dd { margin: 0; color: var(--muted); }
@media (max-width: 480px) { .terms div { grid-template-columns: 1fr; gap: .15rem; } }
.steps-list { padding-left: 1.25rem; }
.steps-list li { margin-bottom: .6rem; }
