/* ============================================================
   DESIGN TOKENS
   Shared by global.css and styles.css
   ============================================================ */
:root {

    --sc-green:      #0b3d0b;
    --sc-green-dark: #083008;
    --sc-green-rgb:  11, 61, 11;
    --sc-gold:       #ffd700;
    --sc-gold-dark:  #d6b400;
    --sc-gold-rgb:   255, 215, 0;

    --sc-light:      #f8f9fa;
    --sc-text:       #333333;
    --sc-white:      #ffffff;

    --sc-font-display: "Segoe UI", Arial, sans-serif;
    --sc-font-body:    "Segoe UI", Arial, sans-serif;

    --sc-nav-h:      76px;
    --sc-radius:     10px;
    --sc-radius-lg:  18px;
    --sc-shadow-soft: 0 10px 30px rgba(0, 0, 0, .12);
    --sc-shadow-strong: 0 18px 40px rgba(0, 0, 0, .28);
    --sc-transition: .25s ease;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 1%;
    background: var(--sc-green);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: box-shadow var(--sc-transition), background var(--sc-transition);
}

.navbar.is-scrolled {
    background: var(--sc-green-dark);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.navbar .nav-inner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--sc-nav-h);
    padding: 10px 20px;
}

.nav-brand-group {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link .logo {
    display: block;
    width: auto;
    height: 52px;
    transition: transform .25s ease;
}

.logo-link:hover .logo {
    transform: scale(1.04);
}

.nav-brand-divider {
    flex-shrink: 0;
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, .22);
}

.parent-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.parent-logo-link .parent-logo {
    display: block;
    width: auto;
    max-width: 170px;
    height: 46px;
    object-fit: contain;
    opacity: .92;
    transition: opacity .2s ease, transform .25s ease;
}

.parent-logo-link:hover .parent-logo {
    opacity: 1;
    transform: scale(1.03);
}

.nav-badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    color: var(--sc-white);
    text-decoration: none;
    font-size: .96rem;
    font-weight: 700;
    letter-spacing: .2px;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-links > li > a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    background: var(--sc-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.nav-links > li > a:hover,
.nav-links > li.open > a {
    color: var(--sc-gold);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links > li > a:hover::after,
.nav-links > li.open > a::after {
    transform: scaleX(1);
}

.caret {
    font-size: .7rem;
    opacity: .8;
    transition: transform .2s ease;
}

.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 250;

    min-width: 225px;
    padding: 8px;

    list-style: none;

    background: var(--sc-green-dark);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    box-shadow: var(--sc-shadow-strong);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item-dropdown:hover .caret,
.nav-item-dropdown.open .caret {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    color: rgba(255, 255, 255, .82);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s ease, color .15s ease;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible {
    color: var(--sc-gold);
    background: rgba(255, 255, 255, .07);
}

.dropdown-divider {
    height: 1px;
    margin: 6px 4px;
    background: rgba(255, 255, 255, .1);
}

.nav-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 190px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    transition: background .2s ease, border-color .2s ease, width .2s ease;
}

.nav-search-form:focus-within {
    width: 220px;
    background: rgba(255, 255, 255, .14);
    border-color: var(--sc-gold);
}

.nav-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    color: var(--sc-white);
    opacity: .75;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity .2s ease, color .2s ease;
}

.nav-search-form:focus-within .nav-search-icon,
.nav-search-icon:hover {
    color: var(--sc-gold);
    opacity: 1;
}

.nav-search-form input {
    width: 100%;
    min-width: 0;
    padding: 3px 0;
    color: var(--sc-white);
    font-family: inherit;
    font-size: .86rem;
    background: transparent;
    border: none;
}

.nav-search-form input:focus {
    outline: none;
}

.nav-search-form input::placeholder {
    color: rgba(255, 255, 255, .55);
}

.nav-search-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--sc-white);
    border-radius: 50%;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-search-mobile:hover {
    color: var(--sc-green);
    background: var(--sc-gold);
    transform: scale(1.06);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    color: rgba(255, 255, 255, .85);
    background: var(--sc-green-dark);
    padding-top: 30px;
    padding-bottom: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 50px;
    padding: 70px 0 50px;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-logo {
    height: 52px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 42ch;
    font-size: .95rem;
    line-height: 1.6;
}

.footer-partner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.partner-logo {
    width: 100%;
    max-width: 150px;
    height: auto;
    padding: 14px;
    background: var(--sc-green-dark);
    border-radius: var(--sc-radius);
    box-shadow: var(--sc-shadow-soft);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 30px;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    font-size: .85rem;
}

.footer-copy {
    color: rgba(255, 255, 255, .75);
    line-height: 1.6;
    padding-top: 40px;
    padding-bottom: 5px;
}

.footer-copy a {
    color: var(--sc-gold);
    text-decoration: none;
}

.footer-copy a:hover {
    text-decoration: underline;
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--sc-green);
    background: var(--sc-gold);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.back-to-top:hover {
    background: var(--sc-white);
    transform: translateY(-3px);
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 0 36px;
        text-align: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-partner {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;

    background: var(--sc-white);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        order: 3;
    }

    .navbar .nav-inner {
        flex-wrap: wrap;
    }

    .nav-right {
        gap: 8px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        background: var(--sc-green-dark);
        border-top: 1px solid rgba(255, 255, 255, .08);
        transform: translateY(-6px);
        transition: max-height .35s ease, opacity .3s ease, transform .3s ease;
    }

    .nav-links.active {
        max-height: calc(100vh - var(--sc-nav-h));
        opacity: 1;
        overflow-y: auto;
        transform: translateY(0);
        box-shadow: var(--sc-shadow-strong);
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-links > li > a {
        padding: 16px 24px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

    .nav-links > li > a::after {
        display: none;
    }

    /* Parts dropdown becomes an inline accordion instead of a hover flyout */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;

        max-height: 0;
        margin-top: 0;
        padding: 0 0 0 14px;

        background: rgba(0, 0, 0, .12);
        border: none;
        border-radius: 0;
        box-shadow: none;

        overflow: hidden;
        transition: max-height .3s ease;
    }

    .nav-item-dropdown.open .dropdown-menu {
        max-height: 400px;
        padding: 6px 0 6px 14px;
    }

    .dropdown-menu li a {
        padding: 12px 10px;
        border-radius: 0;
    }

    /* Brand elements stay visible on mobile, just sized down to fit
       alongside the search icon and hamburger in one row */
    .nav-brand-group {
        gap: 10px;
        min-width: 0;
    }

    .logo-link .logo {
        height: 40px;
    }

    .nav-brand-divider {
        height: 22px;
    }

    .parent-logo-link .parent-logo {
        height: 18px;
        max-width: 100px;
    }

    .nav-right {
        gap: 10px;
    }

    .nav-badge {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }

    .nav-search-form {
        display: none;
    }

    .nav-search-mobile {
        display: flex;
    }
}

@media (max-width: 420px) {
    .nav-brand-group {
        gap: 7px;
    }

    .logo-link .logo {
        height: 34px;
    }

    .nav-brand-divider {
        display: none;
    }

    .parent-logo-link .parent-logo {
        height: 15px;
        max-width: 74px;
    }

    .nav-right {
        gap: 6px;
    }

    .nav-badge {
        width: 26px;
        height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *:not(.hero-shape-spin) {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}