/* ==========================================================================
   B&L SPRINKLER INSPECTIES — stylesheet
   --------------------------------------------------------------------------
   This is the single stylesheet for the whole site.
   It is organised in numbered sections; each starts with a banner like this.
   To change colours, spacing or fonts, edit the "design tokens" in section 1
   — everything else inherits from them.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS (colours, typography, spacing)
   ========================================================================== */
:root {
  /* Brand colours (taken from the original Wix theme) */
  --kleur-marine: #081f4e;        /* dark navy — headings, dark sections   */
  --kleur-blauw: #0f3e9b;         /* primary blue — buttons, links, accents */
  --kleur-blauw-donker: #0b2f75;  /* hover state for primary blue          */
  --kleur-blauw-zacht: #b2c3e6;   /* soft blue — subtle text on dark       */
  --kleur-blauw-veld: #e8edf8;    /* very light blue — card/icon surfaces  */
  --kleur-achtergrond: #f7f8fb;   /* page background (cool white)          */
  --kleur-wit: #ffffff;
  --kleur-tekst: #17203a;         /* body text on light backgrounds        */
  --kleur-tekst-gedempt: #45506e; /* secondary text on light backgrounds   */
  --kleur-lijn: #d9dfee;          /* hairline borders (decorative)         */
  --kleur-invoer-rand: #6a7694;   /* form field borders (3:1 on white)     */

  /* Typography */
  --font-familie: "Archivo", system-ui, "Segoe UI", Arial, sans-serif;
  --tekst-basis: 1.0625rem;       /* 17px body size                        */
  --regelhoogte: 1.65;

  /* Spacing scale */
  --ruimte-xs: 0.5rem;
  --ruimte-s: 1rem;
  --ruimte-m: 1.5rem;
  --ruimte-l: 2.5rem;
  --ruimte-xl: 4rem;
  --sectie-ruimte: clamp(3.5rem, 9vw, 6.5rem);

  /* Layout */
  --breedte-max: 71.25rem;        /* 1140px content width                  */
  --radius: 0.25rem;              /* sharp, industrial corner radius       */
}

/* ==========================================================================
   2. SELF-HOSTED FONT (Archivo variable, latin subset — no external CDN)
   ========================================================================== */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-familie);
  font-size: var(--tekst-basis);
  line-height: var(--regelhoogte);
  color: var(--kleur-tekst);
  background: var(--kleur-achtergrond);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  line-height: 1.15;
  color: var(--kleur-marine);
  letter-spacing: -0.015em;
  margin: 0 0 var(--ruimte-s);
  text-wrap: balance;
}

h1 { font-size: clamp(2.125rem, 5.5vw, 3.375rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.125rem); font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 650; }

p {
  margin: 0 0 var(--ruimte-s);
}

ul {
  margin: 0 0 var(--ruimte-s);
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
}

a {
  color: var(--kleur-blauw);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--kleur-blauw-donker);
}

/* Visible focus for keyboard users — never remove */
:focus-visible {
  outline: 3px solid var(--kleur-blauw);
  outline-offset: 3px;
  border-radius: 2px;
}

.sectie-donker :focus-visible,
.site-footer :focus-visible,
.site-hero :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--kleur-wit);
}

/* Anchor targets must not disappear under the sticky header */
:is(section, article, h2, h3)[id] {
  scroll-margin-top: 5.5rem;
}

/* ==========================================================================
   4. UTILITIES (container, kicker labels, buttons, skip link)
   ========================================================================== */
.omslag {
  /* Central content column */
  width: min(var(--breedte-max), 100% - 2.5rem);
  margin-inline: auto;
}

.kicker {
  /* Small uppercase label above headings — engineering-document style */
  display: block;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kleur-blauw);
  margin-bottom: 0.75rem;
}

.sectie-donker .kicker,
.site-hero .kicker {
  color: var(--kleur-blauw-zacht);
}

.knop {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.knop-primair {
  background: var(--kleur-blauw);
  color: var(--kleur-wit);
}

.knop-primair:hover {
  background: var(--kleur-blauw-donker);
  color: var(--kleur-wit);
}

.knop-omlijnd {
  background: transparent;
  color: var(--kleur-wit);
  border-color: rgba(255, 255, 255, 0.55);
}

.knop-omlijnd:hover {
  border-color: var(--kleur-wit);
  color: var(--kleur-wit);
  background: rgba(255, 255, 255, 0.08);
}

.visueel-verborgen {
  /* Text that is read by screen readers but not visible on screen */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  /* "Direct naar inhoud" — only visible when focused with the keyboard */
  position: absolute;
  left: 0.75rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--kleur-marine);
  color: var(--kleur-wit);
  border-radius: var(--radius);
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--kleur-wit);
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--kleur-wit);
  border-bottom: 1px solid var(--kleur-lijn);
}

.site-header .omslag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-s);
  min-height: 4.25rem;
}

.merk {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.merk img {
  width: 2.5rem;
  height: 2.5rem;
}

.merk-naam {
  font-size: 0.9375rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kleur-marine);
  line-height: 1.25;
}

.nav-toggle {
  /* Hamburger button — hidden on desktop (see media query below) */
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.625rem;
  background: none;
  border: 1px solid var(--kleur-lijn);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-balk {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--kleur-marine);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-balk:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-balk:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-balk:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--kleur-tekst);
}

.site-nav a:hover {
  color: var(--kleur-blauw);
}

.site-nav a[aria-current="page"] {
  color: var(--kleur-blauw);
  box-shadow: inset 0 -2px 0 var(--kleur-blauw);
}

/* Mobile: nav panel folds out under the header */
@media (max-width: 47.99rem) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--kleur-wit);
    border-bottom: 1px solid var(--kleur-lijn);
    box-shadow: 0 12px 24px rgba(8, 31, 78, 0.12);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav a {
    border-top: 1px solid var(--kleur-lijn);
    padding: 1rem 1.25rem;
  }
}

/* Desktop: horizontal nav, no hamburger */
@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav ul {
    display: flex;
    gap: 0.25rem;
  }
}

/* ==========================================================================
   6. HERO (navy header block on every page)
   ========================================================================== */
.site-hero {
  background:
    linear-gradient(115deg, rgba(8, 31, 78, 0) 55%, rgba(15, 62, 155, 0.35)),
    var(--kleur-marine);
  color: var(--kleur-wit);
  padding-block: var(--sectie-ruimte);
  position: relative;
  overflow: hidden;
}

/* Faint oversized "B" watermark, echoing the paint-splash logo.
   The "/ ''" marks it as purely decorative for screen readers. */
.site-hero::after {
  content: "B" / "";
  position: absolute;
  right: -0.05em;
  bottom: -0.38em;
  font-size: clamp(14rem, 32vw, 26rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
}

.site-hero h1 {
  color: var(--kleur-wit);
  max-width: 21ch;
}

.site-hero p {
  color: var(--kleur-blauw-zacht);
  font-size: 1.125rem;
  max-width: 56ch;
}

.hero-acties {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-s);
  margin-top: var(--ruimte-m);
}

/* Compact variant for sub pages */
.site-hero.hero-kort {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

/* Staggered entrance for hero content (disabled under reduced motion).
   Kept short: the h1 is the LCP element, so a long fade hurts loading metrics. */
.site-hero .omslag > * {
  animation: verschijn 380ms cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

.site-hero .omslag > *:nth-child(2) { animation-delay: 60ms; }
.site-hero .omslag > *:nth-child(3) { animation-delay: 120ms; }
.site-hero .omslag > *:nth-child(4) { animation-delay: 180ms; }

@keyframes verschijn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   7. GENERIC SECTIONS
   ========================================================================== */
.sectie {
  padding-block: var(--sectie-ruimte);
}

.sectie-wit {
  background: var(--kleur-wit);
}

.sectie-donker {
  background: var(--kleur-marine);
  color: var(--kleur-wit);
}

.sectie-donker h2,
.sectie-donker h3 {
  color: var(--kleur-wit);
}

.sectie-donker p {
  color: var(--kleur-blauw-zacht);
}

.sectie-kop {
  max-width: 46rem;
  margin-bottom: var(--ruimte-l);
}

/* Full-width black & white photo band */
.fotoband img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   8. SERVICE CARDS (home) & SERVICE DETAIL ROWS (diensten page)
   ========================================================================== */
.dienst-rooster {
  display: grid;
  gap: var(--ruimte-m);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.dienst-kaart {
  display: flex;
  flex-direction: column;
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-lijn);
  border-radius: var(--radius);
  padding: var(--ruimte-m);
  position: relative;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dienst-kaart:hover {
  border-color: var(--kleur-blauw);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(8, 31, 78, 0.1);
}

.dienst-kaart .dienst-nummer {
  /* Index number, top right — engineering drawing style */
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--kleur-blauw); /* AA contrast on white (light blue was 1.77:1) */
}

.dienst-kaart img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  margin-bottom: var(--ruimte-s);
}

.dienst-kaart p {
  color: var(--kleur-tekst-gedempt);
  flex-grow: 1;
}

.dienst-kaart a {
  font-weight: 650;
  text-decoration: none;
}

.dienst-kaart a::after {
  content: " →";
}

.dienst-kaart a:hover {
  text-decoration: underline;
}

/* Detail rows on the diensten page */
.dienst-detail {
  display: grid;
  gap: var(--ruimte-m) var(--ruimte-xl);
  padding-block: var(--ruimte-xl);
  border-top: 1px solid var(--kleur-lijn);
}

.dienst-detail:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.dienst-detail-kop {
  display: flex;
  align-items: center;
  gap: var(--ruimte-s);
}

.dienst-detail-kop img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--kleur-blauw-veld);
  border-radius: var(--radius);
  padding: 0.5rem;
}

.dienst-detail .dienst-nummer {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--kleur-blauw);
}

.dienst-intro {
  /* Short direct answer that opens every service section */
  font-size: 1.1875rem;
  font-weight: 550;
  color: var(--kleur-marine);
  max-width: 56ch;
}

@media (min-width: 48rem) {
  .dienst-detail {
    grid-template-columns: 16rem 1fr;
  }
}

/* ==========================================================================
   9. CLIENT LOGOS
   ========================================================================== */
.klanten-rij {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-l) var(--ruimte-xl);
}

.klanten-rij img {
  height: 3.5rem;
  width: auto;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 160ms ease, opacity 160ms ease;
}

.klanten-rij img:hover {
  filter: none;
  opacity: 1;
}

/* ==========================================================================
   10. FAQ (visible question/answer pairs)
   ========================================================================== */
.faq-lijst {
  display: grid;
  gap: var(--ruimte-s);
  max-width: 50rem;
}

.faq-item {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-lijn);
  border-left: 3px solid var(--kleur-blauw);
  border-radius: var(--radius);
  padding: var(--ruimte-m);
}

.faq-item h3 {
  margin-bottom: 0.5rem;
}

.faq-item p:last-child {
  margin-bottom: 0;
  color: var(--kleur-tekst-gedempt);
}

/* ==========================================================================
   11. CONTACT (details block + form)
   ========================================================================== */
.contact-rooster {
  display: grid;
  gap: var(--ruimte-xl);
}

@media (min-width: 48rem) {
  .contact-rooster {
    grid-template-columns: 1fr 1.4fr;
  }
}

.contact-gegevens ul {
  list-style: none;
  padding: 0;
}

.contact-gegevens li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--kleur-lijn);
}

.contact-gegevens .label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kleur-tekst-gedempt);
  margin-bottom: 0.125rem;
}

.formulier {
  display: grid;
  gap: var(--ruimte-s);
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-lijn);
  border-radius: var(--radius);
  padding: var(--ruimte-m);
}

.formulier label {
  font-weight: 650;
  font-size: 0.9375rem;
  display: block;
  margin-bottom: 0.375rem;
}

.formulier input,
.formulier textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  font: inherit;
  color: var(--kleur-tekst);
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-invoer-rand);
  border-radius: var(--radius);
}

.formulier input:focus-visible,
.formulier textarea:focus-visible {
  outline: 3px solid var(--kleur-blauw);
  outline-offset: 1px;
}

/* Honeypot field: invisible for people, tempting for spam bots */
.veld-verborgen {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   12. CTA BAND (call-to-action strip above the footer)
   ========================================================================== */
.cta-band {
  background: var(--kleur-blauw);
  color: var(--kleur-wit);
  padding-block: var(--ruimte-xl);
}

.cta-band .omslag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ruimte-m);
}

.cta-band h2 {
  color: var(--kleur-wit);
  margin: 0;
}

.cta-band p {
  margin: 0.25rem 0 0;
  color: var(--kleur-blauw-zacht);
}

.cta-band p a {
  /* Links inside the blue band must stay readable on blue */
  color: var(--kleur-wit);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.cta-band p a:hover {
  color: var(--kleur-blauw-zacht);
}

.cta-band .knop-primair {
  background: var(--kleur-wit);
  color: var(--kleur-marine);
}

.cta-band .knop-primair:hover {
  background: var(--kleur-blauw-veld);
  color: var(--kleur-marine);
}

/* ==========================================================================
   13. FOOTER (consistent NAP details on every page)
   ========================================================================== */
.site-footer {
  background: var(--kleur-marine);
  color: var(--kleur-blauw-zacht);
  padding-block: var(--ruimte-xl) var(--ruimte-m);
  font-size: 0.9375rem;
}

.footer-rooster {
  display: grid;
  gap: var(--ruimte-l);
  padding-bottom: var(--ruimte-l);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 48rem) {
  .footer-rooster {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kleur-wit);
  margin-bottom: 0.875rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--kleur-wit);
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.site-footer a:hover {
  color: var(--kleur-blauw-zacht);
}

.footer-merk {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--ruimte-s);
}

.footer-merk img {
  width: 2.25rem;
  height: 2.25rem;
}

.footer-merk span {
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kleur-wit);
  font-size: 0.875rem;
}

.footer-onderbalk {
  padding-top: var(--ruimte-m);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--ruimte-s);
  font-size: 0.875rem;
}

/* ==========================================================================
   14. 404 PAGE
   ========================================================================== */
.pagina-404 {
  text-align: center;
  padding-block: var(--sectie-ruimte);
}

.pagina-404 .code {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--kleur-blauw-veld);
  letter-spacing: -0.04em;
}

/* ==========================================================================
   15. REDUCED MOTION (respect the visitor's system preference)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
