/*
Theme Name: Noodmap
Theme URI: https://noodmap.nl
Author: Noodmap.nl
Description: Rustig, klassiek en goed leesbaar blokthema voor Noodmap.nl, gemaakt voor een publiek van 60+. Volledig te beheren via de Site-editor en geschikt voor WooCommerce.
Version: 1.0.3
Requires at least: 6.6
Tested up to: 6.8
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: noodmap
Tags: block-theme, full-site-editing, e-commerce, accessibility-ready
*/

/* Algemeen */
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--wp--preset--color--goud); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* Bovenbalk */
.nm-topbar { font-size: 17px; }
.nm-topbar p { margin: 0; }
.nm-topbar a { color: var(--wp--preset--color--roomwit); }

/* Header */
.nm-header { border-bottom: 1px solid var(--wp--preset--color--rand); }
.nm-brand .wp-block-site-title { line-height: 1; }
.nm-brand .wp-block-site-tagline { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wp--preset--color--grijs); margin-top: 6px; }
.nm-header .wp-block-navigation { font-weight: 600; font-size: 19px; }

/* Foto's */
.nm-photo img { width: 100%; object-fit: cover; border-radius: 28px; display: block; }
.nm-photo-hero img { aspect-ratio: 5 / 4; object-position: 40% 30%; }
.nm-photo-hero { position: relative; padding: 0 18px 18px 0; }
.nm-photo-hero::before { content: ""; position: absolute; top: 18px; left: 18px; right: 0; bottom: 0; border: 2px solid var(--wp--preset--color--goud); border-radius: 28px; }
.nm-photo-hero img { position: relative; }
.nm-photo-tall img { aspect-ratio: 4 / 5; object-position: 74% 50%; }
.nm-photo-wide img { aspect-ratio: 16 / 10; }
.nm-portrait { flex-shrink: 0; }
.nm-portrait img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: 52% 22%; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--wp--preset--color--goud); }

/* Direct-geleverd regel */
.nm-direct { position: relative; padding-left: 50px; min-height: 36px; }
.nm-direct::before { content: "⚡"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: var(--wp--preset--color--blauw); color: var(--wp--preset--color--goud-licht); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.nm-badge { display: inline-block; background: var(--wp--preset--color--blauw); color: var(--wp--preset--color--roomwit); font-weight: 700; font-size: 18px; padding: 8px 18px; border-radius: 999px; }

/* Vinkjeslijst */
.nm-check { list-style: none; padding-left: 0; }
.nm-check li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.nm-check li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 16px; height: 9px; border-left: 3px solid var(--wp--preset--color--salie-donker); border-bottom: 3px solid var(--wp--preset--color--salie-donker); transform: rotate(-45deg); }
.has-blauw-background-color .nm-check li::before { border-color: var(--wp--preset--color--goud-licht); }

/* Kaarten */
.nm-card { background: var(--wp--preset--color--wit); border: 1px solid var(--wp--preset--color--rand); border-radius: 18px; }
.nm-card > :first-child { margin-top: 0; }
.nm-tab { background: #27466E; border: 1px solid #3A5A84; border-radius: 16px; }
.nm-numeral { font-family: var(--wp--preset--font-family--cormorant); font-style: italic; font-size: 34px; color: var(--wp--preset--color--goud-licht); line-height: 1; margin: 0; }
.nm-tab h3 { color: var(--wp--preset--color--roomwit); font-family: var(--wp--preset--font-family--source-sans); font-size: 21px; font-weight: 700; margin: 0; }
.nm-tab p:not(.nm-numeral) { color: #DDE3EB; font-size: 18px; margin: 4px 0 0; }

/* Stappen */
.nm-step-number { width: 72px; height: 72px; flex: none; border-radius: 50%; border: 2px solid var(--wp--preset--color--goud); display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--cormorant); font-size: 38px; font-weight: 600; color: var(--wp--preset--color--blauw); margin: 0; }

/* Prijs */
.nm-price-card { background: var(--wp--preset--color--wit); border: 3px solid var(--wp--preset--color--blauw); border-radius: 24px; }
.nm-price { font-family: var(--wp--preset--font-family--source-sans) !important; font-weight: 700 !important; line-height: 1; letter-spacing: -0.5px; }
.nm-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.nm-price-card.is-featured { box-shadow: 0 0 0 3px var(--wp--preset--color--goud); }
/* Gelijke prijskaarten */
.nm-price-grid { align-items: stretch; }
.nm-price-grid > .nm-price-card { margin: 0 !important; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.nm-price-grid > .nm-price-card > * { margin-top: 0; margin-bottom: 0; }
.nm-price-grid > .nm-price-card > * + * { margin-top: 16px; }
.nm-price-grid > .nm-price-card > h3 { min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.nm-price-grid > .nm-price-card > .has-small-font-size { min-height: 1.6em; }
.nm-price-grid > .nm-price-card > .wp-block-list { flex-grow: 1; margin-top: 24px; }
.nm-price-grid > .nm-price-card > .wp-block-buttons { margin-top: auto; padding-top: 24px; }
.nm-device { font-weight: 600; color: var(--wp--preset--color--blauw); }

/* Veelgestelde vragen */
.wp-block-details.nm-faq { background: var(--wp--preset--color--wit); border: 1px solid var(--wp--preset--color--rand); border-radius: 14px; padding: 22px 28px; }
.wp-block-details.nm-faq summary { font-weight: 700; font-size: 21px; color: var(--wp--preset--color--blauw); cursor: pointer; }

/* Ornament */
.nm-ornament { display: block; width: 120px; height: 16px; margin: 0 auto; background: url("assets/images/ornament.svg") center / contain no-repeat; }

/* Footer */
.nm-footer a { color: #DDE3EB; }
.nm-footer .wp-block-site-title a { color: var(--wp--preset--color--roomwit); }

/* WooCommerce: melding op winkelwagen en afrekenen */
.nm-wc-notice { display: flex; gap: 14px; align-items: flex-start; background: #EEF1EC; border: 1px solid #DCE3D8; border-radius: 14px; padding: 18px 22px; margin: 0 0 28px; font-size: 19px; }
.nm-wc-notice::before { content: "⚡"; flex: none; font-size: 22px; }
.nm-wc-notice p { margin: 0; }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { border-radius: 999px !important; min-height: 56px; font-size: 20px !important; font-weight: 700 !important; }
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-blocks-components-select__select { font-size: 19px !important; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
/* Mobiel */
@media (max-width: 781px) {
  .nm-hero-title { font-size: 40px !important; }
  h2.wp-block-heading { font-size: 34px; }
  .nm-topbar { font-size: 16px; }
  .nm-topbar p:last-child { display: none; }
  .nm-brand .wp-block-site-tagline { display: none; }
  .nm-brand .wp-block-site-title { font-size: 30px; }
  .nm-header .wp-block-buttons .wp-block-button__link { padding: 12px 20px; font-size: 18px; }
  .nm-card { padding: 24px !important; }
  .nm-price-card { padding: 28px 22px !important; }
  .nm-tab { padding: 18px 20px !important; }
  .nm-step-number { width: 52px; height: 52px; font-size: 28px; }
  .nm-photo-hero { padding: 0 12px 12px 0; }
  .nm-photo-hero::before { top: 12px; left: 12px; }
  .nm-photo-tall img { aspect-ratio: 4 / 3; }
  .nm-quote { line-height: 1.35; }
  .nm-portrait img { width: 120px; height: 120px; }
  .wp-block-group:has(> .nm-portrait) { flex-wrap: wrap !important; }
  .wp-block-details.nm-faq { padding: 18px 20px; }
  .wp-block-details.nm-faq summary { font-size: 19px; }
  .nm-wc-notice { font-size: 17px; padding: 16px 18px; }
  .wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
  .wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
  .nm-header .wp-block-buttons > .wp-block-button { flex: 0 0 auto; }
  .nm-header .wp-block-buttons > .wp-block-button .wp-block-button__link { width: auto; }
}

/* Kleine kopjes boven secties */
.nm-eyebrow { letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin-bottom: 0; }
.nm-quote { font-family: var(--wp--preset--font-family--cormorant); font-style: italic; font-weight: 500; line-height: 1.3; }
.nm-kicker { font-family: var(--wp--preset--font-family--cormorant); font-style: italic; margin-bottom: 0; }
.nm-logo { margin: 0; }
.nm-price-card .wp-block-columns { margin: 0; }
