/*
Theme Name: Droogtechniek
Theme URI: https://droogtechniek.nl
Author: Heyharry / Manuel
Description: Maatwerk WordPress-thema voor Droogtechniek B.V., de specialist in droogtechniek. Vier pagina's (Home, Droogtechnieken, Over ons, Contact) met contactformulier, huisstijl in groen/oranje en de lettertypes Archivo en Barlow. Vervang de foto-placeholders door eigen beeld via de map assets/images.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
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: droogtechniek
*/

/* ---- Globale basis (uit het originele ontwerp) ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FBF9F4;
  color: #23231F;
  font-family: Barlow, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #23231F; text-decoration: none; }
a:hover { color: #F08A1C; }
input, textarea { font-family: Barlow, system-ui, sans-serif; }
::placeholder { color: #A3A399; }
img { max-width: 100%; }

/* ---- CTA-knoppen: hover-effect uit het origineel ---- */
.dt-btn-primary { transition: background .15s ease; }
.dt-btn-primary:hover { background: #DA7A0C !important; color: #fff !important; }
.dt-btn-ghost:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }

/* ---- Foto-placeholder (vervangbaar via assets/images) ---- */
.dt-slot {
  width: 100%; height: 100%;
  display: block; overflow: hidden;
}
.dt-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-slot--placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px;
  background:
    repeating-linear-gradient(135deg, #E7E4D9 0 14px, #E1DED2 14px 28px);
  color: #7A7A6E;
}
.dt-slot--placeholder span {
  font: 500 12.5px/1.5 Barlow, sans-serif;
  text-align: center; padding: 16px 18px; max-width: 92%;
  display: inline-flex; align-items: center; gap: 8px;
}
.dt-slot--placeholder span::before {
  content: ""; flex: none;
  width: 22px; height: 22px;
  background: #A8BD52;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 2v8.6l3.4-3.4 2.6 2.6 4-4 4 4V7H5zm2.5 1.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 2v8.6l3.4-3.4 2.6 2.6 4-4 4 4V7H5zm2.5 1.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z'/></svg>") center/contain no-repeat;
}

/* ---- Mobiel menu (hamburger, CSS-only) ---- */
.dt-nav-check { display: none; }
.dt-burger { display: none; }

@media (max-width: 1000px) {
  /* Beeld-hero's compact: de tekst bepaalt de hoogte, weinig lege ruimte boven de titel */
  .dt-hero { height: auto !important; min-height: 0 !important; }
  .dt-hero > div[style*="align-items:flex-end"] { position: relative !important; }
  .dt-hero > div[style*="align-items:flex-end"] > div { padding-top: 36px !important; padding-bottom: 40px !important; }
  /* Platte tekst-hero (contact): minder ruimte boven en onder */
  .dt-hero-simple > div { padding-top: 40px !important; padding-bottom: 44px !important; }

  /* Alle inhoud-grids naar één kolom (behalve de kleine nummer+tekst rijen 56px 1fr) */
  [style*="grid-template-columns:64px 1fr 260px"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 1.15fr"],
  [style*="grid-template-columns:1.35fr 1fr"],
  [style*="grid-template-columns:1.35fr .65fr"],
  [style*="grid-template-columns:1.1fr .9fr"],
  [style*="grid-template-columns:.9fr 1.1fr"],
  [style*="grid-template-columns:1.15fr .85fr"],
  [style*="grid-template-columns:.85fr 1.15fr"] {
    grid-template-columns: 1fr !important;
  }
  footer > div[style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; }

  /* Hamburger tonen, inline-menu verbergen */
  .dt-burger {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 44px; height: 44px; flex: none; cursor: pointer;
  }
  .dt-burger span { display: block; height: 2px; width: 24px; background: #23231F; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

  .dt-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #FBF9F4; border-bottom: 1px solid rgba(35,35,31,.1);
    box-shadow: 0 10px 24px rgba(0,0,0,.09);
    flex-direction: column !important; align-items: stretch !important;
    gap: 0 !important; padding: 8px 0 16px !important;
    display: none !important;
  }
  .dt-nav-check:checked ~ .dt-nav { display: flex !important; }
  .dt-nav a { padding: 15px 28px !important; border-bottom: none !important; width: 100%; }
  .dt-nav a:hover { background: rgba(35,35,31,.04); }
  .dt-nav .dt-nav-call { display: block !important; width: auto !important; margin: 12px 28px 4px !important; padding: 15px 22px !important; text-align: center; }
  .dt-nav .dt-nav-call:hover { background: #DA7A0C !important; }

  /* Burger -> kruisje wanneer open */
  .dt-nav-check:checked ~ .dt-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .dt-nav-check:checked ~ .dt-burger span:nth-child(2) { opacity: 0; }
  .dt-nav-check:checked ~ .dt-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Kleinere schermen: footer één kolom ---- */
@media (max-width: 560px) {
  footer > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ---- Overzichten: projecten en blog ---- */
@media (max-width: 1000px) {
  .dt-grid-3 { grid-template-columns: repeat(2,1fr) !important; }
  .dt-cta-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 620px) {
  .dt-grid-3 { grid-template-columns: 1fr !important; }
  .dt-meta { gap: 24px !important; }
}

/* ---- Leesbare opmaak binnen artikelen en projecten ---- */
.dt-prose > *:first-child { margin-top: 0; }
.dt-prose h2 { font: 700 clamp(24px,2.4vw,32px)/1.2 Archivo, sans-serif; letter-spacing: -.02em; margin: 44px 0 14px; }
.dt-prose h3 { font: 600 21px/1.3 Archivo, sans-serif; margin: 32px 0 10px; }
.dt-prose p, .dt-prose ul, .dt-prose ol { margin: 0 0 20px; }
.dt-prose ul, .dt-prose ol { padding-left: 24px; }
.dt-prose li { margin-bottom: 8px; }
.dt-prose a { color: #23231F; border-bottom: 1px solid #F08A1C; }
.dt-prose img { max-width: 100%; height: auto; border-radius: 14px; display: block; margin: 28px 0; }
.dt-prose blockquote { margin: 28px 0; padding: 20px 24px; background: #F5F2EA; border-left: 3px solid #A8BD52; border-radius: 0 12px 12px 0; }
.dt-prose blockquote p:last-child { margin-bottom: 0; }
.dt-prose figcaption { font: 400 14px/1.5 Barlow, sans-serif; color: #8A8A80; margin-top: -16px; }

/* ---- Paginanummers ---- */
.dt-pager a, .dt-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(35,35,31,.16); font: 600 14px/1 Archivo, sans-serif; background: #fff; }
.dt-pager .current { background: #F08A1C; border-color: #F08A1C; color: #fff; }
.dt-pager a:hover { border-color: #F08A1C; }
