/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #FFFFFF;
    overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    width: 100%;
    height: 79px;
    padding: 0 48px;
    background: #FFFFFF;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.05);
    z-index: 50;
}

/* Logo */
.navbar__logo {
    flex: none;
    display: block;
    width: 108px;
    height: 79px;
}

.navbar__logo img {
    width: 108px;
    height: 79px;
    object-fit: contain;
}

/* Primary links */
.navbar__links {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    gap: 40px;
    list-style: none;
}

.navbar__links > li {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 24px;
    color: #064700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease;
}

.navbar__link:hover,
.navbar__has-dropdown:hover > .navbar__link {
    color: #CF8E00;
}

.navbar__link--active {
    color: #CF8E00;
}

/* Chevron follows the link colour + flips when the menu is open */
.navbar__chevron {
    flex: none;
    width: 20px;
    height: 20px;
    color: inherit;
    transition: transform 0.2s ease;
}
.navbar__has-dropdown:hover .navbar__chevron {
    transform: rotate(180deg);
}

/* ===== Dropdowns ===== */
.navbar__has-dropdown {
    position: relative;
}

.navbar__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 232px;
    padding: 11px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.13);
    display: flex;
    flex-direction: column;
    gap: 9px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 60;
}

/* invisible bridge so the menu doesn't close in the gap under the link */
.navbar__dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}

.navbar__has-dropdown:hover .navbar__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.navbar__drop-item {
    display: block;
    padding: 10px 20px;
    border-radius: 10px;
    background: #E9EFE6;
    color: #064700;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 22px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.navbar__drop-item:hover,
.navbar__drop-item:focus {
    background: #CF8E00;
    color: #FFFFFF;
}

/* ===== Utilities ===== */
.navbar__utils {
    flex: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.navbar__icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
}

.navbar__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.navbar__lang-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    color: #064700;
    white-space: nowrap;
}

/* Hamburger toggle — hidden on desktop */
.navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 26px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    order: 2;
}
.navbar__toggle span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    background: #064700;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
    .navbar { padding: 0 24px; gap: 16px; }
    .navbar__links { gap: 26px; }
    .navbar__link { font-size: 16px; }
}

@media (max-width: 960px) {
    .navbar {
        flex-wrap: wrap;
        height: 66px;
        padding: 0 18px;
        justify-content: space-between;
    }
    .navbar__logo { order: 1; }
    .navbar__utils { order: 3; margin-left: auto; margin-right: 6px; }
    .navbar__toggle { display: flex; order: 4; }

    /* animate hamburger -> X when open */
    .navbar__toggle-cb:checked ~ .navbar__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .navbar__toggle-cb:checked ~ .navbar__toggle span:nth-child(2) { opacity: 0; }
    .navbar__toggle-cb:checked ~ .navbar__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* the links become a slide-down panel */
    .navbar__links {
        order: 5;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 2px;
        padding: 6px 0 14px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        margin-top: 4px;
    }
    .navbar__toggle-cb:checked ~ .navbar__links { display: flex; }

    .navbar__links > li { height: auto; flex-direction: column; align-items: stretch; }
    .navbar__link { padding: 12px 8px; font-size: 17px; justify-content: space-between; }

    /* dropdowns become inline, always-open accordions inside the mobile menu */
    .navbar__has-dropdown:hover .navbar__chevron { transform: none; }
    .navbar__dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        min-width: 0;
        padding: 4px 0 6px 14px;
        gap: 6px;
    }
    .navbar__dropdown::before { display: none; }
    .navbar__drop-item { text-align: left; font-size: 15px; padding: 9px 16px; }
}
