/* =============================================================================
   ACTS For Change — Subtle Professional Parallax & Glassmorphism Addon
   parallax-pro.css  |  v1.0.0
   
   HOW TO ADD:
     <link rel="stylesheet" href="assets/css/parallax-pro.css" />
     (after style.css)
   
   SAFE: does not override existing rules; only adds new classes and
   extends existing card/section selectors with low-specificity additions.
   ============================================================================= */


/* ─────────────────────────────────────────────────────────────────────────────
   0. REDUCED-MOTION MASTER SWITCH
   All motion in this file is wrapped so that users who prefer-reduced-motion
   see zero animation, zero transform — just the clean layout.
   ───────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .prlx-hero-bg,
  .prlx-layer,
  .prlx-glow,
  .organic-field,
  .reveal-card,
  .reveal-fade,
  .glass-tilt {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   1. HERO PARALLAX LAYERS
   Wrap hero background children in .prlx-hero-bg (already exists as
   .hero-parallax-bg in the HTML). We extend it here.
   ───────────────────────────────────────────────────────────────────────────── */
.hero-parallax-bg,
.prlx-hero-bg {
  will-change: transform;
  /* Slight overshoot so parallax never shows white edges */
  top: -8%;
  height: 116%;
  transform-origin: center top;
}

/* Depth layer 1 — moves slowest (far background) */
.prlx-layer-back {
  will-change: transform;
  transform-origin: center center;
}

/* Depth layer 2 — mid-ground */
.prlx-layer-mid {
  will-change: transform;
  transform-origin: center center;
}

/* Hero foreground text stays untouched (natural scroll) */


/* ─────────────────────────────────────────────────────────────────────────────
   2. SCROLL REVEAL — STAGGERED CARD ENTRANCE
   
   Apply .reveal-card to .step-card, .program-card, etc.
   JS sets --delay via data-delay="Nms" attribute.
   ───────────────────────────────────────────────────────────────────────────── */
.reveal-card,
.reveal-fade {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--stagger-delay, 0ms);
  will-change: opacity, transform;
}

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

/* Variant: slide in from left (for timeline / step rows) */
.reveal-left {
  opacity: 0;
  transform: translateX(-22px);
  transition:
    opacity  0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--stagger-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}


/* ─────────────────────────────────────────────────────────────────────────────
   3. GLASSMORPHISM CARD LAYER
   
   Add class .glass-card to any .card to opt-in to the glass treatment.
   This deliberately avoids overriding the base .card so no existing cards
   are affected unless you add the class.
   ───────────────────────────────────────────────────────────────────────────── */

/* CSS custom properties for glass styling */
:root {
  --glass-bg:           rgba(255, 255, 255, 0.62);
  --glass-bg-hover:     rgba(255, 255, 255, 0.80);
  --glass-border:       rgba(255, 255, 255, 0.45);
  --glass-border-hover: rgba(255, 255, 255, 0.70);
  --glass-blur:         14px;
  --glass-shadow:       0 4px 28px rgba(45, 26, 92, 0.10),
                        0 1px 0   rgba(255, 255, 255, 0.55) inset;
  --glass-shadow-hover: 0 10px 40px rgba(45, 26, 92, 0.16),
                        0 1px 0   rgba(255, 255, 255, 0.65) inset;
  --tilt-max-deg:       4deg;       /* max 3-D tilt angle on hover */
  --tilt-duration:      0.25s;
}

.glass-card {
  background:           var(--glass-bg);
  backdrop-filter:      blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border:               1px solid var(--glass-border);
  box-shadow:           var(--glass-shadow);
  transform-style:      preserve-3d;
  transition:
    background   var(--tilt-duration) ease,
    border-color var(--tilt-duration) ease,
    box-shadow   var(--tilt-duration) ease,
    transform    var(--tilt-duration) cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  /* Guarantee perspective is inherited */
  perspective: 800px;
}

.glass-card:hover {
  background:   var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow:   var(--glass-shadow-hover);
  /* transform applied by JS .glass-tilt; this is the fallback lift */
  transform: translateY(-3px);
}

/* Subtle shimmer stripe — top-left highlight typical of real glass */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.00) 55%
  );
  pointer-events: none;
  z-index: 0;
}

/* Make card children sit above the shimmer */
.glass-card > * {
  position: relative;
  z-index: 1;
}

/* Alternate: dark-tinted glass for use on dark/photo backgrounds */
.glass-card--dark {
  --glass-bg:           rgba(26, 27, 38, 0.55);
  --glass-bg-hover:     rgba(26, 27, 38, 0.72);
  --glass-border:       rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.22);
  color: #fff;
}


/* ─────────────────────────────────────────────────────────────────────────────
   4. SECTION PARALLAX DECORATION LAYERS
   
   Add .px-section to any <section> to opt-in to the subtle section-level
   background shift. Uses CSS containment for performance.
   ───────────────────────────────────────────────────────────────────────────── */
.px-section {
  position: relative;
  overflow: hidden;
  contain: layout style;
}

/* Floating dot-grid overlay — very subtle */
.px-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(139,92,246,0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  /* movement applied by JS */
  will-change: transform;
}

.px-section > .container {
  position: relative;
  z-index: 1;
}

/* Named parallax decoration divs (already used in HTML) */
.px-dots,
.px-shapes,
.px-blobs,
.px-leaves,
.organic-field {
  position: absolute;
  inset: -10%;   /* overshoot for movement headroom */
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}


/* ─────────────────────────────────────────────────────────────────────────────
   5. SCROLL-DEPTH INDICATOR (optional UX polish)
   A thin progress bar beneath the fixed nav that fills as user scrolls.
   ───────────────────────────────────────────────────────────────────────────── */
#scroll-progress-bar {
  position: fixed;
  top: 68px;           /* flush below the 68px nav */
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--green, #8B5CF6), var(--sky, #00ADEF));
  z-index: 999;
  transition: width 0.1s linear;
  transform-origin: left;
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
   6. STAT / COUNTER CARD ENHANCEMENT
   Makes impact-counter blocks feel more premium.
   ───────────────────────────────────────────────────────────────────────────── */
.stat-glass {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius, 14px);
  padding: 2rem 1.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.75), rgba(232,245,204,0.55));
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(139, 92, 246, 0.22);
  box-shadow: 0 4px 22px rgba(45,26,92,0.09);
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}

.stat-glass:hover {
  box-shadow: 0 10px 36px rgba(45,26,92,0.15);
  transform: translateY(-4px);
}

/* Inner glow accent */
.stat-glass::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.14) 0%, transparent 70%);
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────────────────────
   7. STEP / PROGRAM CARD — PARALLAX MICRO-LIFT
   Cards get a CSS variable --lift that JS writes on scroll,
   giving each column a slightly different vertical speed.
   ───────────────────────────────────────────────────────────────────────────── */
.step-card,
.program-card {
  --lift: 0px;
  transform: translateY(var(--lift));
  transition: transform 0.08s linear; /* near-realtime but eased */
  will-change: transform;
}

/* Suppress default hover transform conflict with parallax */
.step-card:hover,
.program-card:hover {
  transform: translateY(calc(var(--lift) - 4px));
}


/* ─────────────────────────────────────────────────────────────────────────────
   8. PERFORMANCE HELPERS
   ───────────────────────────────────────────────────────────────────────────── */

/* GPU-promote layers that will be transformed */
.hero-parallax-bg,
.prlx-layer-back,
.prlx-layer-mid,
.px-dots,
.px-shapes,
.px-blobs,
.px-leaves,
.organic-field {
  will-change: transform;
  transform: translateZ(0);  /* force composited layer */
  backface-visibility: hidden;
}


/* ─────────────────────────────────────────────────────────────────────────────
   9. HOW IT WORKS (v2) — Glassmorphism / S-pattern wave journey
   Prefix: .ahiw- (kept isolated from .step-card / .steps-grid rules above)
   ───────────────────────────────────────────────────────────────────────────── */

.ahiw-section {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 130px;
  background: linear-gradient(160deg, #eefdf5 0%, #eae2f8 45%, #ece7fa 100%);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.ahiw-section::before,
.ahiw-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.55;
}
.ahiw-section::before {
  width: 420px; height: 420px;
  background: #C4B5FD;
  top: -140px; left: -120px;
}
.ahiw-section::after {
  width: 460px; height: 460px;
  background: #EDE7FB;
  bottom: -160px; right: -140px;
}

.ahiw-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
}

.ahiw-head { text-align: center; max-width: 640px; margin: 0 auto 72px; }

.ahiw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5B21B6;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(91,33,182,0.18);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.ahiw-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 48px);
  color: #2D1A5C;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.ahiw-title em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(90deg, #6D28D9, #7C3AED);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ahiw-sub {
  font-size: 16px;
  line-height: 1.65;
  color: #4b4460;
  margin: 0;
}

.ahiw-grid-wrap { position: relative; }

.ahiw-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.ahiw-path path {
  fill: none;
  stroke: url(#ahiw-grad-line);
  stroke-width: 2.5;
  stroke-dasharray: 9 12;
  stroke-linecap: round;
  opacity: 0.55;
}

.ahiw-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

.ahiw-card:nth-child(2) { transform: translateY(34px); }
.ahiw-card:nth-child(5) { transform: translateY(34px); }

.ahiw-card {
  position: relative;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 32px 8px 32px 8px;
  padding: 34px 28px 30px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 60, 50, 0.07);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease, background 0.45s ease;
}

.ahiw-card:hover {
  transform: translateY(-10px) scale(1.015);
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    0 24px 50px rgba(109, 40, 217, 0.18),
    0 4px 18px rgba(124, 58, 237, 0.12);
}
.ahiw-card:nth-child(2):hover,
.ahiw-card:nth-child(5):hover {
  transform: translateY(24px) scale(1.015);
}

.ahiw-num {
  position: absolute;
  top: -6px;
  right: 14px;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 92px;
  line-height: 1;
  color: #6D28D9;
  opacity: 0.13;
  z-index: 0;
  user-select: none;
}

.ahiw-icon {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 22px 8px 22px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin-bottom: 22px;
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
  box-shadow:
    0 10px 22px rgba(109, 40, 217, 0.32),
    inset 0 1px 1px rgba(255,255,255,0.5),
    inset 0 -6px 10px rgba(0,0,0,0.12);
}

.ahiw-card h3 {
  position: relative;
  z-index: 1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 18.5px;
  color: #2D1A5C;
  margin: 10px 0 10px;
  letter-spacing: -0.01em;
}

.ahiw-card p {
  position: relative;
  z-index: 1;
  font-size: 14.5px;
  line-height: 1.7;
  color: #574766;
  margin: 0;
}

@media (max-width: 980px) {
  .ahiw-grid { grid-template-columns: repeat(2, 1fr); }
  .ahiw-card:nth-child(2),
  .ahiw-card:nth-child(5) { transform: none; }
  .ahiw-card:hover { transform: translateY(-8px); }
}

@media (max-width: 620px) {
  .ahiw-section { padding: 80px 18px 90px; }
  .ahiw-grid { grid-template-columns: 1fr; gap: 24px; }
  .ahiw-path { display: none; }
  .ahiw-num { font-size: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .ahiw-card { transition: none; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   10. CHOOSE YOUR PROGRAM (v3) — Premium dashboard-style program cards
   Prefix: .cyp- (kept isolated from .program-card / .programs-grid rules above)
   Deep emerald / teal / clean-mint palette. Asymmetric corner cards with
   vivid illustrated media headers, floating overlap badges, and soft
   background micro-chart panels for a data-driven sustainability feel.
   ───────────────────────────────────────────────────────────────────────────── */

.cyp-section {
  position: relative;
  overflow: hidden;
  padding: 110px 24px 130px;
  background: linear-gradient(160deg, #f6fbf7 0%, #eef6f1 45%, #f5f0ff 100%);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cyp-bgchart {
  position: absolute;
  z-index: 1;
  filter: drop-shadow(0 14px 30px rgba(15, 60, 50, 0.08));
  opacity: 0.55;
  pointer-events: none;
}
.cyp-bgchart svg { display: block; width: 100%; height: 100%; }
.cyp-bgchart--tl { top: 6%;  left: 3%;  width: 110px; }
.cyp-bgchart--tr { top: 10%; right: 4%; width: 118px; }
.cyp-bgchart--bl { bottom: 10%; left: 5%; width: 104px; }
.cyp-bgchart--br { bottom: 6%; right: 3%; width: 118px; }

@media (max-width: 1180px) {
  .cyp-bgchart { display: none; }
}

.cyp-inner {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
}

.cyp-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }

.cyp-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #3B1D6B, #3b1d6b);
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(59, 29, 107, 0.25);
}

.cyp-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  color: #0b1f1a;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.cyp-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #574766;
  margin: 0;
}

.cyp-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
}

.cyp-card {
  position: relative;
  flex: 1 1 320px;
  max-width: 372px;
  background: #ffffff;
  border-radius: 30px 30px 30px 78px;
  box-shadow: 0 16px 40px rgba(15, 60, 50, 0.08);
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}

.cyp-card:hover {
  transform: translateY(-8px);
}

.cyp-card--food:hover    { box-shadow: 0 26px 54px rgba(59, 29, 107, 0.28); }
.cyp-card--school:hover  { box-shadow: 0 26px 54px rgba(109, 40, 217, 0.24); }
.cyp-card--fortune:hover { box-shadow: 0 26px 54px rgba(6, 32, 24, 0.3); }

.cyp-media {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 30px 30px 30px 78px;
  overflow: hidden;
}
.cyp-media-illus {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.cyp-card:hover .cyp-media-illus { transform: scale(1.06); }

.cyp-media-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cyp-media-overlay--food {
  background: linear-gradient(160deg, rgba(59, 29, 107, 0.78) 0%, rgba(31, 15, 56, 0.4) 55%, rgba(31, 15, 56, 0.15) 100%);
}
.cyp-media-overlay--school {
  background: linear-gradient(160deg, rgba(91, 33, 182, 0.35) 0%, rgba(91, 33, 182, 0.08) 60%, rgba(255,255,255,0.05) 100%);
}
.cyp-media-overlay--fortune {
  background: linear-gradient(160deg, rgba(6, 32, 24, 0.82) 0%, rgba(11, 59, 43, 0.45) 55%, rgba(11, 59, 43, 0.18) 100%);
}

.cyp-body {
  padding: 34px 28px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cyp-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.cyp-card--food h3    { color: #3b1d6b; }
.cyp-card--school h3  { color: #0f2d28; }
.cyp-card--fortune h3 { color: #0f2d28; }

.cyp-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.cyp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #33493f;
}
.cyp-check {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.cyp-check svg { width: 10px; height: 10px; }
.cyp-card--food .cyp-check    { background: #f5c451; }
.cyp-card--school .cyp-check  { background: #5eead4; }
.cyp-card--fortune .cyp-check { background: #3B1D6B; }
.cyp-card--fortune .cyp-check svg path { stroke: #ffffff; }

.cyp-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease;
}
.cyp-btn svg { width: 14px; height: 11px; flex: none; }
.cyp-btn:hover { transform: translateY(-2px); gap: 13px; }

.cyp-card--food .cyp-btn {
  background: linear-gradient(135deg, #7C3AED, #3b1d6b);
  box-shadow: 0 10px 24px rgba(59, 29, 107, 0.32);
}
.cyp-card--school .cyp-btn {
  background: linear-gradient(135deg, #2dd4bf, #6D28D9);
  box-shadow: 0 10px 24px rgba(109, 40, 217, 0.3);
}
.cyp-card--fortune .cyp-btn {
  background: linear-gradient(135deg, #3B1D6B, #1F0F38);
  box-shadow: 0 10px 24px rgba(11, 59, 43, 0.35);
}

@media (max-width: 1080px) {
  .cyp-grid { gap: 26px; }
}

@media (max-width: 720px) {
  .cyp-section { padding: 90px 18px 100px; }
  .cyp-grid { flex-direction: column; align-items: stretch; }
  .cyp-card { max-width: 100%; border-radius: 26px 26px 26px 56px; }
  .cyp-media { border-radius: 26px 26px 26px 56px; height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .cyp-card { transition: none; }
}