/* =========================================
   GLOBAL
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    background: #f3f4f6; /* slightly softer light gray for modern look */
    margin: 0;
}

/* =========================================
   HEADER (.jobsite-header)
   ========================================= */
.jobsite-header {
    background: #1e3a8a; /* Deep Navy Blue to match the theme */
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Softer, larger shadow */
    border-bottom: 3px solid #e11d48; /* Premium Red Accent line */
}

.header-container {
    max-width: 1250px; /* matched to your homepage wrapper */
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px; /* Fixed height looks more professional */
}

.site-logo a {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px; /* Tighter letter spacing is modern */
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Desktop Links */
.nav-menu a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #93c5fd; /* Soft light blue on hover */
}

/* Beautiful Animated Underline on Desktop Hover */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #e11d48;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* =========================================
   MOBILE MENU
   ========================================= */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.menu-toggle:active {
    transform: scale(0.9);
}

@media(max-width: 850px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 73px; /* Just below the header + red border */
        left: 0;
        width: 100%;
        background: #1e3a8a;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
    }

    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease-out forwards;
    }

    /* Smooth dropdown animation */
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-menu {
        flex-direction: column;
        padding: 10px 20px 20px 20px;
        gap: 0;
    }

    .nav-menu a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Subtle divider lines */
        font-size: 17px;
    }

    .nav-menu a::after {
        display: none; /* Turn off animated underline on mobile */
    }
}

/* =========================================
   FOOTER
   ========================================= */
/* Unify all possible footer wrappers to one premium Midnight Navy color */
.jobsite-footer, .site-footer, .inside-footer {
    background: #0f172a !important; /* Extremely dark premium navy */
    color: #cbd5e1;
    margin-top: 60px;
    padding-top: 50px !important;
    border-top: 4px solid #1e3a8a; /* Nice subtle bridge from body to footer */
}

.footer-col {
    margin-bottom: 30px;
}

.footer-col h3,
.footer-col h4 {
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

/* Small red accent line under footer section titles */
.footer-col h3::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #e11d48;
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #94a3b8; /* Subtle gray text */
    text-decoration: none;
    font-size: 15px;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: #ffffff; /* Bright white when hovered */
    transform: translateX(5px); /* Awesome little slide-to-right effect */
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05); /* Very subtle divider */
    background: #0b1120; /* Slightly darker bottom strip for copyright info */
    padding: 20px 15px;
    font-size: 14px;
    color: #64748b;
    margin-top: 30px;
}
