/* ============================================
   CLARK — Formule Page
   ============================================ */

body.formule-page {
  background-color: var(--red);
  color: var(--pink-light);
}

.formule-red {
  background: var(--red);
}

/* ============================================
   HERO — defaults (normal scroll, works everywhere)
   ============================================ */
.formule-hero-scroll {
  position: relative;
}

.formule-hero-sticky {
  overflow: visible;
}

.formule-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 140px clamp(24px, 5vw, 80px) 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 32px);
}

.formule-hero__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.formule-hero__label {
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1.33;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.formule-hero__title {
  font-weight: 700;
  font-size: clamp(36px, 5.82vw, 140px);
  line-height: 1.09;
  color: var(--pink-light);
  margin-bottom: clamp(12px, 2vw, 24px);
}

.formule-hero__body {
  max-width: 660px;
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--pink-light);
}

.formule-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 32px);
  margin-top: clamp(16px, 2vw, 32px);
}

.formule-hero__arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--pink-light);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.formule-hero__arrow svg {
  width: clamp(28px, 2.4vw, 36px);
  height: clamp(28px, 2.4vw, 36px);
}

.formule-hero__arrow:hover {
  opacity: 0.7;
}

.formule-hero__arrow svg {
  animation: bounceDown 1.5s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.formule-hero__media {
  flex: 0 0 clamp(150px, 28%, 600px);
}

.formule-hero__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* ============================================
   LOUISE — defaults (static, relative)
   ============================================ */
.formule-louise {
  width: clamp(140px, 16vw, 250px);
  margin: 32px 0 0 clamp(24px, 5vw, 80px);
}

.formule-louise img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.formule-louise__tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--pink-light);
  color: var(--black);
  border-radius: 16px;
  padding: clamp(8px, 1vw, 14px) clamp(12px, 1.5vw, 24px);
  gap: 4px;
  margin-top: 12px;
}

.formule-louise__name {
  font-size: clamp(10px, 0.9vw, 14px);
  font-weight: 500;
}

.formule-louise__quote {
  font-size: clamp(10px, 0.85vw, 13px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
}

/* ============================================
   STAPPENPLAN — defaults (normal scroll)
   ============================================ */
.formule-steps {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(40px, 5vh, 80px) clamp(24px, 5vw, 80px);
  overflow: hidden;
}

.formule-steps__title {
  font-weight: 700;
  font-size: clamp(36px, 5.82vw, 140px);
  line-height: 1.09;
  color: var(--pink-light);
  margin-bottom: clamp(20px, 3vh, 48px);
}

.formule-steps__cta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(48px, 5vh, 80px);
  margin-left: clamp(0px, 18vw, 400px);
  padding-left: calc(clamp(60px, 8vw, 100px) + clamp(12px, 2vw, 32px) + 22px);
}

.formule-steps__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vh, 48px);
  margin-left: clamp(0px, 18vw, 400px);
}

.formule-steps__timeline .tl-line {
  position: absolute;
  left: calc(clamp(60px, 8vw, 100px) + clamp(12px, 2vw, 32px) + 7px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
  z-index: 0;
}

.formule-steps__timeline .tl-line__fill {
  width: 100%;
  height: 0%;
  background: var(--pink-light);
  border-radius: 1px;
  transition: height 0.05s linear;
}

.tl-row {
  display: grid;
  grid-template-columns: clamp(60px, 8vw, 100px) 16px 1fr;
  column-gap: clamp(12px, 2vw, 32px);
  align-items: start;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tl-row.is-active {
  opacity: 1;
  transform: translateY(0);
}

.tl-row__label {
  font-weight: 400;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.4;
  color: rgba(255, 242, 242, 0.6);
  white-space: nowrap;
  padding-top: 4px;
}

.tl-row__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  margin-top: 5px;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.tl-row.is-active .tl-row__dot {
  transform: scale(1);
  background: var(--pink-light);
}

.tl-row__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding-right: 24px;
}

.tl-row__icon {
  flex-shrink: 0;
  width: clamp(28px, 3vw, 48px);
  height: auto;
}

.tl-row__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-row__title {
  font-weight: 500;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1;
  color: var(--pink-light);
}

.tl-row__desc {
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--pink-light);
}

/* ============================================
   LIGHT CONTACT SECTION
   ============================================ */
.contact-section--light {
  background: var(--cream);
}

.contact-section--light .contact-section__label {
  color: var(--muted);
}

.contact-section--light .contact-section__title {
  color: var(--dark-text);
}

.contact-section--light .process-lottie__label {
  color: var(--dark-text);
}

.contact-section--light .btn--primary-dark {
  background: var(--white);
  color: var(--black);
}

.service-cards--formule {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 80px);
  max-width: 891px;
}

.service-cards--formule .service-card {
  flex: 1 1 200px;
  background: var(--off-white);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 24px);
}

.service-cards--formule .service-card__icon img {
  opacity: 0.6;
}

.service-cards--formule .service-card__title {
  color: var(--dark-text);
}

.service-cards--formule .service-card__desc {
  color: var(--muted);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.formule-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   FOOTER
   ============================================ */
body.formule-page .footer {
  background: var(--black);
}

/* ============================================
   DESKTOP ANIMATION — only on large screens
   ============================================ */
@media (min-width: 1100px) and (min-height: 800px) {
  .formule-hero-scroll {
    height: 300vh;
  }

  .formule-hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }

  .formule-hero {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    will-change: transform;
  }

  .formule-louise {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    margin: 0;
    will-change: transform, opacity;
  }

  .formule-louise__tag {
    border-radius: 16px;
    padding: 10px 16px;
    gap: 0;
    overflow: hidden;
    transition: border-radius 0.4s ease, padding 0.4s ease, gap 0.4s ease;
  }

  .formule-louise__quote {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
  }

  .formule-louise__tag.visible {
    border-radius: 16px;
    padding: 14px 24px;
    gap: 4px;
  }

  .formule-louise__tag.visible .formule-louise__quote {
    max-height: 120px;
    opacity: 1;
    margin-top: 6px;
  }

  .formule-steps {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
    padding: max(5vh, 100px) 80px 5vh;
  }

  .formule-steps.visible {
    opacity: 1;
  }

  .formule-steps__timeline {
    margin-left: clamp(220px, 22vw, 400px);
  }
  .formule-steps__cta {
    margin-left: clamp(220px, 22vw, 400px);
  }
}

/* ============================================
   TABLET PORTRAIT (iPad vertical ~600-850px)
   ============================================ */
@media (max-width: 850px) and (min-width: 601px) {
  body.formule-page .header__nav { display: none; }
  body.formule-page .header__menu-toggle { display: flex; }

  .formule-hero-sticky {
    display: grid;
    grid-template-columns: 1fr 200px;
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 100px 40px 0;
  }

  .formule-hero {
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    padding: 0;
    gap: 16px;
  }

  .formule-hero__media {
    display: none;
  }

  .formule-louise {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin: 0;
    align-self: start;
  }

  .formule-steps {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 40px 0;
  }

  .formule-steps__timeline {
    margin-left: 0;
  }
  .formule-steps__cta {
    margin-left: 0;
    padding-left: calc(clamp(60px, 8vw, 100px) + clamp(12px, 2vw, 32px) + 22px);
  }
}

/* ============================================
   PHONE — narrow screens
   ============================================ */
@media (max-width: 600px) {
  .formule-hero {
    flex-direction: column;
    padding-top: 100px;
  }

  .formule-hero__media {
    display: none;
  }

  .formule-hero__actions {
    flex-direction: column;
  }

  .formule-louise {
    width: 100%;
    margin-left: 0;
    padding: 0 24px;
  }

  .formule-louise img {
    object-position: center 20%;
  }

  .formule-steps__timeline {
    margin-left: 0;
  }

  .formule-steps__cta {
    margin-left: 0;
    padding-left: 36px;
  }

  .formule-steps__timeline .tl-line {
    left: 7px;
  }

  .tl-row {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-left: 36px;
  }

  .tl-row__label {
    padding-top: 0;
    margin-bottom: 8px;
  }

  .tl-row__dot {
    position: absolute;
    left: -29px;
    top: 4px;
    width: 14px;
    height: 14px;
  }
}
