/* ============================================================
   Dijkgraaf Rustig — stijllaag over het hoofdthema.
   Eén lettertype (Manrope), lichte koppen, zandkleurige vlakken,
   dunne lijnen in plaats van schaduwen, ronde knoppen.

   Alle regels hangen aan body.dg-rustig (gezet door functions.php).
   De pagina's van het hoofdthema hebben eigen <style>-blokken met
   !important op kleuren; daarom staan hier zwaardere selectors
   ("html body.dg-rustig …") en waar nodig ook !important.
   ============================================================ */

/* ── 1. Kleuren, schaduwen en afrondingen (tokens) ──────────── */
html body.dg-rustig,
html body.dg-rustig .dg-category,
html body.dg-rustig .dg-product,
html body.dg-rustig .dg-checkout,
html body.dg-rustig .dg-cart,
html body.dg-rustig .dg-keuze {
  --gray-900: #1e231b;
  --gray-800: #2a3026;
  --gray-700: #454b41;
  --gray-600: #5b6157;
  --gray-500: #6f756a;
  --gray-400: #9aa094;
  --gray-200: #e3ded2;
  --gray-100: #f4f1ea;
  --green-pale: #eef3e6;
  --brown-pale: #f4f1ea;
  --shadow-sm: 0 1px 2px rgba(30,35,27,.04);
  --shadow-md: 0 8px 24px rgba(30,35,27,.06);
  --shadow-lg: 0 14px 40px rgba(30,35,27,.08);
  --shadow-xl: 0 20px 50px rgba(30,35,27,.10);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  /* Eigen tokens van deze stijllaag */
  --r-zand: #f4f1ea;
  --r-lijn: #e3ded2;
  --r-tekst: #1e231b;
  --r-zacht: #5b6157;
  --r-diep: #2f4f20;
}

/* ── 1b. Breedte op desktop ─────────────────────────────────
   De inhoud beslaat ongeveer 85% van het scherm (zoals het voorbeeld),
   met als ondergrens de oude breedte (1152 px) en als bovengrens 1720 px.
   De shop zelf (categorie, product, winkelwagen, afrekenen, account)
   houdt de vertrouwde breedte van 1200 px. */
@media (min-width: 1281px) {
  html body.dg-rustig .container {
    max-width: none;
    padding-left: max(24px, min(7.4vw, calc((100vw - 1152px) / 2)), calc((100vw - 1720px) / 2));
    padding-right: max(24px, min(7.4vw, calc((100vw - 1152px) / 2)), calc((100vw - 1720px) / 2));
  }
  html body.dg-rustig :is(.dg-category, .dg-product, .dg-cart, .dg-checkout, .dg-account, .dg-betalen, .dg-bevestiging) .container {
    max-width: 1200px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Op grote schermen groeit de tekst licht mee met de bredere opmaak. */
@media (min-width: 1600px) { html:has(body.dg-rustig) { font-size: 17px; } }
@media (min-width: 1880px) { html:has(body.dg-rustig) { font-size: 18px; } }

/* ── 2. Typografie ──────────────────────────────────────────── */
html body.dg-rustig,
html body.dg-rustig *:not(.dashicons):not(.ab-icon):not(#wpadminbar *) {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
html body.dg-rustig { color: var(--r-tekst) !important; -webkit-font-smoothing: antialiased; }
html body.dg-rustig h1,
html body.dg-rustig h2 { font-weight: 300 !important; letter-spacing: -.02em; line-height: 1.15; }
html body.dg-rustig h3,
html body.dg-rustig h4 { font-weight: 600 !important; letter-spacing: -.01em; }
html body.dg-rustig strong, html body.dg-rustig b { font-weight: 600; }

/* Kleine kop boven een sectietitel */
html body.dg-rustig .section-label,
html body.dg-rustig .ov-label,
html body.dg-rustig .keuze-vraag { font-size: .72rem !important; font-weight: 600 !important; letter-spacing: .16em !important; text-transform: uppercase; }
html body.dg-rustig .section-title { font-weight: 300 !important; }
html body.dg-rustig .section-subtitle { color: var(--r-zacht) !important; }

/* Kleine titels in tegels en kaarten: iets steviger dan de grote koppen */
html body.dg-rustig .keuze-body h2,
html body.dg-rustig .login-card h2,
html body.dg-rustig .proj-editor h2,
html body.dg-rustig .proj-kop h2 { font-weight: 500 !important; letter-spacing: -.01em; }

/* ── 3. Knoppen: rond en rustig ─────────────────────────────── */
html body.dg-rustig :is(.btn, .keuze-knop, .afwerking-knop, .hout-card-knop, .btn-add-cart, .btn-add-to-cart, .btn-checkout, .btn-continue, .btn-order, .btn-shop, .btn-contact, .bv-knop, .bev-knop, .btn-show-filters, .filter-toon-btn, .filter-reset-btn, .coupon-btn, .dg-off-verstuur, .dg-off-fab, .woocommerce-button, .button, .variant-kies) {
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
}
html body.dg-rustig :is(.btn, .btn-primary, .btn-white, .keuze-knop, .afwerking-knop, .btn-add-cart, .btn-add-to-cart, .btn-checkout, .btn-order) { box-shadow: none !important; }
html body.dg-rustig .btn:hover { transform: none !important; }

/* ── 4. Kop van binnenpagina's: licht in plaats van zwart ───── */
html body.dg-rustig .page-hero { background: var(--r-zand) !important; }
html body.dg-rustig .page-hero::before { display: none !important; }
html body.dg-rustig .page-hero h1 { color: var(--r-tekst) !important; font-weight: 300 !important; }
html body.dg-rustig .page-hero p { color: var(--r-zacht) !important; }
html body.dg-rustig .page-hero .breadcrumb { color: var(--gray-500) !important; }
html body.dg-rustig .page-hero .breadcrumb a { color: var(--green) !important; }

/* Tekstpagina's (veelgestelde vragen, verzending, juridisch): kop gecentreerd
   boven de smalle, gecentreerde tekstkolom, net als op de andere pagina's. */
html body.dg-rustig :is(.dg-faq, .dg-verzending, .dg-juridisch) .page-hero { text-align: center; padding: 72px 0 56px; }
html body.dg-rustig :is(.dg-faq, .dg-verzending, .dg-juridisch) .page-hero p { margin-left: auto; margin-right: auto; }
html body.dg-rustig :is(.dg-faq, .dg-verzending, .dg-juridisch) .page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ── 5. Header, topbalk en footer ───────────────────────────── */
html body.dg-rustig .topbar { background: var(--r-diep) !important; }
/* Header: rustig, zonder gekleurde vlakjes achter de menu-items */
/* Geen backdrop-filter: dat zou het mobiele menu (position: fixed binnen de
   header) aan de header vastzetten, waardoor het niet meer opent. */
html body.dg-rustig .header { background: #fff; box-shadow: none !important; border-bottom: 1px solid var(--r-lijn); }
html body.dg-rustig .header.scrolled { box-shadow: 0 6px 24px rgba(30,35,27,.05) !important; }
html body.dg-rustig .header .container { height: 84px; }
html body.dg-rustig .header .logo { flex-shrink: 0; }
html body.dg-rustig .header .logo img { height: 48px; }
html body.dg-rustig .header .nav { gap: 6px; }
html body.dg-rustig .header .nav > a,
html body.dg-rustig .header .nav-mega > a { padding: 10px 14px; font-size: .92rem; font-weight: 500 !important; letter-spacing: 0; color: var(--r-zacht) !important; background: none !important; border-radius: 0; }
html body.dg-rustig .header .nav > a:hover,
html body.dg-rustig .header .nav-mega > a:hover,
html body.dg-rustig .header .nav-mega.open > a,
html body.dg-rustig .header .nav > a.active,
html body.dg-rustig .header .nav-mega > a.active { color: var(--green) !important; background: none !important; }
/* Dun lijntje onder het actieve en het aangewezen item */
html body.dg-rustig .header .nav > a::after,
html body.dg-rustig .header .nav-mega > a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
html body.dg-rustig .header .nav > a:hover::after,
html body.dg-rustig .header .nav > a.active::after,
html body.dg-rustig .header .nav-mega > a:hover::after,
html body.dg-rustig .header .nav-mega > a.active::after,
html body.dg-rustig .header .nav-mega.open > a::after { transform: scaleX(1); }
html body.dg-rustig .header .nav-mega > a .chevron { opacity: .55; }
html body.dg-rustig .nav-actions .btn-account,
html body.dg-rustig .nav-actions .btn-cart { background: var(--r-zand); }
html body.dg-rustig .nav-actions .btn-account:hover,
html body.dg-rustig .nav-actions .btn-cart:hover { background: var(--green-pale); }

/* Uitklapmenu's (Douglas Hout, Webshop, Bouwpakketten) */
html body.dg-rustig .nav-mega-paneel { border: 1px solid var(--r-lijn); border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 24px 48px rgba(30,35,27,.10); }
html body.dg-rustig .nav-mega.open .nav-mega-paneel { grid-template-columns: 280px minmax(0, 1fr); }
html body.dg-rustig .nav-mega-rail { background: var(--r-zand); border-right: 0; padding: 20px 12px; }
html body.dg-rustig .nav-mega-rail-item { padding: 13px 16px; border-radius: 10px; font-size: .92rem; font-weight: 500 !important; color: var(--r-zacht) !important; box-shadow: none; }
html body.dg-rustig .nav-mega-rail-item:hover { background: rgba(255,255,255,.65); color: var(--r-tekst) !important; }
html body.dg-rustig .nav-mega-rail-item.actief { background: #fff; color: var(--r-tekst) !important; font-weight: 600 !important; box-shadow: none; }
html body.dg-rustig .nav-mega-rail-item .pijl { color: var(--gray-400) !important; }
html body.dg-rustig .nav-mega-rail-item.actief .pijl { color: var(--green) !important; }
html body.dg-rustig .nav-mega-inhoud { padding: 32px 40px 30px; min-height: 280px; }
html body.dg-rustig .nav-mega-paneel.enkel .nav-mega-inhoud { min-height: 0; padding: 30px 40px; }
/* Klein kopje boven de links (naam van de gekozen groep) */
html body.dg-rustig .nav-mega-inhoud[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
html body.dg-rustig .nav-mega-links { gap: 0 48px; }
html body.dg-rustig .nav-mega-links a { padding: 12px 0; margin: 0; border-radius: 0; border-bottom: 1px solid var(--r-lijn); font-size: .95rem; font-weight: 400 !important; color: var(--r-tekst) !important; background: none !important; transition: color .2s, padding-left .2s; }
html body.dg-rustig .nav-mega-links a:hover { color: var(--green) !important; background: none !important; padding-left: 6px; }
html body.dg-rustig .nav-mega-alle { margin-top: 24px; padding: 0 0 3px; border-radius: 0; border-bottom: 1px solid var(--green-light); font-size: .88rem; font-weight: 600 !important; color: var(--r-tekst) !important; background: none !important; }
html body.dg-rustig .nav-mega-alle:hover { color: var(--green) !important; background: none !important; }

/* Accountmenu */
html body.dg-rustig .account-dropdown { border: 1px solid var(--r-lijn); border-radius: 14px; box-shadow: 0 16px 40px rgba(30,35,27,.10); overflow: hidden; padding: 6px 0; }
html body.dg-rustig .account-dropdown a { font-size: .9rem; color: var(--r-tekst) !important; }
html body.dg-rustig .account-dropdown a:hover { background: var(--r-zand); color: var(--green) !important; }
html body.dg-rustig .account-dropdown .divider { background: var(--r-lijn); }
html body.dg-rustig .account-dropdown .user-greeting { border-bottom-color: var(--r-lijn); }

/* Kleinere schermen: compacter, zodat het menu op één regel blijft */
@media (min-width: 769px) and (max-width: 1200px) {
  html body.dg-rustig .header .container { height: 76px; }
  html body.dg-rustig .header .logo img { height: 42px; }
  html body.dg-rustig .header .nav { gap: 0; }
  html body.dg-rustig .header .nav > a,
  html body.dg-rustig .header .nav-mega > a { padding: 8px 9px; font-size: .85rem; }
  html body.dg-rustig .header .nav > a::after,
  html body.dg-rustig .header .nav-mega > a::after { left: 9px; right: 9px; }
  html body.dg-rustig .nav-mega.open .nav-mega-paneel { grid-template-columns: 230px minmax(0, 1fr); }
  html body.dg-rustig .nav-mega-inhoud { padding: 26px 28px; }
}
@media (min-width: 769px) and (max-width: 940px) {
  html body.dg-rustig .header .logo img { height: 36px; }
  html body.dg-rustig .header .nav > a,
  html body.dg-rustig .header .nav-mega > a { padding: 8px 6px; font-size: .78rem; }
  html body.dg-rustig .header .nav > a::after,
  html body.dg-rustig .header .nav-mega > a::after { left: 6px; right: 6px; }
}

/* Mobiel menu */
@media (max-width: 768px) {
  html body.dg-rustig .header .container { height: 68px; }
  html body.dg-rustig .header .logo img { height: 40px; }
  html body.dg-rustig .mnav-parent,
  html body.dg-rustig .mnav-item { padding: 19px 24px; font-size: 1.05rem; font-weight: 400 !important; color: var(--r-tekst) !important; border-bottom: 1px solid var(--r-lijn); }
  html body.dg-rustig .mnav-parent:active,
  html body.dg-rustig .mnav-item:active { background: var(--r-zand); }
  html body.dg-rustig .mnav-pijl { color: var(--green) !important; }
  html body.dg-rustig .mnav-terug { padding: 16px 24px; background: var(--r-zand); border-bottom: 1px solid var(--r-lijn); font-size: .74rem; font-weight: 600 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--green) !important; }
  html body.dg-rustig .mnav-alle { font-weight: 600 !important; color: var(--green) !important; }
}

html body.dg-rustig .footer { background: var(--r-diep) !important; color: rgba(255,255,255,.72) !important; }
html body.dg-rustig .footer h4 { font-size: .72rem !important; letter-spacing: .16em !important; font-weight: 600 !important; }
html body.dg-rustig .footer-links a,
html body.dg-rustig .footer-contact-item,
html body.dg-rustig .footer-contact-item a,
html body.dg-rustig .footer-brand p,
html body.dg-rustig .footer-bottom,
html body.dg-rustig .footer-bottom a { color: rgba(255,255,255,.72) !important; }
html body.dg-rustig .footer-links a:hover,
html body.dg-rustig .footer-bottom a:hover { color: #fff !important; }
html body.dg-rustig .footer-socials a { border-radius: 50%; }

/* Topbalk: waardering links, contact rechts (header.php van dit thema) */
html body.dg-rustig .topbar { color: rgba(255,255,255,.78) !important; font-size: .78rem; }
html body.dg-rustig .topbar a { color: rgba(255,255,255,.78) !important; }
html body.dg-rustig .topbar a:hover { color: #fff !important; }
html body.dg-rustig .r-waardering { gap: 8px; }
html body.dg-rustig .r-sterren { color: #f2c94c !important; letter-spacing: 1px; }

/* Footer: rustige kolommen (footer.php van dit thema) */
html body.dg-rustig .rf { padding-top: 80px; }
html body.dg-rustig .rf-kols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
html body.dg-rustig .rf-merk .logo-footer { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 18px; }
html body.dg-rustig .rf-merk p { font-size: .9rem; line-height: 1.7; color: rgba(255,255,255,.68) !important; margin: 0 0 22px; max-width: 340px; }
html body.dg-rustig .rf h4 { margin-bottom: 18px; color: #fff !important; }
html body.dg-rustig .rf h4.rf-sub { margin-top: 28px; }
html body.dg-rustig .rf .footer-links { gap: 10px; }
html body.dg-rustig .rf .footer-links li { font-size: .9rem; color: rgba(255,255,255,.72) !important; }
html body.dg-rustig .rf .footer-links a { font-size: .9rem; }
html body.dg-rustig .rf .footer-links a:hover { padding-left: 0; }
html body.dg-rustig .rf .footer-socials a { background: rgba(255,255,255,.08); }
html body.dg-rustig .rf .footer-socials a:hover { background: var(--green); }
html body.dg-rustig .rf .footer-socials svg { color: rgba(255,255,255,.85) !important; }
html body.dg-rustig .rf .footer-bottom { font-size: .78rem; gap: 12px; flex-wrap: wrap; }
html body.dg-rustig .rf-juridisch { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 1024px) { html body.dg-rustig .rf-kols { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 768px) {
  html body.dg-rustig .rf { padding-top: 56px; }
  html body.dg-rustig .rf-kols { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-bottom: 36px; }
  html body.dg-rustig .rf-merk { grid-column: 1 / -1; }
  html body.dg-rustig .rf .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  html body.dg-rustig .rf-juridisch { gap: 14px; }
}

/* Stappenplan "Van A tot Z" (Over ons): dezelfde lijst als op de homepage */
html body.dg-rustig .a-tot-z { background: var(--r-zand) !important; }
html body.dg-rustig .az-grid { align-items: start; gap: 80px; }
html body.dg-rustig .az-tekst .section-label { justify-content: flex-start; }
html body.dg-rustig .az-tekst .section-label::after { display: none; }
html body.dg-rustig .az-stappen { border-top: 1px solid var(--r-lijn); max-width: none; }
html body.dg-rustig .az-stap { grid-template-columns: 48px 1fr; column-gap: 20px; align-items: center; padding: 22px 44px 22px 0; border-bottom: 1px solid var(--r-lijn); }
html body.dg-rustig .az-stap:last-child { padding-bottom: 22px; }
html body.dg-rustig .az-stap::after { display: none !important; }
html body.dg-rustig .az-cirkel { position: static; width: 48px; height: 48px; border: 1px solid var(--r-lijn); background: #fff !important; box-shadow: none; }
html body.dg-rustig .az-cirkel svg { width: 20px; height: 20px; color: var(--green) !important; stroke-width: 1.6; }
html body.dg-rustig .az-stap:hover .az-cirkel svg { color: var(--green) !important; }
html body.dg-rustig .az-nr { top: 50%; right: 0; transform: translateY(-50%); width: auto; height: auto; background: none; border: 0; border-radius: 0; color: var(--brown-light) !important; font-size: .78rem; font-weight: 600 !important; letter-spacing: .1em; }
html body.dg-rustig .az-nr::before { content: '0'; }
html body.dg-rustig .az-stap h3 { font-size: 1.15rem; font-weight: 500 !important; margin-bottom: 2px; }
html body.dg-rustig .az-stap p { font-size: .9rem; color: var(--r-zacht) !important; }
@media (max-width: 768px) {
  html body.dg-rustig .az-grid { gap: 36px; }
  html body.dg-rustig .az-stap { padding-right: 0; }
  html body.dg-rustig .az-nr { display: none; }
}

/* ── 6. Afsluitende blokken ─────────────────────────────────── */
html body.dg-rustig .cta { background: var(--green-dark) !important; }
html body.dg-rustig .cta::before { display: none !important; }
html body.dg-rustig .cta h2 { font-weight: 300 !important; }

/* Offerteblok op de bouwpakketpagina's: zand in plaats van groen, zodat
   er geen twee groene vlakken onder elkaar staan. */
html body.dg-rustig .cta-box { background: var(--r-zand) !important; border: 1px solid var(--r-lijn); }
html body.dg-rustig .cta-box h3 { color: var(--r-tekst) !important; font-weight: 400 !important; font-size: 1.5rem; }
html body.dg-rustig .cta-box p { color: var(--r-zacht) !important; }
html body.dg-rustig .cta-box .btn { background: var(--green) !important; color: #fff !important; }
html body.dg-rustig .cta-box .btn:hover { background: var(--green-dark) !important; box-shadow: none !important; }

/* Bruine band op Over ons: effen, zonder patroon */
html body.dg-rustig .douglas-banner { background: #3f3524 !important; }
html body.dg-rustig .douglas-banner::before { display: none !important; }

/* ── 7. Vlakken en kaarten: lijn in plaats van schaduw ──────── */
html body.dg-rustig .section { padding-top: 96px; padding-bottom: 96px; }
html body.dg-rustig :is(.keuze-kaart, .afwerking-kaart, .pt-tegel, .product-card, .service-card, .variant-card, .option-item, .review-card) { box-shadow: none; }
html body.dg-rustig :is(.keuze-kaart, .afwerking-kaart, .pt-tegel, .product-card):hover { box-shadow: var(--shadow-md); }

@media (max-width: 768px) {
  html body.dg-rustig .section { padding-top: 60px; padding-bottom: 60px; }
}
