/* =====================================================
   ASP SOUTH AMERICA - NEW MENU (header + navigation)
   Works with the markup in asp-menu-header.html
   Load after theme style.css and asp-new-design.css
===================================================== */

:root {
    --navy: #071b36;
    --navy-light: #102c50;
    --blue: #087fbd;
    --cyan: #24c4df;
    --text: #263447;
    --muted: #718096;
}

/* Hide the old Sothink image menu and its decorations (if still present) */
#nav, #navfoot { display: none !important; }

.asp-container { width: min(1200px, 94%); margin: auto; }

/* ---------- Logo header ---------- */
.asp-header {
    background: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,.05);
    position: relative;
    z-index: 1000;
}
.asp-header-inner {
    min-height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}
.asp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
}
.asp-logo:hover { color: var(--navy); }
.asp-logo-icon {
    width: 45px;
    height: 45px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 25px;
    background: linear-gradient(135deg, #087fbd, #24c4df);
}
.asp-logo small {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--muted);
    font-weight: 700;
}
.asp-social { display: flex; gap: 9px; }
.asp-social a {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}
.asp-social a:hover { background: var(--cyan); color: var(--navy); }

/* ---------- Navigation ---------- */
.asp-nav { background: var(--navy); position: relative; z-index: 999; }
.asp-nav-inner { display: flex; align-items: center; justify-content: space-between; }

.asp-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
    margin: 0;
    padding: 0;
}
.asp-menu > li { position: relative; margin: 0; padding: 0; }
.asp-menu > li > a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 19px 13px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: .25s;
}
.asp-menu > li > a:hover,
.asp-menu > li:hover > a,
.asp-menu > li:focus-within > a {
    background: var(--blue);
    color: #fff;
}
.asp-arrow { font-size: 10px; opacity: .8; }

.asp-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
    list-style: none;
    margin: 0;
    padding: 9px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: .25s;
}
.asp-has-dropdown:hover .asp-dropdown,
.asp-has-dropdown:focus-within .asp-dropdown,
.asp-has-dropdown.open .asp-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.asp-dropdown li { margin: 0; padding: 0; }
.asp-dropdown a {
    display: block;
    padding: 11px 13px;
    color: var(--text);
    font-size: 13px;
    border-radius: 7px;
    text-decoration: none;
    transition: .2s;
}
.asp-dropdown a:hover { background: #eaf6fc; color: var(--blue); padding-left: 19px; }

/* Last dropdowns open to the left so they don't overflow the screen */
.asp-menu > li:nth-last-child(-n+2) .asp-dropdown { left: auto; right: 0; }

.asp-menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 27px;
    cursor: pointer;
    padding: 12px;
    border-radius: 0;
    text-transform: none;
}
.asp-menu-toggle:hover { background: transparent; color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
    .asp-menu > li > a { padding: 17px 9px; font-size: 10px; }
}

@media (max-width: 850px) {
    .asp-header-inner { min-height: 75px; }
    .asp-menu-toggle { display: block; }
    .asp-nav-inner { display: block; }

    .asp-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 8px 0;
    }
    .asp-menu.active { display: flex; }
    .asp-menu > li > a { padding: 14px 18px; font-size: 13px; }

    .asp-dropdown,
    .asp-menu > li:nth-last-child(-n+2) .asp-dropdown {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        background: var(--navy-light);
        padding: 5px 15px 10px;
    }
    .asp-has-dropdown:hover .asp-dropdown { display: none; }
    .asp-has-dropdown.open .asp-dropdown { display: block; }
    .asp-dropdown a { color: #d9e7f7; }
    .asp-dropdown a:hover { background: var(--blue); color: #fff; }
}

@media (max-width: 550px) {
    .asp-logo { font-size: 20px; }
    .asp-logo-icon { width: 39px; height: 39px; }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .asp-menu *, .asp-dropdown { transition: none !important; }
}