/* Import modern fonts for an engineering/HVAC feel */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800&family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', sans-serif; /* Clean font for reading */
    margin: 0;
    padding: 0;
    justify-content: center;
    padding-top: 80px;
}

/* Make headings use the strong, industrial font */
h1, h2, h3, h4, h5, h6, .nav-link, .logo-link {
    font-family: 'Montserrat', sans-serif;
}

/* Main header bar */
.site-header {
    background-color: #ffffff;
    padding: 15px 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Softer, larger shadow */
    border-bottom: 1px solid #eaeaea;
    border-top: 4px solid #00A8E8; /* Added a splash of accent color to the top */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Flex container for logo and nav */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link {
    display: inline-block;
}

.company-logo {
    height: 70px;
    width: auto;
    display: block;
}

/* Navigation Menu */
.main-nav {
    display: flex;
    gap: 50px; /* INCREASED SPACING BETWEEN TABS */
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #475569; /* Slightly softer dark gray */
    font-size: 1.05rem;
    font-weight: 600;
    padding: 5px 0;
    position: relative; /* Needed for the hover underline */
    transition: color 0.3s ease;
}

/* Modern animated underline on hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: #00A8E8;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: #0B2545;
}

.nav-link:hover::after {
    width: 100%; /* Line expands on hover */
}

.nav-link.active {
    color: #0B2545;
    font-weight: 700;
}

.nav-link.active::after {
    width: 100%; /* Active tab always has the underline */
}

/* Responsive (Mobile) Header Styles */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 20px;
    }
    .company-logo {
        height: 40px;
    }
    .nav-toggle {
        display: block;
    }
    .main-nav {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        flex-direction: column;
        gap: 0;
    }
    .main-nav.nav-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    .main-nav .nav-link {
        display: block;
        padding: 20px; /* More tap-friendly spacing on mobile */
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-link::after {
        display: none; /* Hide animated underline on mobile */
    }
    .nav-link:hover {
        background-color: #F8FAFC;
        color: #00A8E8;
    }
    .main-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* === Footer Styles === */
.site-footer {
    background-color: #0B2545; /* Changed to primary dark blue for more color */
    color: #e2e8f0;
    padding: 60px 40px 20px 40px;
    font-size: 0.95rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto 30px auto;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

#footer-brand .company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

#footer-legal a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

#footer-legal a:hover {
    color: #00A8E8; /* Hover effect uses your accent color */
}

#footer-contact-info p {
    margin: 0 0 10px 0;
    line-height: 1.5;
    color: #cbd5e1;
}

#footer-social a {
    display: inline-block;
    color: #cbd5e1;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

#footer-social a:hover {
    color: #00A8E8;
    transform: translateY(-3px); /* Icons bump up slightly on hover */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Responsive (Mobile) Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }
    #footer-social a {
        margin: 0 10px;
    }
}

/* ============================= */
/* PAGE LOADER STYLES */
/* ============================= */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #F8FAFC; /* Matches your --light-bg */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Ensures it stays on top of the header */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    /* The track of the spinner (Primary color at 20% opacity) */
    border: 6px solid rgba(11, 37, 69, 0.2); 
    /* The spinning part (Accent color) */
    border-top-color: #00A8E8; 
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Class added by JavaScript to fade it out */
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}