/*
Theme Name: Dautzenberg
Description: Licht thema voor Bouwkundig Dakdekkersbedrijf Dautzenberg BV, gebouwd naar voorbeeld/index.html.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: dautzenberg
Update URI: false
*/

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red: #d42a2a;
  --red-dark: #b01f1f;
  --ink: #24272a;
  --ink-soft: #4a4f55;
  --muted: #6d737a;
  --line: #e4e2dd;
  --paper: #ffffff;
  --sand: #f5f3ef;
  --radius: 10px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: "Manrope", system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--red); margin-bottom: .8em; display: block; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .9em 1.4em; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; transition: background .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ── Header ── */
.topbar { background: var(--ink); color: #d9dbdd; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar header.site { top: 32px; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 44px; height: 36px; }
.logo .name { font-weight: 800; font-size: 1.35rem; color: var(--red); letter-spacing: .02em; line-height: 1; }
.logo .sub { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .08em; margin-top: 3px; }
nav.main { display: flex; align-items: center; gap: 6px; }
nav.main ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
nav.main ul a { display: block; text-decoration: none; font-weight: 600; padding: .55em .9em; border-radius: 999px; color: var(--ink-soft); }
nav.main ul a:hover, nav.main .current-menu-item > a, nav.main .current_page_item > a, nav.main .current-menu-ancestor > a { color: var(--ink); background: var(--sand); }
nav.main .btn { padding: .65em 1.2em; margin-left: 8px; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ── Hero ── */
.hero { position: relative; color: #fff; min-height: 620px; display: flex; align-items: flex-end; background: #1d2023; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,24,.1) 0%, rgba(20,22,24,.75) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 72px; width: 100%; }
.hero .eyebrow { color: #ffb3b3; }
.hero h1 { max-width: 15em; }
.hero p { font-size: 1.2rem; max-width: 36em; color: #eceef0; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ── Trust strip ── */
.trust { background: var(--red); color: #fff; }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.trust div { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: .95rem; }
.trust svg { width: 26px; height: 26px; flex: none; }

section.block { padding: 96px 0; }
section.sand { background: var(--sand); }

/* ── Pillars ── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0,0,0,.35); }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card ul { margin: 0 0 18px; padding-left: 1.1em; color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 700; color: var(--red); }

/* ── Projects ── */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.gallery.two { grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #ddd; }
.gallery figure[hidden] { display: none; }
.gallery a { display: block; text-decoration: none; color: inherit; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; font-weight: 700; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); }
.gallery figcaption span { display: block; font-weight: 500; font-size: .85rem; opacity: .85; }
.gallery a:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.empty { color: var(--muted); margin-top: 28px; }

/* ── Split ── */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; }
.checks li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ── CTA band ── */
.cta { background: var(--ink); color: #fff; padding: 72px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 18em; }
.cta p { color: #c7cace; margin: 8px 0 0; }

/* ── Page hero ── */
.page-hero { background: var(--ink); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-hero .wrap { position: relative; }
.page-hero .lead { color: #e0e3e6; }
.crumbs { font-size: .85rem; color: #c7cace; margin-bottom: 14px; }
.crumbs a { color: #fff; text-decoration: none; }

/* ── Service page ── */
.service-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.subservices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0 40px; }
/* In een klassiek thema zet de blokeditor de vakjes nog in een extra div. */
.subservices:has(> .wp-block-group__inner-container) { display: block; }
.subservices > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.subservice h3 { margin-top: 0; }
.subservice { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.subservice p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.aside { position: sticky; top: 100px; background: var(--sand); border-radius: var(--radius); padding: 28px; }
.aside p { color: var(--ink-soft); }
.aside .phone { font-size: 1.4rem; font-weight: 800; text-decoration: none; display: block; margin: 6px 0 18px; }
.aside .btn { width: 100%; justify-content: center; }
.aside small { display: block; color: var(--muted); margin-top: 14px; }

/* ── Tekst uit de editor ── */
.entry > :first-child { margin-top: 0; }
.entry.smal { max-width: 46em; }
.entry h2 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.2em; color: var(--ink-soft); }
.entry a { color: var(--red); }
.entry .wp-block-image img { border-radius: var(--radius); }
/* Tekst die de klant nog moet invullen; valt op, zodat hij niet ongemerkt online gaat. */
.entry mark.na-te-vragen { background: #fff3b0; color: var(--ink); padding: .1em .3em; border-radius: 4px; }
.privacy-noot { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.privacy-noot a { color: inherit; }

/* ── Projects page ── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .5em 1.1em; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-soft); text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Single project ── */
.project-meta { display: flex; gap: 8px 20px; flex-wrap: wrap; color: #e0e3e6; font-weight: 600; }
.project-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.project-photos img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.project-photos a:first-child { grid-column: 1 / -1; }
.project-photos a:first-child img { aspect-ratio: auto; }
.back { display: inline-block; margin-top: 40px; font-weight: 700; color: var(--red); text-decoration: none; }

/* ── Contact ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: .8em 1em; border: 1px solid #cfcbc4; border-radius: 8px; background: #fff; margin-bottom: 16px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.info-card { background: var(--sand); border-radius: var(--radius); padding: 28px; }
.info-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.info-card dt { color: var(--muted); }
.info-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ── Footer ── */
footer.site { background: #1b1d20; color: #b8bcc1; padding: 64px 0 28px; font-size: .95rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
footer.site a { text-decoration: none; color: #b8bcc1; display: block; margin-bottom: 6px; overflow-wrap: anywhere; }
footer.site a:hover { color: #fff; }
footer.site .logo { margin-bottom: 14px; }
footer.site .logo .sub { color: #b8bcc1; }
footer.site .base { border-top: 1px solid #33373b; margin-top: 44px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
footer.site .base a { display: inline; margin: 0; }

/* ── Mobile call bar ── */
.callbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
.callbar .btn { flex: 1; justify-content: center; padding: .8em; }

@media (max-width: 980px) {
  .pillars, .gallery { grid-template-columns: repeat(2, 1fr); }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .split, .service-layout, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .aside { position: static; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
  .admin-bar header.site { top: 0; }
}
@media (max-width: 760px) {
  .topbar { display: none; }
  nav.main { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
  nav.main ul { flex-direction: column; align-items: stretch; }
  nav.main .btn { margin: 8px 0 0; justify-content: center; }
  .menu-toggle { display: block; }
  .wrap { padding: 0 16px; }
  .hero { min-height: 540px; }
  .hero .wrap { padding-bottom: 48px; }
  section.block { padding: 64px 0; }
  .pillars, .gallery, .gallery.two, .subservices, .subservices > .wp-block-group__inner-container, .project-photos { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: 1fr; gap: 12px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .callbar { display: flex; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  /* Inloggen op een eigen regel, groot genoeg om aan te tikken. */
  footer.site .base .punt { display: none; }
  footer.site .base .inloggen { display: block; width: fit-content; margin-top: 10px; padding: 8px 0; font-size: .95rem; font-weight: 600; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .gallery img { transition: none; }
}
