/* ===============================
GLOBAL
=============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #EAF4FA;
    overflow-x: hidden;
}

/* ===============================
HEADER
=============================== */

.sv-header {
    width: 100%;
    background: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    border-bottom: 1px solid #eee;
}

.sv-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* LOGO */
.sv-logo a {
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    color: #000;
}

/* ===============================
NAV - DESKTOP BASE
=============================== */

.sv-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.sv-nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap; /* 🔥 IMPORTANT */
}

.sv-nav li {
    position: relative;
    white-space: nowrap; /* 🔥 IMPORTANT */
}

.sv-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 15px;
}

.sv-nav ul {
    align-items: center;
}

/* ===============================
DESKTOP DROPDOWN
=============================== */

@media (min-width: 769px){

    .sv-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        display: none;
        flex-direction: column;
        min-width: 220px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 9999;
    }

    .sv-dropdown li {
        width: 100%;
    }

    .sv-dropdown a {
        display: block;
    }

    .sv-menu-item:hover > .sv-dropdown {
        display: block;
    }
    
    .sv-dropdown {
    min-width: 180px;
    max-width: 220px;
    }
    
    .sv-dropdown li {
    display: block;
    }

    .sv-dropdown li a {
    display: block;
    padding: 6px 12px;
    }

}

/* ===============================
DROPDOWN SPACING FIX
=============================== */

.sv-dropdown a {
    font-size: 14px;     /* 🔥 slightly smaller */
    line-height: 1.3;    /* 🔥 tighter */
}

.sv-dropdown li {
    margin: 0;
}

/* ===============================
HAMBURGER
=============================== */

.sv-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.sv-hamburger span {
    width: 26px;
    height: 3px;
    background: #000;
    display: block;
}

/* ===============================
MOBILE MENU
=============================== */

@media (max-width: 768px) {

    .sv-hamburger {
        display: flex;
    }

    .sv-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;

        display: flex;
        justify-content: flex-start;
        align-items: flex-start;

        transform: translateX(100%);
        transition: transform 0.3s ease;

        padding: 80px 30px;
    }

    .sv-nav.active {
        transform: translateX(0);
    }

    .sv-nav ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: flex-start;
    }

    .sv-nav li {
        width: 100%;
    }

    .sv-nav a {
        font-size: 20px;
        display: block;
        width: 100%;
    }

}

/* ===============================
MOBILE ACCORDION
=============================== */

@media (max-width: 768px){

    .sv-dropdown {
        position: static;
        display: none;
        width: 100%;
        background: transparent;
        padding-left: 15px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .sv-menu-item.active > .sv-dropdown {
        display: block;
        max-height: 500px;
    }

}

/* ===============================
ARROW
=============================== */

.sv-arrow {
    display: inline-block;
    margin-left: 8px;
    width: 6px;
    height: 6px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
    transition: 0.3s ease;
}

.sv-menu-item.active > a .sv-arrow {
    transform: rotate(-135deg);
}

@media (min-width: 769px){
    .sv-arrow {
        display: none;
    }
}

/* ===============================
BUTTON
=============================== */

.sv-btn {
    background: #0B3C5D;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 4px;
}

/* ===============================
HERO
=============================== */

.sv-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.sv-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease, transform 6s ease;
}

.sv-slide.active {
    opacity: 1;
    transform: scale(1.05);
}

.sv-hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(11, 60, 93, 0.35);
    z-index: 2;
}

.sv-hero-content {
    position: relative;
    z-index: 3;
    padding-top: 120px;
    color: #FFFFFF;
}

.sv-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
}

@media (max-width: 768px){
    .sv-hero-content h1 {
        font-size: 36px;
    }
}

@media (min-width: 769px){

    .sv-dropdown {
        display: none !important; /* 🔥 FORCE HIDE */
    }

    .sv-menu-item:hover > .sv-dropdown {
        display: block !important; /* 🔥 ONLY ON HOVER */
    }

}

/* ===============================
FINAL DROPDOWN SPACING OVERRIDE
=============================== */

.sv-dropdown li a {
    padding: 6px 14px;
    font-size: 14px;
    line-height: 1.3;
    display: block;
}

.sv-dropdown li a {
    padding: 6px 14px;
    font-size: 14px;
    line-height: 1.3;
    display: block;
}