

/* ─── NAVBAR ─── */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 5%;
    background: rgba(245,240,232,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212,168,67,0.2);
    transition: box-shadow 0.3s;
    box-sizing: border-box;
}
nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ─── LOGO ─── */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.5px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo span { color: var(--saffron); }

/* ─── DESKTOP NAV LINKS ─── */
.nav-links {
    display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
    font-size: 0.9rem; font-weight: 500;
    color: var(--muted); text-decoration: none;
    letter-spacing: 0.02em; transition: color 0.2s;
    white-space: nowrap;
}
.nav-links a:hover { color: var(--saffron); }

/* ─── CTA BUTTONS (desktop) ─── */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* Free Test button */
.btn-test-nav {
    background: linear-gradient(135deg, #e8651a, #c0501a);
    color: #fff !important;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: opacity 0.2s;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-test-nav:hover { opacity: 0.88; }

/* ─── HAMBURGER ─── */
.hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none;
    cursor: pointer; padding: 4px;
    flex-shrink: 0;
    z-index: 101;
}
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--ink);
    transition: all 0.3s;
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
#mobile-menu {
    display: none;
    position: fixed; top: 65px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(212,168,67,0.2);
    z-index: 99;
    padding: 1.2rem 5% 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
#mobile-menu.open { display: block; }
#mobile-menu ul {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.2rem;
    margin-bottom: 1rem;
}
#mobile-menu li a {
    display: block;
    font-size: 1rem; font-weight: 500;
    color: var(--ink); text-decoration: none;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(212,168,67,0.1);
    transition: color 0.2s;
}
#mobile-menu li:last-child a { border-bottom: none; }
#mobile-menu a:hover { color: var(--saffron); }

/* Mobile CTA buttons row */
#mobile-menu .mobile-cta {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
#mobile-menu .mobile-cta a,
#mobile-menu .mobile-cta button {
    flex: 1;
    text-align: center;
    justify-content: center;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.88rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
#mobile-menu .mobile-cta .btn-test-mobile {
    background: linear-gradient(135deg, #e8651a, #c0501a);
    color: #fff;
}
#mobile-menu .mobile-cta .btn-outline-mobile {
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    display: inline-block;
}
#mobile-menu .mobile-cta .btn-fill-mobile {
    background: var(--ink);
    color: var(--cream);
    display: inline-block;
}

/* ─── FLASH ALERTS ─── */
.alert {
    position: fixed; top: 80px; right: 1.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.88rem; font-weight: 500;
    z-index: 999;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-width: calc(100vw - 3rem);
}
.alert-success { background: #e6f9f1; color: #1a7a4a; border: 1px solid #b2e8cf; }
.alert-error   { background: #fef0ed; color: #b83c1e; border: 1px solid #f5bfb0; }

/* ─── FOOTER ─── */
footer {
    background: var(--ink);
    color: rgba(245,240,232,0.5);
    padding: 2.5rem 5%;
    display: flex; align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    flex-wrap: wrap; gap: 1rem;
}
footer .logo { color: var(--cream); font-size: 1.2rem; }
footer p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 0.6rem; }
.footer-links a {
    color: rgba(245,240,232,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    /* Hide desktop nav links and cta */
    .nav-links { display: none; }
    .nav-cta   { display: none; }

    /* Show hamburger */
    .hamburger { display: flex; }

    /* Nav stays tight on mobile */
    nav { padding: 0.9rem 5%; }

    footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.3rem; }
    #mobile-menu { top: 58px; }
}