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

body {
    font-family: "Satoshi", sans-serif;
    color: #333;
    line-height: 1.6;

    background-color: #faf8f3;
}
.desktop-logo {
    display: block;
}

.mobile-logo {
    display: none;
}
header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0);
    padding: 1rem 3%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 220px;
    height: auto;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: #FF1493;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-btn-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #01784B;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem 0.5rem 10px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-btn:hover {
    background: #7fb085;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(151, 196, 156, 0.3);
}

.contact-icon-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px white solid;
    background: white;
    padding: 10px;
    border-radius: 50%;
}

.contact-text {
    white-space: nowrap;
}

/* Desktop: contact button last, hamburger hidden */
.desktop-contact {
    display: flex;
    order: 3;
}

.mobile-contact {
    display: none;
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1101; /* keep the button above overlay/panel so X stays visible */
    order: 2;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile-only nav items (hidden on desktop) */
.mobile-only {
    display: none;
}

/* Overlay for mobile nav */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Off-canvas menu (hidden by default on mobile) */
.nav-menu {
    display: flex;
    gap: 6rem;
    align-items: center;
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.nav-item {
    color: #ffffff;
    padding: 1rem 0;
    width: 100%;
    font-size: 1.1rem;
    border-bottom: none;
    text-decoration: none;
}

.nav-item.active {
    color: #97C49C;
}

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

.nav-dropdown .nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-icon,
.nav-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333333;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #97C49C;
}

.dropdown-item.active {
    color: #97C49C;
    font-weight: 600;
}

/* Mobile / responsive adjustments */
@media (max-width: 1160px) {
    .contact-btn-nav {
        background: white;
    }
    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    /* Mobile: contact first, then hamburger */
    .desktop-contact {
        display: none;
    }

    .mobile-contact {
        display: flex;
        order: 1;
    }

    .hamburger {
        display: block;
        order: 2;
    }

    /* Make the X lines clearly visible (black) when active */
    .hamburger.active .hamburger-line:nth-child(1),
    .hamburger.active .hamburger-line:nth-child(3) {
        background: #000; /* black X */
    }
    .hamburger.active .hamburger-line:nth-child(2) {
        background: #000;
        opacity: 0; /* middle line hidden */
    }

    /* make nav-menu an off-canvas panel from the right */
    .nav-menu {
        display: none; /* keep in DOM */
        position: fixed;
        top: 0;
        right: -320px; /* hidden off-screen */
        width: 320px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 5rem 2rem;
        box-shadow: -6px 0 20px rgba(0,0,0,0.12);
        transition: right 0.35s cubic-bezier(.22,.9,.32,1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0; /* slide in */
        display: block; /* keep in DOM */
    }

    .nav-item {
        color: black;
        padding: 1rem 0;
        width: 100%;
        font-size: 1.4rem;
    }

    .nav-item.active {
        color: #97C49C;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 15px;
    }

    /* Show mobile-only items on mobile */
    .mobile-only {
        display: list-item;
    }

    /* Hamburger active state (transform into X) */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile dropdown styles */
    .nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
        margin-left: 0.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
        margin-top: 0.5rem;
    }

    /* Ensure arrow rotates on mobile when active */
    .nav-dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    /* Reset arrow when not active */
    .nav-dropdown:not(.active) .dropdown-icon {
        transform: rotate(0deg);
    }

    .dropdown-item {
        color: #000000;
        font-size: 1rem;
        padding: 0.75rem 0;
    }

    .dropdown-item:hover {
        background: transparent;
        color: #97C49C;
    }
}
