/* ===============================================================
   Steen Helder - gedeelde basis-CSS
   Wordt op iedere pagina ingeladen via head.php.

   Bron: 1-op-1 overgenomen uit het inline <style>-blok van de
   handoff (index.html / blog.html / blog-detail.html / dienst-
   pagina's). Pagina-specifieke styles blijven in de bijbehorende
   .php staan via $page_extra_head - alleen wat overal terugkomt
   staat hier.
   =============================================================== */

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #0F2A47;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

[x-cloak] { display: none !important; }

/* ---------------------------------------------------------------
   Reveal-on-scroll (IntersectionObserver in shared.js)
   --------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------
   Voor / Na slider (homepage + dienstpagina's)
   --------------------------------------------------------------- */
.ba-wrap        { position: relative; user-select: none; touch-action: none; }
.ba-img         { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-after-clip  { position: absolute; inset: 0; overflow: hidden; }
.ba-handle      {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: white;
  box-shadow: 0 0 0 1px rgba(15,42,71,.25), 0 6px 16px rgba(15,42,71,.4);
}
.ba-knob {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 9999px;
  background: white;
  box-shadow: 0 6px 16px rgba(15,42,71,.35);
  display: flex; align-items: center; justify-content: center;
  color: #0F2A47;
}
.ba-tag {
  position: absolute; top: 14px;
  padding: 6px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* ---------------------------------------------------------------
   WhatsApp / floating action puls
   --------------------------------------------------------------- */
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0    rgba(34,197,94,.55); }
  70%  { box-shadow: 0 0 0 18px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0    rgba(34,197,94,0); }
}
.pulse-ring { animation: pulseRing 2.2s ease-out infinite; }

/* ---------------------------------------------------------------
   Hero radial overlays
   --------------------------------------------------------------- */
.hero-grain {
  background-image:
    radial-gradient(1200px 600px at 80% 0%,  rgba(61,169,252,.18), transparent 60%),
    radial-gradient(900px  500px at 0%  100%, rgba(15,42,71,.4),    transparent 50%);
}

/* ---------------------------------------------------------------
   Process-line connector (gestippeld) - proces secties
   --------------------------------------------------------------- */
.process-line {
  background-image: linear-gradient(to right, #C9D6E5 50%, transparent 50%);
  background-size: 14px 2px;
  background-repeat: repeat-x;
  background-position: 0 50%;
}

/* ---------------------------------------------------------------
   SVG Limburg-map kaartdotjes
   --------------------------------------------------------------- */
@keyframes breathe {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.15); }
}
.breathe {
  animation: breathe 3s ease-in-out infinite;
  transform-origin: center;
}

/* ---------------------------------------------------------------
   Trust-bar marquee
   --------------------------------------------------------------- */
@keyframes scrollx {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------
   Blog - line-clamp helpers
   --------------------------------------------------------------- */
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.line-clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* ---------------------------------------------------------------
   Blog - card hover lift
   --------------------------------------------------------------- */
.blog-card           { transition: box-shadow .25s ease, transform .25s ease; }
.blog-card:hover     { transform: translateY(-3px); }
.blog-card img       { transition: transform .6s ease; }
.blog-card:hover img { transform: scale(1.05); }

/* ---------------------------------------------------------------
   Blog - categorie-chips op filter-bar
   --------------------------------------------------------------- */
.cat-chip                     { transition: all .2s ease; }
.cat-chip[data-active="true"] { background: #0F2A47; color: #fff; border-color: #0F2A47; }

/* Categorie kleurtokens */
.cat-dot--gevel    { background: #1E8BE6; }
.cat-dot--oprit    { background: #173658; }
.cat-dot--terras   { background: #16A34A; }
.cat-dot--dak      { background: #0F6FBF; }
.cat-dot--algemeen { background: #173658; }

.cat-bg--gevel    { background: rgba(30,139,230,.12); color: #0F6FBF; }
.cat-bg--oprit    { background: rgba(23,54,88,.10);  color: #173658; }
.cat-bg--terras   { background: rgba(22,163,74,.12); color: #0F8A3C; }
.cat-bg--dak      { background: rgba(15,111,191,.14); color: #0F6FBF; }
.cat-bg--algemeen { background: rgba(23,54,88,.10);  color: #173658; }

/* ---------------------------------------------------------------
   Forms (Fase 5) - honeypot off-screen + error/success states
   --------------------------------------------------------------- */
.shl-honey {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.shl-form-error {
  background: #FFF1F1;
  border: 1px solid #F4B8B8;
  color: #9A1F1F;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.shl-field-error  { border-color: #F4B8B8 !important; background: #FFF8F8 !important; }
.shl-field-error:focus { outline-color: #DC2626; }

/* form-tracking.js zet aria-invalid="true" op het input-veld dat een
   validation-error heeft. Onderstaande regel pakt dat universeel op alle
   forms met data-shl-form. (Geen Tailwind aria-variant-rebuild nodig.) */
[data-shl-form] input[aria-invalid="true"],
[data-shl-form] select[aria-invalid="true"],
[data-shl-form] textarea[aria-invalid="true"] {
  border-color: #FB7185;
  background-color: #FFF1F2;
}
