/* =========================================
   FITNESS PAGE – PAGE TEMPLATE
   Mobile-first – matches new HTML:
   section-page-hero / content / benefits / cta
========================================= */


/* ================================
   PAGE HERO
================================ */

.section-page-hero {
  background: #fff;
  padding-top: 140px !important; /* ruimte onder vaste header */
}

.section-page-hero .section-inner {
  padding: 0 24px;
}

.page-hero-content {
  max-width: 820px;
}

.page-hero-content h1 {
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.page-hero-content .lead {
  margin: 0 0 24px;
  line-height: 1.65;
  opacity: 0.88;
}

.page-hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start; /* links, premium rustig */
}

.section-page-hero .btn-egym,
.section-page-cta .btn-egym {
  color: var(--accent);
}

/* =========================================
   OVERRIDE GLOBAL SECTION PADDING
   We gebruiken op fitness géén 80px top/bottom
   uit site.css tussen hero en content.
   Hier bepalen we eigen spacing.
========================================= */

.section-page-hero,
.section-page-content,
.section-page-benefits,
.section-page-cta {
  padding-top: 30px;
  padding-bottom: 0px;
}

.section-page-content,
.section-page-benefits {
  padding-bottom: 30px;
}

/* ================================
   CONTENT SPLIT
================================ */

.section-page-content {
  background: #fff;
}

.section-page-content .section-inner {
  padding: 0 24px;
}

.page-split {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-text h2 {
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.page-text p {
  margin: 0 0 18px;
  line-height: 1.7;
  opacity: 0.92;
}

.page-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.08);
}


/* ================================
   BENEFITS
================================ */

.section-page-benefits {
  background: linear-gradient(180deg, #f4f8fb 0%, #eef4f8 100%);
}

.section-page-benefits .section-inner {
  padding: 0 24px;
}

.section-title {
  margin: 0 0 22px;
  max-width: 820px;
  letter-spacing: -0.01em;
}

.page-benefits-grid {
  display: grid;
  gap: 18px;
}

.benefit-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.45s cubic-bezier(.2,.8,.2,1);
}

.benefit-card h3 {
  margin: 0 0 12px;
}

.benefit-card p {
  margin: 0;
  line-height: 1.65;
  opacity: 0.85;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 90px rgba(0,0,0,0.08);
}


/* ================================
   CTA (CARD + SUBTLE BAND)
================================ */

.section-page-cta {
  /* we willen niet “footer vibe”, wel een zachte band */
  background: linear-gradient(
    180deg,
    rgba(244, 248, 251, 0) 0%,
    rgba(244, 248, 251, 0.9) 35%,
    rgba(244, 248, 251, 0.9) 65%,
    rgba(244, 248, 251, 0) 100%
  );

  /* jij wilde vooral onder ruimte, boven minder */
  padding: 56px 0 110px;
}

.section-page-cta .section-inner {
  padding: 0 24px;
}

.page-cta-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 28px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow:
    0 26px 80px rgba(16, 56, 79, 0.10),
    0 6px 18px rgba(0, 0, 0, 0.05);
}

.page-cta-card h2 {
  margin: 0 0 12px;
}

.page-cta-card p {
  margin: 0 0 26px;
  line-height: 1.6;
  opacity: 0.85;
}

.page-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}


/* ================================
   BUTTON TWEAKS (alleen op fitness)
================================ */

.section-page-hero .btn,
.section-page-cta .btn {
  border: none;
  box-shadow: none;
}

.section-page-cta .btn.btn-primary {
  padding: 16px 34px;
  border-radius: 40px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.section-page-cta .btn.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.20);
}


/* ================================
   SUBTLE SCROLL ANIMATION
================================ */

.fade-section {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(.2,.8,.2,1),
              transform 0.9s cubic-bezier(.2,.8,.2,1);
}

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

/* ==========================
   MODAL – EGYM PRICING
   Mobile-first / scroll proof
========================== */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;

  /* mobiel gedrag */
  -webkit-overflow-scrolling: touch;

  align-items: center;
  justify-content: center;

  padding: 16px;
}

.modal.active {
  display: flex;
}

/* mobiel basis */
.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;

  margin: 0;
  padding: 28px 18px 60px;

  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  border-radius: 22px;

  /* belangrijk */
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Backdrop / overlay (zorgt voor dim + rust) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 35, 0.55);
  /* optioneel: chique effect, kan je ook weglaten */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 0;
}

/* Zorg dat de content boven de overlay ligt */
.modal-content {
  position: relative;
  z-index: 1;
}

#egymModal .modal-content h2::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--accent);
  border-radius: 2px;
}

/* Entrance animation */
@keyframes modalFade {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close button */
.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.modal-close:hover {
  opacity: 1;
}

/* Title */
.modal-content h2 {
  text-align: center;
  margin: 32px 0 48px;
  letter-spacing: -0.02em;
}

.modal-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px;
  opacity: 0.85;
  line-height: 1.6;
}

/* ==========================
   MODAL – EGYM INTAKE
========================== */

.modal-intake form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-intake .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-intake label {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
}

.modal-intake input,
.modal-intake textarea {
  border: none;
  background: #f4f8fb;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  font-family: inherit;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.modal-intake textarea {
  resize: vertical;
  min-height: 90px;
}

.modal-intake h2::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--accent);
  border-radius: 2px;
}

.modal-intake input:focus,
.modal-intake textarea:focus {
  outline: none;
  background: #ffffff;
  box-shadow:
    0 0 0 2px rgba(223,146,68,0.45);
}

.modal-intake .form-actions {
  margin-top: 10px;
}

.modal-intake h2 {
  margin: 20px 0 20px;
}

.modal-intake .intake-kort-title {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 8px;
  opacity: 0.85;
  line-height: 1.6;
}

.modal-intake .modal-intro {
  text-align: left;
  margin: 0 0 24px;
}

.intake-kort {
  list-style: none;
  padding: 0;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: fit-content;
}

.intake-kort li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}

.intake-kort li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.modal-intake {
  position: relative;
  overflow: hidden;
}

.modal-intake::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(47,94,117,0.15) 0%,
    rgba(47,94,117,0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.modal-btn {
  border: 2px solid transparent;
}

/* Hover alleen op apparaten die echt hover ondersteunen */
@media (any-hover: hover) {
  .modal-btn:hover {
    background: var(--white);
    color: var(--brand-blue);
    border-color: var(--brand-blue);
  }
}

/* Tap mag GEEN hover-look vasthouden */
.modal-btn:focus {
  outline: none;
  background: inherit;
  color: inherit;
  border-color: transparent;
}

/* ==========================
   PROMO POPUP (campagne)
========================== */

.modal-promo {
  max-width: 560px;
  padding: 0 0 28px;
  overflow: hidden;
  overflow-y: auto;
  --modal-bg: #f8fbfe;
}

#egymPromoModal {
  padding: 6px;
}

/* Titel boven foto */
.modal-promo h2 {
  text-align: center;
  margin: 0 24px 0;
  padding-top: 38px;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.promo-nieuw {
  color: var(--accent);
  font-size: 1.15em;
}

.promo-h2-sub {
  font-weight: 400;
}

.modal-promo h2::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  margin: 10px auto 0;
  background: var(--accent);
  border-radius: 2px;
}

/* Foto met gradient-fade */
.promo-hero {
  position: relative;
  margin: 16px 16px 0;
  border-radius: 16px;
  /* geen overflow:hidden — zodat gradient voorbij rand kan vallen */
}

.promo-hero img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  object-position: center 31%;
  display: block;
  border-radius: 16px;
}

.promo-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -1px;
  right: -1px;
  height: 55%;
  background: linear-gradient(
    to top,
    var(--modal-bg, #f8fbfe) 0%,
    rgba(248, 251, 254, 0.7) 35%,
    rgba(248, 251, 254, 0.2) 65%,
    transparent 100%
  );
  pointer-events: none;
}

/* Lead tekst */
.promo-lead {
  margin: 26px 24px 12px;
  line-height: 1.5;
  opacity: 0.85;
  font-size: 13px;
}

/* 3 highlights – groot en opvallend */
.promo-highlights {
  list-style: none;
  padding: 0;
  margin: 0 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.promo-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* 6 punten – compact blok */
.promo-kort-wrap {
  margin: 0 24px 24px;
  padding: 16px 18px;
  background: #f4f8fb;
  border-radius: 16px;
}

.promo-subtitle {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.5;
}

.promo-kort {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.promo-kort li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.promo-kort li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* CTA */
.promo-cta {
  display: flex;
  justify-content: center;
  padding: 0 24px;
  margin-top: 14px;
}

.promo-cta .btn {
  border-radius: 40px;
  padding: 16px 34px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(243, 154, 60, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.3s ease;
}

.promo-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(243, 154, 60, 0.4);
  background: #d97e1e;
  color: #fff;
  border-color: #d97e1e;
}

/* Close-knop */
#egymPromoModal .modal-close {
  z-index: 2;
}

/* Desktop */
@media (min-width: 768px) {
  #egymPromoModal {
    padding: 12px;
  }

  .modal-promo {
    max-width: 520px;
    padding: 0 0 28px;
  }

  .modal-promo h2 {
    margin: 24px 36px 0;
    font-size: 26px;
  }

  .promo-hero {
    margin: 20px 20px 0;
    border-radius: 20px;
  }

  .promo-hero img {
    border-radius: 20px;
    height: 240px;
  }

  .promo-lead {
    margin: 38px 36px 24px;
    font-size: 15px;
  }

  .promo-highlights {
    margin: 0 36px 28px;
    gap: 14px;
  }

  .promo-highlights li {
    font-size: 17px;
    padding-left: 22px;
  }

  .promo-highlights li::before {
    width: 8px;
    height: 8px;
    top: 8px;
  }

  .promo-kort-wrap {
    margin: 0 48px 32px;
    padding: 20px 22px;
  }

  .promo-kort {
    gap: 8px 24px;
  }

  .promo-kort li {
    font-size: 14px;
  }
}


/* ==========================
   PRICING GRID
========================== */

.modal-pricing {
  display: grid;
  gap: 22px;
  margin-bottom: 56px;
}

.pricing-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

.pricing-card h3 {
  margin: 0 0 10px;
  font-weight: 600;
}

/* ==========================
   PRICING LIST – MOBILE
   Gecentreerd en rustiger
========================== */

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  text-align: center;
}

.pricing-card li {
  position: relative;
  margin: 10px 0;
  line-height: 1.6;
}

/* Inline bullet voor mobiel */
.pricing-card li::before {
  content: "•";
  position: static;
  margin-right: 8px;
  color: #2f5e75;
  font-size: 14px;
}

.pricing-duration {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price {
  font-size: 36px;
  font-weight: 700;
  margin: 14px 0 20px;
  color: #2f5e75;
}

.pricing-note {
  font-size: 13px;
  opacity: 0.6;
}

/* Highlighted */
.pricing-highlight {
  border: 2px solid #2f5e75;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #2f5e75;
  color: #fff;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.modal-footer {
  margin-top: 40px;
  padding-top: 32px;
  text-align: center;
}

/* ==========================
   BODY SCROLL LOCK
========================== */

body.modal-open {
  overflow: hidden;
}

/* ==========================
   MODAL CTA – MOBILE TWEAK
========================== */

.modal-pricing {
  margin-bottom: 32px; /* was 56px */
}

.modal-footer {
  margin-top: 16px;     /* was 40px */
  padding-top: 16px;    /* was 32px */
}

/* ==========================
   MODAL CTA – unified
========================== */

.modal-cta-btn {
  width: 100%;
  max-width: 320px;
  padding: 16px;
  border-radius: 40px;
  display: inline-flex;
  justify-content: center;
}

.modal-footer,
.modal-intake .form-actions {
  display: flex;
  justify-content: center;
}

/* ==========================
   TABLET / DESKTOP
========================== */

@media (min-width: 768px) {

  .modal-content {
    padding: 64px 56px;
    margin: 0;
  }

  .modal-content.modal-promo {
    max-width: 680px;
    padding: 0 24px 36px;
  }

  .modal-pricing {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .price {
    font-size: 44px;
  }
  
  .modal {
    align-items: center;
    padding: 24px;
  }
  
  .modal-content {
    max-width: 980px;
    max-height: none;
    padding: 64px 56px;
    border-radius: 28px;
  }
  
  /* Intake modal desktop spacing */

  .modal-content.modal-intake {
    max-width: 680px;
    padding: 32px 36px;
  }

  .modal-intake .intake-kort-title {
    font-size: 16px;
  }

  .intake-kort li {
    font-size: 16px;
  }

  .modal-cta-btn {
    width: 280px;   /* vaste breedte = exact gelijk */
    padding: 16px 40px;
  }
  
  /* ==========================
     PRICING LIST – DESKTOP
  ========================== */
  
  .pricing-card ul {
    text-align: left;
  }
  
  .pricing-card li {
    padding-left: 18px;
  }
  
  .pricing-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #2f5e75;
    border-radius: 50%;
  }

  .section-page-hero {
    padding-top: 140px !important;
  }

  .page-hero-cta {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .page-split {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }

  .page-text,
  .page-image {
    flex: 1;
  }

  .page-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .page-cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }

  .page-cta-card {
    padding: 56px 52px;
    border-radius: 34px;
  }

  .section-page-cta {
    padding: 70px 0 130px;
  }
  
  .section-page-hero,
  .section-page-content,
  .section-page-benefits {
    padding-top: 80px;
    padding-bottom: 0px;
  }

  .section-page-cta {
    padding: 70px 0 130px;
  }
  
  .section-page-content,
  .section-page-benefits {
    padding-bottom: 80px;
  }
}

@media (min-width: 1100px) {

  .section-page-hero .section-inner,
  .section-page-content .section-inner,
  .section-page-benefits .section-inner,
  .section-page-cta .section-inner {
    max-width: 1200px;
    margin: 0 auto;
  }
}