/* ===========================================================
   GOODASH: homepage
   Aanvulling op style.css, alleen geladen op de homepage.
   Twee standen (class op <html>, gezet in <head> van index.html):
     (geen)        mobiel / verminder beweging: statische, gestapelde opbouw
     .home-motion  desktop: GSAP-scrollanimaties (home.js)
   =========================================================== */

body[data-page="home"] { overflow-x: clip; }

.home .container { max-width: 1280px; }

/* ---------- Hero ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - 104px);
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 6vh, 88px) clamp(56px, 9vh, 112px);
  overflow-x: clip;
}

/* Achtergrond: fijn raster dat naar de randen wegvalt + zachte blauwe gloed achter het dashboard */
.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.home-hero::before {
  background-image:
    linear-gradient(to right, rgba(0,74,173,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,74,173,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 72% 42%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 80% at 72% 42%, #000 0%, transparent 78%);
}

.home-hero::after {
  background:
    radial-gradient(46% 56% at 74% 44%, rgba(0,74,173,0.14), transparent 70%),
    radial-gradient(30% 40% at 96% 100%, rgba(80,140,230,0.12), transparent 70%);
}

.home-hero__grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
}

.home-hero__title {
  font-size: clamp(2.3rem, 3.45vw, 3.7rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: var(--space-3);
}

.home-hero__line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.home-hero__line > span {
  display: inline-block;
  animation: line-in 1.1s var(--ease-out) both;
}

.home-hero__line--accent { color: var(--color-primary); }
.home-hero__line--accent > span { animation-delay: 0.12s; }

.home-hero__lede {
  max-width: 34ch;
  font-size: clamp(1.08rem, 1.25vw, 1.22rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  animation: rise-in 1s var(--ease-out) 0.3s both;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  animation: rise-in 1s var(--ease-out) 0.42s both;
}

@keyframes line-in {
  from { transform: translateY(108%); }
  to { transform: translateY(0); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__line > span,
  .home-hero__lede,
  .home-hero__actions { animation: page-enter-fade 0.5s ease both; }
}

@media (max-width: 899px) {
  .home-hero { min-height: 0; padding-block: var(--space-4) var(--space-5); }
  .home-hero__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .home-hero__title { font-size: clamp(2.3rem, 10.2vw, 3.3rem); }
  .home-hero__line { white-space: normal; }
  .home-hero__actions { margin-top: var(--space-3); gap: var(--space-2) var(--space-3); }
}

/* Het dashboard mag aan de rechterkant iets uit de kolom steken */
.home-motion .home-hero__visual { margin-right: -2.5vw; }

/* ---------- Klantlogo's ---------- */
.home-clients {
  position: relative;
  background: var(--color-bg);
  border-block: 1px solid var(--color-border);
  padding-block: var(--space-4);
}

.home-clients__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-5);
}

.home-clients__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.home-clients__logos {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}

.home-clients__logos a { display: inline-flex; border-radius: 6px; }

.home-clients__logos img {
  height: 34px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.5s var(--ease-out), opacity 0.5s var(--ease-out), transform 0.6s var(--ease-spring);
}

.home-clients__logos a:hover img,
.home-clients__logos a:focus-visible img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 899px) {
  .home-clients__inner { grid-template-columns: 1fr; gap: var(--space-3); }
  .home-clients__logos { justify-content: flex-start; gap: var(--space-3); }
  .home-clients__logos img { height: 28px; max-width: 108px; }
}

/* ---------- Diensten-story ----------
   Standaard (mobiel, verminder beweging): de vier pijlers onder elkaar, elk met
   zijn eigen voorbeeldweergave. Met .home-motion: één vastgepind scherm waarin
   links de weergave wisselt en rechts de uitleg, gestuurd door scrollen. */
.story { padding-block: clamp(96px, 12vw, 160px); }

.story__title {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  max-width: 16ch;
  margin-bottom: var(--space-5);
}

.story__nav { display: none; }

.story__steps { display: grid; gap: clamp(56px, 7vw, 104px); }

.story__step {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.story__step:nth-child(even) .story__figure { order: 2; }

.story__figure { margin: 0; container-type: inline-size; }
.story__figure .gd__window { font-size: 12px; font-size: calc(100cqw / 54); }


.story__body h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: var(--space-2); }
.story__body p { max-width: 44ch; font-size: 1.08rem; margin-bottom: var(--space-3); }

@media (max-width: 899px) {
  .story__step { grid-template-columns: 1fr; gap: var(--space-3); }
  .story__step:nth-child(even) .story__figure { order: 0; }
  .story__figure .gd__window { font-size: calc(100cqw / 50); }
}

/* Beweging-modus: vastgepind scherm. De gridcellen worden gedeeld door alle vier
   de stappen; ze liggen over elkaar en GSAP wisselt de zichtbare. */
.home-motion .story { height: 100vh; padding: 0; }

.home-motion .story__pin {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 104px;
}

.home-motion .story__grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: clamp(40px, 5vw, 88px);
  row-gap: var(--space-4);
}

.home-motion .story__head { grid-column: 2; grid-row: 1; }
.home-motion .story__steps,
.home-motion .story__step { display: contents; }

.home-motion .story__title { margin-bottom: var(--space-4); }

.home-motion .story__figure { grid-column: 1; grid-row: 1 / span 2; align-self: center; will-change: transform, opacity; }
.home-motion .story__body { grid-column: 2; grid-row: 2; align-self: start; will-change: transform, opacity; }
.home-motion .story__body h3 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); letter-spacing: -0.035em; }

.home-motion .story__nav { display: flex; gap: 6px; list-style: none; }

.story__nav li { flex: 1 1 0; }

.story__nav button {
  position: relative;
  width: 100%;
  padding: 0 0 14px;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.4s var(--ease-out);
}

.story__nav button:hover,
.story__nav button[aria-current="step"] { color: var(--color-heading); }
.story__nav button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 4px; }

.story__nav i {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left center;
}


/* ---------- Klantcases (bento) ---------- */
.cases {
  position: relative;
  background: var(--color-bg);
  padding-block: clamp(96px, 12vw, 168px) clamp(80px, 9vw, 128px);
}

.cases__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.cases__head h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); max-width: 14ch; }

@media (max-width: 899px) {
  .cases__head { flex-direction: column; align-items: flex-start; margin-bottom: var(--space-4); }
}

/* ---------- Zie het in actie ---------- */
.showcase {
  position: relative;
  background: var(--color-bg);
  padding-block: clamp(64px, 8vw, 120px) clamp(96px, 12vw, 168px);
}

.showcase__quote {
  max-width: 24ch;
  font-size: clamp(1.9rem, 3.7vw, 3.4rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-4);
}

.showcase__quote .w { display: inline; }

.showcase__lede {
  max-width: 56ch;
  font-size: 1.08rem;
  margin-bottom: var(--space-5);
}

.showcase__frame {
  padding: 8px;
  border-radius: 36px;
  background: linear-gradient(180deg, #eef3fb, #e3ebf7);
  box-shadow: inset 0 0 0 1px rgba(6,20,46,0.06), var(--shadow-lift);
  transform-origin: 50% 0%;
}

.showcase__inner {
  overflow: hidden;
  border-radius: 28px;
  background: var(--color-ink);
  aspect-ratio: 16 / 9;
}

.showcase__inner video { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 899px) {
  .showcase__frame { padding: 5px; border-radius: 22px; }
  .showcase__inner { border-radius: 17px; }
}

/* ---------- Testimonials: stapel ---------- */
.voices {
  position: relative;
  background: linear-gradient(180deg, var(--color-bg) 0%, #f3f7fd 18%, #f3f7fd 82%, var(--color-bg) 100%);
  padding-block: clamp(96px, 12vw, 168px);
}

.voices__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.voices__intro h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); max-width: 13ch; }

.voices__stack {
  list-style: none;
  display: grid;
  gap: 24px;
}

.voice {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 300px;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: 28px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(6,20,46,0.06), var(--shadow-soft);
}

.voice blockquote p {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--color-heading);
}

.voice__by {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.voice__by img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.voice__by span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Desktop met beweging: de kaarten blijven plakken en schuiven over elkaar heen. */
.home-motion .voices__intro { position: sticky; top: 160px; }

.home-motion .voices__stack { gap: 14vh; padding-bottom: 6vh; }

.home-motion .voice {
  position: sticky;
  top: calc(150px + var(--i, 0) * 22px);
  will-change: transform;
}

@media (max-width: 899px) {
  .voices__grid { grid-template-columns: 1fr; }
  .voice { min-height: 0; border-radius: 22px; }
}

/* ---------- FAQ ---------- */
.faq {
  position: relative;
  background: var(--color-bg);
  padding-block: clamp(96px, 11vw, 152px);
}

.faq__head { margin-bottom: var(--space-5); }
.faq__head h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin-bottom: var(--space-1); }
.faq__head p { font-size: 1.08rem; }

.faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(32px, 5vw, 80px);
}

.faq .faq-item { border-top: 1px solid var(--color-border); }

.faq .faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  padding-block: 22px;
  list-style: none;
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-heading);
  transition: color 0.3s var(--ease-out);
}

.faq .faq-item summary::-webkit-details-marker { display: none; }

.faq .faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-top: -2px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat,
    var(--color-primary-soft);
  color: var(--color-primary);
  transition: transform 0.5s var(--ease-spring), background-color 0.3s var(--ease-out);
}

.faq .faq-item[open] summary::after { transform: rotate(45deg); }
.faq .faq-item summary:hover { color: var(--color-primary); }
.faq .faq-item summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 6px; }

.faq .faq-item p {
  max-width: 56ch;
  padding: 0 44px 24px 0;
}

.faq .faq-item a { color: var(--color-primary); font-weight: 600; }

@media (max-width: 899px) {
  .faq__list { grid-template-columns: 1fr; }
  .faq .faq-item p { padding-right: 0; }
}

/* ---------- Afsluitende CTA ---------- */
.cta-band {
  position: relative;
  background: var(--color-bg);
  padding-block: 0 clamp(48px, 6vw, 96px);
}

.cta-band__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  align-items: end;
  gap: var(--space-4);
  padding: clamp(40px, 6.5vw, 96px);
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(120,170,255,0.32), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(2,24,70,0.55), transparent 65%),
    var(--color-primary);
  box-shadow: 0 40px 80px -40px rgba(0,58,137,0.6);
}

.cta-band__copy h2 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin-bottom: var(--space-2);
}

.cta-band__copy p {
  color: rgba(255,255,255,0.84);
  font-size: 1.1rem;
  max-width: 42ch;
}

.cta-band__actions {
  display: grid;
  justify-items: start;
  gap: var(--space-2);
}

.cta-band__phone {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.86);
  padding-left: 4px;
  border-radius: 4px;
  transition: color 0.3s var(--ease-out);
}

.cta-band__phone:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.cta-band__phone:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cta-band .button--light:focus-visible { outline-color: #fff; }

@media (max-width: 899px) {
  .cta-band__panel { grid-template-columns: 1fr; border-radius: 26px; }
}

/* Contactsectie (gedeelde partial): zelfde breedte als op de andere pagina's, iets meer lucht */
.home #contact { padding-top: clamp(48px, 6vw, 88px); }
.home #contact .container { max-width: var(--max-width); }

/* Mobiel: secties dichter op elkaar, anders voelt scrollen leeg aan */
@media (max-width: 899px) {
  .story,
  .cases,
  .voices,
  .faq { padding-block: 72px; }
  .showcase { padding-block: 40px 72px; }
}
