/* ==========================================================================
   Gulmarg Ski Club — home.css
   Cinematic pinned hero (canvas image sequence) + homepage sections
   ========================================================================== */

/* ----------------------------------------------------------------- hero */
/* 200vh scroll runway; inner stage is position:sticky so the visual pins
   while scroll progress drives the canvas frame. */
.hero {
  position: relative;
  height: 200vh;
  background: var(--c-navy);
}

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Parallax mountain silhouettes layered over the canvas */
.hero__parallax {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero__parallax svg {
  position: absolute;
  bottom: -4vh;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  min-width: 900px;
  will-change: transform;
}

/* Readability gradient */
.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  /* Added solid opacity overlay */
  background: rgba(16, 24, 62, 0.5);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.4rem;
  color: var(--c-white);
  will-change: transform, opacity;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.6rem;
}
.hero__label::before,
.hero__label::after {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--c-white);
  max-width: 15ch;
  margin-inline: auto;
  text-wrap: balance;
}

.hero__sub {
  max-width: 560px;
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.4rem;
}

.hero__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 clamp(1.4rem, 4vw, 3.5rem);
  pointer-events: none;
}

.hero__frame-counter {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.hero__frame-counter strong { color: var(--c-white); font-size: 0.9rem; }

@media (max-width: 768px) {
  .hero__actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
  }
  .hero__actions .btn { 
    padding: 0.75rem 0.5rem; 
    font-size: 0.7rem; 
    flex: 1;
  }
  .hero__actions .btn--play {
    display: none !important;
  }
  .hero__footer { bottom: 1.2rem; }
  .hero__frame-counter { display: none; }
}

/* --------------------------------------------------------- about split */
.about-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}
.about-split__media { 
  position: relative; 
  isolation: isolate;
}
.about-split__media::before {
  content: "";
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at center, rgba(42, 36, 200, 0.12) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
}
.about-split__media .img-reveal { 
  aspect-ratio: 4 / 5; 
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(16, 24, 62, 0.12);
}
.about-split__media img { 
  width: 100%; height: 100%; object-fit: cover; 
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-split__media:hover img {
  transform: scale(1.04);
}
.about-split__card {
  position: absolute;
  bottom: -2.5rem;
  right: -2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 50px rgba(16, 24, 62, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
  animation: float-y 6s ease-in-out infinite;
}
.about-split__card strong {
  font-size: 2.2rem;
  background: var(--g-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.about-split__card span { 
  font-size: 0.82rem; 
  font-weight: 700; 
  color: var(--c-navy); 
}
.about-split__points { margin-top: 2rem; display: grid; gap: 0.5rem; }
.about-split__points li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--c-navy);
  padding: 0.6rem 1rem;
  margin-left: -1rem;
  border-radius: 12px;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.about-split__points li:hover {
  background: rgba(42, 36, 200, 0.03);
  transform: translateX(6px);
}
.founder-sign {
  margin-top: 1.6rem;
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.2;
}
.founder-sign span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.about-split__points li::before {
  content: "✓";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), #ddebff);
  color: var(--c-primary);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(42, 36, 200, 0.1);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.about-split__points li:hover::before {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 6px 16px rgba(42, 36, 200, 0.2);
}
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split__card { right: 1rem; }
}

/* ------------------------------------------------------ journey timeline */
.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.journey::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  opacity: 0.35;
}
.journey__step {
  position: relative;
  text-align: center;
  padding: 0 0.6rem;
}
.journey__step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-soft);
}
.journey__step h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.journey__step p { font-size: 0.86rem; }
@media (max-width: 900px) {
  .journey { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .journey::before { display: none; }
}
@media (max-width: 480px) { .journey { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- departures */
.departures { display: grid; gap: 0.9rem; }
.departure {
  display: grid;
  grid-template-columns: 110px 1.6fr 1fr 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.departure:hover { transform: translateX(6px); box-shadow: var(--shadow-soft); }
.departure__date {
  text-align: center;
  padding: 0.55rem 0.4rem;
  border-radius: 14px;
  background: var(--c-accent);
  color: var(--c-primary);
  font-weight: 800;
  line-height: 1.15;
}
.departure__date small { display: block; font-size: 0.66rem; letter-spacing: 0.18em; font-weight: 700; }
.departure__name { font-weight: 700; color: var(--c-navy); }
.departure__name small { display: block; font-weight: 500; color: var(--c-muted); font-size: 0.8rem; }
.departure__meta { font-size: 0.85rem; font-weight: 600; color: var(--c-muted); }
.departure__seats { font-size: 0.82rem; font-weight: 700; color: #1E7B5A; }
.departure__seats.is-low { color: #C0392B; }
@media (max-width: 860px) {
  .departure { grid-template-columns: 90px 1fr auto; }
  .departure__meta { display: none; }
}

/* ------------------------------------------------------------- gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-grid figure:nth-child(1),
.gallery-grid figure:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(16, 24, 62, 0.85));
  color: var(--c-white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

/* ---------------------------------------------------------------- reels */
.reels .hscroll > * { flex-basis: min(64vw, 260px); }
.reel {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-navy);
}
.reel img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.reel__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.reel__play span {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-primary);
  font-size: 1rem;
  transition: transform 0.4s var(--ease-out);
}
.reel__play span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  animation: pulse-ring 2s var(--ease-out) infinite;
}
.reel:hover .reel__play span { transform: scale(1.12); }
.reel figcaption {
  position: absolute;
  bottom: 0.9rem;
  left: 0.9rem;
  right: 0.9rem;
  color: var(--c-white);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------------------------------------------------------- testimonials */
.testimonial-hero {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.testimonial-hero blockquote {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-white);
}
.testimonial-hero blockquote::before { content: "“"; color: #8FA2FF; font-size: 1.6em; }
.testimonial-hero cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
