/* ==========================================================================
   Back Office — "The Belgian Shoreline" Design System
   Gebaseerd op Google Stitch ontwerp — DESIGN.md

   Kleuren:
   - Primary (Forest Deep): #061b0e / #1b3022
   - Secondary (Coastal Slate): #4e6073
   - Surface (Sandstone Base): #faf9f6
   - On-Surface: #1a1c1a
   - On-Surface-Variant: #434843

   Fonts: Manrope (headlines, labels) + Newsreader (body, serif warmth)
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  /* Primary */
  --primary: #061b0e;
  --primary-container: #1b3022;
  --on-primary: #ffffff;
  --on-primary-container: #819986;

  /* Secondary */
  --secondary: #4e6073;
  --secondary-container: #cfe2f9;
  --on-secondary-container: #526478;

  /* Tertiary */
  --tertiary-container: #342a20;
  --on-tertiary-container: #a09083;
  --on-tertiary-fixed: #231a10;

  /* Surface hierarchy */
  --surface: #faf9f6;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f4f3f1;
  --surface-container: #efeeeb;
  --surface-container-high: #e9e8e5;
  --surface-container-highest: #e3e2e0;
  --surface-dim: #dbdad7;

  /* Text */
  --on-surface: #1a1c1a;
  --on-surface-variant: #434843;
  --on-background: #1a1c1a;

  /* Utility */
  --outline: #737973;
  --outline-variant: #c3c8c1;

  /* Fonts */
  --font-headline: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-label: 'Manrope', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --max-width: 80rem;
  --radius-md: 0.375rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 2rem;

  /* Shadows — "Middelkerke Mist" */
  --shadow-ambient: 0 8px 32px rgba(26, 28, 26, 0.05);
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--on-surface);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, button, nav {
  font-family: var(--font-headline);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.5s ease;
}

ul {
  list-style: none;
}

::selection {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

/* --- Navigation (Glassmorphism) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(250, 249, 246, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
  height: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav__links a {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  transition: color 0.5s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--primary);
}

.nav__links a.active {
  border-bottom: 1px solid var(--primary);
  padding-bottom: 0.25rem;
}

.nav__cta {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--primary);
  color: var(--on-primary);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav__cta:hover {
  background-color: var(--primary-container);
  transform: translateY(-2px);
}

.nav__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--surface-container-low);
  opacity: 0.2;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  transition: 0.3s ease;
}

/* --- Hero --- */
.hero {
  padding-top: calc(6rem + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  background-color: var(--surface);
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero__content {
  flex: 1;
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--secondary);
  margin-bottom: var(--space-lg);
}

.hero__location-line {
  width: 3rem;
  height: 1px;
  background-color: var(--secondary);
}

.hero__location-text {
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.hero__title em {
  font-family: var(--font-body);
  font-weight: 500;
  font-style: italic;
  color: var(--secondary);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--on-surface-variant);
  max-width: 36rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background-color: var(--primary);
  color: var(--on-primary);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-container);
  transform: translateY(-2px);
}

.btn-secondary {
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background-color: var(--surface-container-highest);
  color: var(--on-surface);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn-secondary:hover {
  opacity: 0.8;
}

.hero__visual {
  flex: 1;
  position: relative;
}

.hero__image-wrapper {
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background-color: var(--surface-container-low);
}

.hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3) contrast(1.1);
}

.hero__floating-card {
  position: absolute;
  bottom: -1.5rem;
  left: -3rem;
  background-color: var(--surface-container-lowest);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-ambient);
  border: 1px solid rgba(195, 200, 193, 0.1);
  max-width: 20rem;
}

.hero__floating-card blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--primary);
  line-height: 1.5;
}

.hero__floating-card cite {
  display: block;
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-style: normal;
  color: var(--secondary);
  margin-top: 1rem;
}

/* --- Services (Bento Grid) --- */
.diensten {
  padding: var(--space-4xl) 0;
  background-color: var(--surface-container-low);
}

.diensten__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
  gap: 2rem;
}

.diensten__header-content {
  max-width: 40rem;
}

.diensten__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.diensten__intro {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.diensten__icon-decorative {
  font-size: 2.5rem;
  color: var(--outline-variant);
}

/* Bento Grid */
.diensten__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.dienst-card {
  padding: 3rem;
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 25rem;
  transition: all 0.5s ease;
}

.dienst-card--wide {
  grid-column: span 7;
}

.dienst-card--narrow {
  grid-column: span 5;
}

/* Variant: default (white) */
.dienst-card--light {
  background-color: var(--surface-container-lowest);
}

.dienst-card--light:hover {
  background-color: #ffffff;
}

/* Variant: primary (dark green) */
.dienst-card--dark {
  background-color: var(--primary);
  color: var(--on-primary);
}

.dienst-card--dark .dienst-card__title {
  color: var(--on-primary);
}

.dienst-card--dark .dienst-card__text {
  color: var(--on-primary-container);
}

.dienst-card--dark .dienst-card__icon-wrap {
  background-color: var(--primary-container);
}

.dienst-card--dark .dienst-card__link {
  color: var(--on-primary);
}

/* Variant: muted */
.dienst-card--muted {
  background-color: var(--surface-container-highest);
}

/* Variant: warm (tertiary) */
.dienst-card--warm {
  background-color: rgba(52, 42, 32, 0.1);
  border: 1px solid rgba(52, 42, 32, 0.2);
}

.dienst-card--warm .dienst-card__icon-wrap {
  background-color: var(--tertiary-container);
}

.dienst-card--warm .dienst-card__icon {
  color: var(--on-tertiary-container);
}

.dienst-card--warm .dienst-card__link {
  color: var(--on-tertiary-container);
}

/* Card internals */
.dienst-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.dienst-card__icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--secondary-container);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dienst-card__icon {
  font-size: 1.5rem;
  color: var(--on-secondary-container);
}

.dienst-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.dienst-card__text {
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 28rem;
}

.dienst-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: gap 0.3s ease;
}

.dienst-card:hover .dienst-card__link {
  gap: 1rem;
}

/* --- Over Ons (Horizon Profile) --- */
.over-ons {
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.over-ons__inner {
  display: flex;
  align-items: center;
  gap: 6rem;
}

.over-ons__visual {
  flex: 1;
  position: relative;
}

.over-ons__portrait {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 12px solid var(--surface-container-low);
}

.over-ons__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.over-ons__blur-circle {
  position: absolute;
  top: -3rem;
  right: -3rem;
  width: 16rem;
  height: 16rem;
  background-color: rgba(207, 226, 249, 0.3);
  border-radius: 50%;
  filter: blur(48px);
  z-index: 0;
}

.over-ons__content {
  flex: 1;
}

.over-ons__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.over-ons__text {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.over-ons__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(195, 200, 193, 0.3);
}

.over-ons__stat-number {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.over-ons__stat-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--secondary);
  margin-top: 0.25rem;
}

/* --- Trust Banner --- */
.trust-banner {
  background-color: var(--tertiary-container);
  padding: 5rem var(--space-xl);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-banner__inner {
  max-width: 48rem;
}

.trust-banner__icon {
  font-size: 2.5rem;
  color: var(--on-tertiary-container);
  margin-bottom: var(--space-md);
}

.trust-banner__quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--on-tertiary-container);
  line-height: 1.6;
}

.trust-banner__author {
  font-family: var(--font-label);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--on-tertiary-fixed);
  margin-top: 2rem;
}

/* --- Referenties --- */
.referenties {
  padding: var(--space-3xl) 0;
  background-color: var(--surface);
}

.referenties__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.referenties__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.referentie-item {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.5;
  transition: opacity 0.5s ease;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-xl);
  background-color: var(--surface-container-low);
}

.referentie-item:hover {
  opacity: 1;
}

/* --- Contact --- */
.contact {
  padding: var(--space-4xl) 0;
  background-color: var(--surface);
}

.contact__inner {
  display: flex;
  gap: 4rem;
}

.contact__intro {
  flex: 0 0 33%;
}

.contact__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.contact__subtitle {
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.contact__details {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact__section-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
}

.contact__address {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.6;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.contact__link:hover {
  color: var(--secondary);
}

.contact__link-icon {
  font-size: 1.25rem;
  color: var(--secondary);
}

.contact__cta {
  margin-top: var(--space-lg);
}

/* Contact Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.contact__form label {
  font-family: var(--font-label);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--on-surface-variant);
}

.contact__form input,
.contact__form textarea {
  background-color: var(--surface-container-highest);
  border: none;
  border-bottom: 1px solid var(--outline-variant);
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--on-surface);
  border-radius: 0;
  transition: border-color 0.3s ease;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-bottom-color: var(--secondary);
}

.contact__form textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background-color: var(--surface-container-low);
  padding: 6rem 3rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__brand {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.footer__copy {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--primary);
}

.footer__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer__col-title {
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
}

.footer__col a {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--secondary);
  transition: opacity 0.3s ease;
}

.footer__col a:hover {
  opacity: 0.7;
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 6rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(195, 200, 193, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-label);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--outline);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__inner {
    flex-direction: column;
  }

  .hero__floating-card {
    display: none;
  }

  .diensten__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .dienst-card--wide,
  .dienst-card--narrow {
    grid-column: span 6;
  }

  .over-ons__inner {
    flex-direction: column;
    gap: 3rem;
  }

  .over-ons__visual {
    max-width: 20rem;
    margin: 0 auto;
  }

  .contact__inner {
    flex-direction: column;
  }

  .contact__intro {
    flex: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container,
  .nav__inner {
    padding: 0 1.5rem;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 6rem;
    left: 0;
    right: 0;
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__cta {
    display: none;
  }

  .hero {
    padding-top: calc(6rem + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .diensten__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .diensten__grid {
    grid-template-columns: 1fr;
  }

  .dienst-card--wide,
  .dienst-card--narrow {
    grid-column: span 1;
  }

  .dienst-card {
    min-height: auto;
    padding: 2rem;
  }

  .contact__details {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 3rem 1.5rem;
  }

  .footer__columns {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}
