/* ========================================
   AR Foundation - Custom Styles
   Colors matched to official logo
   ======================================== */

:root {
    /* Logo-inspired colors */
    --primary: #1a365d;          /* Deep navy blue (logo text) */
    --primary-dark: #0f2744;
    --secondary: #2d9b8c;        /* Teal / green from logo arcs */
    --accent: #c9a227;           /* Gold / mustard from hands */
    --accent-light: #e8c84a;
    --dark: #1a1a2e;
    --light: #f7f9fc;
    --text: #2d3748;
    --text-muted: #718096;
    
    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.section-padding {
    padding: 90px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-subtitle {
    max-width: 620px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ===== NAVBAR ===== */
#mainNav {
    background: transparent;
    padding: 15px 0;
    transition: all 0.3s ease;
}

#mainNav.scrolled,
#mainNav.solid {
    background: rgba(26, 54, 93, 0.97);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: white !important;
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

.navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.navbar-brand .brand-text small {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--accent-light);
    font-family: var(--font-main);
}

.nav-link {
    color: rgba(255,255,255,0.92) !important;
    font-weight: 500;
    margin: 0 6px;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-donate {
    background: var(--accent);
    color: var(--primary) !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    font-size: 0.9rem;
}

.btn-donate:hover {
    background: var(--accent-light);
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a365d 0%, #1e4a6e 40%, #2d6a7a 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(45, 155, 140, 0.25), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    color: white;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 700;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.92;
    max-width: 580px;
    margin-bottom: 32px;
    font-weight: 300;
    color: white;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

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

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.scroll-down {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down a {
    color: white;
    font-size: 1.7rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===== PAGE HEADER (for inner pages) ===== */
.page-header {
    background: linear-gradient(135deg, #1a365d 0%, #1e4a6e 60%, #2d6a7a 100%);
    padding: 140px 0 70px;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
}

.stat-box {
    background: var(--light);
    padding: 22px;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid var(--secondary);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== PROGRAMS ===== */
.program-card {
    background: white;
    padding: 36px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

.program-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--secondary), #3bb8a8);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 1.7rem;
    color: white;
}

.program-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.program-card p {
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 0.98rem;
}

.program-list {
    list-style: none;
    padding: 0;
}

.program-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 7px;
    font-size: 0.93rem;
}

.program-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.additional-programs {
    background: linear-gradient(135deg, #e6f5f3, #f0faf8);
    border: 1px solid #c5e8e3;
}

/* ===== IMPACT ===== */
.impact-section {
    background: linear-gradient(135deg, #1a365d 0%, #1e4a6e 50%, #2d6a7a 100%);
    color: white;
}

.impact-item h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--font-main);
    color: var(--accent-light);
}

.impact-item p {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* ===== GET INVOLVED ===== */
.involve-card {
    background: white;
    padding: 36px 28px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s;
    height: 100%;
}

.involve-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}

.involve-icon {
    width: 76px;
    height: 76px;
    background: rgba(45, 155, 140, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 1.9rem;
    color: var(--secondary);
}

.involve-card h4 {
    margin-bottom: 12px;
    color: var(--primary);
}

.involve-card p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== DONATE ===== */
.donate-box {
    background: white;
    border: 2px solid #e9ecef;
}

.bank-details {
    background: #f8f9fa;
    padding: 22px;
    border-radius: 12px;
    max-width: 420px;
    border-left: 4px solid var(--secondary);
    text-align: left;
}

/* ===== CONTACT ===== */
.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(45, 155, 140, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--secondary);
    margin-right: 14px;
    flex-shrink: 0;
}

.contact-item h5 {
    font-size: 1.05rem;
    margin-bottom: 3px;
    color: var(--primary);
}

.contact-item p {
    color: var(--text-muted);
}

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

.social-btn {
    width: 44px;
    height: 44px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.15rem;
}

.social-btn:hover {
    background: var(--secondary);
    color: white;
}

.contact-form .form-control {
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    font-size: 0.98rem;
}

.contact-form .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(45, 155, 140, 0.18);
}

.form-success {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-error {
    display: none;
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-grid figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.gallery-grid figure:hover img {
    transform: scale(1.06);
    opacity: 0.85;
}

.gallery-grid figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px;
    color: white;
    font-size: 0.9rem;
    background: linear-gradient(transparent, rgba(15, 39, 68, 0.85));
}

/* ===== LIGHTBOX ===== */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 39, 68, 0.94);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#lightbox.open {
    display: flex;
}

#lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

#lightbox-caption {
    color: white;
    margin: 16px 0 0;
    text-align: center;
}

#lightbox .close-btn {
    position: absolute;
    top: 14px;
    right: 22px;
    background: none;
    border: 0;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

#lightbox .close-btn:hover {
    color: var(--accent-light);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    padding: 60px 0 25px;
}

.footer-brand {
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    height: 42px;
}

.footer h5 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 16px;
    font-family: var(--font-main);
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.75);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-divider {
    border-color: rgba(255,255,255,0.12);
    margin: 35px 0 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    #mainNav {
        background: rgba(26, 54, 93, 0.97);
    }
    
    .nav-link {
        margin: 6px 0;
    }
    
    .btn-donate {
        margin-top: 8px;
        display: inline-block;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.95rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 65px 0;
    }
    
    .page-header {
        padding: 120px 0 50px;
    }
    
    .page-header h1 {
        font-size: 2.1rem;
    }
    
    .impact-item h3 {
        font-size: 2.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-buttons .me-3 {
        margin-right: 0 !important;
    }
}
