/*
Theme Name: Daphne Hoffman — Plan D
Theme URI: https://daphnehoffman.nl
Author: Daphne Hoffman / Brightness Group
Author URI: https://daphnehoffman.nl
Description: Merkthema voor Daphne Hoffman — strategie, communicatie & positionering. Volledig responsive (mobiel, tablet, desktop) met full-bleed achtergronden en de "Plan D / Not Plan B" look. Inclusief losse "Binnenkort meer" coming-soon pagina als template.
Version: 2.1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: daphne-hoffman
Tags: custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout
*/

/* Plan D / Daphne Hoffman — brand tokens */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap');

:root{
  --bordeaux: #6B1E3A;
  --bordeaux-ink: #5A1731;
  --navy: #2B2D5E;
  --navy-ink: #1E2046;
  --lightblue: #B8D4E3;
  --lightblue-soft: #D6E4ED;
  --sand: #F5ECDC;
  --sand-soft: #FAF4E8;
  --cream: #FCF7EE;
  --ink: #1A1A1F;
  --mute: #6B6B70;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
}

html, body { margin: 0; padding: 0; background: #f0eee9; overflow-x: hidden; }

.dh * { box-sizing: border-box; }
.dh {
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Utility: laat de achtergrondkleur doorlopen tot de rand van het scherm */
.dh-bleed { clip-path: inset(0 -100vmax); box-shadow: 0 0 0 100vmax var(--bleed); }
.dh h1, .dh h2, .dh h3, .dh h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.dh p { margin: 0; }
.dh a { color: inherit; }

.dh-display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-transform: uppercase;
}

.dh-serif { font-family: var(--serif); font-weight: 400; }

.dh-ast { color: var(--lightblue); font-weight: 400; }

.dh-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 0;
  font-family: var(--display); font-size: 16px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid currentColor; background: transparent; color: var(--navy);
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.dh-btn:hover { background: var(--navy); color: var(--cream); }
.dh-btn--solid { background: var(--bordeaux); color: var(--cream); border-color: var(--bordeaux); }
.dh-btn--solid:hover { background: var(--bordeaux-ink); border-color: var(--bordeaux-ink); color: var(--cream); }

.dh-stripe {
  background: var(--bordeaux);
  color: var(--cream);
  overflow: hidden;
  position: relative;
  clip-path: inset(0 -100vmax);
  box-shadow: 0 0 0 100vmax var(--bordeaux);
}

.dh-kicker {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--bordeaux);
}

.dh-rule { height: 1px; background: currentColor; opacity: 0.2; border: 0; }

.dh::-webkit-scrollbar { display: none; }
.dh { scrollbar-width: none; }

/* Shared nav */
.dh-nav {
  padding: 28px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(43,45,94,0.12);
  background: transparent;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}

/* Hamburger toggle — default verborgen, komt tevoorschijn op mobiel */
.dh-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 20;
  -webkit-tap-highlight-color: transparent;
}
.dh-nav__toggle-bar {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px auto;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
  transform-origin: center;
}
.dh-nav--dark .dh-nav__toggle-bar { background: var(--cream); }
.dh-nav__toggle[aria-expanded="true"] .dh-nav__toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.dh-nav__toggle[aria-expanded="true"] .dh-nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.dh-nav__toggle[aria-expanded="true"] .dh-nav__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.dh-nav--dark {
  border-bottom-color: rgba(252,247,238,0.15);
  background: var(--navy);
  clip-path: inset(0 -100vmax);
  box-shadow: 0 0 0 100vmax var(--navy);
}
.dh-nav__brand { line-height: 0.95; }
.dh-nav__brand-top {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.dh-nav--dark .dh-nav__brand-top { color: var(--lightblue); }
.dh-nav__brand-main {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--bordeaux);
  text-transform: uppercase;
}
.dh-nav--dark .dh-nav__brand-main { color: var(--cream); }
.dh-nav__links {
  display: flex;
  gap: 40px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  flex-wrap: wrap;
}
.dh-nav--dark .dh-nav__links { color: var(--cream); }
.dh-nav__links a { text-decoration: none; transition: color 0.2s; }
.dh-nav__links a:hover { color: var(--bordeaux); }
.dh-nav--dark .dh-nav__links a:hover { color: var(--lightblue); }

/* Shared footer */
.dh-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 56px 80px 72px;
  clip-path: inset(0 -100vmax);
  box-shadow: 0 0 0 100vmax var(--navy);
}
.dh-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.dh-footer__brand-top {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.7;
}
.dh-footer__brand-main {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lightblue);
}
.dh-footer__tagline {
  margin-top: 24px;
  max-width: 340px;
  color: rgba(252,247,238,0.7);
  font-size: 14px;
  line-height: 1.6;
}
.dh-footer__col-body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(252,247,238,0.85);
}
.dh-footer__col-body a { text-decoration: none; }
.dh-footer__col-body a:hover { color: var(--lightblue); }
.dh-footer__bottom {
  border-top: 1px solid rgba(252,247,238,0.15);
  padding-top: 24px;
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(252,247,238,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* Keyframes */
@keyframes dh-marquee {
  0%   { transform: rotate(-12deg) translateX(0); }
  100% { transform: rotate(-12deg) translateX(-12%); }
}
@keyframes dh-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================
   Responsive overrides — schalen van een vast 1440px ontwerp
   naar tablet en mobiel. Inline styles worden overschreven
   met attribute-selectors + !important omdat het bronontwerp
   sterk leunt op inline CSS.
   ========================================================== */

/* Alles onder 1440px krijgt vloeiende breedte */
@media (max-width: 1440px) {
  .dh [style*="width: 1440px"],
  .dh[style*="width: 1440px"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Iets kleinere desktop / groot tablet */
@media (max-width: 1200px) {
  .dh [style*="font-size: 200px"] { font-size: clamp(72px, 14vw, 180px) !important; }
  .dh [style*="font-size: 160px"] { font-size: clamp(60px, 11vw, 140px) !important; }
  .dh [style*="font-size: 150px"] { font-size: clamp(60px, 11vw, 130px) !important; }
  .dh [style*="font-size: 140px"] { font-size: clamp(56px, 10vw, 120px) !important; }
  .dh [style*="font-size: 120px"] { font-size: clamp(52px, 9vw, 110px) !important; }
  .dh [style*="font-size: 110px"] { font-size: clamp(48px, 8vw, 100px) !important; }
  .dh [style*="font-size: 96px"] { font-size: clamp(44px, 7vw, 88px) !important; }
  .dh [style*="font-size: 88px"] { font-size: clamp(40px, 6vw, 80px) !important; }
  .dh [style*="font-size: 80px"] { font-size: clamp(36px, 5.5vw, 72px) !important; }
}

/* Tablet */
@media (max-width: 1024px) {
  .dh-nav { padding: 24px 40px; }
  .dh-footer { padding: 48px 40px 56px; }

  .dh section[style*="padding: 72px 80px"],
  .dh section[style*="padding: 80px 80px"],
  .dh section[style*="padding: 120px 80px"],
  .dh section[style*="padding: 140px 80px"],
  .dh section[style*="padding: 80px;"],
  .dh section[style*="padding: 48px 80px"],
  .dh section[style*="padding: 64px 80px"],
  .dh section[style*="padding: 0 80px"],
  .dh section[style*="padding: 80px;"] {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  /* Headings */
  .dh [style*="font-size: 200px"] { font-size: clamp(56px, 10vw, 130px) !important; }
  .dh [style*="font-size: 160px"] { font-size: clamp(52px, 9vw, 110px) !important; }
  .dh [style*="font-size: 150px"] { font-size: clamp(52px, 9vw, 110px) !important; }
  .dh [style*="font-size: 140px"] { font-size: clamp(48px, 8.5vw, 100px) !important; }
  .dh [style*="font-size: 120px"] { font-size: clamp(44px, 7.5vw, 90px) !important; }
  .dh [style*="font-size: 110px"] { font-size: clamp(40px, 7vw, 80px) !important; }
  .dh [style*="font-size: 96px"] { font-size: clamp(36px, 6vw, 68px) !important; }
  .dh [style*="font-size: 88px"] { font-size: clamp(32px, 5.5vw, 64px) !important; }
  .dh [style*="font-size: 80px"] { font-size: clamp(32px, 5vw, 60px) !important; }
  .dh [style*="font-size: 48px"] { font-size: clamp(22px, 3.5vw, 40px) !important; }
  .dh [style*="font-size: 40px"] { font-size: clamp(22px, 3vw, 36px) !important; }
  .dh [style*="font-size: 36px"] { font-size: clamp(22px, 2.8vw, 32px) !important; }
  .dh [style*="font-size: 32px"] { font-size: clamp(20px, 2.4vw, 28px) !important; }

  /* Asymmetrische 2-col sections worden 1-col */
  .dh [style*="grid-template-columns: 1.6fr 1fr"],
  .dh [style*="grid-template-columns: 1.4fr 1fr"],
  .dh [style*="grid-template-columns: 1fr 2fr"],
  .dh [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Mobiel */
@media (max-width: 768px) {
  /* Op mobiel is .dh al 100% viewport-breed, dus de clip-path/box-shadow
     bleed-truc is niet meer nodig. Belangrijker: clip-path creëert een
     stacking context die het hamburger-paneel onder de backdrop drukt.
     Uitschakelen fixt dat én voorkomt clipping van fixed descendants. */
  .dh-bleed,
  .dh-nav--dark,
  .dh-footer,
  .dh-stripe {
    clip-path: none !important;
    box-shadow: none !important;
  }

  /* Nav: brand links, hamburger rechts */
  .dh-nav {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    padding: 18px 20px !important;
  }
  .dh-nav__brand-main { font-size: 18px; }
  .dh-nav__brand-top { font-size: 12px; }

  /* Hamburger tonen */
  .dh-nav__toggle { display: block; }

  /* Links worden een slide-in paneel */
  .dh-nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    padding: 96px 32px 40px;
    background: var(--sand-soft);
    flex-direction: column;
    align-items: flex-start !important;
    gap: 28px !important;
    font-size: 22px !important;
    letter-spacing: 0.04em !important;
    color: var(--navy) !important;
    box-shadow: -20px 0 60px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 0.32s ease;
    z-index: 15;
    overflow-y: auto;
  }
  .dh-nav__links.is-open {
    transform: translateX(0);
  }
  .dh-nav--dark .dh-nav__links {
    background: var(--navy-ink);
    color: var(--cream) !important;
  }
  .dh-nav__links a {
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(43,45,94,0.15);
    transition: color 0.15s ease, transform 0.15s ease;
  }
  .dh-nav--dark .dh-nav__links a {
    border-bottom-color: rgba(252,247,238,0.15);
  }
  .dh-nav__links a:hover,
  .dh-nav__links a:active,
  .dh-nav__links a:focus-visible {
    color: var(--bordeaux);
    transform: translateX(4px);
    outline: none;
  }
  .dh-nav--dark .dh-nav__links a:hover,
  .dh-nav--dark .dh-nav__links a:active,
  .dh-nav--dark .dh-nav__links a:focus-visible {
    color: var(--lightblue);
  }

  /* Body-lock en backdrop als menu open is */
  body.dh-nav-open { overflow: hidden; }
  body.dh-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(26,26,31,0.4);
    z-index: 10;
    animation: dh-fade 0.25s ease;
  }
  @keyframes dh-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Alle section paddings kleiner */
  .dh section,
  .dh [style*="padding: 72px 80px"],
  .dh [style*="padding: 80px 80px"],
  .dh [style*="padding: 120px 80px"],
  .dh [style*="padding: 140px 80px"],
  .dh [style*="padding: 80px;"],
  .dh [style*="padding: 48px 80px"],
  .dh [style*="padding: 64px 80px"],
  .dh [style*="padding: 0 80px"] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .dh section[style*="padding: 120px 80px"],
  .dh section[style*="padding: 140px 80px"] {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }
  .dh section[style*="padding: 80px 80px 60px"] {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }
  .dh section[style*="padding: 72px 80px 80px"] {
    padding-top: 40px !important;
    padding-bottom: 48px !important;
  }

  /* Alle grids klappen naar 1 kolom */
  .dh [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Columns counter voor opdrachtgevers-lijst op de homepage */
  .dh [style*="columns: 2"] {
    columns: 1 !important;
  }

  /* Grote headings nog kleiner */
  .dh [style*="font-size: 200px"] { font-size: clamp(44px, 13vw, 80px) !important; }
  .dh [style*="font-size: 160px"] { font-size: clamp(40px, 12vw, 70px) !important; }
  .dh [style*="font-size: 150px"] { font-size: clamp(40px, 12vw, 70px) !important; }
  .dh [style*="font-size: 140px"] { font-size: clamp(38px, 11vw, 64px) !important; }
  .dh [style*="font-size: 120px"] { font-size: clamp(36px, 10vw, 58px) !important; }
  .dh [style*="font-size: 110px"] { font-size: clamp(34px, 9vw, 54px) !important; }
  .dh [style*="font-size: 96px"] { font-size: clamp(32px, 8.5vw, 48px) !important; }
  .dh [style*="font-size: 88px"] { font-size: clamp(28px, 7.5vw, 44px) !important; }
  .dh [style*="font-size: 80px"] { font-size: clamp(28px, 7vw, 42px) !important; }
  .dh [style*="font-size: 48px"] { font-size: clamp(20px, 4.5vw, 32px) !important; }
  .dh [style*="font-size: 40px"] { font-size: clamp(20px, 4vw, 30px) !important; }
  .dh [style*="font-size: 36px"] { font-size: clamp(20px, 4vw, 28px) !important; }
  .dh [style*="font-size: 32px"] { font-size: clamp(18px, 3.5vw, 26px) !important; }
  .dh [style*="font-size: 28px"] { font-size: clamp(17px, 3vw, 22px) !important; }
  .dh [style*="font-size: 26px"] { font-size: clamp(16px, 2.8vw, 20px) !important; }
  .dh [style*="font-size: 24px"] { font-size: clamp(16px, 2.6vw, 20px) !important; }
  .dh [style*="font-size: 22px"] { font-size: clamp(15px, 2.4vw, 18px) !important; }

  /* Portret op mobiel: niet te extreem qua ratio */
  .dh [style*="aspect-ratio: 3/4"] { aspect-ratio: 4/5 !important; }

  /* Footer */
  .dh-footer {
    padding: 40px 24px 48px !important;
  }
  .dh-footer__grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-bottom: 32px;
  }
  .dh-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .dh-footer__tagline {
    max-width: 100%;
  }

  /* Marquee */
  #hero-marquee { font-size: 40px !important; }

  /* Opdrachtgevers-lijst */
  #opdrachtgevers-list > div {
    grid-template-columns: 48px 1fr !important;
    gap: 16px !important;
    padding: 14px 0 !important;
  }
  #opdrachtgevers-list > div > div:nth-child(2) {
    font-size: 20px !important;
  }
  #opdrachtgevers-list > div > div:nth-child(3) {
    display: none !important;
  }

  /* Binnenkort-meer pagina: vaste hoogte vervalt */
  .dh[style*="height: 900px"] {
    height: auto !important;
    min-height: 100vh;
  }
  .dh [style*="height: 540px"] {
    height: clamp(280px, 55vh, 480px) !important;
  }

  /* Binnenkort-meer: top band en bottom strip */
  .dh [style*="padding: 56px 80px 40px"] {
    padding: 32px 24px 24px !important;
    flex-direction: column !important;
    gap: 12px;
    align-items: flex-start !important;
  }
  .dh [style*="padding: 28px 80px 36px"] {
    padding: 20px 20px 24px !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    font-size: 11px !important;
    justify-content: flex-start !important;
  }
  .dh [style*="font-size: 62px"] { font-size: clamp(28px, 8vw, 44px) !important; }
  .dh [style*="font-size: 44px"] { font-size: clamp(26px, 6vw, 36px) !important; }
  .dh [style*="font-size: 30px"] { font-size: clamp(20px, 4.5vw, 26px) !important; }

  /* Buttons iets kleiner */
  .dh-btn { padding: 12px 18px; font-size: 14px; }

  /* Flex-grids met knoppen — laat knoppen netjes stapelen */
  .dh [style*="display: flex; gap: 16px"] {
    flex-wrap: wrap;
  }

  /* "justify-content: flex-end" buttons op mobiel links zetten */
  .dh [style*="justify-content: flex-end"] {
    justify-content: flex-start !important;
  }
  .dh [style*="align-items: end"] {
    align-items: flex-start !important;
  }
}

/* Zeer smalle schermen */
@media (max-width: 420px) {
  .dh-nav__links { gap: 10px 14px !important; }
  .dh [style*="font-size: 200px"] { font-size: 52px !important; }
  .dh [style*="font-size: 160px"] { font-size: 46px !important; }
  .dh [style*="font-size: 150px"] { font-size: 46px !important; }
  .dh [style*="font-size: 140px"] { font-size: 42px !important; }
  .dh [style*="font-size: 120px"] { font-size: 40px !important; }
  .dh [style*="font-size: 110px"] { font-size: 38px !important; }
}
