/* ========================================
   MISHPACHA ACHAT — Master Stylesheet
   Brand Colors:
     Magenta  #9a2063
     Coral    #e86463
     Amber    #f8a91c
     Teal     #2e7490
     Emerald  #119991
   ======================================== */

:root {
    /* Brand palette */
    --magenta: #9a2063;
    --coral: #e86463;
    --amber: #f8a91c;
    --teal: #2e7490;
    --emerald: #119991;

    /* Derived */
    --magenta-light: rgba(154, 32, 99, 0.08);
    --coral-glow: rgba(232, 100, 99, 0.15);
    --teal-dark: #1d5a70;
    --teal-light: rgba(46,116,144,0.15);
    --cream: #faf8f4;
    --paper: #f5f0e8;

    /* Fonts */
    --hand: 'Gochi Hand', cursive;
    --body: 'Varela Round', sans-serif;
}

/* ── Reset ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: var(--site-font-size, 16px); }

body {
    font-family: var(--body);
    background: var(--cream);
    color: #3a3a3a;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

:focus-visible {
    outline: 3px solid rgba(248, 169, 28, 0.85);
    outline-offset: 3px;
}

/* ── Utility ─────────────────────────── */
.accent { color: var(--magenta); }
.gold   { color: var(--amber); }
.white  { color: #fff; }
.center { text-align: center; }

.section-heading {
    font-family: var(--hand);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.2;
    color: var(--teal);
    margin-bottom: 16px;
}
.section-heading.center { text-align: center; }
.section-heading.white { color: #fff; }

.section-sub {
    font-size: 1.15rem;
    color: #666;
    max-width: 600px;
    margin-bottom: 48px;
}
.section-sub.center { margin-left: auto; margin-right: auto; }

/* ── Prevent CMS text flash before hydration ── */
html.sb-loading [data-sb-html="opener_line_1"],
html.sb-loading [data-sb-html="opener_line_2"],
html.sb-loading [data-sb-html="opener_cta"],
html.sb-loading [data-sb-html="hero_eyebrow"],
html.sb-loading [data-sb-html="hero_title"],
html.sb-loading [data-sb-html="hero_body"] {
    visibility: hidden;
}

/* ── Reveal Animation (scroll) ───────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(.22,1,.36,1),
                transform 0.8s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* staggered children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Waves ───────────────────────────── */
.section-wave {
    display: block;
    width: 100%;
    height: 80px;
    position: relative;
    z-index: 1;
}
.section-wave.flip { transform: scaleY(-1); }

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.main-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Pushes links/hamburger to the right */
    position: relative;        /* Parent for absolute logo */
    min-height: 52px;          /* Minimal height for the bar itself */
}

/* Coin Logo Container */
.nav-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;              /* Bigger circle */
    height: 160px;
    background: var(--cream);
    border-radius: 50%;
    /* kept circular cream background, removed gold rim shadow */
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    
    /* overlay the viewport instead of nav so z-index works */
    position: fixed;
    top: -20px;               /* stick out top/bottom like before */
    left: 150px;               
    /* put coin atop donate area (donate container is z‑3000) */
    z-index: 4000;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
}

/* Being dropped animation class */
.nav-logo-link.dropping {
    transform: translateY(200px) scale(0.5); /* Drop down */
    opacity: 0; 
}

/* Coin Glow Animation - Update to target image only */
.nav-logo-link.glowing .nav-logo {
    filter: drop-shadow(0 0 15px var(--amber));
    animation: coinPulse 1.5s infinite alternate;
}

@keyframes coinPulse {
    from { filter: drop-shadow(0 0 10px var(--amber)); }
    to { filter: drop-shadow(0 0 25px #fff); }
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-right: 0; 
}
/* If using hamburger on mobile, we need to make sure it's also right aligned (it naturally will be with flex-end) */

.nav-logo { 
    height: 110px; /* increased from 90 */
    width: auto; 
    object-fit: contain;
}
.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--teal);
    position: relative;
    transition: color 0.25s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--coral);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--coral); }
.nav-links a:hover::after { width: 100%; }

.nav-donate {
    background: var(--coral) !important;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(232,100,99,0.3);
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-donate::after { display: none !important; }
.nav-donate:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(232,100,99,0.35) !important;
}

/* Hamburger */
.hamburger { display: none; width: 32px; height: 24px; position: relative; }
.hamburger span {
    position: absolute; left: 0; width: 100%; height: 3px;
    background: var(--teal); border-radius: 2px;
    transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ══════════════════════════════════════
   OPENER — FULL SCREEN GUT PUNCH
   ══════════════════════════════════════ */
.opener {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #1a1a1a;
    overflow: hidden;
}

/* 8-tile background behind opener text */
.opener-tiles {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
}

.opener-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(154,32,99,0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(46,116,144,0.2) 0%, transparent 60%);
    /* Dark film so the white text stays readable over images */
    background-color: rgba(20, 20, 20, 0.55);
}

.opener-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
    /* center children vertically and horizontally */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    /* push everything down from the absolute center so it sits lower in viewport */
    padding-top: 150px;
    box-sizing: border-box;
}

.opener-line {
    font-family: var(--body); /* switched to Varela Round */
    color: rgba(255,255,255,0.85);
    margin-bottom: 12px;
}
.opener-line.line-1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    animation: fadeSlideUp 1s 0.3s both;
}
.opener-line.line-2 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    color: #fff;
    animation: fadeSlideUp 1s 0.8s both;
}
.word-hurting {
    color: var(--coral);
    position: relative;
}
.word-hurting::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 3px;
    background: var(--coral);
    animation: expandWidth 0.6s 1.8s both;
}

.opener-divider {
    width: 60px; height: 2px;
    background: rgba(255,255,255,0.3);
    margin: 28px auto;
    animation: fadeSlideUp 0.8s 1.4s both;
}

.opener-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: rgba(255,255,255,0.5);
    font-style: italic;
    margin-bottom: 40px;
    animation: fadeSlideUp 0.8s 1.8s both;
}

.opener-actions {
    animation: fadeSlideUp 0.8s 2s both;
}
.opener-cta {
    padding: 18px 45px;
    font-size: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.scroll-hint {
    display: inline-block;
    margin-top: 64px;
    color: rgba(255,255,255,0.4);
    animation: fadeSlideUp 0.8s 2.2s both, bobbing 2s 3s infinite;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes expandWidth {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
@keyframes bobbing {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(170deg, #fff 0%, var(--cream) 100%);
}
.hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}
.hero-eyebrow {
    font-family: var(--body); /* use Varela Round */
    /* responsive size: slightly bigger, aiming to roughly match width of subtitle text */
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--magenta); /* match CTA purple */
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--hand);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.05;
    color: var(--teal);
    margin-bottom: 24px;
}

.hero-body {
    font-size: 1.2rem;
    color: #555;
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}
.btn-primary {
    background: var(--magenta);
    color: #fff;
    box-shadow: 0 8px 24px rgba(154,32,99,0.25);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(154,32,99,0.35);
}
.btn-ghost {
    border: 2px solid var(--teal);
    color: var(--teal);
}
.btn-ghost:hover {
    background: var(--teal);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid currentColor;
    color: var(--teal);
    background: transparent;
}

.btn-outline:hover {
    background: var(--teal);
    color: #fff !important;
    border-color: var(--teal);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo-img {
    width: 80%;
    max-width: 340px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* Tile styles (used in opener background) */
.tile {
    overflow: hidden;
    position: relative;
    /* Start hidden and slightly zoomed in */
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.tile.revealed {
    opacity: 1;
    transform: scale(1);
}
.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hand);
    font-size: 1.8rem;
    color: rgba(255,255,255,0.2);
}
/* Unique gradient backgrounds for each tile */
.tile:nth-child(1) .tile-placeholder { background: linear-gradient(135deg, #9a2063, #e86463); }
.tile:nth-child(2) .tile-placeholder { background: linear-gradient(135deg, #2e7490, #119991); }
.tile:nth-child(3) .tile-placeholder { background: linear-gradient(135deg, #f8a91c, #e86463); }
.tile:nth-child(4) .tile-placeholder { background: linear-gradient(135deg, #119991, #2e7490); }
.tile:nth-child(5) .tile-placeholder { background: linear-gradient(135deg, #e86463, #f8a91c); }
.tile:nth-child(6) .tile-placeholder { background: linear-gradient(135deg, #9a2063, #2e7490); }
.tile:nth-child(7) .tile-placeholder { background: linear-gradient(135deg, #2e7490, #f8a91c); }
.tile:nth-child(8) .tile-placeholder { background: linear-gradient(135deg, #119991, #9a2063); }

/* ══════════════════════════════════════
   FLOATING DECORATIVE SHAPES
   ══════════════════════════════════════ */
.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.floating-shapes.hidden {
    opacity: 0;
    visibility: hidden;
}
.fshape {
    position: absolute;
    opacity: 0.07;
    animation: floatShape 12s ease-in-out infinite;
}
.fshape-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--coral);
}
.fshape-ring {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 4px solid var(--magenta);
    animation-duration: 16s;
}
.fshape-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--amber);
    animation-duration: 10s;
}
.fshape-triangle {
    width: 0; height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-bottom: 42px solid var(--teal);
    animation-duration: 14s;
}
@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-20px) rotate(5deg); }
    50%      { transform: translateY(-8px) rotate(-3deg); }
    75%      { transform: translateY(-25px) rotate(4deg); }
}

/* ══════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════ */
.stats-bar {
    background: #fdf2d0; /* Darker yellow-beige */
    padding: 48px 0;
}
.stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0 24px;
}
.stat { text-align: center; }
.stat-num {
    font-family: var(--hand);
    font-size: 3.2rem;
    color: var(--amber);
    line-height: 1;
    background: linear-gradient(90deg, var(--amber), var(--coral), var(--amber));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerStat 3s linear infinite;
}
@keyframes shimmerStat {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
.stat-plus { font-family: var(--hand); font-size: 2rem; color: var(--amber); }
.stat-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
    margin-top: 4px;
}
.stat-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--coral);
    opacity: 0.4;
}

/* ══════════════════════════════════════
   ABOUT
   ══════════════════════════════════════ */
.about {
    padding: 80px 0;
    background: var(--cream);
}
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 60px;
    align-items: start;
}
.about-copy .section-heading { text-align: left; }
.about-body p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #4a4a4a;
}

.quote-card {
    background: white;
    border-left: 5px solid var(--magenta);
    border-radius: 0 16px 16px 0;
    padding: 40px 32px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.06);
    position: sticky;
    top: 120px;
}
.quote-text {
    font-family: var(--hand);
    font-size: 1.6rem;
    color: var(--magenta);
    line-height: 1.5;
}
.quote-card::after {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 20px;
    font-size: 5rem;
    font-family: var(--hand);
    color: rgba(154,32,99,0.08);
    line-height: 1;
}
.quote-card { position: relative; }

/* ══════════════════════════════════════
   THEIR DAY — HORIZONTAL TIMELINE CAROUSEL
   ══════════════════════════════════════ */
.their-day {
    padding: 100px 0 60px;
    background: white;
    overflow: hidden;
}

.h-timeline-wrap {
    position: relative;
    padding: 60px 0 40px;
    overflow: hidden;
    cursor: grab;
}
.h-timeline-wrap:active { cursor: grabbing; }

.h-timeline-line {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--magenta), var(--teal), var(--emerald), var(--amber));
}

.h-timeline-track {
    display: flex;
    gap: 0;
    /* Default to paused so it only starts when in view */
    animation: hTimelineScroll 60s linear infinite paused;
    width: max-content;
}
.h-timeline-track.running {
    animation-play-state: running;
}
.h-timeline-wrap:hover .h-timeline-track {
    animation-play-state: paused !important;
}

@keyframes hTimelineScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.h-timeline-item {
    flex: 0 0 360px;
    padding: 0 20px;
    text-align: center;
    position: relative;
}

.h-tl-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--coral);
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--coral), 0 0 16px rgba(232,100,99,0.3);
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s, box-shadow 0.3s;
}
.h-timeline-item:hover .h-tl-dot {
    transform: scale(1.4);
    box-shadow: 0 0 0 3px var(--magenta), 0 0 24px rgba(154,32,99,0.4);
}

.h-tl-time {
    font-family: var(--hand);
    font-size: 1.15rem;
    color: var(--coral);
    margin-bottom: 12px;
}

.h-tl-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    min-height: 220px;
}
.h-timeline-item:hover .h-tl-card {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.h-tl-card h3 {
    font-family: var(--hand);
    font-size: 1.5rem;
    color: var(--teal);
    margin-bottom: 8px;
}
.h-tl-card p {
    font-size: 0.98rem;
    color: #555;
    line-height: 1.6;
}

/* ══════════════════════════════════════
   EMOTIONAL BREAK REDESIGN
   ══════════════════════════════════════ */
.emotional-break {
    background: #fdf6f6;
    color: var(--teal-dark);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center; justify-content: center;
}
.emotional-quote {
    font-family: var(--hand);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--magenta);
    line-height: 1.4;
    max-width: 800px;
    position: relative;
}
.emotional-quote strong {
    color: var(--coral);
    font-weight: 700;
}
.emotional-quote::before {
    content: "“";
    position: absolute;
    top: -20px; left: -20px;
    font-size: 4rem;
    color: rgba(154,32,99,0.1);
    font-family: serif;
}


/* ══════════════════════════════════════
   GALLERY FILTERS
   ══════════════════════════════════════ */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.pf-btn {
    background: transparent;
    border: 2px solid var(--teal-light);
    color: var(--teal);
    font-family: var(--body);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pf-btn:hover {
    background: var(--teal-light);
    color: var(--teal-dark);
}
.pf-btn.active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    box-shadow: 0 4px 12px rgba(17,153,145,0.3);
}

/* ══════════════════════════════════════
   GALLERY MODAL
   ══════════════════════════════════════ */
.gallery-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26,61,77,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    backdrop-filter: blur(5px);
}
.gallery-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.gm-content {
    background: #fff;
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 24px;
    position: relative;
    padding: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    animation: modalPop 0.4s cubic-bezier(.22,1,.36,1);
    gap: 20px;
}

@keyframes modalPop {
    from { transform: scale(0.95) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.gm-close {
    position: absolute;
    top: 20px; right: 20px;
    background: #f1f5f9;
    border: none;
    width: 40px; height: 40px;
    font-size: 2rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    color: var(--teal-dark);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.gm-close:hover {
    background: #e2e8f0;
}

.gm-title {
    font-family: var(--hand);
    color: var(--teal);
    font-size: 2rem;
    text-align: center;
    margin: 0;
}

/* Hero Section */
.gm-hero {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.gm-featured {
    height: 100%;
    width: 100%;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.05);
}

.gm-featured img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}

.gm-nav {
    background: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: var(--teal);
    transition: all 0.2s;
    flex-shrink: 0;
}

.gm-nav:hover {
    background: var(--teal);
    color: #fff;
    transform: scale(1.1);
}

/* Thumbnails Section */
.gm-thumbs-wrapper {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 0 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) #f1f5f9;
}

.gm-thumbs-wrapper::-webkit-scrollbar {
    height: 6px;
}
.gm-thumbs-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.gm-thumbs-wrapper::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 10px;
}

.gm-thumbs {
    display: flex;
    gap: 12px;
    padding: 0 10px;
}

.gm-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.gm-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gm-item:hover {
    border-color: #cbd5e1;
}

.gm-item.active {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(17,153,145,0.2);
}

@media (max-width: 768px) {
    .gm-content {
        padding: 20px 15px;
        height: 80vh;
    }
    .gm-nav {
        width: 36px;
        height: 36px;
    }
    .gm-item {
        width: 60px;
        height: 60px;
    }
}
.gm-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.gm-item .g-placeholder {
    width: 100%; height: 100%;
}

.gm-featured {
    width: 100%;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
    aspect-ratio: 16 / 9;
}

.gm-featured img,
.gm-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gm-thumbs {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.gm-clickable {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gm-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}

.gm-zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    background: rgba(0,0,0,0.62);
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 999px;
}

.gm-empty {
    padding: 30px 16px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
}

.gc-card {
    cursor: zoom-in;
}

.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3100;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 20px;
}

.img-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.img-lightbox-inner {
    width: min(95vw, 1180px);
    height: min(90vh, 860px);
    position: relative;
    display: flex;
    flex-direction: column;
}

.img-lightbox-toolbar {
    position: absolute;
    top: 10px;
    right: 68px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.img-lightbox-btn,
.img-lightbox-close {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
}

.img-lightbox-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.img-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    font-size: 2rem;
    line-height: 1;
}

.img-lightbox-stage {
    margin-top: 64px;
    height: calc(100% - 64px);
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    transition: transform 0.14s ease;
    border-radius: 10px;
    user-select: none;
}

/* ══════════════════════════════════════
   STORIES CAROUSEL
   ══════════════════════════════════════ */
.stories-section {
    padding: 100px 0;
    background: var(--cream);
    overflow: hidden;
}

.stories-title-wrap {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}
.stories-bg-word {
    font-family: var(--hand);
    font-size: clamp(8rem, 20vw, 16rem);
    color: rgba(154,32,99,0.15); /* More visible */
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}
.stories-fg-title {
    font-family: var(--hand);
    font-size: clamp(3.5rem, 8vw, 6rem);
    color: var(--teal-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 0px rgba(154,32,99,0.1);
    font-weight: 900;
}

/* Carousel */
.carousel {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 60px;
}

.car-viewport {
    overflow: hidden;
    border-radius: 20px;
}
.car-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}

.story-card {
    flex: 0 0 100%;
    /* Default pastel gradient */
    background: linear-gradient(135deg, #fff5f8, #fff);
    border-radius: 20px;
    padding: 44px 36px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
    min-height: 430px;
}
/* Pastel variants for story cards */
.story-card:nth-child(1) { background: linear-gradient(145deg, #fef2f2, #fff); border-left: 6px solid #e86463; }
.story-card:nth-child(2) { background: linear-gradient(145deg, #f0f9ff, #fff); border-left: 6px solid #2e7490; }
.story-card:nth-child(3) { background: linear-gradient(145deg, #fffbeb, #fff); border-left: 6px solid #f8a91c; }
.story-card:nth-child(4) { background: linear-gradient(145deg, #f0fdf4, #fff); border-left: 6px solid #119991; }
.story-card:nth-child(5) { background: linear-gradient(145deg, #fdf4ff, #fff); border-left: 6px solid #9a2063; }

.sc-accent-bar {
    /* HIDDEN - replaced by border-left */
    display: none;
}

.sc-context {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--coral);
    margin-bottom: 8px;
}
.sc-name {
    font-family: var(--hand);
    font-size: 2.4rem;
    color: var(--teal);
    margin-bottom: 20px;
}
.sc-body {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.7;
}
.sc-emotional {
    font-size: 1.15rem;
    color: var(--magenta);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 16px;
    font-style: italic;
}
.sc-whisper {
    font-size: 0.95rem;
    color: #999;
    font-style: italic;
}

/* Carousel Buttons */
.car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    z-index: 10;
    transition: all 0.2s;
}
.car-btn:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-50%) scale(1.08);
}
.car-prev { left: 0; }
.car-next { right: 0; }

.car-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}
.car-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s;
}
.car-dot.active {
    background: var(--coral);
    transform: scale(1.3);
}

/* ══════════════════════════════════════
   PROGRAMS
   ══════════════════════════════════════ */
.programs {
    background: var(--paper);
    padding: 20px 0 40px;
    position: relative;
}
.programs-group {
    margin-top: 28px;
}
.programs-group:first-of-type {
    margin-top: 12px;
}
.programs-row-heading {
    font-family: var(--hand);
    font-size: 1.5rem;
    color: var(--teal-dark);
    margin-bottom: 10px;
    text-align: center;
}
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 8px;
}
.prog-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.prog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coral), var(--magenta), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.prog-card:hover::before {
    transform: scaleX(1);
}
.prog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.prog-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
}
.prog-card h3 {
    font-family: var(--hand);
    font-size: 1.6rem;
    color: var(--teal);
    margin-bottom: 8px;
}
.prog-card p {
    font-size: 1rem;
    color: #666;
}

/* ══════════════════════════════════════
   GALLERY (CAROUSEL)
   ══════════════════════════════════════ */
.gallery {
    padding: 100px 0;
    background: #fff;
}
.gallery-carousel {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 40px; /* Space for arrows */
}

.gc-viewport {
    overflow: hidden;
    position: relative;
}
.gc-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gc-item {
    flex: 0 0 33.333%;
    padding: 0 12px;
}
@media (max-width: 768px) {
    .gc-item { flex: 0 0 50%; }
}
@media (max-width: 600px) {
    .gc-item { flex: 0 0 100%; padding: 0 16px; }
}

.gc-card {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    background: #f7f7f7;
    position: relative;
}
.gc-img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.g-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center; justify-content: center;
    font-family: var(--hand);
    font-size: 1.5rem;
    color: rgba(0,0,0,0.4);
}

.gc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--teal);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}
.gc-btn:hover {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    transform: translateY(-50%) scale(1.1);
}
.gc-prev { left: -10px; }
.gc-next { right: -10px; }

@media (hover: none) {
    .btn-primary:hover,
    .btn-ghost:hover,
    .btn-outline:hover,
    .prog-card:hover,
    .impact-card:hover,
    .nav-donate:hover,
    .sticky-cta:hover,
    .gc-btn:hover,
    .car-btn:hover {
        transform: none;
    }
}

/* ══════════════════════════════════════
   DONATE
   ══════════════════════════════════════ */
.donate {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

/* Attention-grabbing glow for the box */
#charityBox.highlight {
    box-shadow: 0 14px 45px rgba(212, 175, 55, 0.7),
               0 0 70px rgba(212, 175, 55, 0.4),
               inset 0 0 20px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.4s ease, transform 0.1s ease-out;
    border-color: #d4af37;
}

/* watermark logo inside donate section */
.donate::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('Public/Images/logo.webp') center/contain no-repeat;
    opacity: 0.35; /* more visible watermark */
    pointer-events: none;
    z-index: 1; /* between bg-layer (0) and donate-inner (2) */
}
.donate-bg-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 40%, var(--emerald) 100%);
    z-index: 0;
}
.donate-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.donate-coin-text {
    opacity: 0;
    transform: translateX(-100%) scale(0.9);
    transition: transform 1.4s cubic-bezier(.22,1,.36,1), opacity 1.4s ease;
    z-index: 1; /* Ensure text is behind the box if they overlap */
    position: relative;
}
.donate.coin-approach .donate-coin-text {
    opacity: 1;
    transform: translateX(0) scale(1);
}
.donate-lead {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 48px;
    opacity: 0.9;
}

/* Thermometer */
.thermo-wrap {
    max-width: 500px;
    margin: 0 auto 48px;
}
.thermo-track {
    height: 18px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.thermo-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--amber), var(--coral));
    border-radius: 12px;
    transition: width 1.8s cubic-bezier(.22,1,.36,1);
    position: relative;
}
.thermo-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255,255,255,0.5);
}
.thermo-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
}
.thermo-goal { font-size: 1rem; opacity: 1; }

/* Impact Cards */
.impact-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.impact-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 28px 24px;
    width: 280px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}
.impact-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.14);
}
.ic-amount {
    display: block;
    font-family: var(--hand);
    font-size: 2.4rem;
    color: var(--amber);
    margin-bottom: 8px;
}
.impact-card p { font-size: 1rem; opacity: 0.9; }

/* Donate Button — Glass Style (matching sticky CTA) */
.btn-donate-glass {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(154,32,99,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-family: var(--hand);
    font-size: 1.4rem;
    font-weight: 700;
    padding: 18px 56px;
    border-radius: 60px;
    box-shadow: 0 8px 32px rgba(154,32,99,0.35);
    transition: all 0.4s cubic-bezier(.22,1,.36,1);
    margin-bottom: 32px;
    animation: pulseGlow 2s infinite;
    text-decoration: none;
}
.btn-donate-glass:hover {
    background: #b5267a;
    transform: scale(1.05);
    box-shadow: 0 14px 40px rgba(154,32,99,0.55);
}

/* Pulse */
.pulse {
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 28px rgba(232,100,99,0.3); }
    50%      { box-shadow: 0 8px 52px rgba(232,100,99,0.55); }
}

.alt-donate {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    font-size: 1rem;
}
.alt-method strong {
    display: block;
    color: var(--amber);
    margin-bottom: 4px;
}
.alt-method a {
    color: #fff;
    text-decoration: underline;
    opacity: 0.85;
}
.alt-method a:hover { opacity: 1; }

/* ══════════════════════════════════════
   STICKY CTA BUTTON — BOTTOM RIGHT
   ══════════════════════════════════════ */
.sticky-cta-wrap {
    position: fixed;
    bottom: 24px;
    right: 32px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(.22,1,.36,1);
}
.sticky-cta-wrap.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.sticky-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    /* Glass effect */
    background: rgba(154,32,99,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-family: var(--hand);
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(154,32,99,0.25);
    transition: all 0.4s cubic-bezier(.22,1,.36,1);
    max-width: fit-content;
    text-decoration: none;
}
.sticky-cta:hover {
    background: #b5267a;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 40px rgba(154,32,99,0.45);
}
.sticky-cta-sub {
    font-size: 0.72rem;
    color: rgba(154,32,99,0.7);
    font-style: italic;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.sticky-cta-heart {
    font-size: 1.3rem;
    animation: stickyPulse 1.5s infinite;
}
@keyframes stickyPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.25); }
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
    background: #1a3d4d;
    color: rgba(255,255,255,0.6);
    padding: 48px 0;
    text-align: center;
}
.footer-inner { max-width: 500px; margin: 0 auto; }
.footer-logo {
    height: 60px;
    margin: 0 auto 16px;
    opacity: 0.8;
}
.footer-message {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}
.footer-copy { font-size: 0.85rem; opacity: 0.8; }

.footer-credit {
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.9;
}
.footer-credit a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--amber);
    transition: all 0.3s ease;
    padding-bottom: 2px;
}
.footer-credit a:hover {
    color: var(--amber);
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border-bottom-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 900px) {
    .container,
    .nav-inner,
    .hero-inner {
        padding-left: 18px;
        padding-right: 18px;
    }

    .main-nav {
        padding: 10px 0;
    }

    .nav-logo-link {
        width: 90px;
        height: 90px;
        top: -5px;
        left: 0; /* flush left edge */
    }

    .nav-logo {
        height: 60px;
    }

    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: min(84vw, 320px); height: 100dvh;
        background: white;
        flex-direction: column;
        padding: 100px 32px 40px;
        gap: 24px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.35s ease;
        z-index: 999;
    }
    .nav-links.open { right: 0; }
    .nav-links a::after { display: none; }
    .nav-donate { text-align: center; }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .hero { padding: 120px 0 64px; }
    .hero-eyebrow { margin-bottom: 8px; /* retains spacing for smaller screens */ }
    .hero-body { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-logo-img { max-width: 200px; margin: 0 auto 24px; }

    .stats-bar { padding: 36px 0; }
    .stats-inner { gap: 20px; }
    .stat-num { font-size: 2.6rem; }

    .about,
    .stories-section,
    .gallery,
    .donate {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .their-day {
        padding: 72px 0 48px;
    }

    .about-grid { grid-template-columns: 1fr; }
    .quote-card { position: static; }

    .car-btn { display: none; }
    .carousel { padding: 0; }
    .story-card { min-height: 0; }

    .programs-grid { grid-template-columns: 1fr; }

    .impact-row { flex-direction: column; align-items: center; }
    .impact-card { width: min(100%, 420px); }

    .donate-coin-text {
        opacity: 1;
        transform: none;
    }

    .stories-title-wrap { height: 110px; }
    .stories-bg-word { font-size: clamp(4rem, 20vw, 7rem); }
    .stories-fg-title { font-size: clamp(2.4rem, 10vw, 4.6rem); }

    .gallery-carousel {
        padding: 0 10px;
    }

    .gc-btn {
        display: none;
    }

    .sticky-cta-wrap {
        right: 12px;
        left: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
    }
    .sticky-cta {
        width: 100%;
        font-size: 0.95rem;
        padding: 12px 20px;
        text-align: center;
        justify-content: center;
    }
    .sticky-cta-sub {
        text-align: center;
    }

    .h-timeline-item { flex: 0 0 300px; }

    .opener-tiles {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .gm-content {
        height: 88dvh;
        border-radius: 14px;
        padding: 56px 16px 18px;
    }

    .gm-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .gm-grid {
        gap: 12px;
        padding-right: 0;
    }

    .gm-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 500px) {
    .container,
    .nav-inner,
    .hero-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .opener {
        min-height: 100svh;
    }

    .opener-content {
        padding-top: 96px;
        padding-bottom: 28px;
    }

    .opener-line.line-1 { font-size: 1.4rem; }
    .opener-line.line-2 { font-size: 1.8rem; }
    .hero-title { font-size: 2.45rem; }
    .hero-body { font-size: 1.04rem; margin-bottom: 24px; }
    .btn { width: 100%; }
    .hero-actions { gap: 10px; }

    .section-sub {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .stats-inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 10px;
    }
    .stat-dot { display: none; }

    .story-card { padding: 28px 20px; }
    .sc-name { font-size: 2rem; }
    .sc-body,
    .sc-emotional {
        font-size: 1rem;
    }

    .pf-btn {
        padding: 8px 14px;
        font-size: 0.92rem;
    }

    .btn-donate-glass {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        font-size: 1.2rem;
    }

    .alt-donate {
        gap: 20px;
        font-size: 0.95rem;
    }

    .h-timeline-item { flex: 0 0 260px; }
    .h-tl-card { padding: 18px 16px; min-height: 200px; }

    .opener-tiles {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .gm-grid {
        gap: 10px;
    }

    .gm-thumbs {
        grid-template-columns: 1fr;
    }

    .img-lightbox-toolbar {
        right: 56px;
    }

    .img-lightbox-btn,
    .img-lightbox-close {
        width: 38px;
        height: 38px;
    }
}

/* ── Charity Box ───────────────────────── */
#charityBox {
    position: absolute;
    top: 30px;
    left: 100px; /* moved right toward center */
    width: 260px; /* widened box */
    height: 260px;
    background: linear-gradient(180deg, #d4af37 0%, #c9a030 40%, #b8860b 100%);
    border-radius: 14px 14px 0 0;
    z-index: 2000; /* Above the fixed nav so it covers the coin */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 14px 32px rgba(0,0,0,0.35),
               inset 0 2px 0 rgba(255,255,255,0.25);
    border: 2px solid #8B4513;
    border-bottom: none;
}

/* The slit the coin "goes into" */
.cb-slit {
    width: 200px; /* even wider opening */
    height: 10px;
    background: #2a1a10;
    border-radius: 5px;
    margin-top: 24px;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.8),
               0 1px 0 rgba(255,255,255,0.15);
    position: relative;
    z-index: 2;
}

.cb-front {
    margin-top: 55px;
    font-family: var(--hand);
    font-size: 1.8rem;
    color: #4a332a;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
    z-index: 2;
}

/* message shown when coin is hidden */
.cb-message {
    position: absolute;
    top: 60%;
    width: 100%;
    font-family: var(--hand);
    font-size: 1.5rem;
    color: #4a332a;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}
.cb-message.visible {
    opacity: 1;
}

#charityBox::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px 14px 0 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.15);
    pointer-events: none;
}

/* Donate section needs position context for the box */
.donate {
    position: relative;
    /* ensure children can stack above the fixed nav */
    z-index: 3000;
}

/* Hide charity box on mobile */
@media (max-width: 900px) {
    #charityBox { display: none; }
}

/* Mobile adjustments for logo and navbar */
@media (max-width: 900px) {
    .nav-logo-link {
        /* shrink and reposition logo into nav bar */
        position: fixed;
        top: 8px;              /* inside the bar height */
        left: 16px;
        width: 60px;
        height: 60px;
        z-index: 1001; /* above nav background */
    }

    .main-nav {
        background: rgba(250,248,244,0.75); /* slightly more transparent */
    }
}
