/*
Theme Name: Chairy Foundation Pro
Author: Vineet
Version: 6.0 (The Ultimate Master Fix)
*/

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #f39c12; /* Seva Orange */
    --secondary-color: #2c3e50; /* Deep Blue */
    --text-dark: #333333;
    --text-light: #777777;
    --white: #ffffff;
}

html, body {
    margin: 0; padding: 0;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden; 
    width: 100%;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

h1, h2, h3 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; letter-spacing: 1px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
section { padding: 80px 0 !important; }

/* =========================================
   2. HEADER & NAVIGATION (Perfect Layout)
   ========================================= */
.site-header {
    background: var(--white);
    padding: 12px 0;
    position: sticky; top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-wrapper {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.logo-group {
    display: flex; align-items: center; text-decoration: none; gap: 12px;
}

.header-logo-img { height: 50px; width: auto; }

.site-title {
    font-size: 1.6rem; font-weight: 800; color: var(--secondary-color); margin: 0;
}
.site-title span { font-weight: 300; color: var(--primary-color); margin-left: 4px; }

.nav-container { display: flex; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; }
.nav-links li a { 
    text-decoration: none; color: var(--secondary-color); 
    font-weight: 700; font-size: 0.9rem; text-transform: uppercase; transition: 0.3s;
}
.nav-links li a:hover { color: var(--primary-color); }

.header-donate { margin-left: 20px; }

/* =========================================
   3. HOME PAGE (Hero, Stats, Mission)
   ========================================= */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=2070') no-repeat center center/cover;
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.hero-content h1 { font-size: 4rem; margin-bottom: 20px; line-height: 1.1; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin: auto; }

.impact-stats { background: #f9f9f9; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.stat-card { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.stat-card h3 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }

.grid-2, .responsive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mission-image img { width: 100%; border-radius: 15px; box-shadow: 20px 20px 0px var(--primary-color); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.project-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: 0.3s; }
.project-card:hover { transform: translateY(-10px); }
.project-img img { width: 100%; height: 250px; object-fit: cover; }

/* =========================================
   4. ABOUT US PAGE (RESTORED COMPLETELY)
   ========================================= */
.photo-frame {
    background: #fdf2e2; height: 450px; width: 100%; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--primary-color); box-shadow: 0 10px 30px rgba(0,0,0,0.1); overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Statutory Objectives Cards */
.object-card {
    background: #fff; padding: 40px; border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-bottom: 4px solid transparent; transition: 0.3s;
}
.object-card:hover { border-color: var(--primary-color); }
.object-card ul { list-style: none; padding: 0; margin-top: 20px; }
.object-card ul li { margin-bottom: 10px; padding-left: 20px; position: relative; font-size: 0.95rem; }
.object-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--primary-color); }

/* Board of Directors Styles */
.directors-flex { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.director-profile { text-align: center; width: 280px; }
.avatar-placeholder {
    width: 80px; height: 80px; background: var(--secondary-color); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px; font-size: 1.5rem; font-weight: bold;
}
.role { color: var(--primary-color); font-weight: bold; font-size: 0.9rem; text-transform: uppercase; }

/* =========================================
   5. FOOTER & BUTTONS
   ========================================= */
.site-footer { background: var(--secondary-color); color: #ecf0f1; padding: 60px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }

.donate-nav {
    background-color: var(--primary-color) !important; color: #fff !important;
    padding: 12px 30px !important; border-radius: 50px !important; text-decoration: none !important;
    font-weight: bold !important; display: inline-block !important; text-transform: uppercase !important;
}

/* =========================================
   6. MOBILE RESPONSIVENESS (THE BULLETPROOF FIX)
   ========================================= */
.menu-toggle, .close-drawer { display: none; }

@media (max-width: 991px) {
    /* Mobile Hamburger */
    .menu-toggle {
        display: flex !important; flex-direction: column; gap: 5px;
        background: none; border: none; cursor: pointer; padding: 5px; z-index: 1001;
    }
    .menu-toggle span { width: 28px; height: 3px; background: var(--secondary-color); }

    /* The Drawer */
    .nav-container {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: #fff; flex-direction: column; justify-content: flex-start;
        padding: 80px 20px; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s ease; z-index: 2000;
    }
    .nav-container.open { right: 0 !important; }

    /* Close Button */
    .close-drawer {
        display: block !important; position: absolute; top: 20px; right: 20px;
        font-size: 40px; border: none; background: none; color: #333; cursor: pointer;
    }

    /* Mobile Links Formatting */
    .nav-links { flex-direction: column; width: 100%; }
    .nav-links li { margin: 15px 0; border-bottom: 1px solid #eee; padding-bottom: 10px; }
    .header-donate { margin-top: 20px; margin-left: 0; text-align: center; }

    /* ALL Grids to Single Column on Mobile */
    .grid-2, .responsive-grid, .stats-grid, .project-grid, .footer-grid, .directors-flex {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
    }
    
    .object-card ul { text-align: left; } /* Keep list items left-aligned on mobile */
    .mission-image img { box-shadow: none; }
    .photo-frame { height: 300px; }
}

@media (max-width: 480px) {
    .site-title { font-size: 1.1rem; }
    .header-logo-img { height: 40px; }
    .logo-group { gap: 6px; }
    .hero-content h1 { font-size: 2rem; line-height: 1.2; }
}