/* Global Reset and Typography */
:root {
    --primary-color: #1E3A8A;
    /* Navy Blue */
    --accent-color: #f0bd14;
    /* Soft Gold */
    --text-color: #333333;
    --bg-color: #F9FAFB;
    --white: #FFFFFF;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-color);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Responsive Menu Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
main {
    flex: 1;
}

.constrainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem;
    background-image: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.8)), url('../images/hero-bg.jpg');
    /* Graceful fallback if image missing */
    background-size: cover;
    background-position: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #b5952f;
    color: var(--white);
}

/* Footer */
footer {
    background-color: #111827 !important;
    padding: 3rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Footer Contrast Fixes */
footer,
footer p,
footer div,
footer li,
footer h3 {
    color: #ffffff !important;
}

footer a,
footer ul li a,
.footer-section a {
    color: #FFD700 !important;
    /* Bright Web Gold */
    font-weight: bold !important;
    text-decoration: none !important;
}

footer a:hover,
footer ul li a:hover,
.footer-section a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.footer-section i {
    color: #FFD700 !important;
    margin-right: 0.5rem;
}

.social-links a {
    font-size: 1.25rem;
    color: #FFD700 !important;
}

.social-links a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #374151;
    font-size: 0.9rem;
    color: #ffffff !important;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.section {
    padding: 4rem 2rem;
}

.bg-light {
    background-color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 0.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .constrainer {
        padding: 1.5rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    /* Stack grids on mobile */
    .grid-3,
    .grid-2,
    .content-split,
    .staff-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}