:root {
    --primary-orange: #7D4E2B;
    --forest-green: #3A5F0B;
    --warm-beige: #F5F1E6;
    --charcoal: #2C2C2C;
}

/*
README: style.css sectioning and conventions

- This file centralizes all CSS for the site.
- Section headers use clear CSS comments like:
    /* ================= About CSS ================= *-/
- Page-specific background overrides use a body[data-page="<slug>"] selector
    (e.g. body[data-page="about"] .hero-banner) so each page can keep
    its unique hero image without duplicating global selectors.
- Keep global/shared rules at the top. Add page-specific rules in labeled
    sections below. Avoid duplicating selectors; keep the first/global definition
    and add only unique selectors in each section.

*/

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--warm-beige);
    color: var(--charcoal);
}

.font-display {
    font-family: 'Poppins', sans-serif;
}

.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('resources/hero-landscape.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-banner {
    /* Generic hero styles - each page can override the background via
       body[data-page="<slug>"] .hero-banner to set a page-specific image. */
    background-size: cover;
    background-position: center;
    height: 40vh;
    min-height: 300px;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.project-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-section {
    padding: 5rem 0;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-orange);
}

.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #6B4224;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(125, 78, 43, 0.3);
}

.btn-secondary {
    background-color: var(--forest-green);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #2D4A08;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 95, 11, 0.3);
}

.cost-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.impact-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .counter-number {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .project-section {
        padding: 3rem 0;
    }
}

/* ================= About CSS ================= */
/* Page-specific (About) styles. Only include selectors unique to the
   About page here. Shared/global selectors are kept earlier in the file.
*/

body[data-page="about"] .hero-banner {
    /* About page uses the shared hero landscape image per request */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('resources/hero-landscape.jpg');
}

/* Adjust founder portrait positioning so the face is visible inside the fixed-height box */
body[data-page="about"] .founder-portrait {
    object-position: center 10%; /* move image down inside the box */
    object-fit: cover; /* ensure cropping behavior remains cover */
}

body[data-page="index"] .founder-portrait {
    object-position: center 6%; /* move image down inside the box */
    object-fit: cover; /* ensure cropping behavior remains cover */
}

.value-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background-color: #f9f9f9;
}

.timeline-item.active {
    background-color: #fef3e2;
    border-left: 4px solid var(--primary-orange);
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* ================= Contact CSS ================= */
body[data-page="contact"] .hero-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('resources/retreat-1.jpg');
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.map-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 40;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .map-container { height: 300px; }
}

/* ================= Get Involved CSS ================= */
body[data-page="get-involved"] .hero-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('resources/youth-group.png');
}

.donation-card { background: white; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.donation-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

.donation-amount { background: white; border: 2px solid #e5e7eb; border-radius: 8px; padding: 1rem; text-align: center; cursor: pointer; transition: all 0.3s ease; }
.donation-amount:hover { border-color: var(--primary-orange); background-color: #fef3e2; }
.donation-amount.selected { background-color: var(--primary-orange); color: white; border-color: var(--primary-orange); }

.toggle-switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary-orange); }
input:checked + .slider:before { transform: translateX(26px); }

@media (max-width: 768px) { .section-padding { padding: 3rem 0; } }

/* ================= Projects CSS ================= */
body[data-page="projects"] .hero-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('resources/retreat-lodge.png');
}

/* ================= Impact CSS ================= */
body[data-page="impact"] .hero-banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('resources/youth-group.png');
}

.youth-story { background: white; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: all 0.3s ease; }
.carousel-controls button { transition: all 0.3s ease; }
.carousel-controls button:hover { transform: scale(1.1); }
.budget-chart-container { background: white; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

