
/* Footer visibility reset: let main.css control colors/background */
/* Uniform hero styling on desktop */
@media (min-width: 1024px){
  .hero-common {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 64px 16px;
    row-gap: 12px;
  }
  .hero-common .lead { max-width: 900px; }
}

/* Province theme: Drenthe = green accent */
.theme-drenthe .brand, .theme-drenthe .accent, .theme-drenthe .badge,
.theme-drenthe .brand-main, .theme-drenthe .brand-title {
  color: #0f8b3d;
  border-color: #0f8b3d;
}


/* Centering helpers for named sections */
@media (min-width: 1024px){
  .desktop-center { display: grid; place-items: center; text-align: center; }
  .desktop-center .card { text-align: left; }
}



/* --- Desktop layout improvements (v6) --- */
@media (min-width: 1200px){
  .container, .wrapper, main, .main, .content {
    max-width: 1440px;
    padding-left: 28px;
    padding-right: 28px;
  }
}
@media (min-width: 1536px){
  .container, .wrapper, main, .main, .content {
    max-width: 1600px;
  }
}

/* Larger hero typography on desktop (keep site's colors) */
@media (min-width: 1024px){
  .hero h1 { font-size: clamp(38px, 5vw, 58px); }
  .hero p.lead { font-size: clamp(18px, 2.2vw, 22px); }
}

/* Center helpers stay desktop-only */
@media (min-width: 1024px){
  .desktop-center { display: grid; place-items: center; text-align: center; }
  .desktop-center .card { text-align: left; }
}



/* === v8 additions (desktop-first enhancements, safe to mobile) === */

/* Footer: green links + right rating badge (on dark footer) */
.footer-links a.link-green{ color:#8ad1bf !important; text-decoration:underline; }
.footer-right { display:flex; align-items:center; gap:12px; justify-content:flex-end; }
.footer-right .rating-badge{
  display:inline-flex; align-items:center; gap:6px;
  background:#0b1815; color:#e8eeec; border:1px solid #2b4b42;
  padding:8px 10px; border-radius:10px; font-weight:600; font-size:14px;
}
.footer-right .rating-badge .star{ font-size:16px; line-height:1; }

/* Hero unify helper (already present as .hero-common), keep using site's colors */
/* No color overrides here to respect main.css */

/* Branded "In welke situaties" card */
.situaties-card{
  border:2px solid var(--accent);
  border-left-width:6px;
  background:#fff;
  border-radius:12px;
  padding:16px 18px;
  box-shadow: var(--shadow);
}
.situaties-card ul{ margin:0; padding-left:1.2rem; }
.situaties-card li{ margin:.35rem 0; }
.situaties-card b{ color:var(--primary); }

/* Wordmark next to logo */
.brand-wordmark{
  display:inline-flex; align-items:center; gap:4px;
  font-weight:800; letter-spacing:.2px;
  font-size: clamp(16px, 2vw, 22px);
  margin-left:10px;
}
.brand-wordmark .red{ color: var(--accent); }
.brand-wordmark .green{ color: var(--primary); }

@media (min-width: 1024px){
  /* Tighter hero spacing for desktop */
  .hero .wrap{ padding: 40px 0; }
}



/* === v9 adjustments === */

/* Footer compact + rating right */
.footer{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:18px 0;}
.footer-right{margin-left:auto;}
.footer-right .rating-badge{background:#0f1f1b;color:#e8eeec;padding:6px 10px;font-size:14px;}

/* Wordmark uppercase */
.brand-wordmark{font-size:clamp(18px,2vw,24px);}
.brand-wordmark .red{color:var(--accent);text-transform:uppercase;}
.brand-wordmark .direct{color:inherit;text-transform:uppercase;}
.brand-wordmark .green{color:var(--primary);text-transform:uppercase;}

/* FAQ hero centering */
.faq-hero{display:grid;place-items:center;text-align:center;padding:60px 16px;}
.faq-hero h1{font-size:clamp(32px,5vw,50px);margin-bottom:10px;}
.faq-hero .lead{font-size:18px;max-width:800px;}


/* v9 footer layout: push rating to right, lower height (desktop only) */
@media (min-width: 1024px){
  .footer { grid-template-columns: 1fr auto; padding: 20px 0; }
  .footer-right { justify-self: end; margin-left: auto; }
}
.footer-right { display: inline-flex; align-items: center; gap: 8px; }
.footer-links { display: inline-flex; gap: 12px; flex-wrap: wrap; }


/* v10 ensure footer address & links white on dark background */
.footer .address, .footer a { color:#fff; }


/* v10 footer visibility & colors */
.footer, .site-footer, .site-footer-wrap { color: #e8eeec; }
.footer .address, .site-footer .address, .footer-regios, .region-list { color: #e8eeec !important; }
.footer a, .site-footer a { color: #e8eeec; }
.footer-links a.link-green { color: #8ad1bf !important; text-decoration: underline; }
@media (min-width: 1024px){
  .footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
  .footer-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
  .footer-right { justify-self: end; }
}


/* v10 Footer refinements */
.site-footer .address { color:#fff !important; }
.site-footer .footer-links, .site-footer .footer-regios, .site-footer .footer-regio, .site-footer .region-list {
  display:block !important;
  visibility:visible !important;
  color:#fff;
}



/* v10 wordmark & footer visibility tweaks */
.brand-wordmark{ gap:0 !important; letter-spacing:0.2px; }
.brand-wordmark .red, .brand-wordmark .green{ margin:0; }
.brand-wordmark{ text-transform:uppercase; }

/* Footer content visibility on desktop */
@media (min-width: 1024px){
  .footer{ display:grid; grid-template-columns: 1fr auto; align-items:center; padding:18px 0; }
  .footer-links{ display:flex !important; gap:12px; flex-wrap:wrap; }
  .footer-regios{ display:block !important; color:#e8eeec !important; }
}
.address{ color:#ffffff !important; }  /* white address on dark footer */
.footer a{ color:#e8eeec; }            /* ensure footer links visible */



/* v11 unified footer layout */
footer.footer-wrap, .site-footer-wrap{
  background:#0b1815;
  color:#e8eeec;
  padding:24px 20px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}
@media(min-width:1024px){
  .footer-grid{ grid-template-columns: 1fr auto; align-items:center; }
}
.footer-left{ display:flex; flex-direction:column; gap:12px; }
.footer-logo-line{ display:flex; align-items:center; gap:12px; }
.footer-logo-line img{ height:40px; }
.footer-logo-line .brand-wordmark{ font-size:20px; }
.footer-meta{ font-size:14px; color:#fff; }
.footer-links{ display:flex; flex-wrap:wrap; gap:12px; }
.footer-links a{ color:#8ad1bf; text-decoration:underline; }
.footer-regios{ font-size:13px; color:#e8eeec; }
.footer-right{ display:flex; justify-content:flex-end; }
.rating-badge{ display:inline-flex; align-items:center; gap:6px; background:#0b1815; border:1px solid #2b4b42;
  padding:6px 10px; border-radius:8px; font-weight:600; font-size:14px; color:#e8eeec; }
.rating-badge .star{ color:#f7d64e; }



/* === v11 Unified Footer === */
footer { /* keep site base colors from main.css */ }
.footer.container { display:grid; grid-template-columns: 1fr; gap:14px; padding:24px 0; }
.footer-left { display:grid; gap:10px; align-content:start; }
.footer-links { display:flex; gap:12px; flex-wrap:wrap; }
.footer-links a { color:#e8eeec; text-decoration:underline; }
.footer-regios { color:#e8eeec; font-size:0.95rem; line-height:1.5; }
.footer-address { color:#ffffff; font-weight:600; }
.footer-right { display:flex; justify-content:flex-start; }
.rating-badge { display:inline-flex; align-items:center; gap:6px; background:#0b1815; color:#e8eeec; border:1px solid #2b4b42; padding:8px 10px; border-radius:10px; font-weight:700; }

@media (min-width: 1024px){
  .footer.container { grid-template-columns: 1fr auto; align-items:center; padding:20px 0; }
  .footer-right { justify-content:flex-end; }
}



/* === v12 Full Footer Layout === */
footer { background: inherit; }
.footer.container {
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
  padding:24px 0;
}
.footer-left, .footer-middle, .footer-right { display:grid; gap:8px; }
.footer-left { align-content:start; }
.footer-left .brand { display:flex; align-items:center; gap:8px; }
.footer-middle .footer-address { color:#ffffff; font-weight:600; }
.footer-middle .footer-regios { color:#e8eeec; font-size:0.95rem; line-height:1.5; }
.footer-middle .footer-links { display:flex; gap:12px; flex-wrap:wrap; }
.footer-middle .footer-links a { color:#e8eeec; text-decoration:underline; }
.footer-right { justify-content:flex-start; }
.footer-right .rating-badge {
  display:inline-flex; align-items:center; gap:6px;
  background:#0b1815; color:#e8eeec; border:1px solid #2b4b42;
  padding:8px 10px; border-radius:10px; font-weight:700;
}
@media (min-width:1024px){
  .footer.container{
    grid-template-columns: auto 1fr auto;
    align-items:center;
    padding:20px 0;
  }
  .footer-left{justify-content:flex-start;}
  .footer-middle{justify-content:center; text-align:center;}
  .footer-right{justify-content:flex-end;}
}



/* === v12 Unified Footer with Logo + Wordmark + Address/Provinces + Rating === */
footer {}
.footer.container.footer-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
  padding:24px 0;
}
.footer-col{ display:grid; gap:10px; align-content:start; }
.footer-brand{ display:flex; align-items:center; gap:10px; }
.footer-brand img{ height:48px; width:auto; object-fit:contain; }
.brand-wordmark{ gap:0; text-transform:uppercase; font-weight:800; letter-spacing:.2px; }
.brand-wordmark .red{ color: var(--accent); }
.brand-wordmark .green{ color: var(--primary); }
.footer-address{ color:#ffffff; font-weight:600; }
.footer-links{ display:flex; gap:12px; flex-wrap:wrap; }
.footer-links a{ color:#e8eeec; text-decoration:underline; }
.footer-regios{ color:#e8eeec; font-size:.95rem; line-height:1.5; }
.rating-badge{ display:inline-flex; align-items:center; gap:6px; background:#0b1815; color:#e8eeec; border:1px solid #2b4b42; padding:8px 10px; border-radius:10px; font-weight:700; }

@media (min-width:1024px){
  .footer.container.footer-grid{
    grid-template-columns: auto 1fr auto;
    align-items:center;
    padding:20px 0;
  }
  .footer-left{ align-items:center; }
  .footer-right{ justify-self:end; }
}



/* === v13 Sticky footer & sticky CTA coexistence (desktop) === */
@media (min-width: 1024px){
  html, body { height: 100%; }
  body { display: flex; flex-direction: column; }
  footer {
    margin-top: auto;
    background: #000 !important;      /* footer stays black */
    border-top: 4px solid var(--accent); /* red strip consistent with site */
    position: relative;
    z-index: 5;                        /* above page content */
  }
  /* Reserve space for the sticky CTA bar so it doesn't overlap footer/content */
  body { padding-bottom: 88px; }       /* adjust to sticky bar height */
  .sticky { bottom: 16px; z-index: 9; }/* keep CTA floating above, not covering address */
  .footer.container.footer-grid { padding-bottom: 12px; }
}



/* === v15 Sticky bar animation with car icon === */
.sticky{
  transition: opacity .28s ease, transform .28s ease;
  will-change: opacity, transform;
}
.sticky.sticky--hidden{
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.sticky .sticky-car{
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  font-size: 18px;
  line-height: 1;
}
@media (prefers-reduced-motion: reduce){
  .sticky{ transition: none; }
  .sticky.sticky--hidden{ transform: none; }
  .sticky .sticky-car{ animation: none !important; }
}



/* === v16 Fancy sticky car icon + animations === */
.sticky .sticky-car-icon{ display:inline-block; margin-right:10px; vertical-align:middle; }
.sticky .sticky-car-icon .body{ fill: var(--primary); }
.sticky .sticky-car-icon .roof{ fill: var(--accent); }
.sticky .sticky-car-icon .wheel{ fill: #222; transform-origin: center; }

@keyframes wheel-spin{ to { transform: rotate(360deg); } }
@keyframes drive-in{ from { transform: translateX(-8px); opacity: 0.85; } to { transform: translateX(0); opacity: 1; } }

/* Animate wheels only when sticky bar is visible */
.sticky:not(.sticky--hidden) .wheel{ animation: wheel-spin 1s linear infinite; }
.sticky:not(.sticky--hidden) .sticky-car-icon{ animation: drive-in .4s ease-out; }

@media (prefers-reduced-motion: reduce){
  .sticky:not(.sticky--hidden) .wheel{ animation: none; }
  .sticky:not(.sticky--hidden) .sticky-car-icon{ animation: none; }
}



/* === v17 Footer refinements === */
/* Smaller logo */
.footer-brand img { height: 32px; }
@media (min-width:1024px){
  .footer-brand img { height: 40px; }
}

/* Space out blocks in footer */
.footer-col > div { margin-bottom: 12px; }
.footer-col > div:last-child { margin-bottom: 0; }

/* Ensure reviews block styled consistently */
.footer-reviews{ color:#e8eeec; font-weight:600; }



/* === v17 Footer refinements === */
.footer-brand img { height: 32px; }
@media (min-width:1024px){
  .footer-brand img { height: 40px; }
}
/* block spacing */
.footer-col > .footer-block { margin-bottom: 12px; }
.footer-col > .footer-block:last-child { margin-bottom: 0; }
/* keep links readable */
.footer-links a { text-decoration: underline; }



/* === v18 Footer & Sticky refinements === */
/* Footer always black (mobile + desktop) */
footer { background:#000 !important; }
/* Ensure footer text stays readable */
.footer a { color:#e8eeec; }
.footer-address { color:#fff; }
/* Center privacy/disclaimer in the middle column */
.footer-middle { text-align:center; }
.footer-links { justify-content:center; }
.footer-links a { text-decoration: underline; }
/* Make sure provinces remain visible */
.footer-regios { display:block; color:#e8eeec; }
/* Ensure footer logo shows */
.footer-brand img { display:inline-block; height:32px; width:auto; object-fit:contain; }
@media (min-width:1024px){
  .footer-brand img { height:40px; }
}



/* === v21 Layout refinements === */
/* Icons row: left-to-right with wrap */
.icon-list { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-start; }
.icon-item { display:flex; align-items:flex-start; gap:8px; }
.icon-item i { display:inline-flex; width:24px; justify-content:center; }

/* CTA pair (Je woning / Ook auto's): stacked full width with equal card widths */
.cta-pair { display:grid; gap:16px; }
.cta-pair .card { width:100%; }

@media(min-width:1024px){
  /* optional: if we ever want side-by-side on desktop with equal width, uncomment:
  .cta-pair { grid-template-columns: 1fr 1fr; }
  */
}

/* Center "Wat wij kopen" section content more robustly */
section:has(h2:matches(:contains("Wat wij kopen"), :contains("Wat we kopen"), :contains("Wat wij aankopen"))) .container,
:root .wat-wij-kopen, .wat-wij-kopen .container {
  display:grid; place-items:center;
}



/* === v25 Spinner refinements === */
/* Neutralize aggressive rotating circles site-wide */
.spinner, .loading, .loader, .lds-ring, [class*="spinner"], [class*="lds-"] {
  animation: none !important;
  transform: none !important;
  opacity: .85;
}
/* Optional calm pulse (very subtle) */
.spinner.calm, .loading.calm, .loader.calm, .lds-ring.calm {
  animation: calmPulse 1.8s ease-in-out infinite;
}
@keyframes calmPulse { 0%,100% { opacity:.7 } 50% { opacity:1 } }
@media (prefers-reduced-motion: reduce){
  .spinner.calm, .loading.calm, .loader.calm, .lds-ring.calm { animation: none; }
}


/* === v25 Legal pages polish === */
.hero .lead { opacity:.9; max-width: 60ch; }
.container.content { max-width: 920px; padding: 32px 16px; }
.container.content h2 { margin-top: 20px; margin-bottom: 8px; font-size: 1.35rem; }
.container.content p, .container.content li { line-height: 1.65; }
.container.content ul { margin: 0 0 12px 18px; }
.container.content .note {
  background: #0b1815; border:1px solid #2b4b42; border-radius:12px; padding:14px 16px; margin: 14px 0;
}


/* === v25 Sticky icon color mapping === */
.sticky .sticky-car-icon .body{ fill: var(--primary); }
.sticky .sticky-car-icon .roof{ fill: var(--accent); }
.sticky .sticky-car-icon .wheel{ animation: wheel-spin 1s linear infinite; }
@keyframes wheel-spin{ to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .sticky .sticky-car-icon .wheel{ animation: none; } }


/* === v26 Kill spinners site-wide === */
.spinner, .loading, .loader, .lds-ring, .lds-roller, .lds-dual-ring,
[class*="spinner"], [class*="lds-"] {
  display: none !important;
  animation: none !important;
  transform: none !important;
}


/* v30: kill all spinners */
.spinner, .loading, .loader, .lds-ring, .lds-roller, .lds-dual-ring,
[class*="spinner"], [class*="lds-"] { display:none !important; animation:none !important; transform:none !important; }


/* v32: ensure sticky car animation CSS (idempotent) */
:root{ --vd24-green:#2f6f63; --vd24-red:#b73a36; }
.sticky .sticky-car{ display:inline-block; margin-right:8px; vertical-align:middle; transform:translateX(-120%); opacity:0; }
.sticky .car-body{ fill:var(--vd24-green); } .sticky .car-roof{ fill:var(--vd24-red); }
@keyframes vd24-drive{ 0%{transform:translateX(-120%);opacity:0} 10%{opacity:1} 90%{transform:translateX(calc(100vw - 120px));opacity:1} 100%{transform:translateX(calc(100vw - 120px));opacity:0} }
@keyframes vd24-wheel{ to{ transform: rotate(360deg);} }
.sticky.is-visible .sticky-car{ animation: vd24-drive 3.2s cubic-bezier(.32,.02,.16,1) 0s 1 both; }
.sticky.is-visible .sticky-car .wheel{ animation: vd24-wheel .7s linear infinite; }
@media (prefers-reduced-motion: reduce){ .sticky.is-visible .sticky-car{ animation:none; opacity:1; transform:none } .sticky.is-visible .sticky-car .wheel{ animation:none } }



/* v33: also animate existing sticky-car-icon */
.sticky .sticky-car-icon{ display:inline-block; margin-right:8px; vertical-align:middle; transform:translateX(-120%); opacity:0; }
.sticky.is-visible .sticky-car-icon{ animation: vd24-drive 3.2s cubic-bezier(.32,.02,.16,1) 0s 1 both; }


/* v36 sticky car */
:root{ --vd24-green:#2f6f63; --vd24-red:#b73a36; }
.sticky .sticky-car, .sticky .sticky-car-icon{
  display:inline-block; margin-right:8px; vertical-align:middle;
  transform:translateX(-120%); opacity:0;
}
.sticky .car-body{ fill:var(--vd24-green); } .sticky .car-roof{ fill:var(--vd24-red); }
@keyframes vd24-drive{ 0%{transform:translateX(-120%);opacity:0} 10%{opacity:1} 90%{transform:translateX(calc(100vw - 120px));opacity:1} 100%{transform:translateX(calc(100vw - 120px));opacity:0} }
@keyframes vd24-wheel{ to{ transform: rotate(360deg);} }
.sticky.is-visible .sticky-car, .sticky.is-visible .sticky-car-icon{ animation: vd24-drive 3.2s cubic-bezier(.32,.02,.16,1) 1 both; }
.sticky.is-visible .sticky-car .wheel, .sticky.is-visible .sticky-car-icon .wheel{ animation: vd24-wheel .7s linear infinite; }
@media (prefers-reduced-motion: reduce){
  .sticky.is-visible .sticky-car, .sticky.is-visible .sticky-car-icon{ animation:none; opacity:1; transform:none; }
  .sticky.is-visible .sticky-car .wheel, .sticky.is-visible .sticky-car-icon .wheel{ animation:none; }
}

/* v37 sticky anim selectors broadened */
:root{ --vd24-green:#2f6f63; --vd24-red:#b73a36; }
.sticky .sticky-car, .sticky .sticky-car-icon,
.sticky-bar .sticky-car, .sticky-bar .sticky-car-icon,
.stickybar .sticky-car, .stickybar .sticky-car-icon,
.fixed-cta .sticky-car, .fixed-cta .sticky-car-icon,
#sticky .sticky-car, #sticky .sticky-car-icon,
.sticky-bottom .sticky-car, .sticky-bottom .sticky-car-icon{
  display:inline-block; margin-right:8px; vertical-align:middle;
  transform:translateX(-120%); opacity:0;
}
.sticky .car-body, .sticky-bar .car-body, .stickybar .car-body, .fixed-cta .car-body, #sticky .car-body, .sticky-bottom .car-body{ fill:var(--vd24-green); }
.sticky .car-roof, .sticky-bar .car-roof, .stickybar .car-roof, .fixed-cta .car-roof, #sticky .car-roof, .sticky-bottom .car-roof{ fill:var(--vd24-red); }

@keyframes vd24-drive{ 0%{transform:translateX(-120%);opacity:0} 10%{opacity:1} 90%{transform:translateX(calc(100vw - 120px));opacity:1} 100%{transform:translateX(calc(100vw - 120px));opacity:0} }
@keyframes vd24-wheel{ to{ transform: rotate(360deg);} }

.sticky.is-visible .sticky-car, .sticky.is-visible .sticky-car-icon,
.sticky-bar.is-visible .sticky-car, .sticky-bar.is-visible .sticky-car-icon,
.stickybar.is-visible .sticky-car, .stickybar.is-visible .sticky-car-icon,
.fixed-cta.is-visible .sticky-car, .fixed-cta.is-visible .sticky-car-icon,
#sticky.is-visible .sticky-car, #sticky.is-visible .sticky-car-icon,
.sticky-bottom.is-visible .sticky-car, .sticky-bottom.is-visible .sticky-car-icon{
  animation: vd24-drive 3.2s cubic-bezier(.32,.02,.16,1) 1 both;
}
.sticky.is-visible .wheel, .sticky-bar.is-visible .wheel, .stickybar.is-visible .wheel,
.fixed-cta.is-visible .wheel, #sticky.is-visible .wheel, .sticky-bottom.is-visible .wheel{
  animation: vd24-wheel .7s linear infinite;
}

@media (prefers-reduced-motion: reduce){
  .sticky.is-visible .sticky-car, .sticky.is-visible .sticky-car-icon,
  .sticky-bar.is-visible .sticky-car, .sticky-bar.is-visible .sticky-car-icon,
  .stickybar.is-visible .sticky-car, .stickybar.is-visible .sticky-car-icon,
  .fixed-cta.is-visible .sticky-car, .fixed-cta.is-visible .sticky-car-icon,
  #sticky.is-visible .sticky-car, #sticky.is-visible .sticky-car-icon,
  .sticky-bottom.is-visible .sticky-car, .sticky-bottom.is-visible .sticky-car-icon{
    animation:none; opacity:1; transform:none;
  }
  .sticky.is-visible .wheel, .sticky-bar.is-visible .wheel, .stickybar.is-visible .wheel,
  .fixed-cta.is-visible .wheel, #sticky.is-visible .wheel, .sticky-bottom.is-visible .wheel{
    animation:none;
  }
}
