/* ===============================
   Logo Wrapper
   =============================== */
.nav-link{
    font-family: 'Oswald','Inter', sans-serif;
}

.logo-wrapper {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

#logo-primary {
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Hover effect on logo */
.logo-wrapper:hover .company-name {
    color: #d44e00;
}

.logo-wrapper:hover #logo-primary {
    transform: scale(1.02);
}

/* Smooth scaling transition */
#logo-primary,
.company-name,
.company-desc {
    transition: all 0.2s ease;
}

/* Responsive Logo — Mobile Only */
@media (max-width: 991.98px) {
    .logo-wrapper {
        gap: 8px;
    }
    
    #logo-primary {
        max-height: 55px;
    }
    
    .company-name {
        font-size: 24px;
    }
    
    .company-desc {
        font-size: 6px;
        letter-spacing: 2.5px;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        gap: 6px;
    }
    
    #logo-primary {
        max-height: 45px;
    }
    
    .company-name {
        font-size: 20px;
    }
    
    .company-desc {
        font-size: 5.5px;
        letter-spacing: 2px;
    }
}

@media (max-width: 360px) {
    #logo-primary {
        max-height: 40px;
    }
    
    .company-name {
        font-size: 18px;
    }
    
    .company-desc {
        font-size: 5px;
        letter-spacing: 1.5px;
    }
}

p {
    margin: 0;
}


/* ===============================
   Navigation — Base Styles
   =============================== */
#masthead {
    background-color: var(--nav-white);

    /* reenable if wanted */
    /* margin-bottom: 15px !important; */
}

.navbar {
    padding: 0.5rem 50px;
}

.navbar-nav {
    gap: 2rem;
    --bs-nav-link-padding-y: 0 !important;
}

.menu-item a {
    color: #4e4e4e;
    text-decoration: none;
}


/* ===============================
   Animated Underline
   =============================== */

/* .menu-item.special-item a:not(.dropdown-toggle) {
    position: relative;
}

.menu-item.special-item a:not(.dropdown-toggle)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #ef5d00;
    transform: translateX(-50%);
    transition: width 0.25s ease-in-out;
}

.menu-item.special-item a:not(.dropdown-toggle):hover::after,
.menu-item.special-item a:not(.dropdown-toggle):focus::after {
    width: 100%;
} */


/* ===============================
   Active / Current Page Item
   =============================== */
.menu-item.current-menu-item > a:not(.dropdown-toggle):not(.dropdown-menu a),
.menu-item.current_page_item > a:not(.dropdown-toggle):not(.dropdown-menu a),
.menu-item.current-menu-ancestor > a:not(.dropdown-toggle):not(.dropdown-menu a),
.menu-item.current_page_ancestor > a:not(.dropdown-toggle):not(.dropdown-menu a) {
    color: #ff3433;
    position: relative;
    pointer-events: none;
    cursor: default;
}

.menu-item.current-menu-item > a:not(.dropdown-toggle):not(.dropdown-menu a)::after,
.menu-item.current_page_item > a:not(.dropdown-toggle):not(.dropdown-menu a)::after,
.menu-item.current-menu-ancestor > a:not(.dropdown-toggle):not(.dropdown-menu a)::after,
.menu-item.current_page_ancestor > a:not(.dropdown-toggle):not(.dropdown-menu a)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #0097b2;
}


/* ===============================
   Dropdown — Base (all depths)
   =============================== */
.dropdown-menu {
    padding: 4px 0;
    margin: 0;
    border: none;
    border-radius: 8px;
    background-color: #eaefed;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    min-width: 200px;
}

.dropdown-menu .menu-item {
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1;
    position: relative; /* anchor for nested flyouts */
}

.dropdown-menu .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.1rem;
    height: auto;
    line-height: 1.4;
    color: var(--primary-pink);
    background: transparent;
    border-radius: 0;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.dropdown-menu .nav-link:hover,
.dropdown-menu .nav-link:focus {
    background: #ecdad9;
    margin: 5px;
    border-radius: 8px;
    /* color: #0d5e5b; */
    text-decoration: none;
    opacity: 1;
}

/* Right-arrow caret on child items that have children */
.dropdown-menu .menu-item-has-children > .nav-link .submenu-caret {
    margin-left: 0.5rem;
    opacity: 0.6;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}


/* ===============================
   Desktop (≥ 992px) — Flyout submenus
   =============================== */
@media (min-width: 992px) {
    .navbar-nav {
        --bs-nav-link-padding-x: 0.2rem;
    }

    /* L1: open below the navbar item */
    .navbar-nav > .dropdown:hover > .dropdown-menu {
        display: block;
        top: 100%;
        left: 0;
    }

    /* L2+: fly out to the RIGHT of the parent item */
    .dropdown-menu .dropdown-menu {
        position: absolute !important;
        top: -4px !important;
        left: 100% !important;
        margin: 0 !important;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
        padding-left: 0;
    }

    /* Reset padding at all nested levels */
    .dropdown-menu .dropdown-menu .nav-link,
    .dropdown-menu .dropdown-menu .dropdown-menu .nav-link {
        padding-left: 1.1rem;
        padding-right: 1.1rem;
    }

    /* Show nested dropdown on hover */
    .dropdown-menu .dropdown:hover > .dropdown-menu,
    .dropdown-menu .menu-item-has-children:hover > .dropdown-menu {
        display: block;
    }

    /* Flip LEFT when near the right edge of the viewport */
    .dropdown-menu .dropdown-menu.flip-left {
        left: auto !important;
        right: 100% !important;
    }

    .dropdown-menu {
        transform: none !important;
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }

    .fullscreen-menu,
    .menu-toggle {
        display: none !important;
    }
}

/* ===============================
   Logo — Mobile Optimizations
   =============================== */
@media (max-width: 991.98px) {
    .logo-wrapper {
        gap: 8px;
        align-items: center;
    }
    
    #logo-primary {
        max-height: 50px !important;
        width: auto;
    }
    
    .company-name {
        font-size: 22px;
        line-height: 1.1;
    }
    
    .company-desc {
        font-size: 6px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        gap: 6px;
    }
    
    #logo-primary {
        max-height: 40px !important;
    }
    
    .company-name {
        font-size: 18px;
    }
    
    .company-desc {
        font-size: 5px;
        letter-spacing: 1.5px;
    }
}


/* ================================================
   MOBILE MENU 
   ================================================ */
@media (max-width: 991.98px) {
 
    :root {
        --mobile-text:           #ffffff;
        --mobile-text-secondary: rgba(255, 255, 255, 0.75);
        --mobile-border:         rgba(255, 255, 255, 0.1);
        --mobile-accent:         #0097b2;
        --mobile-hover-bg:       rgba(43, 200, 232, 0.1);
    }
 
    /* ── Hamburger button ── */
    .menu-toggle {
        position: relative;
        z-index: 10001;
        padding: 0.5rem;
        background: transparent;
        border: 1.5px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.25s ease;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
 
    .menu-toggle:hover {
        border-color: #0097b2;
        background: rgba(43, 200, 232, 0.1);
    }
 
    /* Hide toggle when menu is open */
    .mobile-nav-wrapper:has(.fullscreen-menu.active) .menu-toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
 
    /* Hamburger lines */
    .menu-icon {
        display: block;
        width: 22px;
        height: 2px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 2px;
        position: relative;
        transition: background 0.25s ease;
    }
 
    .menu-icon::before,
    .menu-icon::after {
        content: "";
        display: block;
        width: 22px;
        height: 2px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 2px;
        position: absolute;
        transition: transform 0.25s ease, top 0.25s ease;
    }
 
    .menu-icon::before { top: -7px; }
    .menu-icon::after  { top:  7px; }
 
    /* ── Fullscreen menu — dark glass ── */
    .fullscreen-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        z-index: 10000;
        display: flex;
        flex-direction: column;
 
        /* Dark navy glass — matches header */
        background: rgba(5, 14, 26, 0.97);
        backdrop-filter: blur(24px) saturate(1.8);
        -webkit-backdrop-filter: blur(24px) saturate(1.8);
        border: none;
 
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition:
            transform   0.35s cubic-bezier(0.4, 0, 0.2, 1),
            opacity     0.3s ease,
            visibility  0.3s ease;
 
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 90px 1.5rem 2rem;
    }
 
    .fullscreen-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
 
    /* Subtle top accent line */
    .fullscreen-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, #0097b2, transparent);
        opacity: 0.6;
    }
 
    /* ── Close button ── */
    .menu-close {
        position: absolute;
        top: 18px;
        right: 18px;
        z-index: 10001;
    }
 
    .close-btn {
        font-size: 2rem;
        color: rgba(255, 255, 255, 0.7);
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        cursor: pointer;
        line-height: 1;
        padding: 0;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        transition: all 0.2s ease;
    }
 
    .close-btn:hover {
        background: rgba(43, 200, 232, 0.15);
        border-color: rgba(43, 200, 232, 0.4);
        color: #0097b2;
        transform: rotate(90deg);
    }
 
    /* ── Menu list ── */
    .fullscreen-menu-list,
    .fullscreen-menu-list ul {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }
 
    .fullscreen-menu-list {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
 
    /* ── Item row ── */
    .mobile-item-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
    }
 
    /* ── Nav links ── */
    .mobile-nav-link {
        display: block;
        flex: 1;
        color: var(--mobile-text);
        text-decoration: none;
        font-weight: 500;
        padding: 0.8rem 0.5rem 0.8rem 0;
        transition: color 0.2s ease, padding-left 0.2s ease;
    }
 
    .mobile-nav-link:hover,
    .mobile-nav-link:focus {
        color: #0097b2;
        padding-left: 6px;
    }
 
    /* Depth sizing */
    .mobile-menu-item.depth-0 > .mobile-item-row > .mobile-nav-link {
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: -0.01em;
    }
 
    .mobile-menu-item.depth-1 > .mobile-item-row > .mobile-nav-link {
        font-size: 1.15rem;
        font-weight: 500;
        color: var(--mobile-text-secondary);
    }
 
    .mobile-menu-item.depth-2 > .mobile-item-row > .mobile-nav-link {
        font-size: 1rem;
        font-weight: 400;
        color: var(--mobile-text-secondary);
        opacity: 0.85;
    }
 
    /* Active page */
    .mobile-menu-item.current-menu-item > .mobile-item-row > .mobile-nav-link,
    .mobile-menu-item.current_page_item > .mobile-item-row > .mobile-nav-link,
    .mobile-menu-item.current-menu-ancestor > .mobile-item-row > .mobile-nav-link {
        color: #0097b2 !important;
    }
 
    /* ── Submenu toggle ── */
    .mobile-submenu-toggle {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.6);
        font-size: 1.2rem;
        line-height: 1;
        padding: 0;
        margin-left: 0.5rem;
        cursor: pointer;
        transition: all 0.25s ease;
        border-radius: 6px;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
 
    .mobile-submenu-toggle:hover {
        background: rgba(43, 200, 232, 0.15);
        border-color: #0097b2;
        color: #0097b2;
    }
 
    .mobile-submenu-toggle[aria-expanded="true"] {
        background: rgba(43, 200, 232, 0.15);
        border-color: #0097b2;
        color: #0097b2;
        transform: rotate(90deg);
    }
 
    /* ── Submenu accordion ── */
    .mobile-submenu {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }
 
    .mobile-submenu > * { overflow: hidden; }
 
    .mobile-submenu:not([hidden]) {
        display: grid;
        grid-template-rows: 1fr;
    }
 
    /* Depth indentation */
    .mobile-submenu.depth-0 {
        padding-left: 1rem;
        margin-left: 0.5rem;
        border-left: 2px solid rgba(43, 200, 232, 0.3);
        margin-top: 0.2rem;
        margin-bottom: 0.4rem;
    }
 
    .mobile-submenu.depth-1 {
        padding-left: 0.8rem;
        margin-left: 0.5rem;
        border-left: 2px solid rgba(43, 200, 232, 0.15);
    }
 
    /* ── Item separators ── */
    .mobile-menu-item.depth-0 {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 0.4rem;
        margin-bottom: 0.6rem;
    }
 
    .mobile-menu-item.depth-0:last-child {
        border-bottom: none;
    }
 
    /* ── Entrance animation ── */
    @keyframes slideInRight {
        from { opacity: 0; transform: translateX(16px); }
        to   { opacity: 1; transform: translateX(0); }
    }
 
    .fullscreen-menu.active .mobile-menu-item {
        animation: slideInRight 0.35s ease forwards;
        opacity: 0;
    }
 
    .fullscreen-menu.active .mobile-menu-item:nth-child(1) { animation-delay: 0.05s; }
    .fullscreen-menu.active .mobile-menu-item:nth-child(2) { animation-delay: 0.10s; }
    .fullscreen-menu.active .mobile-menu-item:nth-child(3) { animation-delay: 0.15s; }
    .fullscreen-menu.active .mobile-menu-item:nth-child(4) { animation-delay: 0.20s; }
    .fullscreen-menu.active .mobile-menu-item:nth-child(5) { animation-delay: 0.25s; }
    .fullscreen-menu.active .mobile-menu-item:nth-child(6) { animation-delay: 0.30s; }
    .fullscreen-menu.active .mobile-menu-item:nth-child(7) { animation-delay: 0.35s; }
    .fullscreen-menu.active .mobile-menu-item:nth-child(8) { animation-delay: 0.40s; }
 
    /* ── Small screens ── */
    @media (max-width: 480px) {
        .fullscreen-menu {
            padding: 80px 1.25rem 2rem;
        }
 
        .mobile-menu-item.depth-0 > .mobile-item-row > .mobile-nav-link {
            font-size: 1.3rem;
        }
 
        .mobile-item-row {
            min-height: 48px;
        }
    }
 
    /* ── Landscape ── */
    @media (max-height: 600px) and (orientation: landscape) {
        .fullscreen-menu {
            padding-top: 65px;
        }
 
        .mobile-menu-item.depth-0 > .mobile-item-row > .mobile-nav-link {
            font-size: 1.2rem;
        }
 
        .mobile-item-row { min-height: 42px; }
    }
}



/* -----------------------------------------------
   STICKY POSITIONING
   ----------------------------------------------- */
#masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    /* Glass base — shown immediately */
    border-bottom: 1px solid rgba(45, 190, 220, 0.12);

    /* Smooth transitions for scroll state changes */
    transition:
        background    0.35s ease,
        border-color  0.35s ease,
        box-shadow    0.35s ease,
        padding       0.35s ease;
}

/* Inner container padding */
#masthead .container-fluid {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    transition: padding 0.35s ease;
}

/* -----------------------------------------------
   SCROLLED STATE — added by JS when page scrolls
   ----------------------------------------------- */
#masthead.scrolled {
    background: rgba(5, 14, 26, 0.82);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border-bottom-color: rgba(45, 190, 220, 0.22);
    box-shadow:
        0 1px 0 rgba(45, 190, 220, 0.08),
        0 4px 32px rgba(0, 0, 0, 0.45);
}

/* Shrink inner padding slightly on scroll */
#masthead.scrolled .container-fluid {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

/* Shrink logo on scroll */
#masthead.scrolled #logo-primary {
    max-height: 54px !important;
}

/* -----------------------------------------------
   PUSH CONTENT DOWN so it doesn't hide behind the fixed header.
   ----------------------------------------------- */
body.has-fixed-header #primary,
body.has-fixed-header .site-main {
    padding-top: 105px;
}

/* When scrolled, header is shorter — compensate */
body.has-fixed-header.scrolled #primary,
body.has-fixed-header.scrolled .site-main {
    padding-top: 72px;
}

/* -----------------------------------------------
   NAV LINK COLORS
   ----------------------------------------------- */
#masthead .navbar-nav .nav-link,
#masthead .menu-item > a {
    color: #000 !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

#masthead.scrolled .navbar-nav .nav-link,
#masthead.scrolled .menu-item > a {
    color: #fff !important;
}

#masthead .navbar-nav .nav-link:hover,
#masthead .menu-item > a:hover {
    opacity: .8;
}

/* Active menu item */
#masthead .menu-item.current-menu-item > a,
#masthead .menu-item.current_page_item > a,
#masthead .menu-item.current-menu-ancestor > a {
    color: #0097b2 !important;
}

/* -----------------------------------------------
   DROPDOWN
   ----------------------------------------------- */
#masthead .dropdown-menu {
    background: rgba(8, 20, 36, 0.92);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(45, 190, 220, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

#masthead .dropdown-menu .nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
}

#masthead .dropdown-menu .nav-link:hover,
#masthead .dropdown-menu .nav-link:focus {
    background: rgba(45, 190, 220, 0.1);
    color: #ffffff !important;
    margin: 3px 6px;
    border-radius: 7px;
}

/* -----------------------------------------------
   LOGO 
   ----------------------------------------------- */
#masthead #logo-primary {
    max-height: 64px;
    width: auto;
    transition: max-height 0.35s ease, transform 0.2s ease;
}

/* -----------------------------------------------
   HAMBURGER 
   ----------------------------------------------- */
#masthead .menu-icon,
#masthead .menu-icon::before,
#masthead .menu-icon::after {
    background: rgba(255, 255, 255, 0.85);
}

#masthead .menu-toggle {
    border-color: rgba(255, 255, 255, 0.3);
}

#masthead .menu-toggle:hover {
    border-color: #0097b2;
    background: rgba(43, 200, 232, 0.1);
}

#masthead .menu-toggle:hover .menu-icon,
#masthead .menu-toggle:hover .menu-icon::before,
#masthead .menu-toggle:hover .menu-icon::after {
    background: #0097b2;
}

/* -----------------------------------------------
   RESPONSIVE 
   ----------------------------------------------- */
@media (max-width: 991.98px) {
    #masthead #logo-primary {
        max-height: 50px !important;
    }

    #masthead.scrolled #logo-primary {
        max-height: 42px !important;
    }

    body.has-fixed-header #primary {
        padding-top: 76px;
    }
}

@media (max-width: 480px) {
    #masthead #logo-primary {
        max-height: 42px !important;
    }

    body.has-fixed-header #primary {
        padding-top: 68px;
    }
}