/* ===== Top Header (uses YOUR colors only) ===== */
#topHeader {
    background: #262c36;
    position: relative;
    z-index: 1031;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color-scheme: dark;
}

/* Brand lockup */
.brand-wrap .brand-logo {
    padding: 5px;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .12) inset;
    transition: transform .2s ease;
}

.brand-wrap .brand-logo:hover {
    transform: translateY(-2px) scale(1.04);
}

.brand-name {
    font-weight: 700;
    letter-spacing: .2px;
    line-height: 1.05;
    font-size: clamp(1.35rem, 1.05rem + 1vw, 2.6rem);
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 8px 30px rgba(99, 102, 241, .25);
}

/* Phone chip */
.phone-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .5rem 1.0rem;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: radial-gradient(80% 150% at 30% 0%, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.phone-number {
    font-size: clamp(1.05rem, .9rem + 1vw, 1.65rem);
}

.phone-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}

.phone-chip:focus-visible {
    outline: 3px solid rgba(56, 189, 248, .35);
    outline-offset: 2px;
}

.tagline {
    color: rgba(255, 255, 255, .8);
}

/* ===== Nav (dark, using YOUR surface) ===== */
.carbon-nav {
    background-color: #fff;
}

.carbon-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    opacity: .8;
}

/* Make toggler icon crisp on dark surfaces */
.navbar-dark .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .2);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Nav brand text */
.nav-brand-text {
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: .2px;
}

/* Links */
.navbar-nav .nav-link {
    position: relative;
    color: #000;
    padding: .5rem 1rem !important;
    transition: color .15s ease;
}

.navbar-nav .nav-link:hover {
    color: #0d6efd;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: .25rem;
    height: 2px;
    width: 0;
    transform: translateX(-50%);
    border-radius: 2px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    transition: width .2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: #0d6efd !important;
}

/* Search (uses YOUR surface & ring) */
#searchForm {
    min-width: 320px;
}

#searchCars::placeholder {
    color: #94a3b8;
}

#searchCars:focus {
    border-color: rgba(56, 189, 248, .75);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .35);
}

#searchBtn {
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    border: none;
    box-shadow: 0 8px 18px rgba(56, 189, 248, .22);
}

#searchBtn:hover {
    filter: brightness(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem;
        border-radius: .75rem;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
        margin-top: 1rem;
        transform-origin: top;
        animation: slideDown .22s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #mainNav {
        margin-bottom: .75rem !important;
    }

    .nav-link {
        padding: .75rem 1rem !important;
        border-radius: .375rem;
    }

    .nav-link:hover {
        background-color: #eee;
    }

    .nav-link::after {
        display: none;
    }

    #searchForm {
        flex-direction: column;
        min-width: 100%;
        gap: .5rem;
    }

    #searchForm input,
    #searchForm button {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .brand-wrap .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-name {
        font-weight: 600;
        font-size: 19px !important;
    }

    .nav-brand-text {
        font-size: 15px !important;
    }

    .navbar-nav .nav-link {
        font-weight: 500 !important;
    }

    .phone-chip {
        padding: .4rem 1.0rem;
    }

    .phone-number {
        font-size: 1.05rem !important;
    }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}