/* Roots Charity - Global Design System */
:root {
    --roots-primary: #0D382B;
    --roots-primary-dark: #07231A;
    --roots-primary-light: #165340;
    --roots-accent: #EAB308;
    --roots-accent-hover: #CA8A04;
    --roots-accent-warm: #D97706;
    --roots-bg-light: #F8FAF8;
    --roots-bg-card: #FFFFFF;
    --roots-text-main: #0F172A;
    --roots-text-muted: #475569;
    --roots-border: #E2E8F0;
    --roots-radius: 12px;
    --roots-shadow: 0 10px 25px -5px rgba(13, 56, 43, 0.08), 0 8px 10px -6px rgba(13, 56, 43, 0.04);
    --roots-shadow-lg: 0 20px 35px -10px rgba(13, 56, 43, 0.15);
    --roots-font-heading: 'Outfit', sans-serif;
    --roots-font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    font-family: var(--roots-font-body);
    color: var(--roots-text-main);
    background-color: var(--roots-bg-light);
    line-height: 1.65;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--roots-font-heading);
    color: var(--roots-primary);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 0;
}

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

/* Buttons */
.roots-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--roots-font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.roots-btn-donate, .roots-btn-gold {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.roots-btn-donate:hover, .roots-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.45);
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
}

.roots-btn-primary {
    background-color: var(--roots-primary);
    color: #FFFFFF !important;
}

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

.roots-btn-outline {
    background: transparent;
    color: var(--roots-primary) !important;
    border: 2px solid var(--roots-primary);
}

.roots-btn-outline:hover {
    background-color: var(--roots-primary);
    color: #FFFFFF !important;
}

/* Header Styles */
.roots-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.roots-topbar {
    background-color: var(--roots-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.roots-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roots-topbar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.roots-topbar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.roots-topbar a:hover {
    color: var(--roots-accent);
}

.roots-tax-exempt {
    background-color: rgba(234, 179, 8, 0.2);
    color: #FDE047;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.roots-navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.roots-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--roots-primary);
}

.roots-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--roots-primary) 0%, var(--roots-primary-light) 100%);
    color: #FBBF24;
    border-radius: 12px;
}

.roots-brand-text {
    font-family: var(--roots-font-heading);
    font-size: 24px;
    letter-spacing: -0.5px;
}

.roots-brand-text strong {
    color: var(--roots-primary);
    font-weight: 800;
}

.roots-brand-text span {
    color: var(--roots-accent-warm);
    font-weight: 600;
    margin-left: 3px;
}

.roots-nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.roots-nav-list a {
    text-decoration: none;
    color: var(--roots-text-main);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
    padding: 6px 0;
}

.roots-nav-list a:hover {
    color: var(--roots-accent-warm);
}

.roots-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.roots-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.roots-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--roots-primary);
    border-radius: 2px;
}

/* Footer Styles */
.roots-footer {
    background-color: #081C15;
    color: #E2E8F0;
    margin-top: 80px;
}

.roots-footer-top {
    padding: 80px 0 60px;
}

.roots-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.8fr;
    gap: 48px;
}

.roots-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.roots-footer-desc {
    color: #94A3B8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.roots-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.roots-footer-heading {
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.roots-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background-color: var(--roots-accent);
    border-radius: 2px;
}

.roots-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roots-footer-links li {
    margin-bottom: 12px;
}

.roots-footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.roots-footer-links a:hover {
    color: #FBBF24;
    padding-left: 5px;
}

.roots-newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.roots-newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
}

.roots-newsletter-form input:focus {
    border-color: var(--roots-accent);
}

.roots-footer-contact p {
    font-size: 13px;
    color: #CBD5E1;
    margin: 6px 0;
}

.roots-footer-bottom {
    background-color: #04100C;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
}

.roots-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748B;
}

.roots-legal-links a {
    color: #94A3B8;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

.roots-legal-links a:hover {
    color: #FBBF24;
}

/* UI Components for Charity Pages */
.hero-charity {
    position: relative;
    padding: 100px 0 120px;
    background: linear-gradient(135deg, #09271E 0%, #134E4A 100%);
    color: #FFFFFF;
    overflow: hidden;
}

.hero-charity::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.7;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FCD34D;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-title {
    color: #FFFFFF;
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-title span {
    color: #F59E0B;
}

.hero-subtext {
    font-size: 18px;
    color: #E2E8F0;
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Quick Donate Card in Hero */
.hero-donate-card {
    background: #FFFFFF;
    color: var(--roots-text-main);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.hero-donate-card h3 {
    font-size: 22px;
    color: var(--roots-primary);
    margin-bottom: 8px;
}

.hero-donate-card p {
    color: var(--roots-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.donation-tier-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.tier-btn {
    border: 2px solid #E2E8F0;
    background: #F8FAFC;
    color: var(--roots-primary);
    font-weight: 700;
    font-size: 16px;
    padding: 12px 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.tier-btn.active, .tier-btn:hover {
    border-color: var(--roots-accent-warm);
    background: #FFFBEB;
    color: var(--roots-accent-warm);
}

/* Impact Counters */
.impact-counters-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--roots-shadow-lg);
}

.counter-item {
    text-align: center;
    border-right: 1px solid #E2E8F0;
    padding: 0 16px;
}

.counter-item:last-child {
    border-right: none;
}

.counter-number {
    font-family: var(--roots-font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--roots-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.counter-label {
    font-size: 14px;
    color: var(--roots-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Campaign Cards */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.campaign-card {
    background: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--roots-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--roots-shadow-lg);
}

.campaign-thumb-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.campaign-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.campaign-card:hover .campaign-thumb {
    transform: scale(1.05);
}

.campaign-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(13, 56, 43, 0.9);
    color: #FDE047;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.campaign-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.campaign-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.campaign-title a {
    color: var(--roots-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.campaign-title a:hover {
    color: var(--roots-accent-warm);
}

.campaign-desc {
    color: var(--roots-text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.campaign-progress-wrap {
    margin-bottom: 20px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}

.progress-raised strong {
    color: var(--roots-primary);
    font-size: 16px;
}

.progress-bar-bg {
    width: 100%;
    height: 9px;
    background-color: #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    border-radius: 10px;
}

/* How It Works Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.step-card {
    background: #FFFFFF;
    padding: 36px 28px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    text-align: center;
    position: relative;
    box-shadow: var(--roots-shadow);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--roots-accent);
    color: var(--roots-primary-dark);
    font-weight: 800;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 14px;
    color: var(--roots-text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .roots-nav { display: none; }
    .roots-menu-toggle { display: flex; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 38px; }
    .counters-grid { grid-template-columns: repeat(2, 1fr); }
    .counter-item { border-right: none; margin-bottom: 20px; }
    .campaigns-grid { grid-template-columns: repeat(2, 1fr); }
    .roots-footer-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .roots-topbar { display: none; }
    .counters-grid { grid-template-columns: 1fr; }
    .campaigns-grid { grid-template-columns: 1fr; }
    .roots-footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 32px; }
}
