/* ==========================================
   INCLUVA FOUNDATION - STYLESHEET
   Simple, clean, and beginner-friendly CSS.
   ========================================== */

/* --- General Reset & Page Setup --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    background-color: #f8fafc;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    color: #0f172a; /* Deep Navy */
    margin-bottom: 15px;
}

a {
    color: #1d4ed8; /* Royal Blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Accessibility Link --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #ffff00;
    color: #000;
    padding: 8px;
    z-index: 100;
}
.skip-link:focus {
    top: 10px;
}

/* --- Top Utility Bar --- */
.top-bar {
    background-color: #0f172a;
    color: #ffffff;
    padding: 10px 0;
    font-size: 0.875rem;
}

.top-bar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left a {
    color: #ffffff;
    margin-right: 15px;
}

.top-bar-left .sep {
    margin-right: 15px;
    color: #475569;
}

.top-bar-right button {
    background-color: #334155;
    border: none;
    color: white;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 4px;
}

.top-bar-right button:hover {
    background-color: #475569;
}

/* --- Header & Branding --- */
.header-main {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.brand-name {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f172a;
}

.brand-tagline {
    display: block;
    font-size: 0.8125rem;
    color: #1d4ed8;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-volunteer {
    background-color: #059669; /* Emerald Green */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
}

.btn-volunteer:hover {
    background-color: #047857;
    text-decoration: none;
}

/* --- Main Navigation Menu --- */
.navbar {
    background-color: #0f172a;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

#mobileMenu {
    display: none; /* Hidden on desktop */
}

#desktopMenu {
    display: flex;
    list-style: none;
}

#desktopMenu li a {
    display: block;
    padding: 15px 20px;
    color: #f8fafc;
    font-weight: bold;
}

#desktopMenu li a:hover {
    background-color: #1e293b;
    text-decoration: none;
}

/* --- Main Content Layout --- */
main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

/* --- Homepage Layout Components --- */

/* 1. Hero Banner */
.hero-section {
    background: linear-gradient(to right, #0f172a, #1d4ed8);
    color: #ffffff;
    padding: 60px 40px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 40px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8125rem;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.25rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions a {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    margin: 5px;
}

.btn-hero-primary {
    background-color: #1d4ed8;
    color: #ffffff;
}

.btn-hero-primary:hover {
    background-color: #2563eb;
    text-decoration: none;
}

.btn-hero-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* 2. Impact Cards */
.impact-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
}

.impact-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
}

.impact-icon {
    font-size: 1.875rem;
    color: #1d4ed8;
    margin-bottom: 10px;
}

.impact-number {
    font-size: 2rem;
    font-weight: bold;
    color: #0f172a;
}

.impact-label {
    color: #64748b;
    font-size: 0.875rem;
}

/* 3. Services Grid */
.services-section {
    margin-bottom: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-subtitle {
    color: #1d4ed8;
    text-transform: uppercase;
    font-size: 0.8125rem;
    font-weight: bold;
}

.section-title {
    font-size: 1.75rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 30px;
}

.service-icon {
    font-size: 1.75rem;
    color: #1d4ed8;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: #64748b;
    margin-bottom: 15px;
}

.service-link {
    font-weight: bold;
}

/* 4. Call To Action Banner */
.cta-banner-card {
    background: linear-gradient(to right, #059669, #047857);
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-content h2 {
    color: #ffffff;
    margin-bottom: 8px;
}

.cta-actions a {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    margin-left: 10px;
}

.btn-cta-light {
    background-color: #ffffff;
    color: #047857;
}

.btn-cta-accent {
    background-color: #0f172a;
    color: #ffffff;
}

/* --- Multi-Column Footer --- */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 50px 0 20px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.125rem;
}

.footer-col .tagline {
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: bold;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #cbd5e1;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-socials a {
    color: white;
    font-size: 1.25rem;
    margin-right: 15px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: #ffffff;
}

/* --- Accessibility Line Break Override --- */
.top-bar-right br, .footer-socials br {
    display: none !important;
}
.top-bar-right button, .top-bar-right span {
    display: inline-block;
    vertical-align: middle;
}
.footer-socials a {
    display: inline-block;
    vertical-align: middle;
}

/* --- Accessibility Contrast Overrides --- */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast * {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffff00 !important;
}

body.high-contrast a,
body.high-contrast button {
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
}