/* ═══════════════════════════════════════════════════════════════════
   GGGC SHARED STYLES  —  Go Green Go Clean
   ───────────────────────────────────────────────────────────────────
   DREAMWEAVER TIP: Search for "REPLACE IMAGE" to find every spot
   where you need to add your own photo path.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  --forest:  #1a3320;
  --leaf:    #3a7d44;
  --lime:    #8fbc2b;
  --sky:     #d4edda;
  --earth:   #5c4033;
  --sand:    #f5f0e8;
  --ink:     #111810;
  --mist:    #e8f0e9;
  --white:   #ffffff;
  --accent:  #c8e63c;
  --r:       .75rem;
  --ease:    cubic-bezier(.4,0,.2,1);
}

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
img {
    max-width: 100%;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── SCROLL REVEAL (added by parallax.js) ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── NAV ────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(26,51,32,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(143,188,43,0.18);
  transition: padding .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled {
  padding: .65rem 2.5rem;
  background: rgba(26,51,32,0.99);
}
.nav-logo {
  font-family: 'DM Serif Display', serif; font-size: 1.25rem;
  color: var(--accent); letter-spacing: -0.02em;
  display: flex; align-items: center; gap: .5rem;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .85; }
.nav-logo span { color: var(--white); font-style: italic; font-size: .95rem; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links > li > a {
  font-size: .78rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.7);
  transition: color .2s var(--ease);
  position: relative; padding-bottom: 2px;
}
.nav-links > li > a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--accent); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links .has-drop { position: relative; }
.nav-links .has-drop .drop {
  display: block; visibility: hidden; opacity: 0;
  position: absolute; top: calc(100% + .75rem); left: 0;
  background: var(--forest); border: 1px solid rgba(143,188,43,.2);
  border-radius: var(--r); min-width: 170px; padding: .5rem 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-links .has-drop:hover .drop {
  visibility: visible; opacity: 1; transform: translateY(0);
}
.nav-links .has-drop .drop a {
  display: block; padding: .55rem 1.1rem; font-size: .75rem;
  text-transform: none; letter-spacing: 0; color: rgba(255,255,255,.75);
  transition: background .15s, color .15s;
}
.nav-links .has-drop .drop a:hover { background: rgba(143,188,43,.12); color: var(--accent); }
.nav-cta {
  background: var(--lime) !important; color: var(--forest) !important;
  padding: .45rem 1.15rem !important; border-radius: 2rem; font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: var(--accent) !important; transform: translateY(-1px) !important; }
.nav-cta::after { display: none !important; }

/* ─── PAGE HERO — PARALLAX WRAPPER ──────────────────────────────── */
/*
   The .page-hero element uses a data-bg attribute for the image path.
   parallax.js reads this and applies background-image + parallax movement.
   In Dreamweaver: find data-bg="images/hero-XXXXX.jpg" and change the path.
*/
.page-hero {
    min-height: 100vh;           /* full screen on all devices */
    min-height: 100svh;          /* safe viewport height — accounts for mobile browser chrome */
    display: flex;
    align-items: flex-end;
    padding: 9rem 2.5rem 5rem;   /* extra bottom padding for scroll arrow */
    position: relative;
    overflow: hidden;
    background-color: var(--forest);
    background-size: cover;
    background-position: center center;  /* show top of image — most content is usually there */
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* Dark overlay so text is always readable */
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,30,14,0.82) 0%,
    rgba(10,30,14,0.45) 50%,
    rgba(10,30,14,0.30) 100%
  );
  pointer-events: none;
}
.page-hero .parallax-bg {
  position: absolute; inset: -15% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform .05s linear;
}
.page-hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
}
.page-hero-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: .65rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: .8rem;
    display: block;
    animation: fadeUp .7s var(--ease) both;
}
.page-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--white);
    line-height: 1.08;
    text-shadow: 2px 4px 15px rgba(0,0,0,.3);
    animation: fadeUp .7s .1s var(--ease) both;
}
.page-hero h1 em { color: var(--accent); font-style: normal; }
.breadcrumb {
  margin-top: 1.1rem; display: flex; gap: .5rem; align-items: center;
  font-size: .75rem; color: rgba(255,255,255,.45);
  animation: fadeUp .7s .2s var(--ease) both;
}
.breadcrumb a { color: rgba(255,255,255,.45); transition: color .2s; }
.breadcrumb a:hover {
    color: var(--lime);
    font-weight: bold;
}
.breadcrumb span { color: rgba(255,255,255,.22); }

/* ─── HOME HERO (index.html has its own .hero class) ─────────────── */
/*
   The homepage hero uses class="hero" not class="page-hero".
   Its background is set via data-bg="images/hero-home.jpg" in index.html.
*/

/* ─── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── SECTION COMMONS ────────────────────────────────────────────── */
.section { padding: 6rem 2.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.eyebrow {
  font-family: 'Space Mono', monospace; font-size: .65rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--leaf);
  margin-bottom: 1rem; display: block;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; color: var(--forest);
  margin-bottom: 1.25rem;
}
.section-title em { color: var(--leaf); font-style: normal; }
.section-body { font-size: 1rem; color: #444; line-height: 1.8; max-width: 640px; }

/* ─── CARD HOVER ANIMATIONS ──────────────────────────────────────── */
/* Applied to service cards, park cards, partner cards etc. */
.card-hover {
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(26,51,32,.13);
}

/* ─── BUTTONS ─────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--lime); color: var(--forest);
  padding: .8rem 1.8rem; border-radius: 2rem; font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .2s, transform .18s var(--ease), box-shadow .2s;
  box-shadow: 0 2px 12px rgba(143,188,43,.25);
}
.btn-primary:hover {
  background: var(--accent); transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143,188,43,.35);
}
.btn-outline {
  border: 1.5px solid rgba(58,125,68,.4); color: var(--leaf);
  padding: .8rem 1.8rem; border-radius: 2rem; font-weight: 500; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: border-color .2s, background .2s, transform .18s var(--ease);
}
.btn-outline:hover { border-color: var(--leaf); background: var(--mist); transform: translateY(-1px); }

/* ─── CTA BAND ────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--lime) 0%, #6aad1f 100%);
  padding: 5rem 2.5rem; text-align: center;
}
.cta-band h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); color: var(--forest); margin-bottom: 1rem;
}
.cta-band p { font-size: 1.05rem; color: rgba(26,51,32,.75); max-width: 540px; margin: 0 auto 2.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-dark {
  background: var(--forest); color: var(--white);
  padding: .85rem 2rem; border-radius: 2rem; font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .2s, transform .18s var(--ease), box-shadow .2s;
}
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-white {
  background: var(--white); color: var(--forest);
  padding: .85rem 2rem; border-radius: 2rem; font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .2s, transform .18s var(--ease);
}
.btn-white:hover { background: var(--sand); transform: translateY(-1px); }

/* ─── FOOTER ──────────────────────────────────────────────────────── */
.footer {
  background: var(--forest); padding: 4rem 2.5rem 2rem;
  border-top: 1px solid rgba(143,188,43,.15);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: var(--accent); margin-bottom: .75rem; }
.footer-brand p { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.75; max-width: 240px; }
.footer-col h4 { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .82rem; color: rgba(255,255,255,.58); transition: color .2s, padding-left .2s; }
.footer-col ul li a:hover { color: var(--lime); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.32); }
.footer-socials { display: flex; gap: .75rem; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: .85rem;
  transition: border-color .2s, color .2s, transform .2s, background .2s;
}
.footer-socials a:hover {
  border-color: var(--lime); color: var(--lime);
  transform: translateY(-2px); background: rgba(143,188,43,.1);
}

/* ─── WHATSAPP FLOAT ─────────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform .2s var(--ease), box-shadow .2s;
  animation: fadeIn 1s 1s both;
}
.wa-float:hover { transform: scale(1.12); box-shadow: 0 8px 28px rgba(37,211,102,.5); }

/* ─── IMG PLACEHOLDER ─────────────────────────────────────────────── */
.img-ph {
  background: linear-gradient(135deg, var(--mist), var(--sky));
  border-radius: 1.25rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .75rem;
  color: var(--leaf); font-size: .82rem; text-align: center; padding: 2rem;
  border: 1px solid rgba(58,125,68,.15);
}
.img-ph .ico { font-size: 3rem; }

/* ─── HAMBURGER BUTTON ───────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
  z-index: 110;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease), width .3s var(--ease);
  transform-origin: center;
}
/* Animated X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE DRAWER ──────────────────────────────────────────────── */
.mobile-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 105;
  pointer-events: none;
}
.mobile-drawer.open { pointer-events: all; }

/* Backdrop */
.mobile-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.mobile-drawer.open .mobile-drawer-backdrop { opacity: 1; }

/* Panel */
.mobile-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--forest);
  border-left: 1px solid rgba(143,188,43,.2);
  padding: 5rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: .25rem;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }

.mobile-drawer-panel a {
  display: block; padding: .85rem 1rem;
  font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.8);
  border-radius: .5rem;
  transition: background .15s, color .15s, padding-left .15s;
}
.mobile-drawer-panel a:hover { background: rgba(143,188,43,.12); color: var(--accent); padding-left: 1.25rem; }
.mobile-drawer-panel .drawer-section-label {
  font-family: 'Space Mono', monospace;
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.35); padding: 1.25rem 1rem .4rem;
  display: block;
}
.mobile-drawer-panel .drawer-donate {
  margin-top: 1.5rem; background: var(--lime); color: var(--forest) !important;
  font-weight: 700; text-align: center; border-radius: 2rem;
}
.mobile-drawer-panel .drawer-donate:hover { background: var(--accent); padding-left: 1rem; }

/* ─── SCROLL TO TOP ──────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 5.5rem; right: 2rem; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--forest); border: 1.5px solid rgba(143,188,43,.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--lime); font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), visibility .3s, transform .3s var(--ease), background .2s;
  cursor: pointer;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--leaf); transform: translateY(-2px); }

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-drawer { display: block; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .page-hero {
    background-position: center top;
    background-image: url(images/background/activity%20park%20dream.jpg);
}
}
@media (max-width: 600px) {
  .section { padding: 4rem 1.25rem; }
  .nav { padding: 1rem 1.25rem; }
  .page-hero { padding: 5rem 1.25rem 4.5rem; background-position: center top; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── SCROLL DOWN INDICATOR ─────────────────────────────────────── */
.scroll-arrow {
  position: absolute; bottom: 1.75rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  cursor: pointer; animation: scrollBounce 1.8s ease-in-out infinite;
  opacity: .75; transition: opacity .2s;
}
.scroll-arrow:hover { opacity: 1; }
.scroll-arrow span {
  display: block; width: 12px; height: 12px;
  border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime);
  transform: rotate(45deg);
}
.scroll-arrow span:nth-child(2) { opacity: .6; margin-top: -6px; }
.scroll-arrow span:nth-child(3) { opacity: .3; margin-top: -6px; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ─── LANDSCAPE MOBILE SAFETY NET ───────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .page-hero {
    min-height: 480px;
    padding: 5rem 2.5rem 3rem;
    background-image: url(images/background/activity%20park%20dream.jpg);
    background-position: 0% center;
}
  .scroll-arrow { display: none; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── CURSOR TRAIL ───────────────────────────────────────────────── */
/*
   Tiny leaf-dot particles emitted from the cursor as it moves.
   Each .trail-dot is created and destroyed by parallax.js.
   Only visible on pointer devices (hidden on touch-only screens).
*/
.trail-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: trailFade .7s var(--ease) forwards;
  /* default size + colour overridden per-dot in JS */
}
@keyframes trailFade {
  0%   { opacity: .75; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(0) translateY(-12px); }
}
/* Suppress on touch-only devices */
@media (hover: none) {
  .trail-dot { display: none; }
}

/* ─── COUNTER ANIMATION ──────────────────────────────────────────── */
/*
   Add data-count="500" data-suffix="+" (optional) to any element
   whose text is a stat. parallax.js counts it up when scrolled in.
   The element still needs the .reveal class for the scroll trigger.
*/
[data-count] {
  display: inline-block;          /* so the counter doesn't break layout */
  font-variant-numeric: tabular-nums;
}
/* Highlight pulse once counting finishes */
@keyframes countPop {
  0%   { color: inherit; }
  40%  { color: var(--accent); transform: scale(1.08); }
  100% { color: inherit; transform: scale(1); }
}
.count-done {
  animation: countPop .55s var(--ease) both;
}
