/* ============================================
   Van Houtenbos Ontwikkeling - Hoofdstijlblad
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Kleuren */
  --clr-primary: #0C2340;
  --clr-primary-light: #163A5F;
  --clr-primary-dark: #081A2F;
  --clr-accent: #B8860B;
  --clr-accent-light: #D4A843;
  --clr-accent-dark: #8B6508;
  --clr-brick: #8B4513;
  --clr-white: #FFFFFF;
  --clr-off-white: #F7F8FA;
  --clr-light-gray: #E8EAED;
  --clr-mid-gray: #9CA3AF;
  --clr-dark-gray: #4B5563;
  --clr-text: #1A1A2E;
  --clr-text-light: #6B7280;
  --clr-success: #059669;
  --clr-error: #DC2626;
  --clr-warning: #D97706;

  /* Typografie */
  --ff-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;
  --fs-6xl: 4.5rem;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.2;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* Spacing (8px grid) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
  --header-height: 80px;

  /* Schaduwen */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Randen */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transities */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-index schaal */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-cookie: 500;
  --z-tooltip: 600;
}

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

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

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

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background-color: var(--clr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--clr-primary);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
  margin-bottom: var(--sp-4);
  color: var(--clr-dark-gray);
}

strong { font-weight: var(--fw-semibold); }

/* --- Accessibility --- */
.sr-only {
  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 {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: var(--z-tooltip);
  padding: var(--sp-3) var(--sp-6);
  background: var(--clr-primary);
  color: var(--clr-white);
  font-weight: var(--fw-semibold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

*:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 2px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

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

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

.section {
  padding-block: var(--sp-20);
}

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

.section--lg {
  padding-block: var(--sp-32);
}

.section--dark {
  background-color: var(--clr-primary);
  color: var(--clr-white);
}

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

.section--dark p {
  color: rgba(255, 255, 255, 0.8);
}

.section--gray {
  background-color: var(--clr-off-white);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--sp-12);
}

.section__subtitle {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-accent);
  margin-bottom: var(--sp-3);
}

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

.section__desc {
  font-size: var(--fs-md);
  color: var(--clr-text-light);
}

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--sp-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

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

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--col {
  flex-direction: column;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--clr-light-gray);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width-wide);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo img,
.header__logo svg {
  height: 40px;
  width: auto;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header__logo-text span:first-child {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}

.header__logo-text span:last-child {
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  color: var(--clr-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__link {
  position: relative;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav__link:hover {
  color: var(--clr-primary);
  background-color: var(--clr-off-white);
}

.nav__link--active {
  color: var(--clr-accent);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: var(--radius-full);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  cursor: pointer;
}

.nav__dropdown-toggle i {
  font-size: var(--fs-xs);
  transition: transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-toggle i {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: var(--clr-white);
  border: 1px solid var(--clr-light-gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--clr-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav__dropdown-item:hover {
  background: var(--clr-off-white);
  color: var(--clr-accent);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--clr-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav-toggle--active .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle--active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle--active .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Header CTA */
.header__cta {
  flex-shrink: 0;
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-overlay--visible {
  display: block;
  opacity: 1;
}

/* --- Footer --- */
.footer {
  background: var(--clr-primary);
  color: var(--clr-white);
  padding-top: var(--sp-20);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-6);
}

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

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--clr-white);
  font-size: var(--fs-md);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background: var(--clr-accent);
  transform: translateY(-2px);
}

.footer__title {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-white);
  margin-bottom: var(--sp-6);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__links a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--clr-accent);
}

.footer__newsletter p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-4);
}

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

.footer__newsletter-form input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--clr-white);
  font-size: var(--fs-sm);
}

.footer__newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer__newsletter-form input:focus {
  outline: none;
  border-color: var(--clr-accent);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact-item i {
  color: var(--clr-accent);
  margin-top: 3px;
  width: 16px;
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  padding-block: var(--sp-6);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom-links {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
  color: var(--clr-accent);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 50%, #1a4a7a 100%);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero--bg {
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12, 35, 64, 0.82) 0%, rgba(22, 58, 95, 0.75) 50%, rgba(26, 74, 122, 0.7) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(184, 134, 11, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(26, 74, 122, 0.3) 0%, transparent 50%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--clr-primary), transparent);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__subtitle {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-accent);
  margin-bottom: var(--sp-6);
}

.hero__title {
  font-size: var(--fs-6xl);
  color: var(--clr-white);
  margin-bottom: var(--sp-6);
}

.hero__title span {
  color: var(--clr-accent);
}

.hero__desc {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-10);
}

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-20);
  padding-top: var(--sp-10);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-family: var(--ff-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.hero__stat-label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Decorative elements */
.hero__shape {
  position: absolute;
  z-index: 0;
  opacity: 0.05;
}

.hero__shape--1 {
  top: 10%;
  right: -5%;
  width: 400px;
  height: 400px;
  border: 2px solid var(--clr-white);
  border-radius: var(--radius-full);
}

.hero__shape--2 {
  bottom: 20%;
  right: 10%;
  width: 250px;
  height: 250px;
  border: 2px solid var(--clr-accent);
  transform: rotate(45deg);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--sp-4) 0;
  margin-top: var(--header-height);
  background: var(--clr-off-white);
  border-bottom: 1px solid var(--clr-light-gray);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  flex-wrap: wrap;
}

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

.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  color: var(--clr-mid-gray);
}

.breadcrumbs__link {
  color: var(--clr-text-light);
  transition: color var(--transition-fast);
}

.breadcrumbs__link:hover {
  color: var(--clr-accent);
}

.breadcrumbs__current {
  color: var(--clr-primary);
  font-weight: var(--fw-medium);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: var(--sp-20) 0 var(--sp-12);
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-light) 100%);
  margin-top: var(--header-height);
  text-align: center;
}

.page-header__title {
  color: var(--clr-white);
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-4);
}

.page-header__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-md);
  max-width: 600px;
  margin-inline: auto;
}

/* Page header follows breadcrumbs - no duplicate top margin */
.page-referenties .page-header,
.page-over-ons .page-header,
.page-diensten .page-header,
.page-vacatures .page-header {
  margin-top: 0;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clr-accent);
  transform: translateY(-2px);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-cookie);
  background: var(--clr-white);
  border-top: 1px solid var(--clr-light-gray);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: var(--sp-6);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__text h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
}

.cookie-banner__text p {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  margin-bottom: 0;
}

.cookie-banner__text a {
  color: var(--clr-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.cookie-modal--visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal__content {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--sp-8);
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
}

.cookie-modal__header h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-lg);
  color: var(--clr-text);
}

.cookie-modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-off-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--fs-md);
  color: var(--clr-text-light);
  transition: all var(--transition-fast);
}

.cookie-modal__close:hover {
  background: var(--clr-light-gray);
  color: var(--clr-text);
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4);
  border: 1px solid var(--clr-light-gray);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-3);
}

.cookie-toggle__info h4 {
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  margin-bottom: var(--sp-1);
}

.cookie-toggle__info p {
  font-size: var(--fs-xs);
  color: var(--clr-text-light);
  margin-bottom: 0;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch__slider {
  position: absolute;
  inset: 0;
  background: var(--clr-light-gray);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle-switch__slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--clr-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.toggle-switch input:checked + .toggle-switch__slider {
  background: var(--clr-accent);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-switch__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-left--visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-right--visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.stagger--visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-2xl); }

  .hero__title { font-size: var(--fs-4xl); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section { padding-block: var(--sp-12); }
  .section--lg { padding-block: var(--sp-20); }

  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }

  .hero__title { font-size: var(--fs-3xl); }
  .hero__desc { font-size: var(--fs-base); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
  .hero__stat-number { font-size: var(--fs-2xl); }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Mobile nav */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--clr-white);
    padding: calc(var(--header-height) + var(--sp-4)) var(--sp-6) var(--sp-6);
    box-shadow: var(--shadow-2xl);
    transition: right var(--transition-base);
    z-index: var(--z-overlay);
    overflow-y: auto;
  }

  .nav--open {
    right: 0;
  }

  .nav__link {
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--clr-off-white);
    border-radius: 0;
  }

  .nav__dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: var(--sp-4);
    opacity: 1;
    visibility: visible;
    display: none;
    background: var(--clr-off-white);
    border-radius: var(--radius-md);
    margin-top: var(--sp-2);
  }

  .nav__dropdown--open .nav__dropdown-menu {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  /* Footer mobile */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Cookie banner mobile */
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .page-header {
    padding: var(--sp-12) 0 var(--sp-8);
  }

  .page-header__title {
    font-size: var(--fs-2xl);
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--sp-4);
  }

  .hero__title { font-size: var(--fs-2xl); }
  .hero__actions { flex-direction: column; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}
