nav {
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 64px;
    position: fixed;
    width: 100%;

    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s;
}

nav .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    font-size: 25px;
    font-style: italic;
    color: #fff;
    text-decoration: none;
}

nav .logo img {
    width: auto;
    height: 36px;
}

nav .logo p {
    font-family: 'DM Serif Text', serif;
}

/* ---- Desktop links pill ---- */
nav .links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    background-color: #fff;
    padding: 5px 5px 5px 20px;
}

nav .links ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
}

nav .links ul li a {
    text-decoration: none;
    font-weight: 500;
    color: #1B1C13;
    white-space: nowrap;
}

nav .links ul li a:hover {
    color: #FE6B02;
    transition: .2s;
}

/* ---- Shared button styles ---- */
.solid-button {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 2px solid #1B1C13;
    border-radius: 50px;
    padding: 10px 16px;
    background-color: #1B1C13;
    color: #FE6B02;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.solid-button:hover {
    background-color: #fff;
    color: #FE6B02;
    border: 2px solid #FE6B02;
    transition: .3s;
}

.solid-button a {
    text-decoration: none;
    color: #FE6B02;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.solid-button a:hover {
    color: #FE6B02;
    transition: .3s;
}

/* ---- Scrolled state ---- */
.nav-scrolled {
    background-color: #fff !important;
}

.navconfcolor {
    color: #FE6B02;
}

/* ---- Hamburger (hidden on desktop) ---- */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1B1C13;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* When nav is transparent (over hero), hamburger lines are white */
nav:not(.nav-scrolled) .nav-hamburger span {
    background-color: #fff;
}

/* Hamburger → X animation */
.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile overlay drawer ---- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 99;
    padding: 24px 5% 32px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #f0f0f0;
}

.mobile-menu ul li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu ul li a {
    display: block;
    padding: 14px 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: #1B1C13;
    transition: color 0.2s;
}

.mobile-menu ul li a:hover {
    color: #FE6B02;
}

.mobile-menu .mobile-cta {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */

/* Tablet: collapse nav links, show hamburger */
@media (max-width: 900px) {
    nav .links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    nav {
        padding: 0 4%;
    }

    nav .logo img {
        height: 30px;
    }

    nav .logo p {
        font-size: 14px;
    }
}