/* Stuut Ouwens Belastingadviseurs: stylesheet (N1D, 2026)
   Bron: site/src/style.css, wordt door build.py met versienummer naar public/assets/css/ gekopieerd. */

@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("/assets/fonts/raleway-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #981914;
  --red-700: #7a130f;
  --red-50: #f9efee;
  --ink: #1d1d1b;
  --text: #34332f;
  --muted: #5f5d5a;
  --bg: #ffffff;
  --soft: #f5f3f0;
  --line: #e6e1dc;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(29, 29, 27, .06), 0 12px 32px -12px rgba(29, 29, 27, .18);
  --wrap: 1180px;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Raleway", "Lato", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-700); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.35em; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 32px; height: auto; }
.brand-word { width: 168px; height: auto; }
.nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-list a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; }
.nav-list a:hover, .nav-list a[aria-current="page"], .nav-list .is-active > a { color: var(--red); }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub { list-style: none; margin: 0; padding: 10px; position: absolute; left: -10px; top: 100%; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-weight: 400; padding: 9px 12px; }
.sub a:hover { background: var(--soft); }
.header-cta { display: none; }

.mobile-menu { position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--ink); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .bars, .mobile-menu .bars::before, .mobile-menu .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.mobile-menu .bars::before, .mobile-menu .bars::after { content: ""; position: absolute; left: 0; }
.mobile-menu .bars::before { top: -6px; }
.mobile-menu .bars::after { top: 6px; }
.mobile-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(88vw, 360px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 700; }
.mobile-panel a:hover, .mobile-panel a[aria-current="page"] { background: var(--soft); color: var(--red); }
.mobile-panel .sub-m a { font-weight: 400; padding-left: 26px; }
.mobile-panel .btn { width: 100%; justify-content: center; margin-top: 10px; }

@media (min-width: 980px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .mobile-menu { display: none; }
  .brand-mark { width: 36px; }
  .brand-word { width: 190px; }
  .header-inner { min-height: 84px; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20, 20, 19, .9) 0%, rgba(20, 20, 19, .72) 45%, rgba(20, 20, 19, .25) 100%); }
.hero-inner { padding: 88px 0 140px; max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: #fff; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4rem); margin-bottom: .35em; }
.hero-lead { font-size: 1.2rem; color: rgba(255, 255, 255, .9); max-width: 34em; margin-bottom: 1.8em; }
@media (min-width: 980px) { .hero-inner { padding: 130px 0 190px; } }

/* ---------- kaarten onder de hero ---------- */
.intro-cards { position: relative; z-index: 2; margin-top: -90px; }
.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h2, .card h3 { font-size: 1.2rem; margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--red-50); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; }
.contact-lines { margin: 0; font-style: normal; }
.contact-lines a { color: var(--ink); text-decoration: none; font-weight: 700; }
.contact-lines a:hover { color: var(--red); }

/* ---------- secties ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
@media (min-width: 980px) { .section { padding: 104px 0; } }

/* dienstkaarten */
.service-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service h3 { font-size: 1.22rem; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service p { color: var(--muted); font-size: 1rem; }
.service .more { margin-top: auto; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: 8px; }
.service .more svg { width: 18px; height: 18px; transition: transform .2s; }
.service:hover .more svg { transform: translateX(3px); }

/* RB-blok */
.rb { display: grid; gap: 36px; align-items: center; }
.rb-badge { width: 180px; justify-self: start; border-radius: 6px; }
@media (min-width: 860px) { .rb { grid-template-columns: 1fr 220px; gap: 64px; } .rb-badge { width: 220px; justify-self: end; } }
.rb p { color: var(--muted); }
.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.text-link svg { width: 18px; height: 18px; }

/* CTA-band */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--red); color: #fff; }
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(122, 19, 15, .9) 0%, rgba(152, 25, 20, .55) 100%); }
.cta-inner { padding: 72px 0; display: grid; gap: 24px; align-items: center; }
.cta h2 { color: #fff; margin: 0; max-width: 18em; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0; }
.cta .btn-primary { background: #fff; color: var(--red); }
.cta .btn-primary:hover { background: var(--ink); color: #fff; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; padding: 88px 0; } }

/* ---------- subpagina's ---------- */
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 40px 0 44px; }
.page-hero h1 { margin-bottom: .25em; }
.page-hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 46em; margin: 0; }
@media (min-width: 980px) { .page-hero { padding: 60px 0 64px; } }
.breadcrumb { font-size: .9rem; margin-bottom: 18px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #a8a39d; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

.layout { display: grid; gap: 40px; }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; } }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding: 0; margin: 0 0 1.4em; list-style: none; }
.prose li { position: relative; padding-left: 32px; margin-bottom: .55em; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--red-50); }
.prose li::after { content: ""; position: absolute; left: 8px; top: .62em; width: 5px; height: 9px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); }
.prose .lead-p { font-size: 1.15rem; color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); }
.quote { margin: 1.6em 0; padding: 22px 26px; border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; }
.quote p { margin: 0; }
.quote .quote-text { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: .2em 0 0; }

.aside-card { background: var(--ink); color: rgba(255, 255, 255, .86); border-radius: var(--radius); padding: 28px; }
.aside-card h2 { color: #fff; font-size: 1.3rem; }
.aside-card a:not(.btn) { color: #fff; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 10px; }
.aside-card .btn-outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.aside-card .btn-outline:hover { background: #fff; color: var(--ink); }
@media (min-width: 980px) { .aside-card { position: sticky; top: 110px; } }

.service-list { display: grid; gap: 18px; }
@media (min-width: 760px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
.service-list .card h2 { font-size: 1.25rem; }
.service-list .card h2 a { color: var(--ink); text-decoration: none; }
.service-list .card h2 a:hover { color: var(--red); }

.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.contact-photo { border-radius: var(--radius); }
.contact-big { font-size: 1.15rem; }
.contact-big dt { font-weight: 700; color: var(--ink); margin-top: 1em; }
.contact-big dd { margin: 0; }
.contact-big a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-big a:hover { color: var(--red); }

.download { display: flex; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); max-width: 560px; transition: box-shadow .2s, border-color .2s; }
.download:hover { box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.download .card-icon { margin: 0; flex: none; }
.download strong { display: block; }
.download span { color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 64px 0 0; font-size: .98rem; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-logo { width: 190px; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.footer-bottom { margin-top: 48px; border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer-n1d { display: block; margin-left: auto; }
.footer-n1d img { display: block; width: 28px; height: 28px; }

/* 404 */
.notfound { padding: 96px 0; text-align: left; }
.mobile-panel a.btn, .mobile-panel a.btn:hover { display: flex; padding: .85em 1.35em; border-radius: 999px; background: var(--red); color: #fff; }
.mobile-panel a.btn:hover { background: var(--red-700); }
