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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff4444;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ff4444;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff4444;
}

/* Live truck count badge */
.truck-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #1a5c1a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px 2px 5px;
    border-radius: 20px;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.truck-count-badge:empty {
    display: none;
}

.load-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #1a5c1a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px 2px 5px;
    border-radius: 20px;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.load-count-badge:empty {
    display: none;
}

.load-count-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #5dff5d;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: livePulse 1.6s ease-in-out infinite;
}

.needs-coverage-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #5c1a1a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px 2px 5px;
    border-radius: 20px;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.needs-coverage-badge:empty {
    display: none;
}

.needs-coverage-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #ff5d5d;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: livePulse 1.6s ease-in-out infinite;
}

.truck-count-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #5dff5d;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(0.7); }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}

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

.footer-section h3 {
    color: #ff4444;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

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

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

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff4444;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}
