/* ==========================================================================
   Brühl Safety — Flex machineveiligheid afscherming (landing page)
   One stylesheet, no build step. Order: tokens → base → components →
   sections → footer → responsive.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --red: #ee3932;              /* brand red, sampled from the logo */
  --red-dark: #d02b25;
  --red-tint: #fdeceb;

  --ink: #1a1a1a;              /* headings */
  --body: #5c5c5c;             /* running text */
  --muted: #8a8a8a;            /* captions, eyebrow */
  --line: #e7e7e7;
  --surface: #f4f4f4;          /* light section */
  --tile: #f7f7f7;             /* spec tile */

  --dark: #1a1a1a;             /* dark section + footer */
  --dark-card: #242424;
  --dark-line: #333;
  --dark-text: #a9a9a9;

  --container: 1200px;
  --gutter: 24px;
  --radius: 10px;
  --radius-sm: 6px;
  --header-h: 72px;

  --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .05), 0 16px 40px rgba(0, 0, 0, .1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-open, html.nav-open body { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--red); color: #fff;
  font-size: 14px; font-weight: 600; border-radius: var(--radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--xs { width: .75em; height: .75em; }

/* 3. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn .icon { font-size: 16px; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }

.btn--outline { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: #f4f4f4; }

.btn--sm { padding: 10px 18px; font-size: 14px; }

/* 4. Header ---------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .07); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}

.logo img { width: 92px; height: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__list a {
  font-size: 14.5px; font-weight: 500; color: #333;
  transition: color .15s ease;
}
.nav__list a:hover { color: var(--red); }
.nav__list a.is-active { color: var(--red); font-weight: 600; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer;
}
.nav-toggle__box { position: relative; display: block; width: 22px; height: 14px; margin-inline: auto; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  position: absolute; left: 0; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bar { top: 6px; }
.nav-toggle__bar::before { content: ""; top: -6px; }
.nav-toggle__bar::after { content: ""; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* 5. Breadcrumb ----------------------------------------------------------- */
.crumbs { background: #f7f7f7; border-bottom: 1px solid var(--line); }
.crumbs__list {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-size: 13px; color: var(--muted);
}
.crumbs__list a { transition: color .15s ease; }
.crumbs__list a:hover { color: var(--red); }
.crumbs__list li:last-child { color: #4a4a4a; }
.crumbs__list .icon { stroke-width: 2.5; }

/* 6. Hero ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #131313; }
.hero picture { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, .93) 0%, rgba(8, 8, 8, .84) 45%, rgba(8, 8, 8, .56) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, .1) 45%, rgba(0, 0, 0, .45) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-block: 96px 102px; }

.pill {
  display: inline-block; margin: 0 0 22px;
  padding: 7px 14px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 4px;
}

.hero__title {
  max-width: 20ch;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(2.2rem, 1.3rem + 3.1vw, 3.5rem);
  letter-spacing: -.025em;
  line-height: 1.12;
}

.hero__text {
  max-width: 52ch;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .82);
  font-size: 16.5px;
  line-height: 1.7;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }

/* 7. USP strip ------------------------------------------------------------- */
.usps { background: var(--red); color: #fff; }
.usps__grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.usp {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 26px;
  border-left: 1px solid rgba(255, 255, 255, .22);
}
.usp:first-child { border-left: 0; padding-left: 0; }

.usp__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%;
  font-size: 17px;
}
.usp__text { display: grid; gap: 2px; }
.usp__text strong { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.usp__text span { font-size: 12.5px; color: rgba(255, 255, 255, .8); line-height: 1.4; }

/* 8. Sections -------------------------------------------------------------- */
.section { padding: 98px 0; }

.section--dots {
  background-color: #fff;
  background-image: radial-gradient(rgba(17, 17, 17, .085) 1px, transparent 1px);
  background-size: 22px 22px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11.5px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
}

.section__head { max-width: 880px; margin: 0 auto 46px; text-align: center; }
.section__head h2 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.05rem); }
.section__lead { max-width: 620px; margin: 16px auto 0; font-size: 15px; color: var(--muted); }

/* Two columns: image beside text ----------------------------------------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media { margin: 0; }
.split__media img {
  width: 100%; aspect-ratio: 5 / 3; object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .12);
}

.split__body h2 { margin-bottom: 20px; font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.05rem); }
.split__body p { font-size: 15px; line-height: 1.75; }

/* Checklist --------------------------------------------------------------- */
.checklist { margin: 28px 0 30px; }
.checklist li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  font-size: 14.5px; color: #4a4a4a;
  border-bottom: 1px solid var(--line);
}
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist__mark {
  display: grid; place-items: center;
  width: 20px; height: 20px; flex: none;
  background: var(--red); color: #fff; border-radius: 50%;
  font-size: 11px;
}
.checklist__mark .icon { stroke-width: 3.5; }

/* Cards ------------------------------------------------------------------- */
.cards { display: grid; gap: 22px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 30px 24px;
  background: #fff;
  border: 1px solid #ececec; border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin: 0 0 10px; font-size: 16px; }
.card p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }

.card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin: 0 auto 18px;
  background: var(--red-tint); color: var(--red);
  border-radius: 12px;
  font-size: 20px;
  transition: background-color .2s ease, color .2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #ddd; }
.card:hover .card__icon { background: var(--red); color: #fff; }

/* Benefits section -------------------------------------------------------- */
.benefits { background: var(--surface); }

/* Specifications ---------------------------------------------------------- */
.specs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 30px 0 0; }
.spec {
  padding: 14px 16px;
  background: var(--tile);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.spec dt { font-size: 13px; font-weight: 700; color: var(--ink); }
.spec dd { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

/* Industries (dark) ------------------------------------------------------- */
.sectors { background: var(--dark); }
.sectors .eyebrow { color: #9a9a9a; }
.sectors h2 { color: #fff; }
.sectors .section__lead { color: var(--dark-text); }

.card--dark {
  background: var(--dark-card);
  border-color: #303030;
  box-shadow: none;
  text-align: left;
}
.card--dark h3 { color: #fff; font-size: 15.5px; }
.card--dark p { color: var(--dark-text); }
.card--dark .card__icon {
  margin: 0 0 18px;
  background: var(--red); color: #fff;
  border-radius: 8px;
  width: 42px; height: 42px; font-size: 19px;
}
.card--dark:hover { border-color: var(--red); box-shadow: 0 16px 34px rgba(0, 0, 0, .35); }
.card--dark:hover .card__icon { background: var(--red-dark); }

/* 9. Closing CTA ------------------------------------------------------------- */
.cta { padding: 76px 0; background: var(--red); color: #fff; text-align: center; }
.cta__inner { display: grid; justify-items: center; }
.cta h2 { max-width: 20ch; color: #fff; font-size: clamp(1.55rem, 1.1rem + 1.5vw, 2rem); }
.cta p { max-width: 56ch; margin: 18px 0 0; color: rgba(255, 255, 255, .9); font-size: 15.5px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }

/* 10. Footer --------------------------------------------------------------- */
.footer { background: var(--dark); color: var(--dark-text); font-size: 13.5px; }

.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-top: 66px; padding-bottom: 54px;
}
.footer__brand img { width: 92px; margin-bottom: 20px; }
.footer__brand p { max-width: 34ch; line-height: 1.7; }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  background: #262626; color: #b4b4b4; border-radius: 8px;
  font-size: 15px;
  transition: background-color .18s ease, color .18s ease;
}
.socials a:hover { background: var(--red); color: #fff; }

.footer__col h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.footer__col li + li { margin-top: 11px; }
.footer__col a { transition: color .15s ease; }
.footer__col a:hover { color: #fff; }

.footer__bar { border-top: 1px solid #2c2c2c; }
.footer__bar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 20px; padding-bottom: 20px;
  font-size: 12.5px; color: #7f7f7f;
}
.footer__bar-inner p { margin: 0; }
.footer__bar-inner ul { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__bar-inner a:hover { color: #fff; }

/* 11. Cookie consent ------------------------------------------------------- */
/* consent.js toggles the `hidden` attribute, so that has to beat the
   component's own display value. */
.consent[hidden], .consent__panel[hidden] { display: none; }

.consent {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 30px rgba(0, 0, 0, .13);
  font-size: 13.5px;
}
.consent__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 32px; align-items: center;
  padding-block: 20px;
}
.consent__text h2 { margin-bottom: 5px; font-size: 15px; }
.consent__text p { max-width: 82ch; color: var(--body); line-height: 1.6; }
.consent__text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.consent__panel {
  grid-column: 1 / -1;
  display: grid; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.consent__option {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0; color: var(--body); line-height: 1.55;
}
.consent__option input {
  width: 16px; height: 16px; flex: none; margin: 2px 0 0;
  accent-color: var(--red);
}
.consent__option strong { color: var(--ink); }
.consent__option--fixed { justify-content: space-between; gap: 24px; }
.consent__always { color: var(--muted); white-space: nowrap; }
.consent__panel-actions { margin: 2px 0 0; }

.btn--quiet { background: #f1f1f1; color: #333; }
.btn--quiet:hover { background: #e6e6e6; }

/* 12. Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .section { padding: 68px 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .usps__grid { grid-template-columns: repeat(2, 1fr); }
  .usp { border-left: 0; padding: 18px 0; }
  .usp:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .22); padding-left: 26px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .1);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav .btn { justify-content: center; margin-top: 18px; }

  .hero__inner { padding-block: 72px 76px; }
  .hero__title { max-width: none; }
  .hero__text { font-size: 15.5px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }

  .specs__grid { grid-template-columns: 1fr; }
  .cta { padding: 60px 0; }

  .consent__inner { grid-template-columns: 1fr; }
  .consent__actions .btn { flex: 1 1 100%; justify-content: center; }
  .consent__option--fixed { flex-direction: column; gap: 2px; }
  .cta__actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 620px) {
  .cards--4, .cards--3 { grid-template-columns: 1fr; }
  .usps__grid { grid-template-columns: 1fr; }
  .usp, .usp:nth-child(even) { border-left: 0; padding: 14px 0; }
  .usp + .usp { border-top: 1px solid rgba(255, 255, 255, .22); }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; }
  .footer__bar-inner { flex-direction: column; align-items: flex-start; }
  .footer__bar-inner ul { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
