﻿
/* ==========================================================================
   header.css
   Styles for the LANDING PAGE header (NavigationView.Header.cshtml):
   header bar, logo, desktop nav, phone pill, hamburger, mobile menu, and the
   search icon's look in this header (transparent + scrolled states).

   Does NOT style the search overlay itself — see header-search.css.
   ========================================================================== */

/* ===== Header shell ===== */
.sp-header {
    position: fixed;
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: none;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}

/* Sitefinity backend editor only */
.RadDock .sp-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    z-index: 1;
    background-color: gray;
}

.sp-header.sp-scrolled {
    background: var(--sp-linen);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.sp-header .sp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== Logo ===== */
.sp-logo-badge {
    display: inline-flex;
    align-items: center;
}

    .sp-logo-badge img {
        height: 45px;
        width: auto;
        display: block;
    }

/* ===== Desktop nav ===== */
.sp-header .sp-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.sp-nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-nav-item {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: -14px;
}

.sp-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color .25s ease;
}

    .sp-nav-link:hover {
        color: var(--sp-gold-light);
    }

.sp-header.sp-scrolled .sp-nav-link {
    color: var(--sp-ink);
}

    .sp-header.sp-scrolled .sp-nav-link:hover {
        color: var(--sp-terracotta);
    }

.sp-nav-caret {
    width: 9px;
    height: 9px;
    transition: transform .2s ease;
}

.sp-nav-item:hover .sp-nav-caret {
    transform: rotate(180deg);
}

.sp-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    min-width: 140px;
    padding: 4px;
    background: var(--sp-ink);
    border-radius: 7px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
}

.sp-nav-item:hover .sp-nav-dropdown {
    opacity: 1;
    visibility: visible;
}

.sp-nav-dropdown a {
    display: block;
    padding: 7px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px;
    transition: color .15s ease;
}

    .sp-nav-dropdown a:hover {
        color: var(--sp-gold-light);
    }

/* ===== Phone pill ===== */
.sp-phone-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sp-white);
    text-decoration: none;
    background: var(--sp-terracotta);
    border: 1.5px solid var(--sp-terracotta);
    border-radius: 24px;
    transition: transform .15s ease, background .2s ease;
}

    .sp-phone-pill:hover,
    .sp-phone-pill:visited,
    .sp-phone-pill:active,
    .sp-phone-pill:focus {
        color: var(--sp-white);
    }

    .sp-phone-pill:hover {
        background: var(--sp-terracotta-dark);
        border-color: var(--sp-terracotta-dark);
        transform: translateY(-1px);
    }
/* ===== Search ===== */
.sp-header .sp-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    flex-shrink: 0;
    color: var(--sp-white);
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

    .sp-header .sp-search-toggle svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
    }

    .sp-header .sp-search-toggle:hover {
        background: rgba(255, 255, 255, 0.12);
    }

.sp-header.sp-scrolled .sp-search-toggle {
    color: var(--sp-ink);
}

    .sp-header.sp-scrolled .sp-search-toggle:hover {
        background: rgba(18, 33, 29, 0.08);
    }
/* ===== Hamburger ===== */
.sp-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    z-index: 110;
    width: 38px;
    height: 38px;
    padding: 0;
    background: none;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .25s ease;
}

    .sp-hamburger span {
        width: 16px;
        height: 1.5px;
        background: var(--sp-white);
        transition: transform .25s ease, opacity .25s ease;
    }

.sp-header.sp-scrolled .sp-hamburger {
    border-color: rgba(18, 33, 29, 0.25);
}

    .sp-header.sp-scrolled .sp-hamburger span {
        background: var(--sp-ink);
    }

/* Confirmed-necessary !important */
.sp-hamburger.sp-open span {
    background: var(--sp-white) !important;
}

.sp-header.sp-scrolled .sp-hamburger.sp-open span {
    background: var(--sp-ink) !important;
}

.sp-hamburger.sp-open span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.sp-hamburger.sp-open span:nth-child(2) {
    opacity: 0;
}

.sp-hamburger.sp-open span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

/* ===== Mobile menu ===== */
.sp-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 105;
    max-height: 0;
    overflow-y: auto;
    background: var(--sp-ink);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: max-height .35s ease;
}

.sp-mobile-nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(10, 15, 13, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
}

    .sp-mobile-nav-scrim.sp-open {
        opacity: 1;
        visibility: visible;
    }

.sp-mobile-nav-inner {
    padding: 12px 24px 24px;
}

.sp-mnav-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-mnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--sp-white);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.sp-mnav-caret {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.sp-mnav-item.sp-open .sp-mnav-caret {
    transform: rotate(180deg);
}

.sp-mnav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.sp-mnav-item.sp-open .sp-mnav-sub {
    max-height: 300px;
}

.sp-mnav-sub a {
    display: block;
    padding: 10px 0 10px 14px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

    .sp-mnav-sub a:hover {
        color: var(--sp-gold-light);
    }

.sp-mnav-flat {
    display: block;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--sp-white);
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
    .sp-nav .sp-nav-item,
    .sp-nav > .sp-nav-link {
        display: none;
    }

    .sp-nav-link-flat {
        display: none !important;
    }

    .sp-hamburger {
        display: flex;
    }

    .sp-mobile-nav,
    .sp-mobile-nav-scrim {
        display: block;
    }
}

@media (max-width: 500px) {
    .sp-phone-pill {
        padding: 9px 11px;
    }

        .sp-phone-pill .sp-ph-text {
            display: none;
        }
}
