/* =========================================================
   CARBON SETU FOUNDATION — Design System v2 (Modern + Animated)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --forest: #0F3D2E;
    --forest-deep: #082820;
    --green: #2F8F67;
    --green-bright: #3CAE7E;
    --green-soft: #E7F4ED;
    --gold: #D4A017;
    --gold-bright: #F0C75E;
    --gold-soft: #FBF1D9;
    --cream: #F7F6F1;
    --white: #FFFFFF;
    --ink: #16211C;
    --ink-soft: #57685F;
    --line: #E3E0D4;

    --font-head: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container: 1280px;
    --radius: 14px;
    --radius-sm: 8px;

    --shadow-sm: 0 2px 10px rgba(15, 61, 46, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 61, 46, 0.10);
    --shadow-lg: 0 24px 60px rgba(15, 61, 46, 0.16);

    --grad-forest: linear-gradient(135deg, #0F3D2E 0%, #1B5E45 55%, #2F8F67 100%);
    --grad-gold: linear-gradient(120deg, #D4A017 0%, #F0C75E 100%);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--forest);
    line-height: 1.2;
    margin: 0 0 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 16px; max-width: 68ch; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; position: relative; }
section.tight { padding: 56px 0; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-tag:before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--gold);
    display: inline-block;
}

.bg-cream { background: var(--cream); }
.bg-forest { background: var(--grad-forest); color: var(--white); }
.bg-forest h1, .bg-forest h2, .bg-forest h3 { color: var(--white); }
.bg-forest p { color: rgba(255,255,255,0.82); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in { transition-delay: .08s; }
.reveal-delay-2.in { transition-delay: .16s; }
.reveal-delay-3.in { transition-delay: .24s; }
.reveal-delay-4.in { transition-delay: .32s; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .3s var(--ease);
    position: relative;
    overflow: hidden;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--forest); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--forest-deep); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--white); transform: translateY(-2px); }

.btn-outline-light { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--forest); transform: translateY(-2px); }

.btn-donate {
    background: var(--grad-gold);
    color: var(--forest-deep);
    box-shadow: 0 8px 20px rgba(212, 160, 23, 0.35);
    font-weight: 700;
}
.btn-donate:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(212, 160, 23, 0.45); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header:before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--forest), var(--green-bright), var(--gold-bright));
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(15,61,46,0.08); border-color: var(--line); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 24px;
    max-width: var(--container);
    margin: 0 auto;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 22px; flex-shrink: 1; min-width: 0; }
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}
.main-nav a {
    font-size: 0.91rem;
    font-weight: 500;
    color: var(--ink);
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}
.main-nav a:after {
    content: "";
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width .3s var(--ease);
}
.main-nav a:hover:after, .main-nav a.active:after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--forest); }
.main-nav .btn-donate { flex-shrink: 0; white-space: nowrap; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--forest);
    flex-shrink: 0;
}

@media (max-width: 1180px) {
    .main-nav ul { gap: 15px; }
    .main-nav a { font-size: 0.87rem; }
    .btn.btn-donate { padding: 11px 20px; font-size: 0.88rem; }
}

@media (max-width: 1030px) {
    .header-inner { padding: 14px 20px; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s var(--ease);
        gap: 0;
        box-shadow: 0 12px 24px rgba(15,61,46,0.08);
    }
    .main-nav.open { max-height: 560px; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 12px; flex-wrap: wrap; }
    .main-nav ul li { border-top: 1px solid var(--line); width: 100%; }
    .main-nav ul li:first-child { border-top: none; }
    .main-nav a { display: block; padding: 13px 0; }
    .main-nav a:after { display: none; }
    .main-nav .btn-donate { margin: 12px 24px 18px; justify-content: center; }
    .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero-wrap { position: relative; overflow: hidden; }
.hero-wrap:before {
    content: "";
    position: absolute;
    top: -180px; right: -180px;
    width: 460px; height: 460px;
    background: var(--green-soft);
    border-radius: 50%;
    z-index: -1;
}
.hero-wrap:after {
    content: "";
    position: absolute;
    bottom: -140px; left: -120px;
    width: 320px; height: 320px;
    background: var(--gold-soft);
    border-radius: 50%;
    z-index: -1;
}
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    padding: 100px 0 90px;
}
.hero-copy p { font-size: 1.12rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-soft); color: var(--forest);
    padding: 8px 16px; border-radius: 100px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-media {
    position: relative;
    border-radius: 24px;
    min-height: 380px;
    background: var(--grad-forest);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-media .stat-chip {
    position: absolute;
    bottom: -22px; left: -22px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 12px;
}
.hero-media .stat-chip .icon-badge { background: var(--gold-soft); color: var(--gold); }
.hero-media .stat-chip strong { display: block; font-family: var(--font-head); color: var(--forest); font-size: 1.05rem; }
.hero-media .stat-chip span { font-size: 0.78rem; color: var(--ink-soft); }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; padding: 56px 0; }
    .hero-media { order: -1; min-height: 240px; }
    .hero-media .stat-chip { display: none; }
}

/* ---------- Icon badges ---------- */
.icon-badge {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-soft);
    color: var(--green);
    margin-bottom: 18px;
    transition: transform .35s var(--ease), background .35s ease, color .35s ease;
}
.icon-badge.gold { background: var(--gold-soft); color: var(--gold); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 30px 26px;
    border-radius: var(--radius);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s ease;
    position: relative;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover .icon-badge { transform: scale(1.1) rotate(-4deg); background: var(--forest); color: var(--white); }
.card:hover .icon-badge.gold { background: var(--gold); color: var(--white); }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

@media (max-width: 900px) { .card-grid, .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid, .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; } }

/* ---------- Value / check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    padding: 13px 0 13px 34px;
    position: relative;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    transition: padding-left .3s var(--ease), color .3s ease;
}
.check-list li:before {
    content: "";
    position: absolute; left: 0; top: 19px;
    width: 18px; height: 18px;
    background: var(--green-soft);
    border-radius: 5px;
}
.check-list li:after {
    content: "✓";
    position: absolute; left: 3px; top: 17px;
    color: var(--green);
    font-size: 0.7rem; font-weight: 800;
}
.check-list li:hover { padding-left: 40px; color: var(--forest); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Numbered work items ---------- */
.work-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left .35s var(--ease);
}
.work-item:hover { padding-left: 8px; }
.work-item .num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.9rem;
    -webkit-text-stroke: 1.4px var(--gold);
    color: transparent;
    transition: color .35s ease;
}
.work-item:hover .num { color: var(--gold-soft); }
.work-item .icon-badge { margin-bottom: 10px; }
.work-item h3 { margin-bottom: 6px; }
.work-item p { margin-bottom: 0; }

/* ---------- Stats strip ---------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
}
.stat-box {
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}
.stat-box .stat-num {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-bright);
    display: block;
}
.stat-box .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
@media (max-width: 760px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Timeline / process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; position: relative; }
.process-step { position: relative; padding: 0 20px; text-align: left; }
.process-step .step-circle {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--grad-forest);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.process-step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 23px; left: calc(20px + 46px);
    right: -20px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
@media (max-width: 900px) {
    .process-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
    .process-step:not(:last-child):after { display: none; }
}
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--grad-forest);
    color: var(--white);
    border-radius: 24px;
    padding: 56px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.cta-band:before {
    content: "";
    position: absolute; top: -80px; right: -60px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 0; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.form-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: var(--forest); }
.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--cream);
    transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(47, 143, 103, 0.12);
}
.form-msg { padding: 13px 17px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.form-msg.success { background: var(--green-soft); color: var(--forest); }
.form-msg.error { background: #FBE8E4; color: #9B3A2C; }

.btn-block {
    width: 100%; justify-content: center;
    padding: 15px; border: none; border-radius: var(--radius-sm);
    background: var(--grad-forest); color: var(--white);
    font-weight: 700; font-size: 0.98rem; cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s ease;
}
.btn-block:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Info blocks (donate/contact) ---------- */
.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem;
}
.info-list li .icon-badge { margin-bottom: 0; width: 40px; height: 40px; flex-shrink: 0; }
.info-list li strong { color: var(--forest); display: block; }

.notice {
    border-left: 3px solid var(--gold);
    background: var(--gold-soft);
    padding: 18px 22px;
    font-size: 0.92rem;
    color: var(--ink);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: flex; gap: 14px; align-items: flex-start;
}
.notice .icon-badge { margin-bottom: 0; background: var(--gold); color: var(--white); width: 38px; height: 38px; flex-shrink: 0; }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 4px; cursor: pointer; font-family: var(--font-head);
    font-weight: 600; color: var(--forest); font-size: 1.02rem;
}
.faq-q .plus { transition: transform .35s var(--ease); color: var(--gold); flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p { padding: 0 4px 20px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,0.75); padding: 64px 0 24px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.site-footer .logo { color: var(--white); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 11px; font-size: 0.92rem; }
.footer-grid a { transition: color .3s ease, padding-left .3s ease; display: inline-block; }
.footer-grid a:hover { color: var(--gold-bright); padding-left: 4px; }
.footer-bottom {
    max-width: var(--container); margin: 44px auto 0; padding: 22px 24px 0;
    border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px;
    background: #25D366; color: var(--white);
    width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    z-index: 90; animation: bob 2.4s ease-in-out infinite;
    transition: transform .3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
    background: var(--grad-forest);
    color: var(--white);
    padding: 76px 0 68px;
    position: relative;
    overflow: hidden;
}
.page-hero:before {
    content: "";
    position: absolute; top: -120px; right: -80px;
    width: 320px; height: 320px;
    background: rgba(255,255,255,0.06); border-radius: 50%;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.82); margin-bottom: 0; max-width: 62ch; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-bright); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
