/*
Theme Name: Bruinsma Stuc & Design
Theme URI: https://bruinsmastucendesign.nl
Author: Bruinsma Stuc & Design
Author URI: https://bruinsmastucendesign.nl
Description: Custom one-page thema voor Bruinsma Stuc & Design — diensten, portfolio en een offerteformulier waarvan de aanvragen worden bewaard in een overzicht in het WordPress-beheer (menu "Offertes"). Warme huisstijl in taupe, goud en crème met klassieke serif.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bruinsma
*/

:root {
  --paper: #FBF7EF;
  --surface: #FFFFFF;
  --surface-2: #F3EBDA;
  --brown: #4B4339;
  --brown-deep: #35302A;
  --ink: #2B2620;
  --ink-soft: #4A4238;
  --muted: #857A68;
  --line: #E7DDC8;
  --line-strong: #D3C5A7;
  --gold: #B08D4F;
  --gold-bright: #CBA968;
  --gold-ink: #8A6D38;
  --on-brown: #F4EEE2;
  --focus: #B08D4F;
  --shadow: 0 1px 2px rgba(43,38,32,.05), 0 14px 40px -18px rgba(43,38,32,.22);

  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-body: "Mulish", -apple-system, "Segoe UI", sans-serif;

  --step--1: .82rem;
  --step-0: 1.02rem;
  --step-1: 1.22rem;
  --step-2: 1.55rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.1rem, 4.4vw, 3rem);
  --step-5: clamp(2.9rem, 7vw, 5.4rem);

  --mw: 1150px;
  --gap: clamp(1.5rem, 4vw, 3.5rem);
  --radius: 2px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #201C17;
    --surface: #29241F;
    --surface-2: #322B23;
    --brown: #29241F;
    --brown-deep: #1B1813;
    --ink: #F1E9DA;
    --ink-soft: #D9CEBA;
    --muted: #A99C84;
    --line: #3B332A;
    --line-strong: #4E4436;
    --gold: #CBA968;
    --gold-bright: #DFC084;
    --gold-ink: #E4CB94;
    --on-brown: #F4EEE2;
    --focus: #CBA968;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 44px -20px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --paper: #201C17;
  --surface: #29241F;
  --surface-2: #322B23;
  --brown: #29241F;
  --brown-deep: #1B1813;
  --ink: #F1E9DA;
  --ink-soft: #D9CEBA;
  --muted: #A99C84;
  --line: #3B332A;
  --line-strong: #4E4436;
  --gold: #CBA968;
  --gold-bright: #DFC084;
  --gold-ink: #E4CB94;
  --on-brown: #F4EEE2;
  --focus: #CBA968;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 44px -20px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: .002em; }
p { margin: 0; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
::selection { background: var(--gold); color: #fff; }

.wrap { max-width: var(--mw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.6rem); }
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 1.8rem; height: 1px; background: var(--gold); }

.btn {
  --b-bg: var(--gold); --b-fg: #fff; --b-bd: var(--gold);
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 var(--step--1)/1 var(--f-body);
  letter-spacing: .1em; text-transform: uppercase;
  padding: .95rem 1.6rem;
  border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--gold-bright); border-color: var(--gold-bright); color: #fff; }
.btn.ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-strong); }
.btn.ghost:hover { --b-bd: var(--gold); background: transparent; color: var(--gold-ink); }
.btn.on-dark.ghost { --b-fg: var(--on-brown); --b-bd: rgba(244,238,226,.35); }
.btn.on-dark.ghost:hover { --b-fg: #fff; --b-bd: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.section { padding-block: clamp(3.6rem, 9vw, 7rem); }
.sec-head { max-width: 44ch; margin-bottom: clamp(2rem, 5vw, 3.6rem); }
.sec-head h2 { font-size: var(--step-4); }
.sec-head p { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step-1); }

/* NAV */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.admin-bar header.nav { top: 32px; }
@media (max-width: 782px) { .admin-bar header.nav { top: 46px; } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; text-decoration: none; line-height: 1; }
.brand img { max-height: 54px; width: auto; }
.brand .bruinsma-logo-svg { display: block; width: auto; border-radius: 3px; box-shadow: var(--shadow); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { text-decoration: none; font-size: var(--step--1); font-weight: 600; letter-spacing: .04em; color: var(--ink-soft); }
.nav-links a:hover { color: var(--gold-ink); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.theme-toggle { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft); width: 2.15rem; height: 2.15rem; border-radius: var(--radius); cursor: pointer; display: grid; place-items: center; font-size: .95rem; }
.theme-toggle:hover { color: var(--gold-ink); border-color: var(--gold); }
.menu-btn { display: none; background: transparent; border: 1px solid var(--line-strong); color: var(--ink); border-radius: var(--radius); padding: .5rem .75rem; font: 600 .7rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 3.4rem 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: .3rem 0; transform: translateY(-125%); transition: transform .25s ease; }
  .admin-bar .nav-links { inset-block-start: calc(3.4rem + 46px); }
  .nav-links[data-open="true"] { transform: translateY(0); }
  .nav-links a { padding: .95rem clamp(1.1rem, 4vw, 2.6rem); border-top: 1px solid var(--line); font-size: var(--step-0); }
  .nav-desktop-cta { display: none; }
  .menu-btn { display: inline-block; }
}

/* HERO */
.hero { position: relative; overflow: hidden; background: var(--brown-deep); color: var(--on-brown); border-bottom: 1px solid var(--line); }
#plaster { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, var(--brown-deep) 34%, color-mix(in srgb, var(--brown-deep) 45%, transparent) 88%); }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(4rem, 12vw, 8rem); }
.hero-logo { display: flex; justify-content: flex-start; margin-bottom: 2.6rem; }
.hero-logo img { max-height: 190px; width: auto; }
.hero-logo .bruinsma-logo-svg { display: block; width: auto; border-radius: 4px; box-shadow: var(--shadow); }
.hero h1 { font-size: var(--step-5); max-width: 15ch; color: var(--on-brown); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold-bright); }
.hero .lede { margin-top: 1.6rem; font-size: var(--step-1); color: color-mix(in srgb, var(--on-brown) 82%, transparent); max-width: 46ch; }
.hero .actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .facts { margin-top: 3.2rem; display: flex; flex-wrap: wrap; gap: 2.6rem; border-top: 1px solid rgba(244,238,226,.16); padding-top: 1.8rem; }
.hero .facts div { font-family: var(--f-body); font-size: var(--step--1); letter-spacing: .04em; color: color-mix(in srgb, var(--on-brown) 68%, transparent); }
.hero .facts strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: var(--step-3); color: var(--gold-bright); letter-spacing: .02em; }

/* SERVICES */
.grid-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--surface); padding: clamp(1.6rem, 3vw, 2.3rem); display: flex; flex-direction: column; gap: .7rem; }
.service .num { font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); color: var(--gold); }
.service h3 { font-size: var(--step-2); }
.service p { color: var(--muted); font-size: var(--step-0); }

/* WERKWIJZE */
#werkwijze { background: var(--surface-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: step; }
.step { position: relative; padding-top: 2.7rem; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); color: var(--gold-ink); border-top: 2px solid var(--gold); padding-top: .6rem; width: 100%; }
.step h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }

/* PORTFOLIO */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.9rem; }
.filters button { font: 600 var(--step--1)/1 var(--f-body); letter-spacing: .04em; padding: .55rem 1rem; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-soft); border-radius: 999px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brown-deep); color: var(--on-brown); border-color: var(--brown-deep); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; }
figure.project { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.project .ph { aspect-ratio: 4 / 3; position: relative; background-color: var(--surface-2); background-image: var(--noise), linear-gradient(150deg, color-mix(in srgb, var(--gold) 20%, var(--surface-2)), var(--surface-2) 62%); background-size: 160px 160px, cover; }
.project .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project:nth-child(3n) .ph { background-image: var(--noise), linear-gradient(150deg, color-mix(in srgb, var(--brown) 22%, var(--surface-2)), var(--surface-2) 62%); }
.project:nth-child(3n+2) .ph { background-image: var(--noise), linear-gradient(30deg, color-mix(in srgb, var(--ink) 12%, var(--surface-2)), var(--surface-2) 66%); }
.project .tag { position: absolute; top: .7rem; left: .7rem; font-family: var(--f-body); font-weight: 600; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--surface) 84%, transparent); padding: .32rem .55rem; border-radius: 2px; z-index: 2; }
figure.project figcaption { padding: 1.1rem 1.15rem 1.3rem; }
figure.project figcaption b { font-family: var(--f-display); font-weight: 600; font-size: var(--step-2); display: block; }
figure.project figcaption .spec { font-family: var(--f-body); font-size: var(--step--1); color: var(--muted); margin-top: .35rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.ig-feed-wrap { max-width: 100%; }
.ig-feed-wrap img { border-radius: var(--radius); }

/* OVER */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap); align-items: start; }
.about-grid h2 { font-size: var(--step-4); margin-bottom: 1.2rem; }
.about-grid p + p { margin-top: 1rem; }
.usp { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.usp li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .9rem; align-items: baseline; font-size: var(--step-0); }
.usp li::before { content: "\2014"; color: var(--gold); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

/* OFFERTE */
#offerte { background: var(--brown-deep); color: var(--on-brown); border-block: 1px solid var(--line); }
#offerte .eyebrow { color: var(--gold-bright); }
#offerte .eyebrow::before { background: var(--gold-bright); }
#offerte .sec-head h2 { color: var(--on-brown); font-weight: 500; }
#offerte .sec-head p { color: color-mix(in srgb, var(--on-brown) 80%, transparent); }
.offerte-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
form.quote { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.hp { position: absolute; left: -5000px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
form.quote label { font-family: var(--f-body); font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--on-brown) 66%, transparent); }
form.quote input, form.quote select, form.quote textarea { font: 400 var(--step-0) var(--f-body); padding: .75rem .85rem; border: 1px solid rgba(244,238,226,.24); background: rgba(244,238,226,.05); color: var(--on-brown); border-radius: var(--radius); width: 100%; }
form.quote input::placeholder, form.quote textarea::placeholder { color: color-mix(in srgb, var(--on-brown) 42%, transparent); }
form.quote select option { color: #2B2620; }
form.quote textarea { resize: vertical; min-height: 110px; }
.quote .btn { justify-content: center; margin-top: .4rem; }
.form-note { font-size: var(--step--1); color: color-mix(in srgb, var(--on-brown) 62%, transparent); }
.notice-ok, .notice-err { border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 1.5rem; font-size: var(--step--1); border: 1px solid; }
.notice-ok { background: rgba(203,169,104,.14); border-color: var(--gold-bright); color: var(--gold-bright); }
.notice-err { background: rgba(180,80,60,.14); border-color: #D98E7E; color: #ECC0B4; }
.contact-card { border: 1px solid rgba(244,238,226,.2); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.3rem); background: rgba(244,238,226,.04); }
.contact-card h3 { font-size: var(--step-2); margin-bottom: 1rem; color: var(--on-brown); font-weight: 500; }
.contact-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.contact-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-top: 1px solid rgba(244,238,226,.16); text-decoration: none; color: var(--on-brown); font-size: var(--step-0); }
.contact-list a:hover { color: var(--gold-bright); }
.contact-list span:last-child { font-family: var(--f-body); font-size: var(--step--1); color: color-mix(in srgb, var(--on-brown) 60%, transparent); }
@media (max-width: 820px) { .offerte-grid { grid-template-columns: 1fr; } }

/* FOOTER */
.site-footer { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); background: var(--paper); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.foot-grid b { color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); letter-spacing: .06em; }
.site-footer dl { margin: .8rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; }
.site-footer dt { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .64rem; padding-top: .2rem; color: var(--ink-soft); }
.site-footer dd { margin: 0; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--brown-deep); color: var(--on-brown); padding: .6rem 1rem; border-radius: var(--radius); }

/* Generic pages (page.php / index.php / 404) */
.page-body { max-width: 70ch; margin: clamp(3rem,8vw,6rem) auto; padding-inline: clamp(1.1rem,4vw,2.6rem); }
.page-body h1 { font-size: var(--step-4); margin-bottom: 1.5rem; }
.page-body a { color: var(--gold-ink); }
.page-body img { border-radius: var(--radius); margin: 1.5rem 0; }
