/*
Theme Name: BVDB – GeneratePress Child
Theme URI: https://boukevdberg.com
Description: Child theme voor boukevdberg.com. Navy-dominante huisstijl met amber accent, Archivo voor koppen en system fonts voor bodytekst (performance-first).
Author: Bouke van den Berg
Template: generatepress
Version: 1.0.0
Text Domain: bvdb
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

/* Hero strak tegen de header — homepage én pagina's */
.home .site-content,
.page .site-content {
  padding: 0 !important;
  margin: 0 !important;
}

.home .content-area,
.home .site-main,
.page .content-area,
.page .site-main {
  margin: 0 !important;
  padding: 0 !important;
}

.home .inside-article,
.page .inside-article {
  padding: 0 !important;
}

.home .entry-content,
.page .entry-content {
  margin-top: 0 !important;
}

.home .entry-content > .alignfull:first-child,
.page .entry-content > .alignfull:first-child {
  margin-top: 0 !important;
}

.wp-block-button .wp-block-button__link.wp-element-button:not(.is-style-outline .wp-block-button__link) {
  background-color: var(--bvdb-accent);
  color: var(--bvdb-navy);
}

.wp-block-button .wp-block-button__link.wp-element-button:hover {
  background-color: var(--bvdb-accent-dark);
  color: var(--bvdb-white);
}

/* Outline-knop zichtbaar op navy achtergrond */
.bvdb-hero .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--bvdb-white);
}

.bvdb-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--bvdb-white);
}

/* Publicatiekaarten in Query Loop */
.bvdb-pub-grid .wp-block-post {
  background: var(--bvdb-white);
  border: 1px solid var(--bvdb-line);
  border-top: 4px solid var(--bvdb-navy);
  border-radius: var(--bvdb-radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bvdb-pub-grid .wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--bvdb-shadow);
  border-top-color: var(--bvdb-accent);
}

.bvdb-pub-grid .wp-block-post-featured-image img {
  border-radius: 6px;
}

.bvdb-pub-grid .wp-block-post-title a {
  color: var(--bvdb-navy);
  text-decoration: none;
}

.bvdb-pub-grid .wp-block-post-title a:hover {
  color: var(--bvdb-accent-dark);
}

/* WPForms focus-staat passend bij huisstijl */
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
  border-color: var(--bvdb-navy-2) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(19, 49, 92, 0.12) !important;
}

/* Taalwisselaar in het menu */
.main-navigation .main-nav ul li.menu-item-language a {
  display: flex;
  align-items: center;
  padding: 0.5em;
}

.main-navigation .main-nav ul li.menu-item-language img {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  transition: opacity 0.15s ease;
}

.main-navigation .main-nav ul li.menu-item-language img:hover {
  opacity: 0.75;
}

:root {
  /* Kleuren */
  --bvdb-navy: #0B2545;        /* dominant: hero, footer, koppen */
  --bvdb-navy-2: #13315C;      /* secundair: hovers, subkoppen */
  --bvdb-slate: #33415C;       /* bodytekst */
  --bvdb-paper: #F7F9FC;       /* paginachtergrond */
  --bvdb-white: #FFFFFF;
  --bvdb-line: #DCE3EE;        /* randen, scheidingslijnen */
  --bvdb-accent: #E9A13B;      /* enig accent: CTA's, highlights */
  --bvdb-accent-dark: #C9821E; /* accent hover / tekst op licht */

  /* Typografie */
  --bvdb-font-display: "Archivo", system-ui, sans-serif;
  --bvdb-font-body: system-ui, -apple-system, "Segoe UI", Roboto,
                    "Helvetica Neue", Arial, sans-serif;

  /* Ritme */
  --bvdb-radius: 10px;
  --bvdb-section-pad: clamp(3rem, 8vw, 6rem);
  --bvdb-shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
}

/* =========================================================
   2. Basis
   ========================================================= */
body {
  background-color: var(--bvdb-paper);
  color: var(--bvdb-slate);
  font-family: var(--bvdb-font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bvdb-font-display);
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--bvdb-navy);
  line-height: 1.15;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p, li { line-height: 1.7; }

a {
  color: var(--bvdb-navy-2);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover { color: var(--bvdb-accent-dark); }

/* Zichtbare focus voor toetsenbordnavigatie */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--bvdb-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--bvdb-accent);
  color: var(--bvdb-navy);
}

/* =========================================================
   3. Header & navigatie (GeneratePress-elementen)
   ========================================================= */
.site-header {
  background-color: var(--bvdb-white);
  border-bottom: 1px solid var(--bvdb-line);
}

.main-title a,
.site-branding .main-title {
  font-family: var(--bvdb-font-display);
  font-weight: 800;
  color: var(--bvdb-navy);
}

.main-navigation .main-nav ul li a {
  font-family: var(--bvdb-font-display);
  font-weight: 550;
  color: var(--bvdb-navy);
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a {
  color: var(--bvdb-accent-dark);
}

/* =========================================================
   4. Knoppen
   ========================================================= */
.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  background-color: var(--bvdb-accent);
  color: var(--bvdb-navy);
  font-family: var(--bvdb-font-display);
  font-weight: 700;
  border: none;
  border-radius: var(--bvdb-radius);
  padding: 0.8em 1.6em;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: var(--bvdb-accent-dark);
  color: var(--bvdb-white);
  transform: translateY(-1px);
}

/* Secundaire (outline) knop: geef het blok de class `is-style-outline`
   of gebruik .bvdb-btn-ghost */
.wp-block-button.is-style-outline .wp-block-button__link,
.bvdb-btn-ghost {
  background: transparent;
  color: var(--bvdb-navy);
  border: 2px solid var(--bvdb-navy);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.bvdb-btn-ghost:hover {
  background: var(--bvdb-navy);
  color: var(--bvdb-white);
}

/* =========================================================
   5. Hero (signatuur-element)
   Gebruik: Groep-blok met extra CSS-class `bvdb-hero`
   Kernwoord in de H1 markeren: <span class="bvdb-mark">…</span>
   of gebruik de "Markeren"-optie in de editor + deze class.
   ========================================================= */
.bvdb-hero {
  background-color: var(--bvdb-navy);
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  color: var(--bvdb-paper);
  padding: var(--bvdb-section-pad) 0;
}

.bvdb-hero h1,
.bvdb-hero h2,
.bvdb-hero p {
  color: var(--bvdb-white);
}

.bvdb-hero p {
  color: rgba(247, 249, 252, 0.85);
  font-size: 1.1rem;
  max-width: 38em;
}

/* Amber onderstreping voor het kernwoord in de H1 */
.bvdb-mark {
  background-image: linear-gradient(to top, var(--bvdb-accent) 0.18em, transparent 0.18em);
  padding-bottom: 0.05em;
}

.bvdb-hero img {
  border-radius: var(--bvdb-radius);
  box-shadow: var(--bvdb-shadow);
}

/* =========================================================
   6. Dienstentegels
   Gebruik: Kolommen-blok met class `bvdb-cards`,
   elke kolom/groep krijgt class `bvdb-card`
   ========================================================= */
.bvdb-card {
  background: var(--bvdb-white);
  border: 1px solid var(--bvdb-line);
  border-top: 4px solid var(--bvdb-navy);
  border-radius: var(--bvdb-radius);
  padding: 1.75rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bvdb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bvdb-shadow);
  border-top-color: var(--bvdb-accent);
}

.bvdb-card h3 { margin-top: 0; }

.bvdb-card ul {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.1em;
}

.bvdb-card li::marker { color: var(--bvdb-accent); }

.bvdb-card a:not(.wp-block-button__link) {
  font-family: var(--bvdb-font-display);
  font-weight: 650;
  color: var(--bvdb-navy);
  text-decoration: none;
}

.bvdb-card a:not(.wp-block-button__link):hover {
  color: var(--bvdb-accent-dark);
  text-decoration: underline;
}

/* =========================================================
   7. Secties
   ========================================================= */
.bvdb-section { padding: var(--bvdb-section-pad) 0; }

.bvdb-section-alt {
  background: var(--bvdb-white);
  border-top: 1px solid var(--bvdb-line);
  border-bottom: 1px solid var(--bvdb-line);
}

/* Eyebrow-label boven een sectiekop (Paragraaf-blok met deze class) */
.bvdb-eyebrow {
  font-family: var(--bvdb-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bvdb-accent-dark);
  margin-bottom: 0.5rem;
}

/* =========================================================
   8. Publicaties (blogoverzicht en artikelen)
   ========================================================= */
.entry-title a {
  color: var(--bvdb-navy);
  text-decoration: none;
}

.entry-title a:hover { color: var(--bvdb-accent-dark); }

.entry-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

article .entry-content pre,
article .entry-content code {
  background: var(--bvdb-navy);
  color: #E4ECF7;
  border-radius: 6px;
}

article .entry-content code {
  padding: 0.15em 0.4em;
}

article .entry-content pre {
  padding: 1.25rem;
  overflow-x: auto;
}

blockquote {
  border-left: 4px solid var(--bvdb-accent);
  background: var(--bvdb-white);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--bvdb-radius) var(--bvdb-radius) 0;
}

/* =========================================================
   9. Formulieren
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border: 1px solid var(--bvdb-line);
  border-radius: var(--bvdb-radius);
  padding: 0.7em 0.9em;
  background: var(--bvdb-white);
  color: var(--bvdb-slate);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--bvdb-navy-2);
}

/* =========================================================
   10. Footer
   ========================================================= */
.site-footer,
.footer-widgets {
  background-color: var(--bvdb-navy);
  color: rgba(247, 249, 252, 0.8);
}

.footer-widgets .widget-title {
  color: var(--bvdb-white);
  font-family: var(--bvdb-font-display);
}

.site-footer a,
.footer-widgets a {
  color: rgba(247, 249, 252, 0.85);
  text-decoration: none;
}

.site-footer a:hover,
.footer-widgets a:hover {
  color: var(--bvdb-accent);
  text-decoration: underline;
}

.site-info {
  background-color: var(--bvdb-navy);
  color: rgba(247, 249, 252, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================
   11. Toegankelijkheid & motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   12. Responsive verfijning
   ========================================================= */
@media (max-width: 768px) {
  .bvdb-hero { background-size: 20px 20px; }
  .bvdb-card { padding: 1.25rem; }
}
