/* ==========================================================================
   Global & Reset Structural Defenses
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box; /* Crucial: ensures paddings don't burst screen boundaries on mobile */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;    /* Hard stops any rogue elements from causing horizontal page wobble on phones */
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
    background: #fff;
    border-bottom: 1px solid #d9d9d9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Logo */
.logo {
    flex-shrink: 0;
}

.logo img {
    display: block;
    max-height: 60px;
    width: auto;
}

@media (max-width: 480px) {

    .logo img {
        max-width: 250px;
    }
}

/* Navigation */
.nav-links {
    flex: 1;
}

.nav-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color .2s ease;
}

.nav-links a:hover {
    color: #0f2d59; /* Updated to match Deep Interstate Blue */
}

/* Search */
.header-search {
    flex-shrink: 0;
}

.header-search a {
    color: #444;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color .2s ease;
}

.header-search a:hover {
    color: #0f2d59; /* Updated to match Deep Interstate Blue */
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger .line {
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

/* Header Mobile Breakpoint */
@media (max-width: 900px) {
    .header-container {
        gap: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        box-shadow: 0 4px 10px rgba(0,0,0,.08);
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links li {
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 0.9rem 1.25rem;
    }

    .hamburger {
        display: flex;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    margin-top: 0.25rem;
    border-top: 1px solid #ddd;
    background: #fafafa;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #0f2d59; /* Updated to match Deep Interstate Blue */
}

/* Copyright */
.footer-copyright {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.footer-copyright a {
    color: #555;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 balanced columns on desktop */
    gap: 16px;
    margin: 20px 0 24px 0;
}

/* Base Stat Card Style (Clean, border-less left edge) */
.stat-card {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Make Business Routes span the full width across both columns at the bottom */
.stat-card-featured {
    grid-column: 1 / -1; 
    background: #f0f4f8; /* Soft blue tint to complement primary palette */
    border-color: #cbd5e1;
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f2d59; /* Primary navy accent for the numbers */
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #4a5568;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr; /* Stack into 1 column on mobile */
    }
}

.photo-archive-banner {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #312e81;
    padding: 14px 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 1.05rem;
    margin: 16px 0 28px 0;
}
.photo-archive-banner strong {
    color: #1e1b4b;
    font-weight: 700;
}