/* Lokaal Online - shared design system
   Used by our own site and by every generated client site. */

:root {
  --bg:        #fbf9f6;
  --surface:   #ffffff;
  --surface-2: #f4f1ea;
  --ink:       #17160f;
  --ink-soft:  #3d3a32;
  --muted:     #6d685e;
  --line:      #e4ded2;
  --accent:    #1f6b4f;
  --accent-dk: #17513c;
  --accent-lt: #e9f1ec;
  --accent-on-dark: #8fd3b4;
  --warn:      #a8471c;
  --warn-lt:   #fdf0e8;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(23,22,15,.05), 0 8px 24px -12px rgba(23,22,15,.14);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --condensed: "Haettenschweiler", "Arial Narrow", "Segoe UI", sans-serif;

  /* Per-client theming overrides these three. Everything else follows. */
  --font-heading: var(--serif);
  --heading-weight: 600;
  --heading-tracking: -0.015em;

  --wrap: 1080px;
  --gap: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.14;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 6vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.16rem; font-family: var(--sans); font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dk); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

strong { font-weight: 650; }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding-block: var(--gap); }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--surface-2); }

.lede {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section__head { max-width: 62ch; margin-bottom: 3rem; }

/* ---------- Skip link ---------- */

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,246,.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 680; font-size: 1.06rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 22px; height: 22px; flex: none; }
.brand__sub {
  font-weight: 450; color: var(--muted); font-size: .95rem;
  border-left: 1px solid var(--line); padding-left: .55rem; margin-left: .1rem;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 520;
}
.nav a:hover { color: var(--accent-dk); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.3rem;
  border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: .97rem;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .08s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-soft); color: var(--ink); }

.btn--sm { padding: .55rem 1rem; font-size: .9rem; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 6rem) var(--gap); }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 1.4rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero__proof {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  margin-top: 2.6rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: .93rem; color: var(--muted);
}
.hero__proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__proof span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* ---------- Grids and cards ---------- */

.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

.card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-lt); color: var(--accent-dk);
  font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}

/* ---------- Problem list ---------- */

.problems { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.problems li {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1.1rem 1.3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink-soft); font-size: .99rem;
}
.problems li::before {
  content: ""; flex: none; margin-top: .52em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--warn);
}

/* ---------- Price ---------- */

.price-lead {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.price-lead__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem; }
.price-lead__now {
  font-family: var(--font-heading); font-size: clamp(2.6rem, 7vw, 3.4rem);
  font-weight: 600; line-height: 1; letter-spacing: -0.02em;
}
.price-lead__was { color: var(--muted); text-decoration: line-through; font-size: 1.2rem; }
.price-lead__tag {
  background: var(--accent-lt); color: var(--accent-dk);
  border-radius: 100px; padding: .3rem .8rem;
  font-size: .82rem; font-weight: 650;
}
.price-lead__note {
  margin-top: 1rem; color: var(--warn); font-weight: 600; font-size: .96rem;
}

.includes { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .55rem; }
.includes li { display: flex; gap: .65rem; align-items: flex-start; font-size: .97rem; color: var(--ink-soft); }
.includes li::before {
  content: ""; flex: none; margin-top: .38em;
  width: 15px; height: 9px; border: 2px solid var(--accent); border-top: 0; border-right: 0;
  transform: rotate(-45deg);
}

.tiers { margin-top: 1.1rem; align-items: start; }

.tier {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; position: relative;
  display: flex; flex-direction: column; height: 100%;
}
.tier--featured { border-color: var(--accent); box-shadow: var(--shadow); }
.tier__flag {
  position: absolute; top: -.72rem; left: 1.5rem;
  background: var(--accent); color: #fff;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .22rem .7rem; border-radius: 100px;
}
.tier__name { font-size: 1.05rem; font-weight: 680; margin-bottom: .3rem; }
.tier__price { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 600; line-height: 1; }
.tier__price span { font-family: var(--sans); font-size: .92rem; font-weight: 500; color: var(--muted); }
.tier__list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.tier__list li { font-size: .95rem; color: var(--ink-soft); display: flex; gap: .6rem; }
.tier__list li::before { content: "+"; color: var(--accent); font-weight: 700; flex: none; }

.fineprint { margin-top: 1.6rem; font-size: .9rem; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.05rem 1.3rem;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; font-weight: 620; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--accent); font-size: 1.35rem; font-weight: 400; line-height: 1; flex: none;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: .85rem 0 0; color: var(--ink-soft); font-size: .97rem; max-width: 68ch; }

/* ---------- Form ---------- */

.form { display: grid; gap: 1rem; max-width: 560px; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .92rem; font-weight: 600; }
.field input, .field textarea {
  font: inherit; font-size: 1rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.field textarea { min-height: 130px; resize: vertical; }
.field--opt label::after { content: " (optioneel)"; font-weight: 400; color: var(--muted); }

.form__note { font-size: .88rem; color: var(--muted); }

/* Honeypot. Off-screen rather than display:none, because some bots skip
   anything that is hidden outright. Kept out of the tab order and out of the
   accessibility tree so no real visitor ever meets it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  font-size: .95rem; padding: .8rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2);
}
.form__status[hidden] { display: none; }
.form__status--ok { background: var(--accent-lt); border-color: var(--accent); color: var(--accent-dk); }
.form__status--bad { background: var(--warn-lt); border-color: var(--warn); color: var(--warn); }

button[disabled] { opacity: .6; cursor: progress; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* ---------- Contact details block ---------- */

.contact-split { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-split { grid-template-columns: 1.1fr .9fr; } }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; }
.contact-list dd { margin: .15rem 0 0; font-size: 1.02rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.6rem 3rem;
  font-size: .92rem; color: var(--muted);
}
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-start; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }
.legal { margin-top: .8rem; line-height: 1.7; }

/* ---------- Placeholders that must not ship ---------- */

.todo {
  background: var(--warn-lt); color: var(--warn);
  border: 1px dashed var(--warn); border-radius: 5px;
  padding: 0 .35rem; font-size: .9em; font-weight: 600; white-space: nowrap;
}

/* ---------- Demo banner (client demo sites only) ---------- */

.demo-banner {
  background: var(--warn); color: #fff;
  text-align: center; padding: .7rem 1.2rem;
  font-size: .93rem; font-weight: 550; line-height: 1.5;
}
.demo-banner a { color: #fff; }
.demo-banner--draft { background: var(--accent-dk); }

/* ---------- Client site extras ---------- */

.hours { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; max-width: 340px; }
.hours li { display: flex; justify-content: space-between; gap: 1.5rem; font-size: .97rem; padding-block: .2rem; border-bottom: 1px dotted var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours .day { color: var(--ink-soft); }
.hours .time { font-variant-numeric: tabular-nums; color: var(--muted); }

.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 640px) {
  .nav { display: none; }
  .site-header__inner { gap: .8rem; }
  .brand__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   Icons
   ========================================================================== */

.icon { width: 22px; height: 22px; flex: none; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-lt); color: var(--accent-dk);
  margin-bottom: 1.1rem;
}
.icon-badge .icon { width: 21px; height: 21px; }

.icon-inline { display: inline-flex; align-items: center; gap: .5rem; }
.icon-inline .icon { width: 18px; height: 18px; color: var(--accent); }

.hero__proof span::before { display: none; }
.hero__proof .icon { width: 16px; height: 16px; color: var(--accent); }

/* ==========================================================================
   Hero variants
   ========================================================================== */

.hero--split .hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero--split .hero__grid { grid-template-columns: 1.05fr .95fr; }
}
.hero--split h1 { max-width: 15ch; }

/* centered: quiet and airy, for anything selling calm rather than urgency */
.hero--centered { text-align: center; padding-block: clamp(4rem, 10vw, 7.5rem); }
.hero--centered h1 { max-width: 20ch; margin-inline: auto; }
.hero--centered .lede { margin-inline: auto; }
.hero--centered .hero__actions { justify-content: center; }
.hero--centered .hero__proof { justify-content: center; max-width: 44rem; margin-inline: auto; }

.hero--banner {
  background: var(--ink);
  color: #f4f2ec;
  padding-block: clamp(4rem, 10vw, 7rem);
}
.hero--banner h1 { color: #fff; max-width: 18ch; }
.hero--banner .lede { color: #cfcabd; }
.hero--banner .eyebrow { color: var(--accent-on-dark); }
.hero--banner .hero__proof { border-top-color: rgba(255,255,255,.16); color: #b9b3a6; }
.hero--banner .hero__proof .icon { color: var(--accent-on-dark); }
.hero--banner .btn--ghost { color: #fff; border-color: rgba(255,255,255,.32); }
.hero--banner .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ==========================================================================
   Browser mock: shows real work without needing a photograph
   ========================================================================== */

.mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 60px -30px rgba(23,22,15,.45), 0 2px 6px rgba(23,22,15,.06);
  overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .6rem .85rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: #d6d0c4; flex: none; }
.mock__url {
  margin-left: .5rem; flex: 1;
  background: var(--bg); border: 1px solid var(--line); border-radius: 100px;
  font-size: .72rem; color: var(--muted); padding: .2rem .7rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock__body { padding: 1.4rem 1.5rem 1.6rem; }
.mock__eyebrow { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.mock__title { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.2; margin: .45rem 0 .6rem; }
.mock__line { height: 7px; border-radius: 4px; background: var(--surface-2); margin-bottom: .45rem; }
.mock__line--short { width: 62%; }
.mock__row { display: flex; gap: .5rem; margin-top: 1.1rem; }
.mock__chip { height: 26px; border-radius: 7px; background: var(--accent); width: 88px; flex: none; }
.mock__chip--ghost { background: transparent; border: 1px solid var(--line); width: 70px; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.3rem; }
.mock__card { height: 52px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }

/* ==========================================================================
   Before / after
   ========================================================================== */

.ba { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .ba { grid-template-columns: 1fr 1fr; } }

.ba__item { display: flex; flex-direction: column; gap: .9rem; }
.ba__label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ba__label--old { color: var(--warn); }
.ba__label--new { color: var(--accent); }

.ba__frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; padding: 1.1rem; font-size: .8rem;
}
.ba__frame--old {
  background: #dfdfdf; border-color: #bdbdbd;
  font-family: "Times New Roman", Times, serif; color: #202080;
}
.ba__frame--old .t1 { font-size: 1.3rem; font-weight: 700; color: #000080; text-align: center; text-decoration: underline; }
.ba__frame--old .t2 { text-align: center; color: #800000; margin: .3rem 0 .8rem; font-size: .72rem; }
.ba__frame--old .box { background: #c0c0c0; border: 2px outset #f0f0f0; padding: .3rem .5rem; margin-bottom: .4rem; color: #000; }
.ba__frame--old .row { display: flex; gap: .3rem; }
.ba__frame--old .row .box { flex: 1; text-align: center; font-size: .68rem; margin-bottom: 0; }

.ba__frame--new { background: var(--surface); display: flex; flex-direction: column; gap: .5rem; }
.ba__frame--new .n-eyebrow { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.ba__frame--new .n-title { font-family: var(--font-heading); font-size: 1.1rem; line-height: 1.15; }
.ba__frame--new .n-line { height: 6px; border-radius: 4px; background: var(--surface-2); }
.ba__frame--new .n-cta { height: 24px; width: 96px; border-radius: 7px; background: var(--accent); margin-top: .3rem; }
.ba__frame--new .n-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .4rem; margin-top: auto; }
.ba__frame--new .n-card { height: 40px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); }

.ba__caption { font-size: .92rem; color: var(--muted); }

/* ==========================================================================
   Services as a list (alternative to cards)
   ========================================================================== */

.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-list__row {
  display: grid; gap: .8rem 1.4rem; align-items: start;
  grid-template-columns: auto 1fr;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .svc-list__row { grid-template-columns: auto 15rem 1fr; align-items: center; }
}
.svc-list__row h3 { margin: 0; }
.svc-list__row p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.svc-list__row .icon-badge { margin-bottom: 0; }

/* ==========================================================================
   Gallery strip
   ========================================================================== */

.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.gallery__item {
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  border: 1px dashed var(--line); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem; text-align: center; padding: 1rem;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.gallery__item:has(img) { border-style: solid; padding: 0; }

/* One strong photo instead of a grid of weak ones. */
.feature-photo { margin: 0; }
.feature-photo img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 16 / 9; object-fit: cover;
}
.feature-photo figcaption {
  margin-top: .9rem; font-size: .93rem; color: var(--muted);
}

/* ==========================================================================
   Quote
   ========================================================================== */

.quote {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 1.7rem 1.9rem;
}
.quote p {
  font-family: var(--font-heading); font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.45; color: var(--ink);
}
.quote footer { margin-top: .9rem; font-size: .92rem; color: var(--muted); }
