/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HERO2 â€” Clean 50/50 Split Hero Section
   Left: content | Right: polaroid infinite scroll
   All new classes prefixed h2- to avoid old conflicts
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Section Wrapper â”€â”€ */
.h2-section {
  position: relative;
  height: 100vh;
  min-height: 620px;
  max-height: 1100px;
  background: var(--hero-gradient);
  overflow: hidden;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
}

/* â”€â”€ Floating Decorations â”€â”€ */
.h2-floats { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.h2-float {
  position: absolute;
  opacity: 0.06;
  animation: h2float 8s ease-in-out infinite;
}
.h2-cloud-1  { top: 12%; left: 8%;  font-size: 3rem; animation-delay: 0s;   }
.h2-cloud-2  { top: 20%; right: 5%; font-size: 2rem; animation-delay: 2s; animation-direction: reverse; }
.h2-plane    { top: 35%; left: 52%; font-size: 1.4rem; color: var(--red-light); opacity: 0.12; animation-delay: 1s; }
.h2-heart1   { bottom: 35%; left: 48%; font-size: 0.8rem; color: var(--red-light); opacity: 0.18; animation-delay: 3s; }
.h2-heart2   { bottom: 20%; left: 6%;  font-size: 0.7rem; color: var(--red-light); opacity: 0.15; animation-delay: 0.5s; }

@keyframes h2float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(3deg); }
}

/* â”€â”€ 50/50 Grid Wrapper â”€â”€ */
.h2-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 0;
  position: relative;
  align-items: center;
  gap: 0;            /* columns touch at centre — no dead space */
  z-index: 2;
  margin-top: -1vh;  /* slight pull-up — was -6vh which caused text to crowd under header */
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LEFT COLUMN
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.h2-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.1rem, 2vh, 1.8rem);
  padding: 0 0.5rem 0 clamp(3rem, 5.5vw, 5.5rem); /* left margin, tighter right gap */
}

/* Script label */
.h2-script {
  font-family: var(--font-script, cursive);
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  color: #FFD166;              /* warm gold — matches EXPLORE & theme accent */
  font-style: italic;
  letter-spacing: 0.02em;
  margin-bottom: -0.6rem;
}

/* Title */
.h2-title {
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.h2t-line1 {
  display: block;
  font-size: clamp(3.6rem, 7.5vw, 8.5rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
}

.h2t-line2 {
  display: block;
  font-size: clamp(3.6rem, 7.5vw, 8.5rem);
  font-weight: 900;
  color: var(--red);
  font-style: italic;
  text-transform: uppercase;
}

.h2t-line3 {
  display: block;
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
  font-style: italic;
  margin-top: 0.3em;
}

/* Subtitle */
.h2-sub {
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 500px;
  margin: 0;
}
.h2-sub strong {
  color: var(--red-light);
  font-weight: 700;
}

/* CTA Buttons */

.hero-load-anim-1 { animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-load-anim-2 { animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-load-anim-3 { animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.hero-load-anim-4 { animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.hero-stats-anim  { animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }

.h2-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.h2btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(14px, 1.6vh, 18px) clamp(26px, 2.8vw, 42px);
  border-radius: 50px;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.h2btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px hsla(350, 72%, 45%, 0.4);
}
.h2btn-primary:hover {
  background: var(--red-dark, #a00c24);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px hsla(350, 72%, 45%, 0.55);
}

.h2btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.h2btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

/* Stats Row */
.h2-stats {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
}

.h2st {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.h2st-num {
  font-size: clamp(2.1rem, 3.5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.h2st-num sup {
  font-size: 0.5em;
  color: var(--red-light);
  vertical-align: super;
}

.h2st-lbl {
  font-size: clamp(0.65rem, 0.8vw, 0.78rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.h2st-sep {
  width: 1px;
  height: clamp(32px, 4vh, 48px);
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RIGHT COLUMN â€” Polaroid Scroll
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.h2-right {
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
  position: relative;
  /* Soft fade at left and right edges */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0px,
    black 60px,
    black calc(100% - 60px),
    transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0px,
    black 60px,
    black calc(100% - 60px),
    transparent 100%);
}

/* Viewport: clip overflow, add vertical padding for hover pop */
.pol-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 50px 0;    /* vertical breathing room for hover scale */
  box-sizing: border-box;
}

/* Track: all cards in a row, driven by JS rAF */
.pol-track {
  display: flex;
  align-items: center;
  gap: 20px;
  will-change: transform;
  flex-shrink: 0;
}

/* â”€â”€ Polaroid Card â”€â”€ */
.pol-card {
  flex-shrink: 0;
  background: #fff;
  padding: 10px 10px 48px;       /* wide bottom strip for name */
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease;
}

/* Alternating slight rotations */
.pol-card:nth-child(4n+1) { transform: rotate(-2.5deg); }
.pol-card:nth-child(4n+2) { transform: rotate(1.2deg);  }
.pol-card:nth-child(4n+3) { transform: rotate(-1deg);   }
.pol-card:nth-child(4n+4) { transform: rotate(2.2deg);  }

/* Hover: whole card pops out, straightens */
.pol-card:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.07) !important;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.48),
    0 6px 16px rgba(0, 0, 0, 0.28) !important;
  z-index: 50 !important;
}

/* Tape decoration */
.pol-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 14px;
  background: rgba(255, 240, 90, 0.78);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  z-index: 5;
}

/* 1:1 Square Image */
.pol-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 1px;
  display: block;
}

/* Place name on white strip */
.pol-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script, cursive);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-style: italic;
  color: #1a1a1a;
  text-align: center;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Scroll Hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: max(14px, 1.8vh);
  left: 50%;                   /* center of left half */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}

.scroll-hint-bar {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.45; transform: scaleY(1); }
  50%       { opacity: 1;    transform: scaleY(1.15); }
}

/* ═══════════════════════════════
   MOBILE RESPONSIVE — hero2.css
═══════════════════════════════ */

/* ── Tablet / Large Phone (≤850px) ── */
@media (max-width: 850px) {

  /* Let section grow to fit content — no hard 100vh clip */
  .h2-section {
    height: auto;
    min-height: 100svh;  /* svh respects mobile browser chrome */
    min-height: 100vh;   /* fallback for older browsers */
    max-height: none;
    padding-top: 0;
  }

  /* Stack columns: content on top, polaroids below */
  .h2-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  /* Left content column */
  .h2-left {
    padding: 1.5rem 1.5rem 1rem 1.5rem !important; /* override desktop left-heavy padding */
    text-align: center;
    align-items: center;        /* center ALL children horizontally */
    width: 100%;
  }

  .h2-sub   { max-width: 100%; }
  .h2-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-self: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  .h2st {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
  }
  .h2st-lbl {
    text-align: center;
  }

  /* Buttons — same width, stacked, 70% of screen */
  .h2-btns {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
  }
  .h2btn {
    width: 70vw;
    max-width: 340px;
    justify-content: center;
    padding: 15px 20px;
  }

  /* Right polaroid strip — use viewport HEIGHT so it scales on
     every phone size without cropping or over-expanding         */
  .h2-right {
    height: clamp(260px, 38vh, 380px);
    width: 100%;
    /* Fade edges for depth feel */
    -webkit-mask-image: linear-gradient(to right,
      transparent 0px, black 30px,
      black calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(to right,
      transparent 0px, black 30px,
      black calc(100% - 30px), transparent 100%);
  }

  /* Reduce inner padding so images are NOT clipped at top/bottom */
  .pol-viewport {
    padding: 24px 0;
  }

  /* Hide the scroll hint on mobile — it always overlaps polaroids */
  .hero-scroll-hint {
    display: none !important;
  }
}

/* ── Medium Phone (≤600px) ── */
@media (max-width: 600px) {
  .h2-right {
    height: clamp(230px, 36vh, 320px);
  }
  .pol-viewport {
    padding: 18px 0;
  }
  .h2-left {
    padding: 1.2rem 1.2rem 0.8rem;
  }
}

/* ── Small Phone (≤480px) ── */
@media (max-width: 480px) {
  .h2t-line1, .h2t-line2 {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }
  .h2t-line3 {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
  }
  .h2-right {
    height: clamp(210px, 33vh, 280px);
  }
  .pol-viewport {
    padding: 14px 0;
  }
  .h2-stats {
    gap: 1rem;
  }
  .h2st-num {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }
}

/* ── Very Small Phone (≤360px) ── */
@media (max-width: 360px) {
  .h2-right {
    height: clamp(190px, 30vh, 250px);
  }
  .pol-viewport {
    padding: 10px 0;
  }
  .h2-left {
    padding: 1rem 1rem 0.6rem;
  }
}
