/* =========================================
   Link-ie — style.css
   Globaal: tokens, reset, nav, footer, gedeelde componenten
   ========================================= */

/* ---- Webfonts: Geist (display) + Inter (body) via @font-face, font-display: swap ---- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@latest/files/geist-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource-variable/inter@latest/files/inter-latin-wght-normal.woff2') format('woff2-variations');
}

/* ---- Design tokens ---- */
:root {
  --ink:    #0E1116;
  --cream:  #F5F1EA;
  --white:  #FFFFFF;
  --orange: #FF5A1F;
  --muted:  #6B6358;
  --border: rgba(14, 17, 22, 0.08);

  --font-display: 'Geist', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-6:  3rem;
  --sp-8:  4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  --container-w:      1200px;
  --container-narrow: 720px;
  --container-pad:    1.5rem;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;
  --radius-pill: 100px;

  --shadow-sm: 0 1px 3px rgba(14,17,22,0.06);
  --shadow:    0 4px 16px rgba(14,17,22,0.10);
  --shadow-lg: 0 12px 40px rgba(14,17,22,0.12);

  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ---- Typografie basis (fluid clamp 320px → 1440px) ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 1.75rem + 4.6vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.5vw, 3rem); }
h3 { font-size: clamp(1.1875rem, 1rem + 0.9vw, 1.625rem); }
h4 { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1875rem); }

p { max-width: 62ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent { color: var(--orange); }

/* ---- Knoppen ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.875rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-fast),
    background-color var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast);
}

.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn--primary:hover {
  background: #e04e1a;
  border-color: #e04e1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.28);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: rgba(14, 17, 22, 0.35);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ---- Navigatie ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  background-color: transparent;
  transition:
    background-color var(--t-base),
    box-shadow var(--t-base),
    padding var(--t-base);
}

.nav.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--border);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-3);
}

/* Cell-alignment: logo links, menu midden, actions rechts */
.nav__logo    { justify-self: start; }
.nav__menu    { justify-self: center; }
.nav__actions { justify-self: end; }
.nav__burger  { justify-self: end; }

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-img {
  width: 36px;
  height: 36px;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.nav__menu {
  display: none;
  align-items: center;
  gap: var(--sp-8);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--orange);
  transition: width var(--t-base);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  width: 100%;
}

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

/* Fase-2 nav items: al aangemaakt, nog niet zichtbaar */
[data-phase="2"] { display: none !important; }

.nav__actions {
  display: none;
  align-items: center;
  gap: var(--sp-2);
}

/* Hamburger */
.nav__burger {
  position: relative;
  z-index: 201;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav__burger:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
  transform-origin: center;
}

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

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

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

/* Mobiel menu — fullscreen overlay */
.nav__mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 6rem var(--sp-4) var(--sp-8);
  background: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--t-base), transform var(--t-base);
}

.nav__mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__mobile-menu .nav__link {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  padding: 0.5rem 0;
}

.nav__mobile-menu .nav__link::after { display: none; }

.nav__mobile-menu .btn {
  margin-top: var(--sp-3);
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

@media (min-width: 1024px) {
  .nav__menu    { display: flex; }
  .nav__actions { display: flex; }
  .nav__burger  { display: none; }
}

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  color: var(--white);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--sp-4);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: var(--sp-2);
}

.footer__logo-img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.footer__logo-name {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
  max-width: 260px;
  margin-bottom: var(--sp-3);
}

.footer__social {
  display: flex;
  gap: var(--sp-2);
}

.footer__social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.footer__social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.footer__social-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--sp-3);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__col ul li a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--t-fast);
}

.footer__col ul li a:hover {
  color: var(--white);
}

.footer__col ul li a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact-item {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--t-fast);
}

.footer__contact-item a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

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

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ---- Secties ---- */
.section {
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-16);
}

.section--sm {
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-12);
}

.section--cream { background: var(--cream); }

.section--ink {
  background: var(--ink);
  color: var(--white);
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: var(--white);
}

.section__header {
  margin-bottom: var(--sp-12);
}

.section__header--center {
  text-align: center;
}

.section__header--center p {
  margin-left: auto;
  margin-right: auto;
}

.section__eyebrow {
  margin-bottom: var(--sp-2);
}

.section__title {
  margin-bottom: var(--sp-2);
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--muted);
}

/* ---- Kaarten ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

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

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger voor meerdere reveal-elementen in een groep */
.reveal-group > *:nth-child(1) { transition-delay: 0s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
