/* ==========================================================================
   BRIT demo – styles
   Look and feel follows the old britconsultants.nl: dark green, cream and
   amber, with BRIT orange. Colours are the old site's palette.
   Contrast checked against WCAG AA.
   ========================================================================== */

/* Inter: SIL Open Font License 1.1, see assets/fonts/OFL-Inter.txt */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #1a2f27;         /* old site: header, hero, title bars */
  --petrol: #0d2e3c;        /* old site: "Energiek" card */
  --cream: #f1efe6;         /* old site: sections, footer */
  --amber: #f7ae2b;         /* old site: accents on dark (7.5:1 on green) */
  --amber-text: #8a5a00;    /* amber for small text on light (5.2:1 on cream) */
  --orange: #f16522;        /* BRIT logo orange: large text only on green (4.5:1) */
  --ink: #1f211c;           /* old site: body text */
  --ink-soft: #5c5f57;      /* secondary text (5.6:1 on cream) */
  --white: #ffffff;
  --line: #dcd8cb;
  --error: #b3261e;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --header-h: 84px;
  --container: 1240px;
  --focus: var(--ink);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;      /* 18px, as the old site */
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }     /* old: 72px */
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.24; }  /* old: 48px */
h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p  { margin: 0 0 1em; }

a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Small line above a heading. Amber on dark, darker amber on light. */
.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;       /* old: 20px, medium */
  font-weight: 500;
  color: var(--amber-text);
}
.on-dark .eyebrow { color: var(--amber); }
.brit { color: var(--orange); }

/* ---------- Dark surfaces ---------- */
.on-dark {
  --focus: var(--amber);
  background: var(--green);
  color: var(--white);
}
.on-dark a { color: var(--white); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button-amber { background: var(--amber); color: var(--ink); }
.button-amber:hover { background: var(--white); }
.on-dark .button-amber { color: var(--ink); }

.button-outline { border-color: currentColor; background: transparent; }
.on-dark .button-outline:hover { border-color: var(--amber); color: var(--amber); }

/* Vacancy switch: <html class="vacature-aan"> shows the vacancy buttons. */
html:not(.vacature-aan) .vacature-link { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header.on-dark { background: var(--green); border-bottom-color: rgba(255, 255, 255, 0.12); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.logo img { width: 132px; height: auto; }   /* old: max 166px */

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav ul a {
  display: block;
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.main-nav ul a:hover { border-bottom-color: var(--amber); }
.main-nav .button { min-height: 44px; padding: 10px 20px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Mobile menu: only collapses when JS runs (html.js), so it never gets stuck closed. */
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .logo img { width: 104px; }
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 8px clamp(16px, 4vw, 40px) 24px;
    background: var(--green);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .js .main-nav.is-open { display: flex; }
  .js .main-nav ul { flex-direction: column; }
  .js .main-nav ul a { padding: 12px 0; font-size: 1.125rem; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .main-nav { flex-wrap: wrap; gap: 8px; }
}

/* Subpages: white header with a back link */
.back-link {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 4px;
}
.back-link:hover { text-decoration: underline; text-decoration-color: var(--amber); }

/* ---------- Brabant skyline + half-circle curve (old title bar) ---------- */
.skyline {
  --sky-h: clamp(64px, 11vw, 170px);
  --curve-h: clamp(32px, 5vw, 80px);
  position: relative;
  overflow: hidden;         /* the curve is wider than the screen */
  /* room for the skyline and curve below the content, so they never sit behind text */
  padding-bottom: calc(var(--sky-h) + var(--curve-h) + 16px);
}
.skyline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--curve-h) * 0.6);
  height: var(--sky-h);
  background: url("/assets/img/skyline.png") center bottom / auto 100% repeat-x;
  opacity: 0.4;
  pointer-events: none;
}
/* Cream curve rising out of the bottom, like the old "big half circle" divider */
.skyline::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -1px;
  height: var(--curve-h);
  background: var(--curve, var(--cream));
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.skyline > * { position: relative; z-index: 1; }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 120px); }
.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(3.2rem, 9vw, 5.875rem);  /* old: 94px */
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.hero-lead {
  max-width: 36rem;
  margin: 0 0 32px;
  font-size: 1.25rem;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.scroll-hint {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: 4px;
  color: var(--amber) !important;
}
.scroll-hint svg { width: 26px; height: 26px; }

/* ---------- Page title bar (subpages) ---------- */
.title-bar { padding-top: clamp(48px, 8vw, 96px); text-align: center; }
.title-bar h1 { margin: 0 auto; max-width: 20ch; }
.title-bar .intro { max-width: 40rem; margin: 20px auto 0; font-size: 1.15rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-cream { background: var(--cream); }

/* Simple wavy lines on cream, drawn for this site (not from the old theme) */
.waves {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M0 30c40-20 80-20 120 0s80 20 120 0'/%3E%3Cpath d='M0 90c40-20 80-20 120 0s80 20 120 0'/%3E%3C/svg%3E");
  background-size: 240px 120px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 0.3rem; }
/* WAT? / WIE? tiles from the old homepage */
.section-tile {
  flex: none;
  width: clamp(96px, 14vw, 160px);
  border-radius: 12px;
  /* the tiles are half cream, so lift them off cream backgrounds */
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(31, 33, 28, 0.12);
}
@media (max-width: 600px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-tile { width: 88px; }
}

/* Wat is BRIT: text + photo */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.intro-grid .lead {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.intro-photo { margin: 0; }
.intro-photo img {
  width: 100%;
  aspect-ratio: 9 / 8;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* Verbindend / Energiek / Kritisch – the middle card is petrol, as on the old site */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  overflow: hidden;
}
.value {
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
}
.value h3 { font-size: 1.5rem; font-weight: 500; }
.value p { margin: 0; }
.value-dark {
  --focus: var(--amber);
  background: var(--petrol);
  color: var(--white);
}
.checklist {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.checklist svg { flex: none; width: 16px; height: 16px; color: var(--amber-text); transform: translateY(2px); }
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; }
}

/* Hoe werkt BRIT: four steps on green, then example assignments as white cards */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li { padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, 0.18); }
.step-nr {
  display: block;
  margin-bottom: 12px;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--amber);
}
.steps h3 { font-size: 1.35rem; }
.steps p { margin: 0; font-size: 1rem; color: rgba(255, 255, 255, 0.82); }   /* 10:1 on green */

.cases-title { margin: clamp(56px, 8vw, 96px) 0 24px; font-size: 1.75rem; }
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.case-tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.case h4 { margin: 0 0 0.5em; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.case p:last-child { margin: 0; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-card img,
.team-photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius);
}
.team-photo-placeholder {
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--amber);
  font-size: 4rem;
  font-weight: 700;
}
.team-card h3 {
  margin: 20px 0 8px;
  font-size: 1.375rem;
  font-weight: 600;
}
.team-card p { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-grid h2 { margin-bottom: 0.4em; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-card {
  --focus: var(--ink);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.form-card a { color: var(--ink); }
.form-title { font-size: 1.75rem; margin-bottom: 0.8em; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
}
.required { font-weight: 400; color: var(--ink-soft); font-size: 0.9em; }
.field-hint { margin: -2px 0 8px; font-size: 0.92rem; color: var(--ink-soft); }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #8b8d85;   /* 3.4:1 against white */
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 0;
  border-color: var(--ink);
}
.field input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 2px dashed #8b8d85;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.95rem;
  font-weight: 600;
}
.field-error:empty { display: none; }
.field-error::before { content: "⚠ "; }

/* Melding van het sollicitatiescript (bijv. "je cv moet een pdf zijn") */
.form-melding {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 4px solid var(--error);
  border-radius: 6px;
  background: #fbebeb;
  color: var(--ink);
  font-weight: 600;
}
.form-melding:focus { outline: none; }

/* Onzichtbaar spamveld: buiten beeld, niet bereikbaar met tab of schermlezer */
.honingpot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card .button-amber:hover { background: var(--green); color: var(--white); }
.form-card .button-amber:disabled { opacity: 0.7; cursor: progress; }
.form-note { margin: 16px 0 0; font-size: 0.9rem; color: var(--ink-soft); }

.form-success h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
}
.form-success h3::before {
  content: "";
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f211c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.form-success:focus { outline: none; }

/* ---------- Footer (cream, as on the old site) ---------- */
.site-footer {
  background: var(--cream);
  padding-block: clamp(48px, 7vw, 80px) 32px;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand img { width: 120px; margin-bottom: 16px; }
.footer-brand p { max-width: 26rem; color: var(--ink-soft); margin: 0; }
.footer-col h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col .footer-noot { margin-top: 12px; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.4; }
.footer-col a,
.footer-col .link-button { text-decoration: none; color: var(--ink-soft); }
.footer-col a:hover,
.footer-col .link-button:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Subpages (vacature, privacy) ---------- */
.demo-banner {
  background: var(--amber);
  color: var(--ink);
  padding-block: 8px;
  font-size: 0.95rem;
  text-align: center;
}
.demo-banner p { margin: 0; }

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--amber-text); }

.vacancy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.vacancy-layout .form-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line);
}
@media (max-width: 960px) {
  .vacancy-layout { grid-template-columns: 1fr; }
  .vacancy-layout .form-card { position: static; }
}
