/* ================================================================
   SAMAAN MIKHAEL — CONSULTATION PAGE  |  assets/css/consultation.css
   All consultation-specific styles. Inherits CSS vars from main.css.
   ================================================================ */

/* ── HERO ─────────────────────────────────────────────────────── */
.c-hero {
  background: var(--bg);
  overflow-x: clip;
  transition: background 0.7s cubic-bezier(0.76,0,0.24,1);
}

.c-hero-char {
  display: inline-block;
  will-change: transform;
}

.c-hero-portrait-wrap { position: relative; }

.c-hero-portrait-baseline {
  position: absolute;
  bottom: 0;
  left: -12%;
  right: -12%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(187,38,73,0.18) 25%,
    rgba(187,38,73,0.45) 50%,
    rgba(187,38,73,0.18) 75%,
    transparent 100%
  );
  pointer-events: none;
}

.c-hero-portrait-mask {
  display: inline-block;
  will-change: clip-path;
}

.c-hero-portrait-img {
  display: block;
  will-change: transform;
}

.c-hero-portrait-ground {
  position: absolute;
  bottom: -2px;
  left: -15%;
  right: -15%;
  height: 120px;
  background: linear-gradient(to top, var(--bg) 0%, var(--bg) 15%, transparent 100%);
  pointer-events: none;
  z-index: 3;
  transition: background 0.7s cubic-bezier(0.76,0,0.24,1);
}

@keyframes scrollPulseCons {
  0%   { transform: translateY(-100%); opacity: 1; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(100%); opacity: 0; }
}
.c-hero .scroll-pulse-line { animation: scrollPulseCons 1.8s ease-in-out infinite; }

@media (max-width: 767px) {
  .c-hero { min-height: 100svh; }
  .c-hero-portrait-mask { max-width: 220px; }
}

@media (min-width: 1024px) {
  .c-hero-portrait-wrap { perspective: 900px; }
  .c-hero-portrait-mask { transform-style: preserve-3d; will-change: transform; }
}

/* ── GENERIC HELPERS ──────────────────────────────────────────── */
.c-reveal { will-change: opacity, transform; }

.c-line-char {
  display: block;
  will-change: transform;
}

/* ── SECTION BACKGROUNDS ──────────────────────────────────────── */
.c-services,
.c-realwork,
.c-benefits,
.c-eligibility,
.c-testimonials,
.c-booklet {
  background: var(--bg);
  transition: background 0.7s cubic-bezier(0.76,0,0.24,1);
}

/* ── SERVICES ─────────────────────────────────────────────────── */
.c-svc-card {
  position: relative;
  border-radius: 1.5rem;
  padding: clamp(2rem,3.5vw,3rem);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  cursor: default;
  will-change: transform;
}

.c-svc-card--featured {
  border-color: rgba(187,38,73,0.3);
  background: linear-gradient(145deg, var(--bg-card) 55%, rgba(187,38,73,0.05) 100%);
}

.c-svc-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  background: #BB2649;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.c-svc-num {
  font-family: 'BUNDAYCLEAN','Bebas Neue',sans-serif;
  font-size: clamp(2.5rem,4.5vw,4.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(187,38,73,0.18);
  display: block;
  margin-bottom: 0.5rem;
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 0.4s ease;
}

.c-svc-card:hover .c-svc-num { -webkit-text-stroke-color: rgba(187,38,73,0.5); }

.c-svc-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
  transition: background 0.3s ease;
}

.c-svc-card:hover .c-svc-divider { background: rgba(187,38,73,0.25); }

.c-svc-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #BB2649, #DB343B);
  transition: width 0.55s cubic-bezier(0.76,0,0.24,1);
}

.c-svc-card:hover .c-svc-bar { width: 100%; }

/* ── VIDEO SECTION ────────────────────────────────────────────── */
.c-realwork-video-wrap { will-change: opacity, transform; }

.c-yt-wrap {
  border-radius: 1.25rem;
  overflow: hidden;
}

/* ── FOUR PILLARS (benefits) ──────────────────────────────────── */
.c-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: clamp(2rem,4vw,4rem);
}

.c-pillar {
  background: var(--bg);
  padding: clamp(2.5rem,5vw,5rem) clamp(2rem,4vw,4rem);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: background 0.4s ease;
}

.c-pillar:hover { background: var(--bg-card); }

.c-pillar-bg-num {
  position: absolute;
  bottom: -0.2em;
  right: -0.05em;
  font-family: 'BUNDAYCLEAN','Bebas Neue',sans-serif;
  font-size: clamp(8rem,16vw,18rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(187,38,73,0.06);
  pointer-events: none;
  user-select: none;
  transition: -webkit-text-stroke-color 0.5s ease;
}

.c-pillar:hover .c-pillar-bg-num { -webkit-text-stroke-color: rgba(187,38,73,0.14); }

.c-pillar-icon {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.c-pillar-icon svg {
  display: block;
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1);
}

.c-pillar:hover .c-pillar-icon svg { transform: scale(1.1) rotate(-5deg); }

.c-pillar-title {
  font-family: 'BUNDAYCLEAN','Bebas Neue',sans-serif;
  font-size: clamp(1.8rem,3vw,3rem);
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.c-pillar:hover .c-pillar-title { color: #BB2649; }

.c-pillar-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 36ch;
  position: relative;
  z-index: 1;
}

/* Animated bottom bar per pillar */
.c-pillar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #BB2649, #DB343B);
  transition: width 0.55s cubic-bezier(0.76,0,0.24,1);
}

.c-pillar:hover::after { width: 100%; }

@media (max-width: 767px) {
  .c-pillars { grid-template-columns: 1fr; }
  .c-pillar-bg-num { font-size: clamp(6rem,18vw,10rem); }
  .c-pillar-title   { font-size: clamp(1.6rem,6vw,2.5rem); }
}

/* ── ELIGIBILITY (centered text-fill) ─────────────────────────── */
.c-eligibility { overflow-x: clip; }

.c-elig-body { max-width: 820px; margin: 0 auto; }

.c-elig-para {
  font-size: clamp(1.1rem,1.8vw,1.35rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-muted);
}

.c-elig-para .word {
  display: inline-block;
  will-change: opacity, color;
}

/* ── TESTIMONIALS — HORIZONTAL SCROLL ─────────────────────────── */
.c-testimonials {
  overflow: hidden;
}

/* Sticky wrapper — unified pinned block: title + video gallery share the viewport */
.c-test-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Navbar clearance + breathing room above the "They Were Heard" eyebrow */
  padding-top: clamp(6rem, 12vh, 9rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
  gap: clamp(1.25rem, 3vh, 2.5rem);
}

/* The pinned header sits above the video gallery and stays visible during scrub */
.c-test-pinned-header {
  flex: 0 0 auto;
  padding-top: clamp(0.5rem, 2vh, 1.5rem);
}

.c-test-header {
  flex-shrink: 0;
  padding: 0 clamp(1.5rem,5vw,4rem);
  margin-bottom: 2rem;
}

/* Overflow container for the track */
.c-wall-outer {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}

.c-wall-track {
  display: flex;
  gap: clamp(1rem,2vw,1.5rem);
  padding: 0 clamp(1.5rem,5vw,4rem);
  will-change: transform;
  align-items: stretch;
}

.c-wall-slide {
  flex-shrink: 0;
  width: clamp(280px,32vw,460px);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 16 / 9;
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1);
  align-self: center;
  transform: translate3d(0,0,0);
}

.c-wall-slide:hover { transform: scale(1.02) translateY(-4px); }

/* Legacy modifier — kept for backwards compat, now identical to base */
.c-wall-slide--wide {
  width: clamp(280px,32vw,460px);
  aspect-ratio: 16 / 9;
  align-self: center;
}

.c-wall-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.7);
  transition: filter 0.35s ease, transform 0.55s cubic-bezier(0.23,1,0.32,1);
}

.c-wall-slide:hover .c-wall-thumb {
  filter: brightness(0.55);
  transform: scale(1.04);
}

.c-wall-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(71,28,47,0.7) 0%, transparent 60%);
  transition: background 0.35s ease;
}

.c-wall-slide:hover .c-wall-overlay {
  background: linear-gradient(to top, rgba(71,28,47,0.9) 0%, rgba(71,28,47,0.25) 60%);
}

.c-wall-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(187,38,73,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 28px rgba(187,38,73,0.5);
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), background 0.25s ease;
}

.c-wall-slide:hover .c-wall-play {
  transform: scale(1.15);
  background: #BB2649;
}

/* Course CTA below the sticky area */
.c-test-cta-section {
  padding: clamp(3rem,6vw,5rem) clamp(1.5rem,5vw,4rem);
  text-align: center;
}

/* Mobile: premium GSAP autoplay slider */
@media (max-width: 767px) {
  .c-testimonials { overflow: visible; }
  .c-test-sticky {
    position: static;
    height: auto;
    padding: 0;
    overflow: visible;
    gap: 1.25rem;
  }
  .c-test-pinned-header {
    padding-inline: 1.25rem;
  }
  .c-wall-outer {
    overflow: hidden;
    display: block;
    flex: none;
    width: 100%;
    border-radius: 0.75rem;
  }
  .c-wall-track {
    padding: 0;
    gap: 0;
    display: flex;
    flex-wrap: nowrap;
  }
  .c-wall-slide {
    width: 100vw;
    flex-shrink: 0;
    border-radius: 0;
    aspect-ratio: 16/9;
    padding-inline: 20px;
    box-sizing: border-box;
    background: transparent;
  }
  .c-wall-slide--wide {
    width: 100vw;
    flex-shrink: 0;
    aspect-ratio: 16/9;
    padding-inline: 20px;
    box-sizing: border-box;
    background: transparent;
  }
  /* Constrain overlay and thumb to the padded (visible card) area */
  .c-wall-slide .c-wall-thumb {
    border-radius: 0.75rem;
  }
  .c-wall-slide .c-wall-overlay {
    left: 20px;
    right: 20px;
    border-radius: 0.75rem;
  }
}

/* ── MOBILE SLIDER NAVIGATION ─────────────────────────────────── */
.c-slider-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.25rem 1.5rem 0.5rem;
}

.c-slider-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
}

.c-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.c-slider-dot.is-active {
  background: #BB2649;
  transform: scale(1.5);
}

/* ── TESTIMONIAL MODAL ────────────────────────────────────────── */
.c-modal {
  display: none;
  pointer-events: none;
}

.c-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.c-modal-backdrop {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.c-modal-inner { pointer-events: all; }

.c-modal-close,
.c-modal-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
  background: transparent;
}

.c-modal-close {
  width: 44px;
  height: 44px;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.c-modal-arrow { width: 44px; height: 44px; }

.c-modal-close:hover,
.c-modal-arrow:hover {
  color: #fff;
  border-color: rgba(187,38,73,0.5);
  background: rgba(187,38,73,0.12);
}

.c-modal-counter {
  min-width: 3.5rem;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ── BOOKLET SECTION ──────────────────────────────────────────── */
.c-booklet-img {
  max-height: 420px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(187,38,73,0.2));
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), filter 0.4s ease;
}

.c-booklet-img:hover {
  transform: translateY(-8px) rotate(1deg);
  filter: drop-shadow(0 32px 56px rgba(187,38,73,0.35));
}

@media (max-width: 767px) {
  .c-booklet-img { max-height: 280px; }
}

/* ── FORM FINALE ──────────────────────────────────────────────── */
.c-form-finale { position: relative; }

.c-form-pin {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* No overflow:hidden — allows scaled headline to breathe */
}

/* Background and bloom get their own clipping layer */
.c-form-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.c-form-bg { position: absolute; inset: 0; }

/* Bloom + deco-word sized to match the homepage finale backdrop
   (.finale-bloom 120vw / .finale-deco-word 28vw) so the form-finale
   reads as the same cinematic "final section". */
.c-form-bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 120vw;
  height: 120vw;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.c-form-deco-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: transparent;
  -webkit-text-stroke: 1px rgba(187,38,73,0.07);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  will-change: opacity;
  font-family: 'BUNDAYCLEAN','Bebas Neue',sans-serif;
  font-size: 28vw;
  line-height: 1;
  letter-spacing: -0.02em;
}

.c-form-eyebrow { opacity: 0; }
.c-form-sub { opacity: 0; }

/* Content wrapper — no overflow restrictions so scaled headline breathes */
.c-form-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 640px;
  padding: 0 clamp(1.5rem,4vw,3rem);
  padding-top: 5.5rem;
}

/* Form grid */
.c-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(1.5rem,3vw,2.5rem);
}

.c-field {
  position: relative;
  padding-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(30px);
}

.c-field--full { grid-column: 1 / -1; }

.c-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(187,38,73,0.85);
  margin-bottom: 0.5rem;
}

.c-input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(249,246,247,0.2);
  color: #F9F6F7;
  font-family: 'Space Grotesk',sans-serif;
  font-size: 15px;
  font-weight: 300;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.c-input::placeholder { color: rgba(249,246,247,0.25); }
.c-input:focus { border-bottom-color: #BB2649; }

.c-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(249,246,247,0.4)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

.c-select option { background: #471C2F; color: #F9F6F7; }

.c-textarea { resize: none; }

/* Pre-selected state for form field */
.c-field--activated .c-label { color: #BB2649; }
.c-field--activated .c-input { border-bottom-color: rgba(187,38,73,0.5); }

@media (max-width: 640px) {
  /* Keep 2-column grid — just tighten spacing for narrow screens */
  .c-form-grid { gap: 0 0.75rem; }
  .c-label { font-size: 8px; letter-spacing: 0.3em; }
  .c-input { font-size: 13px; }
}

/* ── HEADING CHAR REVEAL ─────────────────────────────────────────
   Line containers overflow-hide so chars slide in cleanly.      */
.c-sect-heading .line,
.c-realwork-heading .line,
.c-ben-heading .line,
.c-elig-heading .line,
.c-test-heading .line,
.c-booklet-heading .line {
  overflow: hidden;
  display: block;
}

.c-sect-heading .char,
.c-realwork-heading .char,
.c-ben-heading .char,
.c-elig-heading .char,
.c-test-heading .char,
.c-booklet-heading .char {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
