/*
 * BrightWP — thema-basis en componenten.
 * Volgt het designsysteem (kleur, typografie, radius, spacing, toestanden).
 */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bw-cream);
  color: var(--bw-text);
  font-family: var(--bw-font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: var(--bw-blue); text-decoration: none; }
a:hover { color: var(--bw-blue-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--bw-blue); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
p { text-wrap: pretty; }

h1, h2, h3, h4 { font-family: var(--bw-font-head); color: var(--bw-night); letter-spacing: -.03em; line-height: 1.08; }
h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }

/* Layout */
.bw-container { max-width: var(--bw-container); margin: 0 auto; padding: 0 var(--bw-gutter); }
.bw-section { padding: clamp(44px, 6vw, 72px) 0; }
.bw-lede { font-size: 18px; line-height: 1.6; color: var(--bw-text-intro); max-width: 64ch; }
.bw-eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bw-blue); }

/* Knoppen — min. raakvlak 44px */
.bw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 13px 22px; border-radius: var(--bw-radius-field);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.bw-btn:hover { text-decoration: none; }
.bw-btn--primary { background: var(--bw-blue); color: var(--bw-white); box-shadow: var(--bw-shadow-btn); }
.bw-btn--primary:hover { background: var(--bw-blue-hover); color: var(--bw-white); }
.bw-btn--secondary { border-color: var(--bw-night); color: var(--bw-night); background: transparent; }
.bw-btn--secondary:hover { background: var(--bw-night); color: var(--bw-white); }
.bw-btn--tertiary { border-color: var(--bw-field-border); color: var(--bw-night); background: var(--bw-white); }
.bw-btn--tertiary:hover { background: #F0EBE2; }
.bw-btn--on-dark { background: var(--bw-night); color: var(--bw-white); }
.bw-btn[aria-disabled="true"], .bw-btn:disabled { background: #F0EBE2; color: #6B7691; box-shadow: none; pointer-events: none; }

/* Kaarten */
.bw-card { background: var(--bw-white); border: 1px solid var(--bw-line); border-radius: var(--bw-radius-card); padding: 22px; }
.bw-card--emphasis { background: var(--bw-night); color: var(--bw-white); border-color: var(--bw-night); }
.bw-card--emphasis h3, .bw-card--emphasis strong { color: var(--bw-white); }

/* Badges */
.bw-badge { display: inline-block; padding: 5px 10px; border-radius: var(--bw-radius-pill); font-size: 12.5px; font-weight: 600; }
.bw-badge--paid { background: var(--bw-success-bg); color: var(--bw-success-fg); }
.bw-badge--progress { background: #EAF0FF; color: var(--bw-info-fg); }
.bw-badge--waiting { background: var(--bw-warn-bg); color: var(--bw-warn-fg); }
.bw-badge--done { background: #F0EBE2; color: var(--bw-text-soft); }
.bw-badge--demo { background: var(--bw-warn-bg); border: 1px solid #F3DFA8; color: var(--bw-warn-fg); border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; }

/* Prijs-versheid indicator (STALE/FALLBACK subtiel tonen) */
.bw-price-note { font-size: 12px; color: var(--bw-text-soft); }
.bw-price-note--stale { color: var(--bw-warn-fg); }

/* Topbar */
.bw-topbar { background: var(--bw-night); color: #CFE0FF; font-size: 13px; }
.bw-topbar__row { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: space-between; padding: 9px var(--bw-gutter); max-width: var(--bw-container); margin: 0 auto; }
.bw-topbar__trust { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.bw-topbar__meta { display: flex; gap: 10px; align-items: center; }
.bw-topbar a { color: #CFE0FF; }
.bw-topbar a:hover { color: #fff; }
.bw-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bw-lime); display: inline-block; }

/* Header / nav */
.bw-header { position: sticky; top: 0; z-index: 40; background: rgba(251,248,243,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bw-line); }

/* Dienstenmegamenu */
.bw-nav-mega-wrap { display: inline-flex; }
.bw-nav-mega-btn { padding: 9px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--bw-text); display: inline-flex; align-items: center; gap: 6px; }
.bw-nav-mega-btn:hover, .bw-nav-mega-btn[aria-expanded="true"] { background: #F0EBE2; color: var(--bw-night); }
.bw-caret { font-size: 10px; opacity: .6; }
.bw-mega { position: absolute; left: var(--bw-gutter); right: var(--bw-gutter); top: 100%; z-index: 60; max-width: var(--bw-container); margin: 8px auto 0; background: #fff; border: 1px solid var(--bw-line); border-radius: 16px; box-shadow: var(--bw-shadow-card); padding: 18px; }
.bw-mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; }
.bw-mega__col { padding: 12px; border-radius: 12px; }
.bw-mega__col:hover { background: #FAF8F3; }
.bw-mega__title { display: block; font-family: var(--bw-font-head); font-weight: 700; font-size: 15.5px; color: var(--bw-night); margin-bottom: 8px; }
.bw-mega__title:hover { color: var(--bw-blue); text-decoration: none; }
.bw-mega__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bw-mega__list a { display: block; padding: 6px 8px; border-radius: 8px; font-size: 14px; color: var(--bw-text); }
.bw-mega__list a:hover { background: #F4F7FF; color: var(--bw-blue); text-decoration: none; }
.bw-mega__all { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--bw-blue); }
.bw-mega__foot { border-top: 1px solid var(--bw-line); margin-top: 12px; padding-top: 12px; }
.bw-mega__foot a { font-weight: 600; }
.bw-nav-actions { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.bw-nav-login { font-size: 14.5px; font-weight: 500; }

/* Hosting-dropdown (native details) */
.bh-drop { position: relative; }
.bh-drop > summary { list-style: none; cursor: pointer; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--bw-text); display: inline-flex; align-items: center; gap: 6px; }
.bh-drop > summary::-webkit-details-marker { display: none; }
.bh-drop[open] > summary, .bh-drop > summary:hover { background: #F0EBE2; color: var(--bw-night); }
.bh-drop__panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 240px; background: #fff; border: 1px solid var(--bw-line); border-radius: 14px; box-shadow: var(--bw-shadow-card); padding: 8px; display: flex; flex-direction: column; }
.bh-drop__panel a { padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--bw-text); }
.bh-drop__panel a:hover { background: #F4F7FF; color: var(--bw-blue); text-decoration: none; }

/* Rijk Hosting-dropdownpaneel: kaarten met icoonbadge + subtitel (matcht design). */
.bh-drop__panel--rich { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; width: 620px; max-width: 76vw; padding: 12px; border-radius: 16px; box-shadow: 0 20px 50px rgba(10, 27, 61, .16); }
.bh-drop__card { display: flex; gap: 12px; padding: 12px; border-radius: 12px; color: var(--bw-text); }
.bh-drop__card:hover { background: #F4F7FF; text-decoration: none; }
.bh-drop__ic { width: 38px; height: 38px; border-radius: 10px; background: #EAF0FF; color: var(--bw-blue); display: flex; align-items: center; justify-content: center; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 14px; flex: none; }
.bh-drop__txt strong { display: block; font-size: 15px; color: var(--bw-night); }
.bh-drop__txt span { font-size: 13px; color: var(--bw-text-soft); }

/* Homepage productlijn-tabs (in-place). */
.bh-lijn-tab { padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--bw-text); cursor: pointer; }
.bh-lijn-tab:hover { text-decoration: none; }
.bh-lijn-tab.is-active { background: var(--bw-night); color: #fff; }

/* Megamenu-productfilter */
.bh-mega__filter { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--bw-line); padding-bottom: 12px; }
.bh-mega__tab { border: 1px solid var(--bw-line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--bw-text-soft); cursor: pointer; }
.bh-mega__tab.is-active { background: var(--bw-night); color: #fff; border-color: var(--bw-night); }
.bh-mega__panel[hidden] { display: none; }

/* Taalwisselaar */
.bh-langswitch { display: inline-flex; gap: 2px; border: 1px solid var(--bw-line); border-radius: 999px; padding: 2px; background: #fff; }
.bh-lang { padding: 5px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--bw-text-soft); }
.bh-lang.is-current { background: var(--bw-night); color: #fff; }
.bh-lang:hover { text-decoration: none; }

/* Leadroutesband */
.bh-leads { background: var(--bw-cream); border-top: 1px solid var(--bw-line); padding: 28px 0; }
.bh-leads__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.bh-leads__card { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius-card); padding: 18px 20px; text-decoration: none; }
.bh-leads__card:hover { border-color: var(--bw-blue); text-decoration: none; }
.bh-leads__card strong { color: var(--bw-night); font-size: 15.5px; }
.bh-leads__icon { font-size: 22px; }
.bh-leads__sub { font-size: 13.5px; color: var(--bw-text-intro); }

@media (max-width: 860px) {
  .bh-drop, .bh-drop__panel { position: static; }
  .bw-js .bh-drop__panel { box-shadow: none; border: 0; border-top: 1px solid var(--bw-line); border-radius: 0; }
  .bh-drop__panel--rich { width: auto; max-width: none; grid-template-columns: 1fr; padding: 8px 0; }
  .bh-mega__filter { flex-wrap: wrap; }
  .bw-js .bw-nav-mega-wrap { width: 100%; display: block; }
  .bw-js .bw-nav-mega-btn { width: 100%; justify-content: space-between; }
  .bw-js .bw-mega { position: static; left: auto; right: auto; width: auto; max-width: none; margin: 4px 0; box-shadow: none; border: 0; border-top: 1px solid var(--bw-line); border-radius: 0; padding: 8px 0; }
  .bw-js .bw-mega__grid { grid-template-columns: 1fr; }
  .bw-nav-actions { margin-left: 0; flex-direction: column; align-items: stretch; width: 100%; }
  .bw-nav-actions .bw-btn, .bw-nav-login { width: 100%; text-align: center; }
}
.bw-header__inner { display: flex; align-items: center; gap: 18px; padding: 14px var(--bw-gutter); max-width: var(--bw-container); margin: 0 auto; }
.bw-logo { display: flex; flex-direction: column; gap: 1px; }
.bw-logo__name { font-family: var(--bw-font-head); font-weight: 800; font-size: 23px; letter-spacing: -.035em; color: var(--bw-night); line-height: 1; }
.bw-logo__name em { color: var(--bw-blue); font-style: normal; }
.bw-logo__sub { font-size: 10.5px; color: var(--bw-text-soft); letter-spacing: .04em; text-transform: uppercase; }
.bw-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: auto; }
.bw-nav a { padding: 9px 12px; border-radius: 8px; color: var(--bw-text); font-size: 14.5px; font-weight: 500; }
.bw-nav a:hover { background: #F0EBE2; color: var(--bw-night); text-decoration: none; }
.bw-nav-toggle { display: none; margin-left: auto; min-height: 44px; min-width: 44px; border: 1px solid var(--bw-line); background: var(--bw-white); border-radius: 10px; font-size: 18px; cursor: pointer; color: var(--bw-night); }

/* Mobiele navigatie — alleen actief als JS beschikbaar is (.bw-js), zodat de
   navigatie zonder JS altijd zichtbaar blijft. */
@media (max-width: 860px) {
  .bw-js .bw-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .bw-js .bw-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; order: 3; margin-left: 0; gap: 4px; padding-top: 10px; }
  .bw-js .bw-nav.is-open { display: flex; }
  .bw-nav a, .bw-nav .bw-btn { width: 100%; }
  .bw-header__inner { flex-wrap: wrap; }
}

/* Facturatiecyclus-schakelaar (tab: per maand / per jaar) */
.bw-cycle-toggle { display: inline-flex; background: var(--bw-white); border: 1px solid var(--bw-line); border-radius: var(--bw-radius-pill); padding: 4px; gap: 4px; margin-bottom: 18px; }
.bw-cycle-btn { border: 0; background: transparent; padding: 9px 16px; border-radius: var(--bw-radius-pill); font-weight: 600; font-size: 14px; color: var(--bw-text-soft); cursor: pointer; min-height: 40px; }
.bw-cycle-btn[aria-pressed="true"] { background: var(--bw-night); color: var(--bw-white); }
.bw-cycle-save { font-weight: 600; }
.bw-per { font-size: 14px; font-weight: 400; }
/* Toon het bedrag van de actieve cyclus; het andere wordt verborgen. */
.bw-cyc-jaar { display: none; }
.bw-pricing.is-jaar .bw-cyc-maand { display: none; }
.bw-pricing.is-jaar .bw-cyc-jaar { display: inline; }

/* Pakketkaarten-grid */
.bw-pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: stretch; }
.bw-pkg { display: flex; flex-direction: column; overflow: hidden; }
.bw-pkg__head { padding: 18px 20px; border-bottom: 1px solid #EEE9E0; }
.bw-pkg--emphasis .bw-pkg__head { border-bottom-color: rgba(255,255,255,.12); }
.bw-pkg__price { font-family: var(--bw-font-head); font-size: 30px; font-weight: 800; letter-spacing: -.035em; margin-top: 10px; }
.bw-pkg__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; font-size: 14.5px; border-bottom: 1px solid #F3EFE8; }
.bw-pkg--emphasis .bw-pkg__row { border-bottom-color: rgba(255,255,255,.08); }
.bw-pkg__cta { margin-top: auto; padding: 16px 20px; }

/* Toestanden */
.bw-state { border-radius: var(--bw-radius-card); padding: 22px; }
.bw-state--empty { background: var(--bw-white); border: 1px dashed var(--bw-field-border); }
.bw-state--error { background: var(--bw-error-bg); border: 1px solid #F3C6B4; color: var(--bw-error-fg); }
.bw-state--success { background: #F4FBE8; border: 1px solid #D5EDA8; }

/* Footer */
.bw-footer { background: var(--bw-night-deep); color: #C3D2EC; }
.bw-footer a { color: #C3D2EC; }
.bw-footer a:hover { color: var(--bw-white); }
.bw-footer__inner { max-width: var(--bw-container); margin: 0 auto; padding: 48px var(--bw-gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }

/* Home-hero met blauwe gradient + groene badge */
.bh-hero { background: radial-gradient(120% 140% at 85% 0%, #12306b 0%, #0A1B3D 55%, #061229 100%); color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 84px); }
.bh-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(194,241,78,.14); border: 1px solid rgba(194,241,78,.45); color: var(--bw-lime); font-size: 13px; font-weight: 600; }
.bh-hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 56px); line-height: 1.04; margin: 18px 0 18px; max-width: 20ch; }
.bh-hero__lede { font-size: 18px; line-height: 1.6; color: #C3D2EC; max-width: 62ch; margin: 0 0 26px; }

/* Productlijn-kaarten (home) */
.bh-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.bh-linecard { background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius-card); padding: 24px; display: flex; flex-direction: column; }
.bh-icon { width: 44px; height: 44px; border-radius: 12px; background: #E9F0FF; color: var(--bw-blue); display: flex; align-items: center; justify-content: center; font-family: var(--bw-font-head); font-weight: 800; font-size: 15px; margin-bottom: 16px; }
.bh-linecard h3 { margin: 0 0 2px; font-size: 20px; }
.bh-linecard__sub { color: var(--bw-blue); font-weight: 600; font-size: 14px; text-decoration: none; }
.bh-linecard__desc { font-size: 14.5px; line-height: 1.6; color: var(--bw-text-intro); margin: 12px 0 14px; }
.bh-linecard__price { font-size: 14px; color: var(--bw-text-mid); padding-top: 14px; border-top: 1px solid #F1EEE7; margin-top: auto; }
.bh-linecard__link { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--bw-blue); }

/* VPS-kaart (home, breed) */
.bh-vpscard { background: #fff; border: 1px solid var(--bw-line); border-radius: var(--bw-radius-card); padding: 22px 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.bh-vpscard__right { text-align: right; font-size: 14px; color: var(--bw-text-soft); }
@media (max-width: 720px) { .bh-vpscard { grid-template-columns: 1fr; } .bh-vpscard__right { text-align: left; } }

/* Hero-afbeelding en logo-afbeelding */
.bw-hero-media { max-width: 100%; }
.bw-hero-img { display: block; width: 100%; height: auto; }
.bw-logo--image img { max-height: 48px; width: auto; height: auto; }

/* Vrij bewerkbare editor-inhoud (blokken) in de BrightWP-stijl */
.bw-page-content { font-size: 16px; color: var(--bw-text-mid); }
.bw-page-content h2 { margin: 28px 0 12px; }
.bw-page-content h3 { margin: 22px 0 10px; }
.bw-page-content p { margin: 0 0 14px; line-height: 1.65; }
.bw-page-content img { border-radius: var(--bw-radius-card); height: auto; }
.bw-page-content ul, .bw-page-content ol { line-height: 1.7; padding-left: 20px; }
.bw-page-content a { text-decoration: underline; }

/* Skip-link (toegankelijkheid) */
.bw-skip { position: absolute; left: -9999px; top: 0; background: var(--bw-night); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.bw-skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
