/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    height: 480px;
    background: linear-gradient(135deg, #1a4332 0%, #2d6a4f 50%, #40916c 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}

.hero-overlay {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 0.9rem 2.5rem;
    background: #fff;
    color: #1a4332;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-hero-primary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    padding: 0.9rem 2.5rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ===== Features Strip ===== */
.features-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
    margin-top: -40px;
    margin-left: 2rem;
    margin-right: 2rem;
    border-radius: 12px;
    overflow: hidden;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 2rem;
    flex: 1;
    min-width: 220px;
    border-right: 1px solid #f0f0f0;
}

.feature-item:last-child {
    border-right: none;
}

.feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 0.9rem;
    color: #1a1a1a;
}

.feature-text span {
    font-size: 0.8rem;
    color: #666;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* ===== Categories Section ===== */
.categories-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.category-tile {
    width: 240px;
    background: #f0fdf4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.tile-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--tile-color, #2d6a4f);
    position: relative;
}

.tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--tile-color, #2d6a4f) 0%, transparent 60%);
    opacity: 0.85;
}

.tile-content {
    padding: 1.5rem;
    position: relative;
}

.tile-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    position: relative;
}

.tile-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0.8rem 0 0.5rem;
}

.tile-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tile-count {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: #f0fdf4;
    color: var(--tile-color, #2d6a4f);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== Why Section ===== */
.why-section {
    padding: 5rem 2rem;
    background: #f8faf9;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.why-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e8ede9;
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: #2d6a4f;
    box-shadow: 0 4px 20px rgba(45,106,79,0.1);
}

.why-number {
    font-size: 2rem;
    font-weight: 800;
    color: #d4edda;
    margin-bottom: 0.8rem;
}

.why-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1a4332 0%, #2d6a4f 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.8rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: #fff;
    color: #1a4332;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-cta:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

/* ===== Footer ===== */
.site-footer {
    background: #0d1b12;
    color: #ccc;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1a2e1f;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #888;
    font-size: 0.9rem;
}

.footer-initiative {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.4rem;
    letter-spacing: 0.3px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #4ade80;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #aaa;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #555;
}

/* ===== Categories Loading, Error, Empty States ===== */
.categories-loading,
.categories-error,
.categories-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.categories-loading .spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e9ecef;
    border-top-color: #2d6a4f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.categories-loading p,
.categories-empty p {
    margin-top: 1rem;
    color: #666;
    font-size: 1rem;
}

.categories-error .error-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.categories-error p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.btn-retry {
    padding: 0.6rem 1.5rem;
    background: #2d6a4f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-retry:hover {
    background: #1b4332;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-section {
        height: 420px;
    }

    .features-strip {
        margin-left: 1rem;
        margin-right: 1rem;
        flex-direction: column;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        justify-content: center;
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    .categories-grid {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .categories-section {
        padding: 3rem 1rem;
    }

    .why-section {
        padding: 3rem 1rem;
    }
}

.footer-root {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0.7;
}
