/* Site sections — hero banner, split hero, testimonials, team stories */

/* Tighter, centered page column (matches ~1080px reference) */
:root {
  --section-text: #4a4f3d; /* body copy (designer color-text) */
  --text-color: var(--section-text);
  --heading-color: #3e4535; /* designer color-heading */
  /* homelr: text-sm + leading-6 (Inter 14px / 24px); Poppins reads smaller so slight bump */
  --section-body-size: 1rem;
  --section-body-leading: 1.5;
  --section-col-text: 31.875rem; /* 510px — reference text column */
  --section-col-wide: 43.75rem; /* 700px — hero intro column */
}

.prose,
.service-card__text,
.testimonials__quote p,
.team-stories__body,
.text-section .prose,
.hero__intro--body,
.value-pillar__text {
  color: var(--section-text);
  font-size: var(--section-body-size);
  line-height: var(--section-body-leading);
  font-weight: var(--font-weight-light);
}

/* ── Hero banner (logo + magnifying glass; eyebrow below band) ── */
.hero-banner {
  --hero-eyebrow-zone: 3.75rem;
  margin-bottom: var(--space-10);
}

.hero-banner__panel {
  position: relative;
  z-index: 1;
  background: var(--color-secondary);
  overflow: visible;
}

/* Beige hover extension — back layer (behind eyebrow + content) */
.hero-banner__panel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0;
  background: var(--color-secondary);
  transition: height 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: 0;
  pointer-events: none;
}

@media (hover: hover) {
  .hero-banner:hover .hero-banner__panel::after,
  .hero-banner:focus-within .hero-banner__panel::after {
    height: var(--hero-eyebrow-zone);
  }
}

.hero-banner__panel-inner {
  display: grid;
  gap: var(--space-6);
  align-items: end;
  padding-block: var(--space-8) var(--space-6);
  min-height: 10rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}

@media (min-width: 768px) {
  .hero-banner__panel-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    min-height: 11.5rem;
    padding-block: var(--space-7) var(--space-5);
  }
}

.hero-banner__brand {
  align-self: start;
}

.hero-banner__logo {
  margin-top: 11px;
}

.hero-banner__logo img {
  width: min(100%, 26.4rem);
  height: auto;
  display: block;
}

.hero-banner__visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  margin-top: 12px;
  padding-right: var(--space-2);
  pointer-events: none;
  position: relative;
  z-index: 5;
}

.hero-banner__visual-img {
  width: min(100%, 28rem);
  max-height: 13rem;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  transform: translate(12px, 8px) rotate(-2deg);
  filter: drop-shadow(3px 5px 10px rgba(68, 71, 51, 0.14));
  opacity: 0;
}

@media (min-width: 768px) {
  .hero-banner__visual {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(54%, 32rem);
    margin: 0;
    padding-right: var(--space-4);
    z-index: 5;
  }

  .hero-banner__visual-img {
    position: relative;
    z-index: 5;
    max-height: 16rem;
    /* Half on beige band, half below — anchored to bottom edge */
    transform: translate(14px, 50%) rotate(-2deg);
  }
}

/* Scrapbook-style: swings in from the right, settles with a slight tilt */
.hero-banner.is-glass-ready .hero-banner__visual-img {
  animation: hero-glass-scrapbook 1.15s cubic-bezier(0.34, 1.25, 0.44, 1) forwards;
}

@keyframes hero-glass-scrapbook {
  0% {
    opacity: 0;
    transform: translate(95%, 50%) rotate(22deg) scale(0.9);
  }
  55% {
    opacity: 1;
    transform: translate(20px, 46%) rotate(-5deg) scale(1.03);
  }
  78% {
    transform: translate(10px, 52%) rotate(1deg) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate(14px, 50%) rotate(-2deg) scale(1);
  }
}

@media (max-width: 767px) {
  @keyframes hero-glass-scrapbook {
    0% {
      opacity: 0;
      transform: translate(60%, 8px) rotate(18deg) scale(0.92);
    }
    100% {
      opacity: 1;
      transform: translate(12px, 8px) rotate(-2deg) scale(1);
    }
  }
}

/* Eyebrow below band — above hover extension, on page background */
.hero-banner__eyebrow-wrap {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: var(--space-5);
  padding-bottom: var(--space-2);
  background: transparent;
}

.hero-banner__eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin: 0;
}

.hero-banner__eyebrow.reveal-text {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.hero-banner__eyebrow .reveal-text__inner {
  display: inline;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .hero-banner__eyebrow .reveal-text__inner {
    white-space: normal;
  }
}

.hero--split .hero__title[data-animate='pan-left'] {
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner__panel::after {
    transition: none;
  }

  .hero-banner.is-glass-ready .hero-banner__visual-img {
    animation: none;
  }

  .hero-banner__visual-img {
    opacity: 1;
    transform: translate(14px, 50%) rotate(-2deg);
  }

  @media (max-width: 767px) {
    .hero-banner__visual-img {
      transform: translate(12px, 8px) rotate(-2deg);
    }
  }
}

/* ── Non-split hero subheading ── */
.hero__subheading {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  line-height: var(--leading-snug);
  color: var(--color-primary);
  margin: var(--space-2) 0 var(--space-4);
}

/* ── Portrait variant for hero-banner (smaller overhang for tall photos) ── */
.hero-banner--portrait .hero-banner__visual-img {
  max-height: 10rem;
  transform: translate(12px, 15%) rotate(-2deg);
}

@media (min-width: 768px) {
  .hero-banner--portrait .hero-banner__visual {
    width: min(40%, 22rem);
  }

  .hero-banner--portrait .hero-banner__visual-img {
    max-height: 12rem;
    transform: translate(14px, 22%) rotate(-2deg);
  }
}

.hero-banner--portrait.is-glass-ready .hero-banner__visual-img {
  animation: hero-glass-portrait 1.15s cubic-bezier(0.34, 1.25, 0.44, 1) forwards;
}

@keyframes hero-glass-portrait {
  0% {
    opacity: 0;
    transform: translate(95%, 22%) rotate(22deg) scale(0.9);
  }
  55% {
    opacity: 1;
    transform: translate(20px, 19%) rotate(-5deg) scale(1.03);
  }
  78% {
    transform: translate(10px, 24%) rotate(1deg) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translate(14px, 22%) rotate(-2deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner--portrait .hero-banner__visual-img {
    transform: translate(14px, 22%) rotate(-2deg);
  }
}

/* ── Split hero (Groei is goed) ── */
.hero--split {
  padding: var(--space-4) 0 var(--space-14);
  background: var(--color-background);
}

.hero--split .hero__inner {
  display: grid;
  gap: var(--space-8);
  align-items: start;
  max-width: 67.5rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero--split .hero__inner {
    grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
    gap: var(--space-20);
    align-items: start;
    justify-content: center;
  }

  .hero--split .hero__body-col {
    max-width: var(--section-col-wide);
  }
}

.hero--split .hero__title {
  font-family: var(--font-heading);
  font-size: var(--font-hero-title);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  line-height: var(--leading-tight);
  color: var(--color-primary);
  margin: 0;
}

.hero__lead {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.hero__intro--body {
  text-transform: none;
  letter-spacing: normal;
  color: var(--section-text, var(--color-primary));
  max-width: var(--section-col-wide);
  white-space: pre-line;
}

/* ── Service card images ── */
.service-card__media {
  margin: calc(var(--space-8) * -1) calc(var(--space-8) * -1) var(--space-6);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.service-card__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ── Text sections ── */
.text-section:not(.text-section--has-image) .text-section__inner {
  max-width: var(--section-col-wide);
  margin-inline: auto;
  text-align: center;
}

.text-section:not(.text-section--has-image) .prose {
  max-width: none;
  margin-inline: auto;
}

.text-section--has-image {
  background: var(--color-background);
}

.text-section--has-image .text-section__inner {
  max-width: 67.5rem;
  margin-inline: auto;
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.text-section--has-image .text-section__content {
  max-width: var(--section-col-text);
}

@media (min-width: 900px) {
  .text-section--has-image .text-section__inner {
    grid-template-columns: minmax(0, var(--section-col-text)) minmax(0, var(--section-col-text));
    justify-content: center;
    gap: var(--space-14);
  }

  .text-section--image-left .text-section__inner {
    direction: rtl;
  }

  .text-section--image-left .text-section__inner > * {
    direction: ltr;
  }
}

.text-section__media {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.text-section__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.text-section h2 {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-light);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.text-section h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.text-section .prose strong {
  font-weight: var(--font-weight-bold);
}

/* ── Testimonials (homelr: bg-slate-300 / value-pillars band) ── */
.testimonials {
  padding: var(--section-y-tight) 0;
  background: #bcdfe6;
}

.testimonials__card {
  padding: var(--space-12) var(--space-10);
  text-align: center;
  max-width: var(--section-col-wide);
  margin: 0 auto;
}

.testimonials__track {
  overflow: hidden;
}

.testimonials__slider {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.testimonials__logo img {
  max-width: 18rem;
  max-height: 5rem;
  width: auto;
  height: auto;
  margin: 0 auto var(--space-8);
  object-fit: contain;
}

.testimonials__quote {
  margin: 0 0 var(--space-4);
  border: none;
  padding: 0;
}

.testimonials__quote p {
  color: var(--text-color);
}

.testimonials__attribution {
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  color: var(--text-muted);
}

.testimonials__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
}

.testimonials__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-full);
  border: none;
  padding: 0;
  background: var(--text-muted);
  opacity: 0.4;
  cursor: pointer;
  transition:
    opacity 0.3s ease,
    background 0.3s ease,
    width 0.3s ease;
}

.testimonials__dot.is-active {
  opacity: 1;
  background: var(--color-primary);
  width: 1.25rem;
  border-radius: 999px;
}

.testimonials__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
  flex-shrink: 0;
}

.testimonials__arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-background);
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__slider {
    transition: none;
  }
}

/* ── Value pillars (photo cards) ── */
.value-pillars--photos {
  background: #bcdfe6;
}

/* Row variant: widen container so 5 cards match the size of 4-col cards */
.value-pillars--row .container {
  max-width: calc(var(--container-max) * 5 / 4);
}

.value-pillars--photos-white {
  background: var(--color-background);
}

/* ── Value pillars (blue/slate band) ── */
.value-pillars--blue {
  background: #c8d4dc;
}

.value-pillars--photos .value-pillar {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
  text-align: left;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.value-pillars--photos .value-pillar__icon img {
  width: 13rem;
  height: 13rem;
  max-width: 100%;
  max-height: 13rem;
  object-fit: contain;
}

.value-pillars--photos .value-pillars__grid {
  align-items: stretch;
}

/* ── Team stories (Dames op de werkvloer) ── */
.team-stories {
  padding: var(--section-y) 0;
  background: var(--color-secondary);
}

.team-stories .container {
  max-width: 81rem; /* ~20% wider than the default 67.5rem container */
}

.team-stories__heading {
  text-align: center;
  font-size: var(--text-2xl);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.team-stories__intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--space-12);
  font-size: var(--section-body-size);
  line-height: var(--section-body-leading);
  font-weight: var(--font-weight-bold);
}

.team-stories__story {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-8);
  padding: var(--space-8);
  background: var(--color-surface);
}

@media (min-width: 768px) {
  .team-stories__story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-10);
  }

  .team-stories__story--image-left .team-stories__media {
    order: -1;
  }

  .team-stories__story--image-right .team-stories__media {
    order: 2;
  }

  .team-stories__story--image-right .team-stories__content {
    order: 1;
  }
}

.team-stories__story--flush {
  background: transparent;
  padding: var(--space-6) 0;
  border: none;
  box-shadow: none;
}

.team-stories__story--flush .team-stories__img {
  max-width: 22rem;
  border-radius: var(--radius-md);
}

.team-stories__img {
  width: 100%;
  max-width: 20rem;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.team-stories__story--flush.team-stories__story--image-right .team-stories__img {
  margin-left: auto;
  margin-right: 0;
}

.team-stories__title {
  font-size: var(--text-xl);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.team-stories__body {
  font-weight: var(--font-weight-light);
}

.team-stories__actions {
  text-align: center;
  margin-top: var(--space-10);
}
