/* ================= HEADER ================= */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    padding: 15px 10%;
}

.nav-container {
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 600;
    font-size: 1.15rem;
    color: #111;

    img {
        height: 50px;
        display: flex;
    }
}

/* ================= DESKTOP NAV ================= */
.nav {
    display: flex;
    gap: 28px;
    align-items: center;

    button {
        margin-top: 0;
        margin-bottom: 0;
        font-weight: 600;
        font-size: 1.1em;
        text-transform: capitalize;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 8px 4px;
    transition: .2s;
    position: relative;
	color: #1e293b;
	text-decoration: none;
	text-transform: capitalize;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 20px;
	font-variation-settings: normal;
}

/* maroon marker dot for items WITH submenu */
.nav-item.has-sub>.nav-link {
    padding-right: 18px;
}

.nav-item.has-sub>.nav-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #0284c7;
    border-bottom: 2px solid #0284c7;
    transform: translateY(-65%) rotate(45deg);
    transition: transform .25s ease, border-color .2s ease;
    opacity: .9;
}

/* animate when active/hovered */
.nav-item.has-sub:hover>.nav-link::after,
.nav-item.open-desktop>.nav-link::after {
    transform: translateY(-35%) rotate(225deg);
    border-color: #0284c7;
}


.nav-link:hover {
    color: #0284c7;
}

/* ===== FULL WIDTH DROPDOWN ===== */
.dropdown {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: all .35s cubic-bezier(.77, 0, .18, 1);
}

.dropdown-inner {
    max-width: 1200px;
    margin: auto;
    padding: 24px 18px;
    display: flex;
    gap: 40px;

    >div {
        display: grid;
        align-items: flex-start;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 24px;
        flex-wrap: wrap;
        row-gap: 10px;
    }
}

/* show animation */
.nav-item.open-desktop .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


.dropdown a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    position: relative;
    padding-left: 16px;

    color: #1e2939;
	font-size: 1.1em;
	font-weight: 600;
	letter-spacing: 1.2px;
	line-height: 16px;
	font-variation-settings: normal;
}

/* arrow marker inside dropdown */
.dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #0284c7;
    border-bottom: 2px solid #0284c7;
    transform: translateY(-50%) rotate(-45deg);
}

.dropdown a:hover {
    color: #0284c7;
}

.socials {
    display: flex;
    align-items: center;
    column-gap: 15px;

    svg {
        color: #8b0000;
    }
}

/* ================= HAMBURGER ================= */
.hamburger {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    position: absolute;
    width: 22px;
    height: 2px;
    background: #111;
    transition: .3s;
}

.hamburger span:nth-child(1) {
    transform: translateY(-6px);
}

.hamburger span:nth-child(3) {
    transform: translateY(6px);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    transform: translateX(100%);
    transition: .35s cubic-bezier(.77, 0, .18, 1);
    padding: 90px 20px 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    z-index: 99;
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-item {
    border-bottom: 1px solid #f1f1f1;
}

.menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6px;
    font-size: 1.05rem;
    color: #111;
    text-decoration: none;
    font-weight: 500;
}

.menu-link.maroon {
    color: #0f4c81;
    font-weight: 700;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.submenu a {
    display: block;
    padding: 14px 14px;
    font-size: .95rem;
    color: #444;
    text-decoration: none;
}

.submenu a:hover {
    color: #0284c7;
}

.menu-item.open .submenu {
    max-height: 300px;
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #0284c7;
    border-bottom: 2px solid #0284c7;
    transform: rotate(-45deg);
    transition: .25s;
}

.menu-item.open .arrow {
    transform: rotate(45deg);
}

/* BACKDROP */
.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
}

.backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px) {
    .header {
        padding: 12px 5%;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo {
        img {
            height: 38px;
        }
    }

    .socials {
        display: none;
    }
}