/* ============================================================
   Homepage — stijl per sectie (stond als <style> in de body van index.html), in dezelfde volgorde.
   Laadt na avs-shared.css, net als vroeger. Na een wijziging: perf.py --critical en --reversion.
   ============================================================ */
/* ---- index.html: 2b. vertrouwensstrook ---- */
  .trust-band{background:var(--bg-dark);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:22px 0;}
  .trust-band .wrap{display:flex;align-items:center;justify-content:center;gap:14px 30px;flex-wrap:wrap;}
  .trust-band .trust-label{font-family:var(--mono);font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted-text);}
  .trust-band .trust-items{display:flex;gap:12px 26px;flex-wrap:wrap;justify-content:center;}
  .trust-band .trust-items span{font-size:.9rem;color:var(--text);font-weight:500;display:inline-flex;align-items:center;gap:7px;}
  .trust-band .trust-items span::before{content:'✓';color:var(--gold);font-weight:700;}
  .trust-band .g-rating{font-weight:700;}
  .trust-band .g-rating .star{color:var(--gold);font-size:1.05rem;margin-right:2px;}
  .trust-band .g-rating a{display:inline-block;padding:11px 0;margin:-11px 0;}
  @media(max-width:600px){.trust-band .trust-items span{font-size:.82rem;}}
/* ---- index.html: 2b2. promovideo ---- */
  /* De section is een column-flex container; .wrap's auto-marges blokkeren stretch,
     waardoor de wrap anders krimpt tot de intrinsieke breedte (zoals bij #reviews). */
  #promo-video .wrap { width: 100%; max-width: var(--maxw); min-width: 0; }
  #promo-video .video-head { max-width: 640px; margin: 0 auto 34px; text-align: center; }
  #promo-video .video-head .eyebrow { display: inline-block; margin-bottom: 14px; }
  #promo-video .video-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.16; margin-bottom: 12px; }
  #promo-video .video-head h2 em { color: var(--gold-ink); font-style: italic; }
  #promo-video .video-head p { color: var(--muted-text); font-size: 1.02rem; margin: 0; }
/* ---- index.html: 2c. voordelen ---- */
  #voordelen .bento{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
  #voordelen .b{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:30px;box-shadow:0 14px 36px -28px rgba(20,32,44,.22);transition:transform .25s ease,border-color .25s ease;}
  #voordelen .b:hover{transform:translateY(-5px);border-color:var(--gold);}
  #voordelen .b .bi{font-size:1.9rem;margin-bottom:14px;}
  #voordelen .b h3{font-family:var(--serif);font-size:1.4rem;color:var(--text);margin-bottom:8px;}
  #voordelen .b p{color:var(--muted-text);font-size:.96rem;line-height:1.6;margin:0;}
  #voordelen .b.wide{grid-column:span 2;}
  #voordelen .more{margin-top:24px;text-align:center;}
  #voordelen .more a{font-family:var(--mono);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-ink);display:inline-block;padding:14px 8px;margin:-14px 0;}
  @media(max-width:860px){#voordelen .bento{grid-template-columns:repeat(2,1fr);}#voordelen .b.wide{grid-column:span 2;}}
  @media(max-width:540px){#voordelen .bento{grid-template-columns:1fr;}#voordelen .b.wide{grid-column:span 1;}}
/* ---- index.html: 5a. recent werk ---- */
  #werk .werk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px,100%),1fr));
    gap: 22px;
    max-width: 980px;
    margin: 0 auto;
  }
  #werk figure {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 36px -28px rgba(20,32,44,.25);
  }
  #werk .werk-media {
    aspect-ratio: 4 / 5;
    width: 100%;
    overflow: hidden;
    background: var(--bg-dark);
  }
  #werk .werk-media img,
  #werk .werk-media video {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 42%;
    display: block;
  }
  #werk figcaption {
    padding: 14px 18px;
    font-size: .9rem;
    color: var(--muted-text);
  }
  #werk figcaption b { color: var(--text); font-weight: 500; display: block; }
  /* Kop boven de foto's: onze eerste opdrachten (draadloze camera's uit de beginperiode) */
  #werk .werk-head {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
  }
  #werk .werk-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: .75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-ink);
    background: rgba(255,255,255,.62);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 8px 17px;
    margin-bottom: 22px;
  }
  #werk .werk-badge svg {
    width: 15px; height: 15px; flex-shrink: 0;
    stroke: var(--gold); fill: none;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  #werk .werk-head .section-title {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    line-height: 1.14;
    margin-bottom: 18px;
  }
  #werk .werk-head .section-title em { color: var(--gold-ink); font-style: italic; }
  #werk .werk-lead {
    color: var(--muted-text);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 60ch;
    margin: 0 auto;
  }
  #werk .werk-lead strong { color: var(--text); font-weight: 600; }
  #werk .werk-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 30px 0 0;
    font-family: var(--mono);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-text);
  }
  #werk .werk-sub::before,
  #werk .werk-sub::after {
    content: "";
    height: 1px; width: clamp(28px, 8vw, 62px);
    background: linear-gradient(90deg, transparent, rgba(184,146,60,.55));
  }
  #werk .werk-sub::after { background: linear-gradient(90deg, rgba(184,146,60,.55), transparent); }
  @media (max-width: 600px) {
    #werk .werk-grid { grid-template-columns: 1fr; max-width: 420px; }
    #werk .werk-head { margin-bottom: 34px; }
    #werk .werk-lead { font-size: 1rem; }
  }
/* ---- index.html: 5b. reviews ---- */
  /* Featurable widget: keep page from stretching, but give the carousel full row width.
     The section is a column-flex container and .wrap's auto-margins block stretch,
     so the wrap shrink-wraps to the widget's tiny intrinsic width — force width:100%. */
  #reviews { overflow-x: hidden; }
  #reviews .wrap { width: 100%; max-width: var(--maxw); min-width: 0; }
  #reviewsWidget { width: 100%; min-width: 0; }
  #reviewsWidget iframe { max-width: 100%; }
  #reviews .reviews-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:20px;margin:8px auto 0;max-width:860px;align-items:start;}
  #reviews .reviews-cta{text-align:center;margin-top:34px;}
  #reviews .reviews-cta p{color:var(--muted-text);font-size:.95rem;margin-bottom:14px;}
  #reviews .rev-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:20px;box-shadow:0 14px 36px -28px rgba(20,32,44,.25);display:flex;flex-direction:column;}
  /* Dichtgeklapt is elke kaart een vierkant; opengeklapt groeit hij mee met de tekst. */
  #reviews .rev-card.is-square{aspect-ratio:1/1;min-height:0;overflow:hidden;}
  #reviews .rev-stars{color:var(--gold);font-size:1rem;letter-spacing:2px;margin-bottom:8px;}
  #reviews .rev-text{color:var(--body,#3f434a);font-size:.98rem;line-height:1.55;margin-bottom:8px;white-space:pre-line;}
  /* Dichtgeklapt loopt de tekst door (geen lege regels), opengeklapt in alinea's. */
  #reviews .rev-card.is-square:not(.is-open) .rev-text{white-space:normal;}
  #reviews .rev-card.is-square > *{flex:0 0 auto;}
  #reviews .rev-card.is-square .rev-text{flex:1 1 auto;min-height:0;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;}
  #reviews .rev-card.is-open .rev-text{display:block;overflow:visible;max-height:none;}
  #reviews .rev-more{display:none;position:relative;background:none;border:0;padding:4px 0;margin:-4px 0 6px;align-self:flex-start;font-family:var(--mono);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-ink);cursor:pointer;}
  #reviews .rev-card.has-more .rev-more{display:inline-block;}
  #reviews .rev-more:hover{text-decoration:underline;}
  #reviews .rev-more::after{content:"";position:absolute;left:-6px;right:-6px;top:-15px;bottom:-15px;}
  #reviews .rev-more:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:3px;}
  #reviews .rev-author{display:flex;align-items:center;gap:12px;margin-top:auto;padding-top:2px;}
  #reviews .rev-ava{width:38px;height:38px;border-radius:50%;background:var(--gold);color:#1a1a1a;display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-weight:600;font-size:1.1rem;flex-shrink:0;}
  #reviews .rev-name{font-weight:500;color:var(--text);font-size:.95rem;}
  #reviews .rev-src{font-family:var(--mono);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted-text);}
  #reviews .reviews-empty{text-align:center;max-width:580px;margin:0 auto;background:var(--card);border:1px solid var(--border);border-radius:16px;padding:46px 34px;box-shadow:0 14px 36px -28px rgba(20,32,44,.22);}
  #reviews .reviews-empty .big-stars{color:var(--gold);font-size:1.7rem;letter-spacing:5px;margin-bottom:16px;}
  #reviews .reviews-empty p{color:var(--muted-text);margin-bottom:22px;font-size:1.02rem;}
  #reviews .g-badge{display:inline-flex;align-items:center;gap:8px;font-family:var(--mono);font-size:.72rem;letter-spacing:.06em;color:var(--muted-text);margin-top:20px;}
  #reviews .g-badge b{color:#1a56c4;font-family:var(--sans);}
  #reviews .reviews-meta{text-align:center;margin:26px auto 0;max-width:600px;}
  #reviews .reviews-all{margin:0;}
  #reviews .reviews-all a{display:inline-block;padding:12px 4px;font-weight:500;color:var(--gold-ink);text-decoration:underline;text-underline-offset:.18em;}
  #reviews .reviews-disc{margin:2px 0 0;font-size:.86rem;line-height:1.55;color:var(--muted-text);}
  #reviews #reviewsEarly{margin-top:8px;}
/* ---- index.html: 5c. FAQ ---- */
  #faq-home .faq-acc{max-width:780px;margin:0 auto;}
  #faq-home details{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:0;margin-bottom:12px;}
  /* de hele kaart is klikbaar: de ruimte rond de vraag hoort bij de summary */
  #faq-home summary{cursor:pointer;font-family:var(--serif);font-size:1.2rem;color:var(--text);list-style:none;position:relative;padding:18px 56px 18px 22px;outline:none;border-radius:12px;}
  #faq-home summary:focus-visible{outline:2px solid #7b6228;outline-offset:2px;}
  #faq-home details[open] summary{padding-bottom:6px;}
  #faq-home summary::-webkit-details-marker{display:none;}
  #faq-home summary::after{content:'+';position:absolute;right:26px;top:16px;font-size:1.5rem;color:var(--gold-ink);}
  #faq-home details[open] summary::after{content:'−';}
  #faq-home details p{color:var(--muted-text);margin:0;padding:0 22px 18px;font-size:.98rem;line-height:1.6;}
  #faq-home .more{text-align:center;margin-top:26px;}
  #faq-home .more a{font-family:var(--mono);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-ink);display:inline-block;padding:14px 8px;margin:-14px 0;}
/* ---- index.html: mobiele actiebalk (avs-ctabar-css) ---- */
@media(min-width:761px){.avs-ctabar{display:none}}
@media(max-width:760px){
 .avs-ctabar{position:fixed;left:0;right:0;bottom:0;z-index:96;display:flex;background:#15202c;border-top:1px solid rgba(244,241,234,.12);padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:10px;box-shadow:0 -8px 24px -12px rgba(0,0,0,.35);}
 .avs-ctabar a{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 6px;border-radius:100px;font-family:'DM Sans','DM Sans Fallback','DM Sans Fallback Roboto',system-ui,sans-serif;font-size:.88rem;font-weight:600;text-decoration:none;min-height:44px;white-space:nowrap;}
 .avs-ctabar .cta-bel{color:#f4f1ea;border:1px solid rgba(244,241,234,.28);}
 .avs-ctabar .cta-bel svg{width:16px;height:16px;stroke:#f4f1ea;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
 .avs-ctabar .cta-wa{color:#f4f1ea;border:1px solid rgba(37,211,102,.45);}
 .avs-ctabar .cta-wa svg{width:17px;height:17px;fill:#25d366;flex-shrink:0;}
 .avs-ctabar .cta-off{background:#b8923c;color:#1a1a1a;}
 body{padding-bottom:calc(66px + env(safe-area-inset-bottom));}
 .wa-fab{display:none !important;}
 .cookie-banner{bottom:calc(80px + env(safe-area-inset-bottom)) !important;}
}
@media(max-width:330px){.avs-ctabar a{font-size:.78rem;gap:5px;padding:11px 4px;}}
/* ---- index.html: beweging en overgangen (avs-motion-css) ---- */
/* ===== Smooth cross-page transitions (View Transitions API, progressive enhancement) ===== */
@view-transition { navigation: auto; }
::view-transition-old(root){ animation: avs-vt-out .20s cubic-bezier(.22,.61,.36,1) both; }
::view-transition-new(root){ animation: avs-vt-in .30s cubic-bezier(.22,.61,.36,1) both; }
@keyframes avs-vt-out { to { opacity: 0; } }
@keyframes avs-vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ===== Scroll-reveal state (applied by JS only, so content is never gated) ===== */
.avs-rv { opacity: 0; transform: translateY(22px); transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1); }
.avs-rv.avs-in { opacity: 1; transform: none; }

/* ===== Hero / page-header entrance (CSS-only, always ends visible) ===== */
@media (prefers-reduced-motion: no-preference) {
  header.hero .inner, header.head, .hero-b .wrap, .prod-copy, .wrap-404 { animation: avs-rise .6s cubic-bezier(.22,.61,.36,1) both; }
  .prod-stage { animation: avs-rise .7s .12s cubic-bezier(.22,.61,.36,1) both; }
  @keyframes avs-rise { from { opacity: 0; transform: translateY(16px); } }
  /* Sticky mobile CTA-bar slides up after load */
  @media (max-width: 760px) {
    .avs-ctabar { animation: avs-bar-up .5s .35s cubic-bezier(.22,.61,.36,1) both; }
  }
  @keyframes avs-bar-up { from { transform: translateY(110%); } }
  /* Review cards fade in when injected */
  /* Ronde 4: pas als #reviews in de buurt komt (avs-home.js zet .rev-seen); tot dan geen animatie, zodat de kaarten
     zichtbaar blijven zolang de sectie nog niet opgebouwd is (content-visibility) en bij vroeg afdrukken */
  #reviews.rev-seen .rev-card { animation: avs-rise .55s both; }
  #reviews.rev-seen .rev-card:nth-child(2){ animation-delay: .08s; } #reviews.rev-seen .rev-card:nth-child(3){ animation-delay: .16s; }
  #reviews.rev-seen .rev-card:nth-child(4){ animation-delay: .24s; } #reviews.rev-seen .rev-card:nth-child(5){ animation-delay: .32s; }
}

/* ===== Smooth FAQ / details open-close (modern browsers; graceful elsewhere) ===== */
details { interpolate-size: allow-keywords; }
details::details-content {
  opacity: 0; block-size: 0; overflow-y: clip;
  transition: content-visibility .38s allow-discrete, opacity .38s cubic-bezier(.22,.61,.36,1), block-size .38s cubic-bezier(.22,.61,.36,1);
}
details[open]::details-content { opacity: 1; block-size: auto; }
details summary { transition: color .25s cubic-bezier(.22,.61,.36,1); }

/* ===== Micro-polish: smoother imagery + links ===== */
.werk-media img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
figure:hover .werk-media img { transform: scale(1.045); }
.prod-imgwrap img { transition: transform .6s cubic-bezier(.22,.61,.36,1), filter .6s ease; }
.prod-imgwrap:hover img { transform: translateY(-4px); }
a, button { transition-timing-function: cubic-bezier(.22,.61,.36,1); }

/* ===== Reduced motion: everything instant ===== */
@media (prefers-reduced-motion: reduce) {
  .avs-rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  details::details-content { transition: none !important; }
}
