﻿/* ===============================
   HEADER – PREMIUM
================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid #eef2f1;
}

.header-inner {
    max-width: 1240px;
    margin: auto;
    padding: 14px 6vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo img {
    height: 42px;
}

/* NAV */
.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

    .main-nav a,
    .nav-link {
        font-size: 15px;
        font-weight: 500;
        color: #153e35;
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px 0;
    }

        .main-nav a:hover,
        .nav-link:hover {
            color: #1f7f5c;
        }

/* DROPDOWN */
.nav-dropdown {
    position: relative;
}

    .nav-dropdown .arrow {
        font-size: 12px;
        margin-left: 4px;
    }

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    width: 520px; /* fixed controlled width */
    max-height: 420px; /* prevent page overflow */
    overflow-y: auto; /* scroll if too long */

    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 🔥 2 columns */
    gap: 6px 18px;
}


    .dropdown-menu a {
        display: block;
        padding: 6px 4px;
        font-size: 13.5px; /* smaller font */
        font-weight: 500;
        color: #2c3e37;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

        .dropdown-menu a:hover {
            background: #f3f8f6;
            color: #1f7f5c;
            padding-left: 10px;
        }


/* SHOW DROPDOWN */
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #153e35;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

    .hamburger span {
        width: 22px;
        height: 2px;
        background: #153e35;
        display: block;
    }


@media (max-width: 900px) {

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 24px;
        gap: 22px;
        box-shadow: -20px 0 40px rgba(0,0,0,0.1);
        transition: right 0.35s ease;
    }

        .main-nav.open {
            right: 0;
        }

    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 12px;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .hamburger {
        display: flex;
    }
}