/* ============================================================
   1. GLOBAL RESET & BASE
============================================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

/* ============================================================
   2. TYPOGRAPHY — FONT IMPORTS
============================================================ */

/* Nunito 600 (SemiBold) */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/Nunito-SemiBold.woff2') format('woff2');
    font-display: swap;
}

/* Nunito 700 (Bold) */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Nunito-Bold.woff2') format('woff2');
    font-display: swap;
}

/* Nunito 800 (ExtraBold) */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 800;
    src: url('/fonts/Nunito-ExtraBold.woff2') format('woff2');
    font-display: swap;
}

/* Nunito Sans — Variable (100–900) */
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 100 900;
    src: url('/fonts/NunitoSans-Variable.woff2') format('woff2');
    font-display: swap;
}

/* Lato 400 (Regular) */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Lato-Regular.woff2') format('woff2');
    font-display: swap;
}

/* Lato 600 (SemiBold) */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/Lato-SemiBold.woff2') format('woff2');
    font-display: swap;
}

/* Lato 700 (Bold) */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Lato-Bold.woff2') format('woff2');
    font-display: swap;
}

/* ============================================================
   3. TOP BAND
============================================================ */
.top-band {
    background-color: #384744;
    font-family: "Nunito", sans-serif;
    padding: 7px 0;
    width: 100%;
}

.top-band-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.apply-btn {
    background-color: #FBCC36;
    border-radius: 4px;
    color: #384744;
    font-weight: 600;
    padding: 5px 12px;
    text-decoration: none;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.phone-icon {
    width: 14px;
    height: auto;
}

.call-text {
    font-weight: 700;
    color: #ffffff;
}

/* ============================================================
   4. HEADER / LOGO
============================================================ */
.site-header {
    background: #ffffff;
    width: 100%;
    padding-bottom: 0 !important;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 32px;
}

.logo-block {
    display: flex;
    align-items: center;
}

.logo-mark {
    max-width: 220px;
    width: 100%;
    height: auto;
}

/* ============================================================
   5. DESKTOP NAVIGATION
============================================================ */
.nav-wide {
    display: flex;
}

/* FIX #1 — Only top-level UL is flex */
.nav-wide > ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

/* FIX #2 — Submenus must NOT inherit flex */
.nav-wide ul ul {
    display: block;
    gap: 0;
}

.nav-wide li {
    position: relative;
}

/* Top-level nav links */
.main-nav > ul > li > a {
    color: #384744;
    font-family: 'Nunito', sans-serif;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 6px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #b39548;
}

/* GRAYED-OUT SUBMENU ITEMS */
/* GRAYED-OUT SUBMENU ITEMS */
.submenu a.not-ready,
.submenu-narrow a.not-ready {
    color: #9AA3A0;          /* your grayish color */
    cursor: default;         /* no pointer hand */
    pointer-events: none;    /* not clickable */
    text-shadow: none;       /* optional: remove glow */
    opacity: 0.7;            /* subtle fade */
}

/* Prevent hover highlight */
.submenu a.not-ready:hover,
.submenu-narrow a.not-ready:hover {
    background: transparent;
}

/* Highlight the current page inside desktop submenu */
.submenu a.active {
    color: #b39548 !important;
}

/* Highlight the current page inside mobile submenu */
.submenu-narrow a.active {
    color: #b39548 !important;
}


.main-nav a.active,
.nav-narrow a.active {
    color: #b39548 !important;
}

/* Persistent Hover of Top-level nav links */

/* SAFE section */
.section-safe .nav-safe > a {
    color: #b39548 !important;
}

/* DRUG FREE section */
.section-drug-free .nav-drug-free > a {
    color: #b39548 !important;
}

/* CLEAN section */
.section-clean .nav-clean > a {
    color: #b39548 !important;
}

/* ABOUT US section */
.section-about-us .nav-about-us > a {
    color: #b39548 !important;
}

/* SERVICES section */
.section-services .nav-services > a {
    color: #b39548 !important;
}

/* CLIENTS section */
.section-clients .nav-clients > a {
    color: #b39548 !important;
}

/* HOME section */
.section-home .nav-home > a {
    color: #b39548 !important;
}

/* ============================================================
   6. DESKTOP SUBMENUS
============================================================ */
.submenu {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    position: absolute;
    top: calc(100% + 35px);
    left: 0;
    background-color: #ffffff;
    border-radius: 6px;
    min-width: 200px;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 999;
}

.submenu::before {
    content: "";
    position: absolute;
    top: -35px;
    left: 0;
    right: 0;
    height: 35px;
}

/* FIX #3 — Force correct desktop submenu behavior */
.nav-wide .submenu {
    display: none !important;
}

.nav-wide li:hover > .submenu {
    display: block !important;
}

.submenu li {
    margin: 0;
    padding: 0;
}

.submenu a {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: #384744;
    padding: 8px 14px;
    line-height: 1.25;
    /* MATCH MAIN NAV EXACTLY */
    font-size: clamp(14px, 1.2vw, 18px);
    display: block;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px;
}

.submenu a:hover {
    background-color: #FBCC36;
    color: #384744;
}

/* ============================================================
   7. MOBILE NAV — PANEL
============================================================ */
.nav-narrow {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    max-width: 80%;
    max-height: 100vh;
    height: auto;
    background-color: #F7F7F7;
    box-shadow: -2px 0 8px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    padding: 70px 20px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    z-index: 998;
}

.nav-narrow.open {
    transform: translateX(0);
}

/* ============================================================
   8. MOBILE NAV — TOP-LEVEL ITEMS
============================================================ */
.nav-narrow a {
    display: block;
    padding: 14px 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: #384744;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.nav-narrow > * {
    margin-top: 10px;
}

.nav-narrow > *:first-child {
    margin-top: 0;
}

.nav-narrow > *:last-child {
    border-bottom: none !important;
}

/* ============================================================
   9. MOBILE NAV — SUBMENU SYSTEM
============================================================ */
.has-submenu {
    display: block;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.submenu-toggle {
    all: unset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 14px 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #384744;
    line-height: 1.2;
}

.submenu-toggle .caret {
    padding: 6px 13px;
    border: 1px solid #384744;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;              /* fixes vertical centering */
}

.submenu-toggle .caret::before {
    content: "";
    display: block;

    /* SHORTER caret */
    width: 8px;
    height: 8px;

    /* Thin, even legs */
    border-bottom: 1px solid #384744;
    border-right: 1px solid #384744;

    /* Downward caret */
    transform: rotate(45deg);

    /* Ensures perfect centering inside the pill */
    transform-origin: center;
}


.has-submenu.open .caret {
    transform: rotate(180deg);
}

.submenu-narrow {
    list-style: none;   /* ← removes bullet */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
    margin: 0;
}

.has-submenu.open .submenu-narrow {
    max-height: 500px;
    padding-left: 12px;
}

.submenu-narrow a {
    display: block;
    padding: 10px 0;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    color: #384744;
    text-decoration: none;
    border-bottom: none;
}

/* Hover on the entire mobile submenu toggle */
.submenu-toggle:hover {
    color: #b39548; /* gold text */
}

/* Caret pill + caret arrow turn gold */
.submenu-toggle:hover .caret {
    border-color: #b39548; /* pill border turns gold */
}

/* The caret arrow lines turn gold */
.submenu-toggle:hover .caret::before {
    border-bottom-color: #b39548;
    border-right-color: #b39548;
}

/* ============================================================
   10. MOBILE NAV — BUTTONS
============================================================ */
.close-menu-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background-color: #384744;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    z-index: 2002;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 40px;
    background-color: #384744;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0 12px;
    z-index: 2000;
}

.mobile-menu-btn .bar {
    width: 26px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 1px;
    margin: 3px 0;
}

/* ============================================================
   11. OVERLAY
============================================================ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    z-index: 997;
}

.nav-overlay.open {
    visibility: visible;
    animation: overlay-swipe-in 0.45s ease-out forwards;
}

@keyframes overlay-swipe-in {
    0% { opacity: 0; transform: translateX(100%); }
    35% { opacity: 1; transform: translateX(35%); }
    100% { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   12. UTILITIES — SCROLL TO TOP
============================================================ */

.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.25);
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    backdrop-filter: blur(4px);
    cursor: pointer;
    z-index: 99999;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.scroll-top-btn:hover {
    background: rgba(0, 0, 0, 0.4);
}	

.scroll-top-btn:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Hide hamburger when menu open */
.menu-open .mobile-menu-btn {
    z-index: 0;
}

/* ============================================================
   13. MEDIA QUERIES
============================================================ */

/* DESKTOP (≥ 915px) */
@media (min-width: 945px) {

    .top-band-inner {
        max-width: 1500px;
        padding: 0 32px;
    }

    .header-inner {
        max-width: 1500px;
        padding: 16px 32px;
    }

    /* Hide mobile nav */
    .nav-narrow {
        display: none;
    }
}

/* MOBILE (≤ 914px) */
@media (max-width: 944px) {

    .nav-wide {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        height: 48px;
    }

    .logo-mark {
        max-width: 180px;
    }

    .top-band-inner,
    .header-inner {
        padding: 0 24px;
    }

    .header-inner {
        height: 60px;
        display: flex;
        align-items: center;
    }

    .nav-narrow {
        position: fixed;
        top: 0;
        right: 0;
        width: 375px;
        max-width: 80%;
        height: auto;
        max-height: 100vh;
        overflow-y: auto;
        background-color: #F7F7F7;
        box-shadow: -2px 0 8px rgba(0,0,0,0.25);
        display: flex;
        flex-direction: column;
        padding: 70px 20px 14px 20px;
        transform: translateX(100%);
        transition: transform 0.25s ease-out;
        z-index: 998;
    }

    .nav-narrow > *:last-child {
        border-bottom: none !important;
    }

    .menu-open .mobile-menu-btn {
        z-index: 0;
    }
}
