:root {
    --primary-color: #0f172a;
    /* Dark Slate */
    --accent-color: #dc2626;
    /* Campaign Red */
    --accent-hover: #b91c1c;
    --text-color: #334155;
    /* Slate 700 */
    --heading-color: #1e293b;
    /* Slate 800 */
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --container-width: 1200px;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding-top: var(--header-height);
    /* Fix: images/titles won't go UNDER the header on load */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    margin-top: 0;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    border-bottom: none;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

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

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.bg-secondary {
    background-color: var(--bg-secondary);
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    /* Fixed is more reliable than sticky for ensuring positioning */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 1rem;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Navigation - New Drawer Styles */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: none;
    /* Hidden by default - all screens use the drawer now */
}

/* The Button that triggers the menu */
.menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-trigger:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-trigger svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Side Drawer Panel */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden off-screen right */
    width: 350px;
    max-width: 85%;
    height: 100vh;
    background-color: var(--white);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.nav-drawer.active {
    right: 0;
}

/* Darkness background when menu is open */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid var(--border-color);
}

.drawer-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    color: var(--heading-color);
    border-radius: 50%;
    transition: background 0.2s;
}

.drawer-close:hover {
    background: var(--bg-secondary);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

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

.drawer-links li {
    margin-bottom: 0.5rem;
}

.drawer-links a {
    font-size: 1.25rem;
    color: var(--heading-color);
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    display: block;
    font-weight: 600;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.drawer-links a:hover {
    background: var(--bg-secondary);
    color: var(--accent-color);
    padding-left: 1.5rem;
    border-left-color: var(--accent-color);
}

.drawer-links a.active {
    background: var(--bg-secondary);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.drawer-footer {
    padding: 2rem;
    background: var(--bg-secondary);
    font-size: 0.85rem;
    color: var(--text-color);
}

/* Mobile specific overrides */
@media (max-width: 480px) {
    .nav-drawer {
        width: 100%;
    }
}


/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-color);
    color: var(--white);
    overflow: hidden;
    padding: 0;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-image-container {
        height: 250px;
    }
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fills container, crops if needed, no stretching */
    object-position: center center;
    /* Center the image within the container */
}

.hero-content-below {
    padding: 3rem 1.5rem;
    background-color: var(--white);
    text-align: center;
    color: var(--text-color);
    position: relative;
    z-index: 2;
    margin-top: -1px;
    /* Fill any gap */
}

.hero-content-below h1 {
    color: var(--heading-color);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    text-shadow: none;
    line-height: 1.2;
}

.hero-content-below p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Original Hero Overlay (keep for reference or other pages if needed) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 6rem 0;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: transform 0.2s;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* News Feed */
.news-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #cbd5e1;
    font-weight: 400;
}

.footer-section a:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

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

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

    /* Keep main-nav visible so menu button shows */
    .main-nav {
        display: flex;
        align-items: center;
    }

    /* Hide the ul menu items by default - they're in the drawer */
    .main-nav ul {
        display: none;
    }

    .menu-trigger {
        display: flex;
    }

    /* Header and Logo Optimization for Mobile */
    .header-container {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .logo img {
        height: 35px;
    }
}

/* Enhanced Mobile Responsiveness - Tablets and Small Screens */
@media (max-width: 768px) {

    /* Improved Section Spacing */
    .section {
        padding: 2.5rem 0;
    }

    /* Better Container Padding */
    .container {
        padding: 0 1rem;
    }

    /* Optimized Card Spacing */
    .card {
        padding: 1.5rem;
    }

    /* Grid Gap Reduction */
    .grid {
        gap: 1.5rem;
    }

    /* Hero Content Optimization */
    .hero-content-below {
        padding: 2rem 1rem;
    }

    .hero-content-below h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero-content-below p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    /* Button Optimization */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1.0625rem;
    }

    /* Footer Optimization */
    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }

    footer {
        padding: 3rem 0 1.5rem;
    }

    /* News Item Spacing */
    .news-item {
        padding: 1.25rem 0;
    }
}

/* Enhanced Mobile Responsiveness - Small Mobile Devices */
@media (max-width: 480px) {

    /* Typography Scaling */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.25rem;
        margin-bottom: 0.875rem;
    }

    h4 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    /* Hero Section */
    .hero-image-container {
        height: 200px;
    }

    .hero-content-below {
        padding: 1.5rem 1rem;
    }

    .hero-content-below h1 {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }

    .hero-content-below p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Section and Container */
    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 0.875rem;
    }

    /* Card Optimization */
    .card {
        padding: 1.25rem;
    }

    /* Grid Spacing */
    .grid {
        gap: 1rem;
    }

    /* Button Sizing */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        width: 100%;
        text-align: center;
    }

    .btn-large {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    /* Footer Stacking */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-section li {
        margin-bottom: 0.5rem;
    }

    footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8125rem;
    }

    /* Form Elements */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 0.75rem;
    }

    /* News and Content Spacing */
    .news-item {
        padding: 1rem 0;
    }

    .news-date {
        font-size: 0.8125rem;
    }

    /* Ensure flex layouts wrap properly */
    [style*="display: flex"] {
        flex-wrap: wrap;
    }

    /* Optimize inline max-width styles */
    [style*="max-width"] {
        max-width: 100% !important;
    }
}