/*
Theme Name: Meubelmakerij Bloedjes
Theme URI:
Author: BSP MdeB
Description: Maatwerk WordPress-thema voor Meubelmakerij Bloedjes, Alkmaar.
Version: 1.0.0
Text Domain: bloedjes
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --groen:    #003719;
  --eiken:    #B07B4F;
  --klei:     #8C6A4A;
  --papier:   #F3ECDE;
  --zachtwit: #F6F2EA;
  --tekst:    #262321;
  --lijn:     #E4DCCD;
  --wit:      #ffffff;
  --radius:   10px;
  --max-w:    1180px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Inter', sans-serif;
  color: var(--tekst);
  background: var(--papier);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 84px;
}
img   { max-width: 100%; display: block; }
a     { color: inherit; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
ul    { list-style: none; }

/* ============================================================
   TYPOGRAFIE
   ============================================================ */
h1, h2, h3, h4, h5 { font-family: 'Fraunces', serif; line-height: 1.1; }
.eyebrow  { font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--eiken); font-weight: 600; margin-bottom: 8px; display: block; }
.tagscript { font-family: 'Dancing Script', cursive; font-size: 28px; color: var(--eiken); }
.lede      { font-size: 15px; color: #4a463f; max-width: 38em; line-height: 1.65; }
.quote     { font-family: 'Fraunces', serif; font-size: 19px; color: var(--groen); font-style: italic; border-left: 3px solid var(--eiken); padding-left: 16px; margin: 20px 0; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section     { padding: 68px 0; }
.section-sm  { padding: 40px 0; }
.bg-papier   { background: var(--papier); }
.bg-groen    { background: var(--groen); color: var(--wit); }
.bg-zachtwit { background: var(--zachtwit); }

/* ============================================================
   KNOPPEN
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 22px; border-radius: 8px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: opacity .18s, transform .12s; cursor: pointer; border: none;
}
.btn:hover           { opacity: .88; transform: translateY(-1px); }
.btn-groen           { background: var(--groen); color: var(--wit); }
.btn-eiken           { background: var(--eiken); color: var(--wit); }
.btn-ghost-wit       { background: transparent; border: 1.5px solid var(--wit); color: var(--wit); }
.btn-ghost-groen     { background: transparent; border: 1.5px solid var(--groen); color: var(--groen); }
.btn + .btn          { margin-left: 10px; }

/* ============================================================
   NAVIGATIE
   ============================================================ */
.site-nav {
  position: fixed; top: 0; width: 100%; z-index: 50;
  background: var(--wit); border-bottom: 1px solid var(--lijn);
  height: 84px; display: flex; align-items: center;
}
.site-nav .inner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.nav-logo    { height: 62px; width: auto; }
.nav-links   { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--tekst); text-decoration: none;
  font-weight: 500; transition: color .15s;
}
.nav-links a:hover, .nav-links a.actief { color: var(--groen); }
.nav-cta     { flex-shrink: 0; }

/* Mobiel */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--tekst); border-radius: 2px; }
.mobile-nav {
  display: none; position: fixed; top: 84px; left: 0; right: 0;
  background: var(--wit); border-bottom: 1px solid var(--lijn);
  padding: 20px 24px; z-index: 49;
}
.mobile-nav.open   { display: block; }
.mobile-nav a {
  display: block; padding: 11px 0; font-size: 16px; font-weight: 500;
  color: var(--tekst); text-decoration: none; border-bottom: 1px solid var(--lijn);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ============================================================
   HERO: TRIPTIEK (Home)
   ============================================================ */
.hero-trip {
  display: grid; grid-template-columns: 1fr 1.35fr 1fr; min-height: 440px;
}
.hero-trip .cell {
  background-size: cover; background-position: center; position: relative;
}
.hero-trip .cell.mid::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,25,12,.62), rgba(0,25,12,.18));
}
.hero-trip .cell.mid .cap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: var(--wit); z-index: 2; padding: 24px;
}
.hero-trip .cell.mid .cap .tag { font-family: 'Dancing Script', cursive; font-size: 34px; color: var(--wit); }
.trip-intro { padding: 32px 24px; text-align: center; background: var(--wit); }
.trip-intro h2 { font-size: 24px; color: var(--groen); margin-bottom: 10px; }
.trip-intro .lede { margin: 0 auto; }

/* ============================================================
   NICHE-STRIP
   ============================================================ */
.niche-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; padding: 28px 0; }
.niche-card  { background: var(--zachtwit); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 20px; }
.niche-card h3 { font-family: 'Fraunces', serif; font-size: 16px; color: var(--groen); margin-bottom: 6px; }
.niche-card p  { font-size: 13px; color: #5c574e; }

/* ============================================================
   ZIG-ZAG RIJEN (Dienst)
   ============================================================ */
.zig         { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.zig .img    { min-height: 320px; background-size: cover; background-position: center; }
.zig .img img { display: block; width: 100%; height: auto; }
.zig .txt    { padding: 44px 48px; }
.zig.rev .img { order: 2; }
/* Tekstkolom loopt mee met de paginakleur: geen eigen vlak achter lopende tekst. */
.zig .txt h2 { font-size: 26px; color: var(--groen); margin-bottom: 14px; }
.zig .txt .lede { margin-bottom: 20px; }
.zig .steps  { display: flex; gap: 10px; margin: 18px 0; }
.zig .step   { flex: 1; background: var(--wit); border: 1px solid var(--lijn); border-radius: 8px; padding: 13px; text-align: center; font-size: 12.5px; }
.zig .step .n { font-family: 'Fraunces', serif; font-size: 20px; color: var(--eiken); display: block; margin-bottom: 4px; }

/* ============================================================
   HERO: FULL BLEED (diverse pagina's)
   ============================================================ */
.hero-full {
  position: relative; min-height: 360px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.hero-full .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,25,12,.78), rgba(0,25,12,.18) 55%, rgba(0,25,12,.3));
}
.hero-full .inner {
  position: relative; padding: 44px 30px; color: var(--wit); max-width: 660px;
}
.hero-full .inner h1 { color: var(--wit); font-size: 36px; margin-bottom: 14px; }
.hero-full.center    { align-items: center; justify-content: center; text-align: center; }
.hero-full.center .inner { max-width: 72%; }

/* ============================================================
   PORTFOLIO RASTER
   ============================================================ */
.port-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.port-filter .chip {
  padding: 7px 18px; border-radius: 20px; font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1.5px solid var(--lijn); background: var(--zachtwit);
  color: var(--tekst); transition: .15s;
}
.port-filter .chip.actief, .port-filter .chip:hover {
  background: var(--groen); color: var(--wit); border-color: var(--groen);
}
.port-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.port-item { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.port-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.port-item:hover img { transform: scale(1.04); }
.port-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  color: var(--wit); font-size: 12px; padding: 22px 10px 8px;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
}
.port-empty { padding: 48px 0; text-align: center; color: #7a7570; }

/* ============================================================
   OVER: HERO + QUOTE-OVERLAY
   ============================================================ */
.over-hero {
  position: relative; min-height: 360px;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.over-hero .scrim { position: absolute; inset: 0; background: rgba(0,25,12,.62); }
.over-hero .cap { position: relative; color: var(--wit); max-width: 720px; padding: 32px 24px; }
.over-hero .cap .tag { font-family: 'Dancing Script', cursive; font-size: 34px; color: var(--wit); display: block; margin-bottom: 8px; }
.over-body { padding: 56px 0; text-align: center; }
.over-body p { max-width: 640px; margin: 0 auto; font-size: 16px; line-height: 1.75; color: #4a463f; }
.over-usps   { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.over-usp    { text-align: center; max-width: 180px; }
.over-usp .n { font-family: 'Fraunces', serif; font-size: 36px; color: var(--eiken); display: block; margin-bottom: 6px; }
.over-usp h4 { font-family: 'Fraunces', serif; color: var(--groen); font-size: 15px; margin-bottom: 4px; }
.over-usp p  { font-size: 13px; color: #6b665c; }

/* ============================================================
   WERKWIJZE: SPLIT HERO + TIJDLIJN
   ============================================================ */
.ww-hero       { display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; }
.ww-hero .txt  { padding: 48px 44px; background: var(--zachtwit); display: flex; flex-direction: column; justify-content: center; }
.ww-hero .txt h1 { font-size: 32px; color: var(--groen); margin-bottom: 14px; }
.ww-hero .img  { background-size: cover; background-position: center; min-height: 260px; }
.timeline      { padding: 56px 0; max-width: 680px; margin: 0 auto; }
.tl-item       { display: flex; gap: 22px; margin-bottom: 36px; position: relative; }
.tl-item:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 44px; bottom: -14px;
  width: 2px; background: var(--lijn);
}
.tl-dot        { width: 40px; height: 40px; border-radius: 50%; background: var(--groen); color: var(--wit); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 18px; flex-shrink: 0; }
.tl-content h3 { font-family: 'Fraunces', serif; font-size: 18px; color: var(--groen); margin-bottom: 5px; }
.tl-content p  { font-size: 14.5px; color: #4a463f; line-height: 1.65; }

/* ============================================================
   Q&A: TWEE KOLOMMEN
   ============================================================ */
.faq-cols    { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 0; }
.faq-cat     { font-family: 'Fraunces', serif; color: var(--groen); font-size: 16px; font-weight: 600; border-bottom: 2px solid var(--eiken); padding-bottom: 7px; margin-bottom: 14px; }
.faq-cat + .faq-cat { margin-top: 28px; }
details.faq  { border-bottom: 1px solid var(--lijn); }
details.faq summary {
  cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center;
  padding: 14px 0; font-size: 14.5px; font-weight: 500; color: var(--tekst);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .pl { color: var(--eiken); font-size: 20px; font-weight: 300; line-height: 1; }
details.faq summary .pl::before         { content: "+"; }
details.faq[open] summary .pl::before   { content: "&#8211;"; }
.faq-ans     { font-size: 14px; color: #4a463f; padding: 0 0 14px; line-height: 1.65; }
.faq-note    { background: var(--zachtwit); border-radius: var(--radius); padding: 16px 20px; font-size: 13px; color: #5c574e; margin-top: 24px; }

/* ============================================================
   CONTACT: FOTO + ZWEVENDE KAART
   ============================================================ */
.contact-ovl      { position: relative; padding-bottom: 60px; }
.contact-ovl .bg  { min-height: 400px; background-size: cover; background-position: center; }
.contact-ovl .card {
  background: var(--wit); margin: -130px 40px 0; position: relative;
  border-radius: 14px; padding: 40px 44px;
  box-shadow: 0 18px 44px rgba(0,0,0,.14); max-width: 600px;
}
.contact-ovl .card h2 { font-size: 26px; color: var(--groen); margin-bottom: 24px; }
.form-field          { margin-bottom: 18px; }
.form-field label    { display: block; font-size: 13px; font-weight: 600; color: var(--tekst); margin-bottom: 5px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border: 1.5px solid var(--lijn); border-radius: 7px;
  padding: 11px 14px; font-size: 14px; background: var(--zachtwit);
  color: var(--tekst); transition: border-color .15s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--groen); }
.form-field textarea { min-height: 100px; resize: vertical; }
.honeypot            { display: none !important; visibility: hidden !important; }
.contact-meta        { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--lijn); font-size: 12.5px; color: #6b665c; }
.contact-meta b      { color: var(--groen); }
.contact-meta + .contact-meta { margin-top: 6px; padding-top: 0; border-top: none; }

/* Feedback-berichten */
.msg-ok  { background: #e6f5ec; border: 1px solid #b3dfbe; color: #1a5c2a; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-size: 14px; }
.msg-err { background: #fdecea; border: 1px solid #f5bbb8; color: #7a1a16; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; font-size: 14px; }

/* ============================================================
   SECTION-INTRO
   ============================================================ */
.section-intro           { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-intro h2        { font-size: 30px; color: var(--groen); margin-bottom: 10px; }
.section-intro .eyebrow  { text-align: center; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-band    { background: var(--groen); padding: 56px 0; text-align: center; }
.cta-band h2 { font-size: 30px; color: var(--wit); margin-bottom: 12px; }
.cta-band p  { font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer      { background: var(--groen); color: rgba(255,255,255,.8); padding: 52px 0 24px; }
.footer-grid      { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; margin-bottom: 40px; }
.footer-naam      { color: var(--wit); font-family: 'Fraunces', serif; font-size: 18px; margin-bottom: 12px; }
.footer-about     { font-size: 13.5px; line-height: 1.65; max-width: 280px; }
.footer-col h4    { color: var(--wit); font-family: 'Fraunces', serif; font-size: 15px; margin-bottom: 12px; }
.footer-col a     { display: block; font-size: 13.5px; color: rgba(255,255,255,.75); text-decoration: none; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: var(--wit); }
.footer-bottom    { border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom a  { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--wit); }

/* ============================================================
   KEUKENWRAPPEN SPOTLIGHT (homepage)
   ============================================================ */
.wrapper-spot {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 440px;
}
.wrapper-spot__img { position: relative; overflow: hidden; }
.wrapper-spot__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wrapper-spot__panel {
  background: var(--groen); padding: 52px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.wrapper-spot__panel h2 { color: var(--wit); font-size: 28px; margin-bottom: 8px; }
.wrapper-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.wrapper-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 20px 22px;
}
.wrapper-card .badge {
  display: inline-block; background: var(--eiken); color: var(--wit);
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 4px; margin-bottom: 10px;
}
.wrapper-card h3 { color: var(--wit); font-size: 16px; margin-bottom: 6px; }
.wrapper-card p  { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-trip            { grid-template-columns: 1fr; min-height: auto; }
  .hero-trip .cell      { min-height: 220px; }
  .hero-trip .cell:first-child,
  .hero-trip .cell:last-child { display: none; }
  .zig, .ww-hero        { grid-template-columns: 1fr; }
  .zig.rev .img         { order: unset; }
  .faq-cols, .footer-grid { grid-template-columns: 1fr; }
  .port-grid            { grid-template-columns: repeat(2,1fr); }
  .niche-strip          { grid-template-columns: 1fr; }
  .contact-ovl .card    { margin: -90px 16px 0; padding: 28px 24px; }
  .ww-hero .txt         { padding: 36px 28px; }
  .wrapper-spot         { grid-template-columns: 1fr; }
  .wrapper-spot__img    { min-height: 260px; }
  .wrapper-spot__panel  { padding: 36px 28px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta  { display: none; }
  .nav-toggle           { display: flex; }
  /* Balk iets lager op telefoon: 84px kost te veel schermhoogte. */
  .site-nav             { height: 72px; }
  .nav-logo             { height: 52px; }
  .mobile-nav           { top: 72px; }
  body                  { padding-top: 72px; }
  .port-grid            { grid-template-columns: 1fr; }
  .hero-trip            { min-height: 300px; }
  .hero-full            { min-height: 300px; }
  .hero-full .inner h1  { font-size: 28px; }
  .timeline             { padding: 36px 16px; }
  .over-usps            { gap: 20px; }
  .zig .txt             { padding: 32px 24px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px dashed var(--eiken); outline-offset: 3px; }
