/* ─────────────────────────────────────────────────────
   BUDGETGLAS DESIGN SYSTEM v10 — Plan B
   Light base, navy primary, sky-blue accent (matched aan logo)
   ───────────────────────────────────────────────────── */
:root {
  /* Brand colors — uit logo */
  --navy:        #0F2A4A;       /* donkerblauw, hoofdkleur */
  --navy-deep:   #061629;       /* nog dieper voor secties */
  --sky:         #5BA8E8;       /* helderblauw, het glas-accent */
  --sky-soft:    #A8D0F0;       /* zachter blauw */
  --sky-glow:    #DCEEFB;       /* near-white blauw voor highlights */

  /* Neutral palette */
  --paper:       #FAFBFD;       /* gebroken wit basis */
  --paper-warm:  #F4F6FA;       /* iets dieper voor cards */
  --pearl:       #E8EEF5;       /* sand-equivalent */
  --hairline:    rgba(15,42,74,0.10);
  --hairline-soft: rgba(15,42,74,0.05);

  /* Text */
  --text:        #0A1628;
  --text-soft:   #1F2D45;
  --mute:        #5C6B82;
  --mute-soft:   #8590A4;

  /* Functional */
  --green:       #2F8859;       /* trust */
  --gold:        #D9A55A;       /* stars */

  /* Typography */
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Inter Tight', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --gutter-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 12vh, 140px);
  --radius: 6px;
  --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
::selection { background: var(--navy); color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── TYPOGRAPHY ─── */
.eyebrow {
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
}

.display-xl {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.98;
  letter-spacing: -0.022em;
}
.display-l {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.display-m {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.016em;
}
em { font-style: italic; color: var(--sky); }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s, transform 1s; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ─── USP TOP BAR ─── */
.usp-bar {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 9px var(--gutter-x);
  font-size: 12px;
  font-weight: 400;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  position: relative;
  z-index: 110;
}
.usp-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.usp-bar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--sky);
}
@media (max-width: 720px) {
  .usp-bar { gap: 14px; font-size: 11px; padding: 8px var(--gutter-x); }
  .usp-bar span:nth-child(n+3) { display: none; }
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px var(--gutter-x);
  background: rgba(250, 251, 253, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
  transition: padding 0.4s, background 0.4s;
}
nav.scrolled { padding: 10px var(--gutter-x); }

.nav-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  max-width: 1500px;
  margin: 0 auto;
}
.logo-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}
.logo-wrap img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
}
.nav-link {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}
.nav-link:hover { color: var(--sky); }
.nav-link.active { color: var(--sky); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-tel {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.005em;
}
.nav-tel:hover { color: var(--sky); }

.nav-cta {
  background: var(--navy);
  color: var(--paper);
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, transform 0.3s;
}
.nav-cta:hover { background: var(--sky); transform: translateY(-1px); }

/* Soft CTA — gebruikt voor secundaire actie (Offerte naast Bestel) */
.nav-cta-soft {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-cta-soft:hover { color: var(--sky); }
.nav-cta-soft.active { color: var(--sky); }

/* Bestel CTA — primaire conversie, sky-blue voor pop-out */
.nav-cta-bestel {
  background: var(--sky);
  position: relative;
  box-shadow: 0 2px 8px rgba(91, 168, 232, 0.3);
}
.nav-cta-bestel:hover {
  background: var(--navy);
  box-shadow: 0 4px 12px rgba(15, 42, 74, 0.4);
}

/* Soft variant van btn-primary voor componenten.html */
.btn-primary-soft {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--hairline);
}
.btn-primary-soft:hover {
  border-color: var(--sky);
  color: var(--sky) !important;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-grid { grid-template-columns: auto 1fr; }
  .nav-tel { display: none; }
  .nav-cta-soft { display: none; }  /* Op mobile alleen Direct bestellen */
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--sky); border-color: var(--sky); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--paper); }

.btn-accent {
  background: var(--sky);
  color: var(--navy-deep);
  border-color: var(--sky);
}
.btn-accent:hover { background: var(--sky-soft); border-color: var(--sky-soft); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 12px 0;
  border-color: transparent;
  border-bottom: 1.5px solid var(--navy);
  border-radius: 0;
}
.btn-ghost:hover { color: var(--sky); border-bottom-color: var(--sky); }

/* ─── PAGE HEADER (subpages) ─── */
.page-header {
  padding: clamp(60px, 10vh, 120px) var(--gutter-x);
  text-align: center;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}
.page-header .eyebrow { margin-bottom: 18px; display: block; }
.page-header h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  margin-bottom: 22px;
  color: var(--navy);
}
.page-header h1 em { color: var(--sky); }
.page-header p {
  font-size: 17px;
  color: var(--mute);
  max-width: 36em;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── SECTION INTRO (gedeeld) ─── */
.section-intro {
  max-width: 36em;
  margin: 0 auto clamp(48px, 7vh, 72px);
  text-align: center;
}
.section-intro .eyebrow { display: block; margin-bottom: 16px; }
.section-intro h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--navy);
}
.section-intro p {
  font-size: 17px;
  color: var(--mute);
  line-height: 1.6;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy-deep);
  color: var(--paper);
  padding: clamp(60px, 10vh, 100px) var(--gutter-x) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 60px);
  margin-bottom: 60px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-mark img { height: 42px; width: auto; margin-bottom: 16px; }
.footer-mark + p, footer .footer-tagline {
  font-size: 14px;
  color: rgba(250, 251, 253, 0.7);
  max-width: 26em;
  line-height: 1.6;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 16px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  line-height: 2;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--sky); }
.footer-bottom {
  border-top: 1px solid rgba(250, 251, 253, 0.10);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(250, 251, 253, 0.55);
}
@media (max-width: 720px) { .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }

/* ─── CHATBOT FAB ─── */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: var(--navy);
  color: var(--paper);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(15,42,74,0.30);
  transition: transform 0.3s, background 0.3s;
}
.chat-fab:hover { transform: scale(1.05); background: var(--sky); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab .badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  border: 2px solid var(--navy);
}

/* ─── WHATSAPP FAB ─── */
.wa-fab {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  text-decoration: none;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(37,211,102,0.35);
  transition: transform 0.3s;
}
.wa-fab:hover { transform: scale(1.05); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab .pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  80%, 100% { transform: scale(1.4); opacity: 0; }
}

/* ─── CHAT WINDOW ─── */
.chat-window {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 540px;
  max-height: calc(100vh - 130px);
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(15,42,74,0.25);
  z-index: 81;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
}
.chat-window.open { display: flex; }
.chat-header {
  padding: 18px 20px;
  background: var(--navy);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header-info { display: flex; gap: 12px; align-items: center; }
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
}
.chat-header h5 { font-family: var(--display); font-size: 18px; font-weight: 500; }
.chat-header span {
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}
.chat-close {
  background: none; border: none; color: var(--paper);
  cursor: pointer; font-size: 22px; opacity: 0.6;
}
.chat-close:hover { opacity: 1; }
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 85%;
  padding: 11px 15px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 14px;
}
.chat-msg.bot { background: var(--pearl); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--navy); color: var(--paper); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.typing { background: var(--pearl); color: var(--mute); align-self: flex-start; font-style: italic; border-bottom-left-radius: 4px; }
.chat-msg.typing::after { content: "..."; animation: dots 1.2s steps(3) infinite; }
@keyframes dots { 0% { content: "."; } 33% { content: ".."; } 66% { content: "..."; } }
.chat-input-area {
  padding: 12px;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 8px;
  background: var(--paper);
}
.chat-input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 14px;
  outline: none;
  background: var(--paper);
  color: var(--text);
}
.chat-input:focus { border-color: var(--sky); }
.chat-send {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--paper);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.chat-send:hover { background: var(--sky); }

/* ─── FAIL-SAFE: chat + whatsapp altijd zichtbaar ─── */
.chat-fab,
.wa-fab {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Mobile: stack ze netjes */
@media (max-width: 600px) {
  .chat-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .wa-fab { bottom: 80px; right: 16px; width: 52px; height: 52px; }
  .wa-fab svg { width: 26px; height: 26px; }
  .chat-window { bottom: 80px; right: 8px; left: 8px; width: auto; max-width: none; }
}

/* ============================================
   SPEED STRIP — Voorraad/Levertijd USP
   On-brand navy/sky-blue, prominent onder nav
   ============================================ */
.speed-strip {
  background: linear-gradient(135deg, #0F2A4A 0%, #1F4870 100%);
  padding: 14px 24px;
  position: relative;
  overflow: hidden;
}
.speed-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.speed-strip-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.speed-strip-bolt {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sky, #5BA8E8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(91, 168, 232, 0.18);
  animation: speed-pulse 2.4s ease-in-out infinite;
}
.speed-strip-bolt svg {
  width: 16px;
  height: 16px;
  fill: white;
}
@keyframes speed-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(91, 168, 232, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(91, 168, 232, 0.08); }
}
.speed-strip-label {
  font-size: 11px;
  font-weight: 600;
  color: #A8D0F0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1;
  margin-bottom: 3px;
}
.speed-strip-headline {
  font-size: 16px;
  font-weight: 600;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.speed-strip-divider {
  height: 28px;
  width: 1px;
  background: rgba(168, 208, 240, 0.3);
}
.speed-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.92);
}
.speed-strip-item svg {
  width: 14px;
  height: 14px;
  stroke: #A8D0F0;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .speed-strip { padding: 12px 16px; }
  .speed-strip-inner { gap: 14px; }
  .speed-strip-divider { display: none; }
  .speed-strip-headline { font-size: 14.5px; }
  .speed-strip-item { font-size: 12.5px; }
}
