﻿/* =========================
   TRADO Aid Landing - Modern Minimal
   One system. No duplicate roots.
   ========================= */

:root {
    /* Brand */
    --accent: #f4c24f;
    --accent2: #ffda7a;
    /* Light UI base */
    --bg: #f6f7fb;
    --card: #ffffff;
    --text: #0b1220;
    --muted: #5b6779;
    --line: rgba(18,24,38,.10);
    /* Dark hero */
    --hero1: #071a36;
    --hero2: #041229;
    /* Effects */
    --shadow: 0 24px 60px rgba(0,0,0,.18);
    --softShadow: 0 18px 50px rgba(0,0,0,.06);
    /* Layout */
    --radius: 18px;
    --r2: 22px;
    --gap: 14px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

/* =========================
   Topbar
   ========================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,.70);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(244,194,79,.18);
}

.brand-name {
    letter-spacing: .2px;
}

.topbar-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn, .ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
    cursor: pointer;
    user-select: none;
}

.btn {
    background: var(--accent);
    color: #0b1220;
    box-shadow: 0 12px 26px rgba(244,194,79,.25);
}

    .btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.02);
    }

    .btn:active {
        transform: translateY(0);
    }

.ghost {
    background: transparent;
    border-color: rgba(0,0,0,.10);
    color: #0b1220;
}

    .ghost:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.95);
    }

    .btn.big, .ghost.big {
        padding: 14px 20px;
        font-size: 16px;
    }

/* =========================
   Hero
   ========================= */

.hero {
    position: relative;
    padding: 84px 0 72px;
    background: linear-gradient(180deg,var(--hero1),var(--hero2));
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: .22;
}

    .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(1.1) contrast(1.05);
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 380px at 30% 20%, rgba(244,194,79,.25), transparent 55%), linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.65));
}

.hero-inner {
    position: relative;
    width: min(980px, 92vw);
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(244,194,79,.28);
    background: rgba(0,0,0,.25);
    margin-bottom: 18px;
}

.pill-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(244,194,79,.18);
    color: var(--accent);
    font-weight: 900;
}

.hero-title {
    margin: 8px 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -.8px;
}

.accent {
    color: var(--accent);
}

.hero-sub {
    opacity: .92;
    font-size: 16px;
    margin-bottom: 14px;
}

.meta-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    font-size: 14px;
    opacity: .95;
}

/* Story card (hero) */
.hero-story {
    width: min(920px, 92vw);
    margin: 18px auto 0;
}

.story-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    padding: 22px 22px 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

.story-kicker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pill.danger {
    background: rgba(255, 204, 102, 0.14);
    border-color: rgba(255, 204, 102, 0.22);
}

.story-title {
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.15;
    margin: 10px 0 10px;
}

.story-lead {
    font-size: 16px;
    line-height: 1.6;
    opacity: .92;
    margin: 0 0 16px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0 14px;
}

.story-block {
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 14px 12px;
}

.story-label {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    opacity: .78;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.story-text {
    font-size: 14.5px;
    line-height: 1.6;
    opacity: .92;
    margin: 0;
}

.story-impact {
    margin-top: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 16px;
}

.impact-title {
    font-weight: 900;
    margin-bottom: 10px;
}

.impact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding-left: 18px;
    margin: 0 0 12px;
    opacity: .95;
}

.impact-foot {
    margin: 0;
    opacity: .92;
    line-height: 1.6;
    font-size: 14.5px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn.pulse {
    position: relative;
    animation: softPulse 1.6s ease-in-out infinite;
}

@keyframes softPulse {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

.goal {
    margin-top: 14px;
    text-align: center;
}

.goal-label {
    opacity: .75;
    font-weight: 900;
    letter-spacing: .18em;
    font-size: 12px;
}

.goal-amount {
    font-size: clamp(32px, 4.8vw, 52px);
    font-weight: 900;
    margin-top: 6px;
}

.hero-scroll {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    opacity: .85;
    font-size: 13px;
}

    .hero-scroll .dot {
        width: 8px;
        height: 8px;
        border-radius: 99px;
        background: rgba(255,255,255,0.85);
        box-shadow: 0 0 0 8px rgba(255,255,255,0.08);
        animation: dotBounce 1.2s ease-in-out infinite;
    }

@keyframes dotBounce {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

/* =========================
   Sections / Cards
   ========================= */

.section {
    padding: 56px 0;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--softShadow);
}

.progress-card {
    padding: 24px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.h2 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: -.3px;
}

.muted {
    color: var(--muted);
}

.center {
    text-align: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f1f3f8;
    border: 1px solid rgba(0,0,0,.06);
    font-weight: 800;
    font-size: 13px;
}

.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 18px 0;
}

.stat {
    background: #f7f8fc;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    padding: 14px;
}

.stat-label {
    font-size: 12px;
    letter-spacing: .14em;
    color: rgba(10,16,28,.55);
    text-transform: uppercase;
}

.stat-value {
    font-size: 24px;
    font-weight: 900;
    margin-top: 6px;
}

.bar-wrap {
    height: 14px;
    border-radius: 999px;
    background: #e9ecf4;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
}

.bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,var(--accent),var(--accent2));
    border-radius: 999px;
}

.bar-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.urgent {
    font-weight: 900;
    color: #0b1220;
    background: rgba(244,194,79,.22);
    border: 1px solid rgba(244,194,79,.30);
    padding: 8px 10px;
    border-radius: 999px;
}

/* Quick donate buttons */
.quick {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,.06);
}

.quick-title {
    font-weight: 900;
    margin-bottom: 10px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 10px;
}

.qbtn {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
    background: #0b1220;
    color: #fff;
    font-weight: 900;
    padding: 12px 10px;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
    box-shadow: 0 10px 24px rgba(11,18,32,.10);
}

    .qbtn:hover {
        transform: translateY(-2px);
    }

    .qbtn:active {
        transform: translateY(0);
    }

    .qbtn.outline {
        background: #fff;
        color: #0b1220;
    }

    .qbtn.is-active {
        background: rgba(244,194,79,.95);
        color: #0b1220;
        border-color: rgba(244,194,79,.45);
    }

.quick-note {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(10,16,28,.65);
}

/* Photos */
.photo-row {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin-top: 18px;
}

.photo {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    background: #f3f5fa;
    min-height: 160px;
}

    .photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* =========================
   Needs section (the one in your screenshot)
   Uses ONE class: .needs-grid + .need-card
   ========================= */

.section-donate {
    padding: 0 0 22px;
}

    .section-donate h2 {
        margin: 0 0 10px;
        font-size: clamp(18px, 2.2vw, 26px);
        letter-spacing: .2px;
    }

    .section-donate .sub {
        margin: 0 0 16px;
        color: rgba(11,18,32,.68);
    }

.needs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    align-items: stretch;
}

.need-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,.05);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 86px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .need-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(0,0,0,.08);
        border-color: rgba(0,0,0,.10);
    }

    .need-card.tap {
        transform: translateY(-1px) scale(.99);
    }

    .need-card .icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        background: rgba(11,18,32,.06);
        display: grid;
        place-items: center;
        flex: 0 0 auto;
    }

    .need-card h3 {
        margin: 0;
        font-size: 15px;
        line-height: 1.15;
    }

    .need-card p {
        margin: 6px 0 0 0;
        color: rgba(11,18,32,.62);
        font-size: 13px;
        line-height: 1.25;
    }

/* Donation panel below */
.donate-panel {
    margin-top: 18px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,.05);
}

.bundle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bundle-btn {
    width: 100%;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(11,18,32,.03);
    color: var(--text);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
    min-height: 48px;
    font-weight: 800;
}

    .bundle-btn:hover {
        transform: translateY(-1px);
        background: rgba(11,18,32,.05);
        border-color: rgba(0,0,0,.12);
    }

    .bundle-btn.is-active {
        background: rgba(244,194,79,.18);
        border-color: rgba(244,194,79,.40);
    }

/* CTA */
.donate-cta {
    margin-top: 14px;
    display: grid;
    gap: 6px;
    justify-items: center;
}

#donateLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
    background: var(--accent);
    color: #0b1220;
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
    transition: transform .18s ease, filter .18s ease;
}

    #donateLink:hover {
        transform: translateY(-1px);
        filter: brightness(1.03);
    }

    #donateLink:active {
        transform: translateY(0);
    }

.donate-sub {
    font-size: 12px;
    color: rgba(11,18,32,.62);
}

/* =========================
   Gallery
   ========================= */

.gallery-wrap {
    margin-top: 18px;
}

.gallery-head h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
}

.gallery-head p {
    margin: 0 0 12px 0;
    opacity: .8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.g-item {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f5f7;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
}

    .g-item img {
        width: 100%;
        height: 210px;
        object-fit: cover;
        display: block;
        transform: scale(1);
        transition: transform .25s ease;
    }

    .g-item:hover img {
        transform: scale(1.04);
    }

.video-item {
    position: relative;
}

    .video-item video {
        width: 100%;
        height: 210px;
        object-fit: cover;
        border-radius: 16px;
        display: block;
    }

    .video-item::after {
        content: "▶";
        position: absolute;
        right: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: rgba(0,0,0,.55);
        color: #fff;
        font-weight: 900;
        border: 1px solid rgba(255,255,255,.18);
        backdrop-filter: blur(8px);
        pointer-events: none;
    }

/* Ghost button visible on dark hero */
.hero .ghost {
    color: rgba(255,255,255,.92);
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
}

    .hero .ghost:hover {
        background: rgba(255,255,255,.10);
        border-color: rgba(255,255,255,.26);
    }

/* =========================
   Dark section / proof
   ========================= */

.dark {
    background: linear-gradient(180deg,var(--hero2),var(--hero1));
    color: #fff;
}

.dark-card {
    border-radius: 22px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.20);
    box-shadow: var(--shadow);
}

.kicker {
    letter-spacing: .2em;
    font-size: 12px;
    opacity: .72;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-top: 16px;
}

.proof {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    transition: transform .16s ease, background .16s ease;
    cursor: pointer;
}

    .proof:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,.08);
    }

.small {
    font-size: 12px;
    opacity: .78;
}

/* =========================
   Footer
   ========================= */

.footer {
    padding: 26px 0;
    background: #0b1220;
    color: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 14px;
}

    .footer-links a {
        opacity: .85;
    }

        .footer-links a:hover {
            opacity: 1;
        }

/* =========================
   Reveal animation (used by JS)
   ========================= */

.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: transform 520ms ease, opacity 520ms ease;
}

    .reveal.reveal-in {
        opacity: 1;
        transform: translateY(0);
    }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .btn.pulse,
    .hero-scroll .dot {
        animation: none !important;
    }

    .reveal {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .g-item img, .video-item video {
        height: 190px;
    }

    .needs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bundle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .photo-row {
        grid-template-columns: 1fr;
    }

    .proof-grid {
        grid-template-columns: 1fr 1fr;
    }

    .drop-grid {
        grid-template-columns: 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 860px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

    .impact-list {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .g-item img {
        height: 220px;
    }

    .needs-grid {
        grid-template-columns: 1fr;
    }

    .bundle-grid {
        grid-template-columns: 1fr;
    }

    /* Sticky CTA on mobile (conversion) */
    .donate-cta {
        position: sticky;
        bottom: 10px;
        z-index: 50;
        padding-bottom: 10px;
    }
}
