:root {
    --primary-color: #0d2c4f;
    /* Deep Blue */
    --secondary-color: #f9a826;
    /* Warm Orange/Yellow */
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --text-color: #333;
    --text-light: #f4f4f4;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
}
/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.business-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.business-info .logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-link {
    display: block;
}
.logo-image {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover; /* Prevents the image from stretching */
}
.logo-placeholder { /* This can be removed if you no longer need it */
    width: 50px; height: 50px; background-color: var(--secondary-color); border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}
.business-name h2 {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--light-color);
}
.business-name p {
    margin: 0;
    font-size: 0.9rem;
    color: #b0c4de; /* Light Steel Blue */
}
.header-contact {
    text-align: right;
}
.header-contact .cta-button {
    font-size: 1.1rem;
    padding: 12px 28px;
}
.header-contact .emergency-service {
    margin-top: 5px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Navigation Bar --- */
.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.main-navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}
.main-nav li {
    position: relative;
}
.main-nav a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--primary-color);
}
.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 0 0 5px 5px;
    min-width: 200px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-nav li:hover > .dropdown {
    display: block;
}
.main-nav .dropdown a {
    padding: 12px 20px;
    white-space: nowrap;
    text-align: left;
}
.main-nav .dropdown .has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-nav .dropdown .dropdown {
    top: 0;
    left: 100%;
    border-radius: 0 5px 5px 5px;
    box-shadow: 8px 0 16px -8px rgba(0,0,0,0.1), -8px 0 16px -8px rgba(0,0,0,0.1);
}
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    /* Hamburger Icon Structure */
    width: 24px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0; /* Override default button padding */
}

.mobile-nav-toggle .icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 1px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Animate to an 'X' when the 'active' class is added via JavaScript */
.mobile-nav-toggle.active .icon-bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-nav-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .icon-bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.main-navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease-in-out;
}

/* --- Body class to prevent scroll when mobile menu is open --- */
body.no-scroll {
    overflow: hidden;
}

/* --- Off-Canvas Mobile Menu Styles --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998; /* Below the nav menu, above the content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-header-logo {
    display: none; /* Hidden by default */
}

/* --- Responsive Header Styles --- */
@media (max-width: 992px) {
    .top-bar {
        display: none; /* Hide the top bar on mobile */
    }

    .main-navbar .container {
        justify-content: space-between; /* Align toggle and logo */
    }

    .mobile-header-logo {
        display: block;
        height: 45px;
    }
    .mobile-header-logo img {
        height: 100%;
        width: auto;
        border-radius: 50%;
    }

    /* Off-Canvas Menu Container */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 80%;
        height: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001;
        overflow-y: auto;
        display: flex; /* Ensure it's a flex container */
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    /* Mobile Menu Header */
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background-color: rgba(0,0,0,0.2);
        color: #fff;
    }
    .mobile-nav-header span {
        font-size: 1.2rem;
        font-weight: 600;
        font-family: var(--font-primary);
    }
    .mobile-nav-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 2rem;
        cursor: pointer;
        line-height: 1;
        padding: 0 5px;
    }

    /* Mobile Menu List */
    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    .main-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav ul li a {
        padding: 15px 20px;
        justify-content: space-between;
        width: 100%;
        color: #fff;
        display: flex;
        align-items: center;
    }
    .main-nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--secondary-color);
    }

    /* Mobile Dropdowns */
    .main-nav .dropdown {
        position: static;
        max-height: 0;
        overflow: hidden;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background-color: rgba(0, 0, 0, 0.2);
        transition: max-height 0.3s ease-in-out;
        display: block; /* Ensure it's always block for transition */
    }

    .main-nav li.active > .dropdown {
        max-height: 500px; /* Adjust as needed */
    }
    .main-nav .dropdown a {
        padding-left: 40px;
    }
    .main-nav .dropdown .dropdown a {
        padding-left: 60px;
    }

    .mobile-nav-toggle {
        display: flex; /* Use flex to center the icon bars */
    }
    .header-contact {
        display: none;
    }
}

@media (max-width: 768px) {
    /* No specific changes needed here now, but keeping the block for future use */
}