﻿/* =============================================================
   Clean Crew Jamaica
   Header and Navigation

   Shared site header used across all public-facing pages.
   Includes desktop navigation, active states, scrolled behavior,
   mobile navigation, and responsive breakpoints.
   ============================================================= */


/* =============================================================
   Header Container
   ============================================================= */

.ccj-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 82px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    z-index: 1001;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .ccj-top-bar.ccj-top-bar-scrolled {
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 14px 38px rgba(0, 0, 0, 0.08);
    }

.ccj-top-container {
    max-width: 1500px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}


/* =============================================================
   Brand
   ============================================================= */

.ccj-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

    .ccj-brand img {
        width: auto;
        height: 56px;
        display: block;
    }

.ccj-brand-text {
    display: flex;
    align-items: baseline;
    margin-left: 10px;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ccj-clean {
    color: var(--ccj-blue);
}

.ccj-crew {
    margin-left: 4px;
    color: var(--ccj-red);
}

.ccj-jamaica {
    margin-left: 8px;
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 0.18em;
}

.ccj-top-bar.ccj-top-bar-scrolled .ccj-jamaica {
    color: #1f2937;
}


/* =============================================================
   Desktop Navigation
   ============================================================= */

.ccj-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

    .ccj-nav a {
        position: relative;
        padding-bottom: 8px;
        color: rgba(255, 255, 255, 0.92);
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .ccj-nav a:hover,
        .ccj-nav a.active {
            color: #ffffff;
        }

            /*
 * Active page indicator.
 */
            .ccj-nav a.active::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                height: 3px;
                border-radius: 999px;
                background: var(--ccj-red);
            }

.ccj-top-bar.ccj-top-bar-scrolled .ccj-nav a {
    color: #1f2937;
}

    .ccj-top-bar.ccj-top-bar-scrolled .ccj-nav a:hover,
    .ccj-top-bar.ccj-top-bar-scrolled .ccj-nav a.active {
        color: var(--ccj-blue);
    }


/* =============================================================
   Header Actions
   ============================================================= */

.ccj-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.ccj-signin {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.ccj-top-bar.ccj-top-bar-scrolled .ccj-signin {
    color: #1f2937;
}

.ccj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    color: #ffffff;
    background: var(--ccj-blue);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 35px rgba(0, 87, 231, 0.28);
}


/* =============================================================
   Mobile Navigation Toggle
   ============================================================= */

/*
 * Hidden on desktop. The hamburger becomes available at the same
 * breakpoint where the desktop navigation is removed.
 */
.ccj-mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .ccj-mobile-menu-toggle:hover,
    .ccj-mobile-menu-toggle:focus {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
        outline: none;
    }

.ccj-top-bar.ccj-top-bar-scrolled .ccj-mobile-menu-toggle {
    color: #071a3d;
}

    .ccj-top-bar.ccj-top-bar-scrolled .ccj-mobile-menu-toggle:hover,
    .ccj-top-bar.ccj-top-bar-scrolled .ccj-mobile-menu-toggle:focus {
        color: var(--ccj-blue);
        background: rgba(0, 87, 231, 0.07);
    }


/* =============================================================
   Mobile Navigation Menu
   ============================================================= */

/*
 * The mobile menu opens immediately beneath the fixed header.
 * Absolute positioning prevents the open menu from changing the
 * height of the header itself.
 */
.ccj-mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid rgba(10, 31, 68, 0.08);
    box-shadow: 0 18px 35px rgba(10, 31, 68, 0.12);
}

    .ccj-mobile-nav nav {
        width: min(100% - 48px, 1180px);
        margin: 0 auto;
        padding: 18px 0 24px;
        display: flex;
        flex-direction: column;
    }

        .ccj-mobile-nav nav > a {
            display: block;
            padding: 15px 6px;
            color: #071a3d;
            font-size: 16px;
            font-weight: 700;
            text-decoration: none;
            border-bottom: 1px solid rgba(10, 31, 68, 0.07);
            transition: color 0.2s ease, background-color 0.2s ease;
        }

            .ccj-mobile-nav nav > a:hover,
            .ccj-mobile-nav nav > a:focus {
                color: var(--ccj-blue);
                text-decoration: none;
            }

            /*
 * Highlights the current page in the mobile navigation.
 */
            .ccj-mobile-nav nav > a.active {
                color: var(--ccj-blue);
                font-weight: 900;
            }


        /* =============================================================
   Mobile Request Service Button
   ============================================================= */

        .ccj-mobile-nav nav > .ccj-mobile-request-btn {
            margin-top: 18px;
            padding: 15px 20px;
            color: #ffffff;
            text-align: center;
            border: 0;
            border-radius: 14px;
            background: var(--ccj-blue);
            box-shadow: 0 14px 32px rgba(0, 87, 231, 0.22);
        }

            .ccj-mobile-nav nav > .ccj-mobile-request-btn:hover,
            .ccj-mobile-nav nav > .ccj-mobile-request-btn:focus {
                color: #ffffff;
                background: #004dcc;
            }


/* =============================================================
   Header Responsive Layout
   ============================================================= */

@media (max-width: 1280px) {
    .ccj-top-container {
        width: min(100% - 48px, 1180px);
        padding-left: 0;
        padding-right: 0;
    }

    .ccj-nav {
        gap: 22px;
    }
}


/*
 * Switch from desktop navigation to the hamburger menu.
 */
@media (max-width: 1100px) {
    .ccj-nav,
    .ccj-actions {
        display: none;
    }

    .ccj-mobile-menu-toggle {
        display: flex;
    }

    .ccj-top-container {
        justify-content: space-between;
    }
}


/*
 * Phones use a permanently light header because the compact layout
 * does not rely on the transparent hero-header treatment.
 */
@media (max-width: 720px) {
    .ccj-top-bar {
        height: 76px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .ccj-top-container {
        width: calc(100% - 32px);
        padding: 0;
    }

    .ccj-brand img {
        height: 48px;
    }

    .ccj-brand-text {
        margin-left: 8px;
        font-size: 21px;
    }

    .ccj-jamaica {
        margin-left: 6px;
        color: #1f2937;
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .ccj-mobile-menu-toggle {
        width: 44px;
        height: 44px;
        color: #071a3d;
        font-size: 29px;
    }

        .ccj-mobile-menu-toggle:hover,
        .ccj-mobile-menu-toggle:focus {
            color: var(--ccj-blue);
            background: rgba(0, 87, 231, 0.07);
        }

    .ccj-mobile-nav nav {
        width: calc(100% - 32px);
        padding-top: 12px;
        padding-bottom: 20px;
    }

        .ccj-mobile-nav nav > a {
            padding: 14px 4px;
        }

        .ccj-mobile-nav nav > .ccj-mobile-request-btn {
            margin-top: 16px;
            padding: 14px 18px;
        }
}
