@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #232959;
  --navy-dark: #171b3d;
  --red: #bb1414;
  --gold: #a68151;
  /* Darker gold keeps white/gold text at WCAG AA contrast (4.9:1) */
  --gold-dark: #8c6a3f;
  --gold-tint: #f2ebe2;
  --text: #484848;
  --muted: #6b6b6b;
  --footer: #3f3f3f;
  --white: #fff;
  --radius: 1.25rem;
  --shadow: 0 20px 45px -20px rgb(35 41 89 / 0.35);
  --container: 1140px;
  --header-height: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 400;
}

h1 strong,
h2 strong {
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

figure {
  margin: 0;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgb(35 41 89 / 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}

.nav-list a:hover {
  background: rgb(35 41 89 / 0.07);
}

@media (max-width: 640px) {
  .nav-list li:not(:last-child) {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background-color 0.2s, transform 0.2s;
}

.button:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}

/* Hero */

.hero {
  padding-block: clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgb(166 129 81 / 0.14), transparent 70%),
    radial-gradient(40rem 30rem at 0% 100%, rgb(35 41 89 / 0.07), transparent 70%);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 500;
}

.hero-media {
  position: relative;
}

.hero-media > img:first-child {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: -1.5rem;
  bottom: -1.5rem;
  width: clamp(6rem, 14vw, 9.5rem);
  filter: drop-shadow(0 12px 20px rgb(0 0 0 / 0.25));
}

@media (max-width: 640px) {
  .hero-badge {
    left: -0.5rem;
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-tint {
  background: var(--gold-tint);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-align: center;
}

.section-intro {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--muted);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.split-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

/* Features */

.features {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgb(35 41 89 / 0.1);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature svg {
  height: 2.75rem;
  fill: var(--navy);
}

.feature h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Keurmerk cards */

.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.card img {
  width: min(100%, 15rem);
  margin-bottom: 1.5rem;
  transition: transform 0.4s;
}

.card:hover img {
  transform: rotate(-6deg) scale(1.04);
}

.card h3 {
  font-size: 1.9rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 1.1rem;
}

.card-individual {
  background: var(--white);
  border-top: 6px solid var(--red);
}

.card-team {
  background: var(--gold-dark);
  border-top: 6px solid var(--navy);
}

.card-team h3,
.card-team p {
  color: var(--white);
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Partners */

.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partners a {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid rgb(35 41 89 / 0.1);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.partners a:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .partners {
    grid-template-columns: repeat(4, 1fr);
  }
}

.not-found {
  padding-block: 4rem;
  text-align: center;
}

/* Footer */

.site-footer {
  padding-block: 3.5rem;
  background: var(--footer);
  color: #e1e1e1;
  font-size: 0.975rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-heading {
  margin-bottom: 0.5rem;
  color: var(--white);
  font-weight: 700;
}

.site-footer a {
  color: #e1e1e1;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

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

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Scroll reveal: only hidden once main.js confirms JS is running */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.features .reveal:nth-child(2) { transition-delay: 0.12s; }
.features .reveal:nth-child(3) { transition-delay: 0.24s; }
.cards .reveal:nth-child(2) { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
