/* Raamdecoratiekiezen.nl — design system (mobile-first) */
:root {
  --ink: #23201b;
  --ink-soft: #5f584d;
  --bg: #faf8f5;
  --bg-alt: #f3ece3;
  --card: #ffffff;
  --accent: #b05c2a;
  --accent-dark: #8a4520;
  --accent-soft: #f6ede3;
  --line: #e7ded2;
  --ok: #2e6b3f;
  --warn: #a33b3b;
  --max: 78rem;
  --text-max: 46rem;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(35,32,27,.04), 0 6px 20px rgba(35,32,27,.06);
  --shadow-lg: 0 8px 30px rgba(35,32,27,.12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.5) blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 1rem;
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.5rem;
}
.logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a[aria-current="page"],
.site-nav a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }

/* ---------- Layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1rem 3.5rem; }

h1 { font-size: 1.9rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0.5rem 0 0.5rem; }
h2 { font-size: 1.4rem; line-height: 1.3; letter-spacing: -0.01em; margin: 2.25rem 0 0.6rem; }
h3 { font-size: 1.12rem; margin: 1.5rem 0 0.35rem; }
p, ul, ol { margin: 0.7rem 0; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: var(--text-max); }

/* Constrain running text for readability; visuals span full width */
main > p, main > ul, main > ol, main > h2, main > h3,
main > details, main > .callout, main > .lead { max-width: var(--text-max); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 0.5rem; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); text-decoration: underline; }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0.5rem 0 1.5rem;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero .hero-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1.25rem 1.4rem;
  background: linear-gradient(to top, rgba(20,17,13,.78), rgba(20,17,13,.15) 70%, transparent);
  color: #fff;
}
.hero .hero-body h1 { color: #fff; margin: 0 0 0.4rem; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero .hero-body p { color: rgba(255,255,255,.92); margin: 0 0 0.9rem; max-width: 40rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-outline { background: transparent; color: var(--accent-dark); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }

/* ---------- Section band ---------- */
.band { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 1.25rem; margin: 1.75rem 0; }
.band > :first-child { margin-top: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin: 0 0 0.25rem; }

/* ---------- Card grid ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 0; margin: 1.25rem 0; list-style: none; }
.grid-2 { grid-template-columns: 1fr; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.card h3 { margin: 0 0 0.15rem; font-size: 1.08rem; }
.card p { margin: 0.1rem 0; font-size: 0.95rem; color: var(--ink-soft); }
.card .price { color: var(--ink); font-weight: 700; font-size: 0.95rem; margin-top: auto; padding-top: 0.5rem; }
.card a.stretch { text-decoration: none; color: inherit; }
.card a.stretch::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card h3 a { color: inherit; text-decoration: none; }
.card:hover h3 a { color: var(--accent-dark); }

/* Compact link list card */
.linklist { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.5rem; grid-template-columns: 1fr; }
.linklist a {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.75rem 1rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: border-color .12s, transform .12s;
}
.linklist a:hover { border-color: var(--accent); transform: translateX(2px); }
.linklist a strong { color: var(--accent-dark); }

/* ---------- Badges / meta ---------- */
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-size: 0.8rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 999px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin: 0.75rem 0 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.15rem 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: var(--card); }
caption { text-align: left; font-size: 0.85rem; color: var(--ink-soft); padding: 0.5rem 0.65rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
thead th { background: var(--bg-alt); border-bottom: 2px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fbf7f2; }

/* ---------- Pros / cons ---------- */
.pros-cons { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.25rem 0; }
.pros, .cons { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.pros h3, .cons h3 { margin-top: 0; display: flex; align-items: center; gap: 0.4rem; }
.pros h3 { color: var(--ok); }
.cons h3 { color: var(--warn); }
.pros ul, .cons ul { margin: 0; padding-left: 1.2rem; }
.pros li, .cons li { margin: 0.25rem 0; }

/* ---------- Callout ---------- */
.callout { background: var(--accent-soft); border: 1px solid #ecdcc8; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 0.95rem 1.15rem; margin: 1.4rem 0; }
.callout p { margin: 0.3rem 0; }
.callout.warn { background: #fbf0ef; border-color: #f0d6d4; border-left-color: var(--warn); }

/* ---------- Feature row (icons/steps) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.75rem; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem 0.9rem 3.2rem; box-shadow: var(--shadow); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0.9rem; top: 0.9rem; width: 1.7rem; height: 1.7rem; background: var(--accent); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }

/* ---------- FAQ ---------- */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 1.1rem; margin: 0.55rem 0; box-shadow: var(--shadow); }
details[open] { border-color: #e0ccb4; }
summary { font-weight: 600; cursor: pointer; list-style-position: outside; }
summary::marker { color: var(--accent); }

/* ---------- Figures ---------- */
figure { margin: 1.25rem 0; }
figure.media { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow); }
figure.media img { display: block; width: 100%; height: auto; }
figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: #201c17; color: #cfc6ba; margin-top: 3rem; padding: 2rem 1rem 1.5rem; font-size: 0.92rem; }
.site-footer .inner { max-width: var(--max); margin: 0 auto; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
.foot-grid h4 { color: #fff; font-size: 0.95rem; margin: 0 0 0.5rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.foot-grid a { color: #cfc6ba; text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-legal { border-top: 1px solid #3a342c; margin-top: 1.5rem; padding-top: 1rem; font-size: 0.82rem; color: #9c9384; }

/* ---------- Responsive ---------- */
@media (min-width: 40rem) {
  h1 { font-size: 2.3rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .pros-cons { grid-template-columns: 1fr 1fr; }
  .linklist { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .hero .hero-body { padding: 2rem 2rem 2rem; }
}
@media (min-width: 60rem) {
  body { font-size: 1.125rem; }
  main { padding: 2rem 2rem 4.5rem; }
  .site-header { padding: 0.9rem 2rem; }
  .site-nav { margin-left: auto; font-size: 1rem; }
  h1 { font-size: 2.9rem; }
  h2 { font-size: 1.7rem; }
  .lead { font-size: 1.32rem; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .hero .hero-body { padding: 2.5rem 2.75rem; max-width: 60%; background: linear-gradient(to right, rgba(20,17,13,.82), rgba(20,17,13,.35) 80%, transparent); inset: 0 auto 0 0; display: flex; flex-direction: column; justify-content: center; }
  .hero .hero-body h1 { font-size: 2.9rem; }
  .band { padding: 2rem 2.25rem; }
  table { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
