/*
Theme Name: behrbouw
Theme URI: https://behrbouw.nl
Author: BlueCT Site Factory
Description: Maatwerk classic PHP theme voor Behr Bouw & Installatietechniek. Content via SCF.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: behrbouw
*/

/* ==========================================================================
   Concept: "Vakmanschap in antraciet & oranje" — industriele precisie. Donker
   antraciet als fundament, fel oranje (#F27025) als enige accent, strakke Inter
   grotesk, hairline rules, en genummerde secties (01..05) als signature detail.
   Bouw/techniek dat betrouwbaar en strak oogt, nooit generiek.
   Signature details: (1) oversized index-cijfers op stappen, (2) een korte
   oranje accent-rule onder elke eyebrow.
   ========================================================================== */

:root {
  /* Brand palette */
  --orange:        #F27025;  /* echt merkaccent (logo) */
  --orange-hover:  #d85f17;
  --accent-text:   #A8480C;  /* donkere oranje variant: klaart 4.5:1 op wit/F5F5F5 */
  --accent-fill:   #F27025;  /* voor badges met DONKERE tekst */
  --ink:           #1A1A1A;  /* antraciet/zwart */
  --ink-2:         #2B2B2B;
  --bg:            #FFFFFF;
  --surface:       #F5F5F5;  /* getinte sectie */
  --line:          #E2E2E2;
  --line-dark:     #3a3a3a;
  --muted:         #4f4f4f;  /* body grijs, klaart 4.5:1 op wit (>7:1) */
  --on-dark:       #F5F5F5;
  --on-dark-muted: #cfcfcf;  /* op antraciet ruim >4.5:1 */
  --btn-fill:      var(--orange);
  --btn-label:     var(--ink);

  /* Type */
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step--1: clamp(0.85rem, 0.8rem + 0.2vw, 0.92rem);
  --step-0:  clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.8vw, 1.85rem);
  --step-3:  clamp(1.8rem, 1.55rem + 1.3vw, 2.5rem);
  --step-4:  clamp(2.2rem, 1.8rem + 2.2vw, 3.2rem);
  --step-5:  clamp(2.6rem, 2rem + 3.2vw, 4.25rem);

  /* Spacing */
  --space-1: .5rem;  --space-2: .75rem; --space-3: 1rem;  --space-4: 1.5rem;
  --space-5: 2rem;   --space-6: 3rem;   --space-7: 4.5rem; --space-8: 7rem;
  --section-y: clamp(4rem, 9vw, 7rem);

  --radius:    10px;
  --radius-sm: 6px;
  --maxw: 1280px;
  --prose: 760px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: .2em; }
::selection { background: var(--orange); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}
h1 { font-size: var(--step-5); line-height: 1.06; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
p  { margin: 0 0 var(--space-3); }
ul, ol { margin: 0 0 var(--space-3); padding-left: 1.2em; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--on-dark-muted); }

.prose--longform {
  max-width: var(--prose);
  margin-inline: auto;
  text-align: left;
}
.prose--longform h2 { margin-top: var(--space-6); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--orange);
  display: inline-block;
}
.section--dark .eyebrow { color: var(--orange); }

.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.section--dark .lead { color: var(--on-dark-muted); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --_y: .85rem; --_x: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  padding: var(--_y) var(--_x);
  font-family: var(--font-display);
  font-weight: 700; font-size: var(--step-0);
  line-height: 1; text-decoration: none;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { width: 1.15em; height: 1.15em; }

.btn--primary { background: var(--btn-fill); color: var(--btn-label); border-color: var(--btn-fill); }
.btn--primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--ink); }

.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: #000; border-color: #000; color: #fff; }

/* outline = lichte secties (donkere rand + inkt label) */
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* ghost-light = UITSLUITEND op donkere/oranje banden */
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand .brand-name {
  font-family: var(--font-display); font-weight: 800; color: #fff;
  font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1;
}
.brand .brand-sub { display: block; font-weight: 500; font-size: .72rem; color: var(--orange); letter-spacing: .04em; }

.primary-nav { display: flex; align-items: center; gap: var(--space-4); }
.nav-menu {
  display: flex; align-items: center; gap: var(--space-4);
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  color: var(--on-dark); text-decoration: none; font-weight: 600;
  font-size: .98rem; padding: .4rem 0; position: relative;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--orange); transition: width .25s ease;
}
.nav-menu a:hover::after, .nav-menu .current-menu-item > a::after { width: 100%; }
.nav-menu .current-menu-item > a { color: #fff; }

.header-cta { display: inline-flex; align-items: center; gap: .9rem; }
.header-cta .header-tel { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.header-cta .header-tel .icon { width: 1.05em; height: 1.05em; color: var(--orange); }
.header-cta .header-tel:hover { color: var(--orange); }

.nav-toggle {
  display: none;
  background: transparent; border: 1.5px solid var(--line-dark);
  color: #fff; border-radius: var(--radius-sm);
  width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero--image { min-height: 72vh; display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg, rgba(15,15,15,.92) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.45) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero__content { max-width: 760px; }
.hero h1 { color: #fff; }
.hero__intro { font-size: var(--step-1); color: #ededed; max-width: 56ch; margin-bottom: var(--space-4); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: var(--space-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.hero__micro { margin: var(--space-3) 0 0; font-size: var(--step--1); color: var(--on-dark-muted); display: inline-flex; align-items: center; gap: .5rem; }
.hero__micro .icon { width: 1.05em; height: 1.05em; color: var(--orange); }

/* hero (type-led, kleinere subpagina) */
.hero--page { padding-block: clamp(3rem, 7vw, 5rem); }
.hero--page .hero__content { max-width: 820px; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .8rem; border-radius: 999px;
  font-size: var(--step--1); font-weight: 700; line-height: 1;
}
.chip--accent { background: var(--accent-fill); color: var(--ink); } /* donkere tekst op oranje */
.chip--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.chip .icon { width: 1.05em; height: 1.05em; }

.section-head { max-width: 60ch; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Audience strip ---------- */
.audience-strip {
  display: flex; flex-wrap: wrap; gap: .7rem;
}
.audience-strip .chip--accent { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: var(--space-4); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.section--surface .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); border-color: #d8d8d8; }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(242,112,37,.12); color: var(--accent-text);
  margin-bottom: var(--space-3);
}
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split__media::after {
  content: ""; position: absolute; left: -14px; bottom: -14px;
  width: 120px; height: 120px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
  border-bottom-left-radius: var(--radius);
}

/* feature list with check icons */
.feature-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-3); }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list .icon-wrap {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-list .icon-wrap .icon { width: 18px; height: 18px; }
.feature-list strong { display: block; font-family: var(--font-display); }
.feature-list span.txt { color: var(--muted); }
.section--dark .feature-list span.txt { color: var(--on-dark-muted); }

/* ---------- Steps (numbered) ---------- */
.steps { display: grid; gap: var(--space-5); grid-template-columns: repeat(2, 1fr); }
.step { position: relative; padding-left: 4.5rem; }
.step__num {
  position: absolute; left: 0; top: -.4rem;
  font-family: var(--font-display); font-weight: 800; font-size: 3rem;
  line-height: 1; color: var(--orange); letter-spacing: -.03em;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); margin: 0; }
.section--dark .step p { color: var(--on-dark-muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-2); max-width: 820px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 0 var(--space-4);
}
.section--surface .faq details { background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--space-4) 0;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--accent-text); transition: transform .25s ease; flex: 0 0 auto; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 0 var(--space-4); color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: var(--ink); }
.cta-band .container { text-align: center; }
.cta-band h2 { color: var(--ink); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #3a2a1a; max-width: 52ch; margin-inline: auto; margin-bottom: var(--space-4); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.cta-band .btn--ghost-dark { background: transparent; color: var(--ink); border-color: rgba(0,0,0,.4); }
.cta-band .btn--ghost-dark:hover { background: rgba(0,0,0,.08); color: var(--ink); border-color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; gap: var(--space-3); }
.contact-card {
  display: flex; gap: var(--space-3); align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); background: #fff;
}
.contact-card .icon-wrap {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(242,112,37,.12); color: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-card .icon-wrap .icon { width: 22px; height: 22px; }
.contact-card .lbl { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.contact-card a, .contact-card span.val { font-weight: 700; color: var(--ink); text-decoration: none; font-size: var(--step-1); }
.contact-card a:hover { color: var(--accent-text); }
.contact-card address { font-style: normal; font-weight: 700; color: var(--ink); }

.form-promise {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(242,112,37,.1); color: var(--accent-text);
  border-left: 3px solid var(--orange);
  padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600; margin-bottom: var(--space-4);
}
.form-promise .icon { width: 1.15em; height: 1.15em; }
.form-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); }
.form-placeholder { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: var(--space-5); color: var(--muted); text-align: center; }

/* ---------- Forminator (theme-tokens) ---------- */
.forminator-custom-form .forminator-label,
.forminator-custom-form label { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.forminator-custom-form input[type=text],
.forminator-custom-form input[type=email],
.forminator-custom-form input[type=tel],
.forminator-custom-form input[type=url],
.forminator-custom-form input[type=number],
.forminator-custom-form textarea,
.forminator-custom-form select {
  width: 100%;
  font-family: var(--font-body); font-size: var(--step-0);
  color: var(--ink); background: #fff;
  border: 1.5px solid #cfcfcf; border-radius: var(--radius-sm);
  padding: .8rem 1rem;
}
.forminator-custom-form textarea { min-height: 140px; }
.forminator-custom-form input:focus,
.forminator-custom-form textarea:focus,
.forminator-custom-form select:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,112,37,.25);
}
.forminator-custom-form .forminator-button,
.forminator-custom-form button[type=submit] {
  background: var(--btn-fill); color: var(--btn-label);
  border: 2px solid var(--btn-fill); border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  padding: .85rem 1.8rem; cursor: pointer; transition: background-color .2s ease, transform .2s ease;
}
.forminator-custom-form .forminator-button:hover,
.forminator-custom-form button[type=submit]:hover { background: var(--orange-hover); color: var(--ink); transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: var(--space-7) var(--space-5); border-top: 3px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: var(--space-5); }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--space-3); }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-brand img { height: 40px; width: auto; margin-bottom: var(--space-3); }
.footer-brand p { color: var(--on-dark-muted); max-width: 34ch; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-nap address { font-style: normal; color: var(--on-dark-muted); display: grid; gap: .35rem; }
.footer-nap .icon { width: 1.05em; height: 1.05em; color: var(--orange); vertical-align: -2px; margin-right: .35rem; }
.footer-cta .btn { margin-top: var(--space-2); }
.site-footer .btn--primary { color: var(--ink); }   /* her-assert label boven footer a{} */
.footer-bottom {
  margin-top: var(--space-6); padding-top: var(--space-4);
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between;
  font-size: var(--step--1); color: var(--on-dark-muted);
}
.footer-bottom a { color: var(--on-dark-muted); }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Focus ---------- */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
.section--dark :focus-visible, .hero :focus-visible { outline-color: #fff; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding-block: var(--space-8); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .header-tel { display: none; }
  .primary-nav {
    position: fixed; inset: 76px 0 auto 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-3) clamp(1rem,5vw,2rem) var(--space-5);
    transform: translateY(-120%); transition: transform .3s ease; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu li > a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav-menu a::after { display: none; }
  .primary-nav .btn { margin-top: var(--space-3); }
}

@media (max-width: 760px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 599px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid, .steps { align-items: stretch; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  /* sticky tap-to-call (opt-in: contact_methods.sticky_call) */
  .sticky-call {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 1px solid var(--line-dark);
  }
  .sticky-call .btn { width: 100%; }
  body.has-sticky-call { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover, .card:hover { transform: none; }
}
