﻿/* Desktop dropdown: translate + fade (lg and up) */
@media (min-width: 992px) {
    .layout-view .dropdown-menu {
        display: block;
        transform-origin: top center;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s;
        border-top: 0;
        margin-top: .25rem;
        z-index: 1040; /* merged here */
    }

    .layout-view .dropdown:hover > .dropdown-menu,
    .layout-view .dropdown.show > .dropdown-menu {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }
}

.layout-view .logo {
    max-height: 80px;
    width: auto;
    height: auto;
}

@media (min-width: 992px) {
    .layout-view .logo {
        max-height: 100px;
    }
}

.layout-view .navbar-brand {
    margin: 0;
    padding-right: 0.5rem;
}

@media (min-width: 992px) {
    #mainNav {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    #mainNav .navbar-nav {
        margin: 0;
        flex-wrap: nowrap;
    }

    .navbar > .d-flex {
        flex-shrink: 0;
    }

    .navbar .container {
        max-width: 1200px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Primary navbar (secondary row) */
.layout-view .navbar-primary {
    background-color: #005B96;
    font-size: 16px;
}

html, body, .layout-view {
    overflow: visible;
}
.header-stick {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 5000; /* above page content & dropdowns */
    background: #fff; /* or your dark theme color */
    box-shadow: 0 10px 20px -18px rgba(0,0,0,.35);
}


/* CTA buttons (Contact Us / Join Our Team) */
:root {
    --brand-primary: #005B96; /* Huskey blue */
    --brand-accent: #dc3545; /* Huskey red */
    --btn-radius: .625rem;
}

.layout-view .btn.navbarButton {
    --btn-bg: #fff;
    --btn-fg: var(--brand-accent);
    --btn-bd: var(--brand-accent);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--btn-bg);
    color: var(--btn-fg) !important;
    border: 2px solid var(--btn-bd);
    border-radius: var(--btn-radius);
    padding: .45rem 1rem;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
    overflow: hidden; /* for shine sweep */
}

@media (hover:hover) {
    .layout-view .btn.navbarButton:hover {
        background: var(--brand-accent);
        color: #fff !important;
        box-shadow: 0 12px 28px -14px rgba(220,53,69,.55), 0 0 0 3px rgba(220,53,69,.12);
        transform: translateY(-1px);
    }
}

/* Pressed */
.layout-view .btn.navbarButton:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px -12px rgba(220,53,69,.5);
}

/* Accessible focus ring */
.layout-view .btn.navbarButton:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(220,53,69,.25);
}

/* Shine sweep */
.layout-view .btn.navbarButton::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform: translateX(-120%);
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%);
    transition: transform .6s ease;
    mix-blend-mode: screen;
}

@media (hover:hover) {
    .layout-view .btn.navbarButton:hover::after {
        transform: translateX(120%);
    }
}

/* Filled variant (use on JOIN OUR TEAM) */
.layout-view .btn.navbarButton.filled {
    --btn-bg: var(--brand-accent);
    --btn-fg: #fff;
    --btn-bd: var(--brand-accent);
    background: var(--btn-bg);
    color: var(--btn-fg) !important;
    border-color: var(--btn-bd);
}

@media (hover:hover) {
    .layout-view .btn.navbarButton.filled:hover {
        filter: brightness(1.03);
    }
}

.layout-view .btn.navbarButton.primary {
    --btn-bg: #fff;
    --btn-fg: var(--brand-primary);
    --btn-bd: var(--brand-primary);
}

@media (hover:hover) {
    .layout-view .btn.navbarButton.primary:hover {
        background: var(--brand-primary);
        color: #fff !important;
        box-shadow: 0 12px 28px -14px rgba(0,91,150,.5), 0 0 0 3px rgba(0,91,150,.12);
    }
}

/* Navbar links */
.layout-view .navbar.bg-white .navbar-nav .nav-link {
    color: #005B96 !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.layout-view .navbar.bg-white .navbar-nav .nav-link:hover {
    color: red !important;
}

.breadcrumb-wrapper .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
}

.breadcrumb-container {
    width: 80%;
    max-width: 1250px;
    margin: 0 auto;
}

/* Small-screen adjustments for secondary info bar */
@media (max-width: 575.98px) {
    .layout-view .navbar-primary {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .layout-view .navbar-primary .navbar-nav {
        display: flex;
        justify-content: center;
        gap: 0.25rem;
        margin: 0;
        padding: 0;
    }

    .layout-view .navbar-primary .nav-link {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
        line-height: 1;
        text-align: center;
    }
}

@media (max-width: 991.98px) {
    .navbarButton {
        font-size: 14px;
        padding: .35rem .75rem;
    }
}

html, body {
    height: 100%;
}

.layout-view {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-view main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

/* Center-out underline (top navbar) */
.layout-view .top-navbar .navbar-nav > .nav-item > .nav-link {
    display: inline-block;
    padding-bottom: .35rem;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor) !important;
    background-repeat: no-repeat !important;
    background-position: 50% 100% !important;
    background-size: 0% 2px !important;
    transition: background-size .25s ease, color .25s ease !important;
}

/* Keyboard/active/open states */
.layout-view .top-navbar .navbar-nav > .nav-item > .nav-link:focus-visible,
.layout-view .top-navbar .navbar-nav > .nav-item > .nav-link[aria-current="page"],
.layout-view .top-navbar .nav-item.dropdown.show > .nav-link {
    background-size: 64% 2px !important;
}

/* Hover growth only on hover-capable devices */
@media (hover: hover) and (pointer: fine) {
    .layout-view .top-navbar .navbar-nav > .nav-item:hover > .nav-link,
    .layout-view .top-navbar .nav-item.dropdown:hover > .nav-link {
        background-size: 64% 2px !important;
    }
}

/* Keep dropdown items plain */
.layout-view .top-navbar .dropdown-menu .dropdown-item {
    background-image: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .layout-view .top-navbar .navbar-nav > .nav-item > .nav-link {
        transition: none !important;
    }

    .layout-view .btn.navbarButton,
    .layout-view .btn.navbarButton::after {
        transition: none !important;
    }

    .layout-view .navbar .nav-link.dropdown-toggle::after {
        transition: none;
    }
}

/* Dropdown caret animation */
.layout-view .navbar .nav-link.dropdown-toggle::after {
    transition: transform .2s ease;
    vertical-align: .15em;
}

@media (hover:hover) and (pointer:fine) {
    .layout-view .nav-item.dropdown:hover > .nav-link.dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

.layout-view .nav-item.dropdown.show > .nav-link.dropdown-toggle::after,
.layout-view .navbar .nav-link.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .top-navbar .navbarButton {
        width: auto; 
        align-self: flex-start; 
    }

    .top-navbar .d-flex.gap-2 {
        flex-direction: column;
        align-items: flex-start; 
    }
}

.layout-view .page-title {
    color: black;
}

.layout-view header.sticky-top {
    position: -webkit-sticky; 
    position: sticky;
    top: 0;
    z-index: 5000; 
    background: #fff; 
    box-shadow: 0 10px 20px -18px rgba(0,0,0,.35);
}
