/* =============================================================
   Phase 1 enhancements — Aksharayush Foundation
   Designed to layer on top of style.css without breaking it.
   Motion respects prefers-reduced-motion.
   ============================================================= */

/* --- Design tokens (consolidated) --- */
:root {
    /* Type */
    --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fs-xs: 0.78rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.35rem;
    --fs-2xl: 1.75rem;
    --fs-3xl: 2.25rem;
    --fs-4xl: 3rem;
    --fs-5xl: 3.75rem;
    --lh-tight: 1.15;
    --lh-snug: 1.3;
    --lh-normal: 1.55;
    --lh-relaxed: 1.7;
    /* Spacing */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 4rem;
    --sp-9: 6rem;
    /* Radius */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 28px;
    --r-pill: 999px;
    /* Shadow */
    --sh-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --sh-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --sh-md: 0 6px 20px rgba(15, 23, 42, 0.08);
    --sh-lg: 0 18px 40px rgba(15, 23, 42, 0.10);
    --sh-xl: 0 30px 60px rgba(15, 23, 42, 0.14);
    --sh-glow: 0 0 0 1px rgba(13, 148, 136, 0.18), 0 12px 30px rgba(13, 148, 136, 0.18);
    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --t-fast: 160ms;
    --t-base: 260ms;
    --t-slow: 420ms;
    /* Brand */
    --brand-navy: #003566;
    --brand-navy-dark: #00224d;
    --brand-teal: #0d9488;
    --brand-teal-dark: #0b7a70;
    --brand-gold: #FFBF00;
    --brand-gold-soft: #FFEB99;
    --brand-paper: #fffff0;
    --brand-ink: #0f172a;
    --brand-ink-2: #1e293b;
    --brand-muted: #64748b;
    --brand-line: #e2e8f0;
    --brand-violet: #7c3aed;
    --brand-rose: #e11d48;
}

/* --- Section spacing consistency --- */
section.py-5, .section {
    padding-top: clamp(2.5rem, 5vw, 4.5rem) !important;
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem) !important;
}

/* --- Eyebrow / display type --- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand-teal);
}
.eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-teal);
    box-shadow: 0 0 0 4px rgba(13,148,136,0.12);
}
.eyebrow.gold { color: #B8860B; }
.eyebrow.gold .dot { background: var(--brand-gold); box-shadow: 0 0 0 4px rgba(255,191,0,0.18); }
.eyebrow.navy { color: var(--brand-navy); }
.eyebrow.navy .dot { background: var(--brand-navy); box-shadow: 0 0 0 4px rgba(0,53,102,0.12); }
h1.display-1, h1.h-display, .display-1 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
}

/* --- Hero: split layout --- */
.hero-split {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fffff0 0%, #ffffff 100%);
    padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(3rem, 5vw, 5rem);
}
.hero-split::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,0.18), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-split::after {
    content: "";
    position: absolute;
    bottom: -180px; left: -120px;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,191,0,0.16), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-split > .container,
.hero-split > .container-fluid {
    position: relative;
    z-index: 1;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(13,148,136,0.10);
    color: var(--brand-teal);
    padding: 0.45rem 1rem;
    border-radius: var(--r-pill);
    font-weight: 800;
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hero-eyebrow .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-teal);
    box-shadow: 0 0 0 0 rgba(13,148,136,0.6);
    animation: hero-pulse 1.8s var(--ease-out) infinite;
}
@keyframes hero-pulse {
    0% { box-shadow: 0 0 0 0 rgba(13,148,136,0.6); }
    70% { box-shadow: 0 0 0 12px rgba(13,148,136,0); }
    100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); }
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--brand-ink);
    font-size: clamp(2.4rem, 5.4vw, 4.2rem);
}
.hero-title .accent {
    color: var(--brand-teal);
    font-style: italic;
    font-weight: 800;
}
.hero-title .under {
    position: relative;
    display: inline-block;
}
.hero-title .under::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -0.18em;
    height: 0.32em;
    background: var(--brand-gold);
    z-index: -1;
    border-radius: 2px;
    opacity: 0.55;
}
.hero-lead {
    color: var(--brand-muted);
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: var(--lh-relaxed);
    max-width: 560px;
}
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}
.btn-primary-soft {
    background: var(--brand-navy);
    color: #fff;
    border: 1px solid var(--brand-navy);
    padding: 0.85rem 1.6rem;
    border-radius: var(--r-pill);
    font-weight: 700;
    display: inline-flex; align-items: center; gap: 0.55rem;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background var(--t-base);
    text-decoration: none;
}
.btn-primary-soft:hover {
    background: var(--brand-navy-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}
.btn-ghost-dark {
    background: transparent;
    color: var(--brand-ink);
    border: 1.5px solid var(--brand-line);
    padding: 0.8rem 1.45rem;
    border-radius: var(--r-pill);
    font-weight: 700;
    display: inline-flex; align-items: center; gap: 0.55rem;
    transition: all var(--t-base) var(--ease-out);
    text-decoration: none;
}
.btn-ghost-dark:hover {
    border-color: var(--brand-navy);
    color: var(--brand-navy);
    transform: translateY(-2px);
}
.btn-gold {
    background: var(--brand-gold);
    color: var(--brand-navy);
    border: none;
    padding: 0.85rem 1.7rem;
    border-radius: var(--r-pill);
    font-weight: 800;
    display: inline-flex; align-items: center; gap: 0.55rem;
    box-shadow: 0 8px 22px rgba(255,191,0,0.30);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
    text-decoration: none;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255,191,0,0.45);
    color: var(--brand-navy);
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
    font-size: var(--fs-sm);
    color: var(--brand-muted);
}
.hero-trust i { color: var(--brand-teal); margin-right: 0.35rem; }

/* --- Hero floating image card --- */
.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-width: 480px;
    margin: 0 auto;
}
.hero-visual .frame {
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-xl);
    background: linear-gradient(135deg, #00356610, #0d948810);
}
.hero-visual .frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 6s var(--ease-in-out);
}
.hero-visual:hover .frame img { transform: scale(1.04); }
.hero-float-card {
    position: absolute;
    background: #fff;
    border-radius: var(--r-lg);
    padding: 0.85rem 1.1rem;
    box-shadow: var(--sh-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    border: 1px solid rgba(15,23,42,0.04);
}
.hero-float-card .icon {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.hero-float-card .num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--brand-ink);
}
.hero-float-card .lbl {
    font-size: 0.72rem;
    color: var(--brand-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hero-float-1 {
    top: 6%; left: -8%;
    animation: floaty 5.5s ease-in-out infinite;
}
.hero-float-2 {
    bottom: 10%; right: -6%;
    animation: floaty 5.5s ease-in-out infinite 0.9s;
}
.hero-float-3 {
    top: 50%; left: -12%;
    animation: floaty 5.5s ease-in-out infinite 1.7s;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (max-width: 767px) {
    /* Force hero columns to stack on mobile and remove gutter overflow */
    .hero-split .row { display: block; margin: 0; }
    .hero-split .row > [class*="col-"] { width: 100%; max-width: 100%; flex: 0 0 100%; padding: 0; margin-bottom: 1.5rem; }
    .hero-split .row > [class*="col-"]:last-child { margin-bottom: 0; }

    /* Floating cards: pull them inside the frame so they never bleed past viewport */
    .hero-float-card { padding: 0.55rem 0.75rem; min-width: 0; max-width: 48%; }
    .hero-float-card .num { font-size: 0.95rem; }
    .hero-float-card .lbl { font-size: 0.6rem; }
    .hero-float-1 { top: 4%; left: 0; }
    .hero-float-2 { bottom: 4%; right: 0; }
    .hero-float-3 { top: 50%; left: 0; transform: translateY(-50%); }

    /* Safety: kill any horizontal overflow on the page */
    html, body { overflow-x: hidden; max-width: 100%; }
}

/* --- Live stats strip (impact counters) --- */
.impact-strip {
    position: relative;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    color: #fff;
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    overflow: hidden;
}
.impact-strip::before {
    content: "";
    position: absolute;
    top: 0; right: -100px;
    width: 400px; height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(13,148,136,0.30), transparent 60%);
    pointer-events: none;
}
.impact-card {
    text-align: center;
    padding: 0.5rem;
}
.impact-card .num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, var(--brand-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.4rem;
}
.impact-card .lbl {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: rgba(255,255,255,0.78);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.impact-card .suf {
    font-family: var(--font-display);
    font-size: 0.7em;
    color: var(--brand-gold);
    -webkit-text-fill-color: var(--brand-gold);
    margin-left: 0.1em;
    font-weight: 800;
}
.impact-divider {
    width: 40px; height: 2px;
    background: rgba(255,255,255,0.16);
    margin: 0.6rem auto 0;
}

/* --- Testimonial cards --- */
.testimonial-card {
    background: #fff;
    border-radius: var(--r-lg);
    padding: 1.6rem 1.6rem 1.4rem;
    box-shadow: var(--sh-sm);
    border: 1px solid var(--brand-line);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
    position: relative;
}
.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: -18px; left: 22px;
    font-family: var(--font-display);
    font-size: 5.5rem;
    color: var(--brand-teal);
    line-height: 1;
    opacity: 0.18;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
}
.testimonial-card .stars {
    color: var(--brand-gold);
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 0.85rem;
}
.testimonial-card .quote {
    color: var(--brand-ink-2);
    line-height: var(--lh-relaxed);
    font-size: 0.98rem;
    flex-grow: 1;
    margin-bottom: 1.2rem;
}
.testimonial-card .who {
    display: flex; align-items: center; gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-line);
}
.testimonial-card .avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-teal));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}
.testimonial-card .avatar img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-card .name {
    font-weight: 700;
    color: var(--brand-ink);
    font-size: 0.95rem;
    line-height: 1.2;
}
.testimonial-card .role {
    color: var(--brand-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

/* --- Success story cards --- */
.story-card {
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
    border: 1px solid var(--brand-line);
}
.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-lg);
}
.story-card .cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #00356620, #0d948820);
    overflow: hidden;
}
.story-card .cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.story-card:hover .cover img { transform: scale(1.05); }
.story-card .cover .tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(255,255,255,0.95);
    color: var(--brand-teal);
    padding: 0.25rem 0.7rem;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    backdrop-filter: blur(6px);
}
.story-card .cover .initials {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--brand-navy);
    opacity: 0.18;
    background: linear-gradient(135deg, #0d948820, #00356610);
}
.story-card .body {
    padding: 1.4rem 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex; flex-direction: column;
}
.story-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--brand-ink);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}
.story-card .excerpt {
    color: var(--brand-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.story-card .meta {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--brand-line);
    font-size: 0.8rem;
    color: var(--brand-muted);
}
.story-card .read {
    color: var(--brand-teal);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.4rem;
    transition: gap var(--t-base) var(--ease-out);
}
.story-card:hover .read { gap: 0.7rem; }

/* --- Testimonial carousel wrapper --- */
.testimonial-track {
    display: flex;
    gap: 1.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0.25rem 1.5rem;
    scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track .testimonial-card {
    flex: 0 0 calc((100% - 2.8rem) / 3);
    scroll-snap-align: start;
}
@media (max-width: 991px) {
    .testimonial-track .testimonial-card { flex: 0 0 calc((100% - 1.4rem) / 2); }
}
@media (max-width: 575px) {
    .testimonial-track .testimonial-card { flex: 0 0 86%; }
}
.testimonial-controls {
    display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.5rem;
}
.testimonial-controls button {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--brand-line);
    background: #fff;
    color: var(--brand-ink);
    display: inline-flex; align-items: center; justify-content: center;
    transition: all var(--t-base) var(--ease-out);
    cursor: pointer;
}
.testimonial-controls button:hover {
    background: var(--brand-navy);
    color: #fff;
    border-color: var(--brand-navy);
}

/* --- Newsletter (footer) --- */
.newsletter {
    position: relative;
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: var(--r-lg);
    padding: 1.4rem;
    box-shadow: var(--sh-sm);
}
.newsletter h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-ink);
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}
.newsletter p {
    color: var(--brand-muted);
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}
.newsletter-form {
    display: flex; gap: 0.5rem;
    flex-wrap: wrap;
}
.newsletter-form .form-control {
    border: 1.5px solid var(--brand-line);
    border-radius: var(--r-pill);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    flex: 1 1 160px;
    min-width: 0;
}
.newsletter-form .form-control:focus {
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 4px rgba(13,148,136,0.12);
    outline: none;
}
.newsletter-form .btn-submit {
    background: var(--brand-navy);
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    padding: 0.65rem 1.3rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--t-base) var(--ease-out);
}
.newsletter-form .btn-submit:hover { background: var(--brand-navy-dark); }
.newsletter-msg { font-size: 0.82rem; margin-top: 0.5rem; min-height: 1.2em; }
.newsletter-msg.ok { color: var(--brand-teal); }
.newsletter-msg.err { color: var(--brand-rose); }

/* --- Scroll progress + back to top --- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-gold));
    z-index: 1080;
    width: 0%;
    transition: width 90ms linear;
    pointer-events: none;
}
.back-to-top {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: var(--sh-md);
    z-index: 1060;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), background var(--t-base);
    border: none;
    cursor: pointer;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-teal); color: #fff; }
@media (max-width: 575px) {
    .back-to-top { width: 42px; height: 42px; bottom: 84px; right: 16px; }
}

/* --- Sticky bottom CTA bar (mobile) --- */
.sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--brand-line);
    padding: 0.6rem 0.75rem;
    z-index: 1050;
    display: none;
    box-shadow: 0 -8px 20px rgba(15,23,42,0.06);
}
.sticky-cta a {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.4rem;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    transition: transform var(--t-fast) var(--ease-out);
}
.sticky-cta a:active { transform: scale(0.97); }
.sticky-cta .cta-donate {
    background: var(--brand-gold);
    color: var(--brand-navy);
}
.sticky-cta .cta-call {
    background: var(--brand-navy);
    color: #fff;
}
.sticky-cta .cta-wa {
    background: #25d366;
    color: #fff;
}
@media (max-width: 767.98px) {
    .sticky-cta { display: flex; gap: 0.4rem; }
    body { padding-bottom: 70px; }
    .whatsapp-float { bottom: 90px !important; }
}

/* --- Skeletons --- */
.skel {
    background: linear-gradient(90deg, #eef1f5 0%, #f7f8fa 50%, #eef1f5 100%);
    background-size: 200% 100%;
    animation: skel-shimmer 1.4s linear infinite;
    border-radius: var(--r-sm);
    color: transparent !important;
    user-select: none;
    pointer-events: none;
}
@keyframes skel-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Reveal on scroll (AOS-lite) --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

/* --- Trust badges (80G/12A/FCRA) --- */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}
.trust-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(13,148,136,0.08);
    color: var(--brand-teal-dark);
    border: 1px solid rgba(13,148,136,0.2);
    padding: 0.32rem 0.7rem;
    border-radius: var(--r-pill);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.trust-badge i { font-size: 0.85rem; }
.trust-badge.gold {
    background: rgba(255,191,0,0.10);
    color: #B8860B;
    border-color: rgba(255,191,0,0.30);
}

/* --- Story detail page --- */
.story-hero {
    position: relative;
    background: linear-gradient(180deg, #fffff0 0%, #ffffff 100%);
    padding: clamp(3rem, 5vw, 5rem) 0;
    overflow: hidden;
}
.story-hero::before {
    content: "";
    position: absolute;
    top: -160px; right: -160px;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,0.16), transparent 70%);
    pointer-events: none;
}
.story-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--brand-ink);
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}
.story-meta {
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
    color: var(--brand-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}
.story-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.story-meta i { color: var(--brand-teal); }
.story-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--brand-ink-2);
    white-space: pre-wrap;
    max-width: 760px;
    margin: 0 auto;
}
.story-body p { margin-bottom: 1.4rem; }
.story-quote {
    border-left: 4px solid var(--brand-gold);
    background: linear-gradient(90deg, rgba(255,191,0,0.10), transparent 60%);
    padding: 1.2rem 1.4rem;
    margin: 1.6rem 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--brand-navy);
    font-style: italic;
    border-radius: 0 var(--r-md) var(--r-md) 0;
}
.beneficiary-card {
    background: #fff;
    border: 1px solid var(--brand-line);
    border-radius: var(--r-lg);
    padding: 1.4rem;
    display: flex; gap: 1rem; align-items: center;
    box-shadow: var(--sh-xs);
}
.beneficiary-card .av {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-teal));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.beneficiary-card .name { font-weight: 700; color: var(--brand-ink); font-size: 1.05rem; }
.beneficiary-card .role { color: var(--brand-muted); font-size: 0.85rem; }

/* --- Updated error pages --- */
.error-page {
    min-height: 70vh;
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, #fffff0 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
.error-page::before {
    content: "";
    position: absolute;
    top: -150px; right: -150px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13,148,136,0.10), transparent 70%);
}
.error-page::after {
    content: "";
    position: absolute;
    bottom: -200px; left: -200px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,191,0,0.10), transparent 70%);
}
.error-page .card-err {
    background: #fff;
    border-radius: var(--r-xl);
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    box-shadow: var(--sh-lg);
    max-width: 560px;
    width: 100%;
    position: relative;
    z-index: 1;
    border: 1px solid var(--brand-line);
}
.error-page .code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(4.5rem, 10vw, 6.5rem);
    line-height: 1;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}
.error-page h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--brand-ink);
    margin-bottom: 0.5rem;
}
.error-page p { color: var(--brand-muted); margin-bottom: 1.5rem; }
.error-page .err-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* --- Updated inner page hero (kill repetitive SVG circles) --- */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
    color: #fff;
    padding: clamp(2.5rem, 4vw, 4rem) 0;
    overflow: hidden;
    text-align: center;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(13,148,136,0.30), transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(255,191,0,0.20), transparent 50%);
    pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}
.page-hero p { color: rgba(255,255,255,0.75); max-width: 620px; margin: 0 auto; font-size: 0.95rem; }
.page-hero .crumb {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
}
.page-hero .crumb a { color: var(--brand-gold); text-decoration: none; }

/* --- Honor/memory of & recurring UI snippets --- */
.donation-pill-row { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .hero-float-1, .hero-float-2, .hero-float-3 { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .skel { animation: none; }
    .hero-eyebrow .pulse { animation: none; }
    .testimonial-card, .story-card, .btn-primary-soft, .btn-gold, .btn-ghost-dark, .back-to-top { transition: none; }
}

/* =========================================================
   FOOTER — Professional multi-column layout
   ========================================================= */

/* Newsletter strip — full-width featured band sitting above the footer */
.footer-newsletter {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #0d9488 100%);
    color: #fff;
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}
.footer-newsletter::before,
.footer-newsletter::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}
.footer-newsletter::before {
    top: -120px; right: -80px;
    width: 320px; height: 320px;
}
.footer-newsletter::after {
    bottom: -100px; left: -60px;
    width: 240px; height: 240px;
}
.footer-newsletter > .container-fluid { position: relative; z-index: 1; }
.footer-newsletter-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}
.footer-newsletter-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    color: #fff;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}
.footer-newsletter-sub {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}
.footer-newsletter-form {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    flex-wrap: wrap;
}
.footer-newsletter-form .form-control {
    flex: 1 1 240px;
    min-width: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-ink);
    border-radius: 999px;
    padding: 0.75rem 1.15rem;
    font-size: 0.95rem;
    transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.footer-newsletter-form .form-control::placeholder { color: #6b7280; }
.footer-newsletter-form .form-control:focus {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
    outline: none;
}
.footer-newsletter-form .btn-submit {
    background: var(--brand-navy);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
    display: inline-flex;
    align-items: center;
}
.footer-newsletter-form .btn-submit:hover {
    background: var(--brand-navy-dark);
    transform: translateY(-1px);
}

/* Main footer */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #cbd5e1;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.5), transparent);
}
.site-footer a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease-out); }
.site-footer a:hover { color: #fff; }

/* Brand */
.footer-brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.footer-logo {
    max-height: 44px;
    max-width: 180px;
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    object-fit: contain;
}
.footer-brand-mark {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-navy));
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.footer-brand-name {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.footer-tagline {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    max-width: 340px;
}

/* Trust badges */
.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(13, 148, 136, 0.10);
    color: #5eead4;
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.footer-trust-badge i { font-size: 0.78rem; }

/* Section headers */
.footer-h6 {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 1.1rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.footer-h6::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 28px; height: 2px;
    background: var(--brand-teal);
    border-radius: 1px;
}

/* Link lists */
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li,
.footer-contact li {
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
    line-height: 1.4;
}
.footer-links a {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    transition: color var(--t-fast) var(--ease-out), padding var(--t-fast) var(--ease-out);
}
.footer-links a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--brand-teal);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}
.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}
.footer-link-accent {
    color: var(--brand-gold) !important;
    font-weight: 700;
}
.footer-link-accent i {
    color: var(--brand-gold);
    font-size: 0.78rem;
    margin-left: 0.2rem;
}

/* Contact list */
.footer-contact li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    color: #94a3b8;
}
.footer-contact li i {
    color: var(--brand-teal);
    font-size: 0.95rem;
    width: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.footer-contact li a {
    color: #cbd5e1;
    word-break: break-word;
}
.footer-contact li a:hover {
    color: var(--brand-teal);
}

/* Social row */
.footer-social {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.footer-social-link {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.95rem;
    transition: background var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.footer-social-link:hover {
    background: var(--brand-teal);
    color: #fff !important;
    border-color: var(--brand-teal);
    transform: translateY(-2px);
}
.footer-social-empty {
    font-style: italic;
}

/* Bottom bar */
.site-footer-bottom {
    background: rgba(0, 0, 0, 0.30);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: #94a3b8;
}
.footer-copy {
    color: #94a3b8;
    line-height: 1.5;
}
.footer-copy strong { color: #fff; font-weight: 700; }
.footer-copy-sep { color: rgba(255, 255, 255, 0.20); margin: 0 0.4rem; }
.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    justify-content: flex-end;
    align-items: center;
}
.footer-legal a {
    color: #94a3b8;
    font-size: 0.82rem;
    transition: color var(--t-fast) var(--ease-out);
}
.footer-legal a:hover { color: #fff; }
.footer-top-link i { margin-left: 0.3rem; font-size: 0.7rem; }

/* Responsive footer */
@media (max-width: 991.98px) {
    .site-footer .col-lg-4,
    .site-footer .col-lg-2 { margin-bottom: 1.5rem; }
    .footer-legal { justify-content: flex-start; }
}
@media (max-width: 767.98px) {
    .footer-newsletter { padding: 1.75rem 0; }
    .footer-newsletter-form { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .footer-newsletter-form .form-control,
    .footer-newsletter-form .btn-submit { width: 100%; flex: 0 0 auto; }
    .footer-newsletter-form .form-control { border-radius: 12px; padding: 0.9rem 1.1rem; }
    .footer-newsletter-form .btn-submit { border-radius: 12px; padding: 0.9rem 1.25rem; justify-content: center; }
    .site-footer { padding-top: 0; }
    .footer-h6 { margin-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .footer-social-link, .footer-links a, .footer-links a::before,
    .footer-newsletter-form .btn-submit, .footer-newsletter-form .form-control { transition: none; }
}
