/* ============================================
   CSS Variables & Resets
============================================ */
:root {
    --primary-color: #59886b;
    --secondary-color: #06d6a0;
    --dark-color: #132e2e;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #6c757d;
    --border-color: #dee2e6;
    --success-color: #06d6a0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

img { max-width: 100%; height: auto; }

/* ============================================
   Header
============================================ */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
}

.brand-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.brand-text span { color: var(--primary-color); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(89,136,107,0.08);
}

.btn-donate-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-donate-header:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(19,46,46,0.3);
}

.currency-toggle {
    display: flex;
    gap: 6px;
}

.currency-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
}

.currency-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.currency-btn:hover { border-color: var(--primary-color); }

.nav-actions { display: flex; align-items: center; gap: 15px; }

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* ============================================
   Hero Section
============================================ */
.hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1e4a4a 50%, #2a6060 100%);
    padding: 90px 2rem 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6,214,160,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(89,136,107,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6,214,160,0.15);
    border: 1px solid rgba(6,214,160,0.3);
    color: var(--secondary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span { color: var(--secondary-color); }

.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    margin-bottom: 35px;
    line-height: 1.7;
}

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

.btn-primary-hero {
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6,214,160,0.4);
}

.btn-outline-hero {
    background: transparent;
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.btn-outline-hero:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item { text-align: center; }

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* Hero Card Stack */
.hero-visual { position: relative; }

.hero-card-stack {
    position: relative;
    height: 380px;
}

.hero-campaign-card {
    background: var(--white);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: absolute;
    width: 280px;
    transition: all 0.3s;
}

.hero-campaign-card.card-main { top: 0; left: 0; z-index: 3; }
.hero-campaign-card.card-mid  { top: 40px; left: 50px; z-index: 2; opacity: 0.85; }
.hero-campaign-card.card-back { top: 80px; left: 100px; z-index: 1; opacity: 0.6; }

.card-category {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: rgba(89,136,107,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-img-placeholder {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.card-img-placeholder.green { background: linear-gradient(135deg, #e8f5ee, #c8e6d5); }
.card-img-placeholder.blue  { background: linear-gradient(135deg, #e8f0ff, #c8d9ff); }

.card-progress-bar {
    background: var(--light-color);
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.card-raised { font-weight: 700; color: var(--primary-color); }
.card-pct    { font-weight: 600; color: var(--gray); }

.floating-badge {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: var(--white);
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.badge-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.badge-text { font-size: 0.75rem; }
.badge-text strong { display: block; color: var(--dark-color); font-weight: 700; }
.badge-text span   { color: var(--gray); }

/* ============================================
   Shared Section Styles
============================================ */
.section { padding: 80px 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    margin: 0 auto 20px;
}

/* ============================================
   How It Works
============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--primary-color);
    position: relative;
    transition: all 0.3s;
}

.step-card:hover .step-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step-num {
    position: absolute;
    top: -8px; right: -8px;
    width: 22px; height: 22px;
    background: var(--secondary-color);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title { font-weight: 700; font-size: 1rem; color: var(--dark-color); margin-bottom: 8px; }
.step-desc  { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* ============================================
   Why Us
============================================ */
.why-section {
    background: var(--dark-color);
    padding: 80px 2rem;
}

.why-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-content .section-label { text-align: left; }
.why-content .section-title { text-align: left; color: white; }
.why-content .divider { margin: 0 0 20px; }

.why-lead {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 35px;
}

.why-features { display: flex; flex-direction: column; gap: 20px; }

.why-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s;
}

.why-feature:hover {
    background: rgba(89,136,107,0.15);
    border-color: rgba(89,136,107,0.3);
}

.why-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-feature-text h4 { color: white; font-weight: 600; margin-bottom: 4px; font-size: 0.95rem; }
.why-feature-text p  { color: rgba(255,255,255,0.6); font-size: 0.85rem; line-height: 1.6; }

.why-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.why-stat-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
}

.why-stat-box:hover {
    background: rgba(89,136,107,0.2);
    border-color: var(--primary-color);
}

.why-stat-box:first-child { grid-column: 1 / -1; }

.why-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 6px;
}

.why-stat-label { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* ============================================
   Active Campaigns
============================================ */
.campaigns-section { background: var(--light-color); }

.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 50px;
}

.campaign-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.campaign-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.campaign-card-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.campaign-card-img-placeholder.green { background: linear-gradient(135deg, #e8f5ee, #c8e6d5); }
.campaign-card-img-placeholder.blue  { background: linear-gradient(135deg, #e8f0ff, #c8d9ff); }
.campaign-card-img-placeholder.peach { background: linear-gradient(135deg, #fff3e8, #ffe0c8); }
.campaign-card-img-placeholder.pink  { background: linear-gradient(135deg, #ffeef0, #ffd8dc); }

.campaign-card-body { padding: 22px; }

.campaign-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: rgba(89,136,107,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.campaign-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.campaign-progress {
    background: var(--light-color);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.campaign-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.campaign-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.campaign-raised { font-weight: 700; color: var(--primary-color); font-size: 1rem; }
.campaign-pct    { font-weight: 600; color: var(--gray); }

.campaign-days {
    background: var(--light-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--dark-color);
}

.campaigns-cta { text-align: center; }

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--primary-color);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    transition: all 0.3s;
}

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

/* ============================================
   CTA Section
============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #3d6b52);
    padding: 80px 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(6,214,160,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 35px;
    line-height: 1.7;
}

.cta-actions { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

.btn-cta-white {
    background: white;
    color: var(--primary-color);
    padding: 15px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    padding: 15px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.btn-cta-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* ============================================
   Footer
============================================ */
.site-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 2rem 0;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 16px;
}

.footer-logo-text { font-weight: 700; font-size: 1.1rem; color: white; }

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links { display: flex; gap: 10px; }

.social-links a {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.footer-heading::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    margin-top: 8px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-address {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-address p { margin-bottom: 8px; }
.footer-address i { color: var(--secondary-color); margin-right: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin: 0; }

.footer-payment { display: flex; align-items: center; gap: 10px; }

.pay-badge {
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.5px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
    .hero-inner { gap: 40px; }
    .hero-title { font-size: 2.6rem; }
    .campaigns-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; left: 0; right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .hamburger { display: block; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .why-inner { grid-template-columns: 1fr; }
    .why-visual { display: none; }
    .campaigns-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .hero-title { font-size: 2rem; }
    .cta-title { font-size: 2rem; }
    .section-title { font-size: 1.9rem; }
}

@media (max-width: 480px) {
    .hero { padding: 60px 1.5rem; }
    .section { padding: 60px 1.5rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .navbar { padding: 1rem 1.5rem; }
}
