/* ══════════════════════════════════════════════════════════
   DROPDOWN - SVG CHEVRON (CLEAN VERSION)
   Working perfectly - all old code removed
══════════════════════════════════════════════════════════ */

/* === DESKTOP DROPDOWN === */
@media (min-width: 769px) {
    /* Nav container */
    .nav {
        display: flex;
        align-items: center;
    }
    
    /* Main menu UL */
    .nav ul,
    .nav .nav-menu {
        display: flex;
        flex-direction: row;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
    }
    
    /* Menu items */
    .nav li {
        position: relative;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    /* Menu links - 14PX FONT SIZE WITH !important */
    .nav li > a {
        font-family: var(--font-h);
        font-size: 14px !important;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--white);
        text-decoration: none;
        transition: color 0.2s;
        display: inline-block;
        padding: 20px 0;
    }
    
    .nav li > a:hover {
        color: var(--red);
    }
    
    .site-header.scrolled .nav li > a {
        color: var(--navy);
    }
    
    .site-header.scrolled .nav li > a:hover {
        color: var(--red);
    }
    
    /* SVG CHEVRON DOWN - CLEAN & SIMPLE */
    .nav .menu-item-has-children > a::after {
        content: "";
        display: inline-block;
        top: 38%;
        width: 12px;
        height: 8px;
        margin-left: 8px;
        vertical-align: middle;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M1 1 L6 7 L11 1" stroke="white" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
        background-size: contain;
        background-repeat: no-repeat;
        transition: transform 0.2s;
        transform: none;
        border: none;
    }
    
    /* Dark chevron for scrolled header */
    .site-header.scrolled .nav .menu-item-has-children > a::after {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M1 1 L6 7 L11 1" stroke="%231a1d3a" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    }
    
    /* SUBMENU - Hidden by default */
    .nav .sub-menu {
        display: none;
        opacity: 0;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: var(--navy);
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        padding: 0;
        margin-top: 0;
        z-index: 9999;
        border-radius: 6px;
        list-style: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
        transform: translateY(-10px);
        pointer-events: none;
    }
    
    .site-header.scrolled .nav .sub-menu {
        background: var(--white);
        border: 1px solid rgba(0,0,0,0.1);
    }
    
    /* SHOW submenu on hover */
    .nav .menu-item-has-children:hover > .sub-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    /* Large hover area */
    .nav .menu-item-has-children > a::before {
        content: "";
        position: absolute;
        top: 0;
        left: -10px;
        right: -10px;
        bottom: -20px;
        z-index: 1;
    }
    
    /* Submenu items */
    .nav .sub-menu li {
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    
    .nav .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .site-header.scrolled .nav .sub-menu li {
        border-bottom-color: rgba(0,0,0,0.06);
    }
    
    /* Submenu links - 14PX FONT SIZE WITH !important */
    .nav .sub-menu a {
        display: block;
        padding: 14px 20px;
        color: var(--white);
        font-family: var(--font-h);
        font-size: 14px !important;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        white-space: nowrap;
        transition: all 0.2s;
    }
    
    .nav .sub-menu li:first-child a {
        border-radius: 6px 6px 0 0;
    }
    
    .nav .sub-menu li:last-child a {
        border-radius: 0 0 6px 6px;
    }
    
    .nav .sub-menu a:hover {
        background: var(--red);
        color: var(--white);
        padding-left: 28px;
    }
    
    .site-header.scrolled .nav .sub-menu a {
        color: var(--navy);
    }
    
    .site-header.scrolled .nav .sub-menu a:hover {
        background: var(--red);
        color: var(--white);
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* === MOBILE === */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* Mobile chevron */
    .menu-items .menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .menu-items .menu-item-has-children > a::after {
        content: "";
        display: inline-block;
        top: 38%;
        width: 14px;
        height: 10px;
        margin-left: 10px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 10"><path d="M1 1 L7 9 L13 1" stroke="white" stroke-width="2.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
        background-size: contain;
        background-repeat: no-repeat;
        transition: transform 0.3s;
        transform: none;
        border: none;
    }
    
    .menu-items .menu-item-has-children.open > a::after {
        transform: rotate(180deg) !important;
    }
}
