/* =============================================
   FOUNDRY 865 — SHARED NAVIGATION STYLES
   Edit this file to change nav styling site-wide
   ============================================= */

/* ===== NAV VARIABLES (overridden per-page if needed) ===== */
:root {
    --nav-lavender: #c1f9aa;
    --nav-lavender-light: #dabdf9;
    --nav-lavender-pale: #e3ded2;
    --nav-purple: #2c7d7b;
    --nav-purple-dark: #1b504e;
    --nav-white: #ffffff;
    --nav-text-dark: #000000;
    --nav-text-mid: #5a5a6e;
    --nav-text-light: #8a8a9e;
    --nav-shadow-sm: 0 2px 8px rgba(30, 107, 65, 0.08);
    --nav-shadow-md: 0 4px 20px rgba(44, 125, 123, 0.12);
    --nav-radius: 12px;
}

/* ===== MAIN NAV BAR ===== */
nav#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 182, 226, 0.2);
    transition: box-shadow 0.3s ease;
}
nav#navbar.scrolled {
    box-shadow: var(--nav-shadow-sm);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
}

/* ===== LOGO ===== */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.nav-logo img {
    height: 44px;
    width: auto;
    border-radius: 0;
    object-fit: contain;
}
.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--nav-purple);
    letter-spacing: -0.02em;
}

/* ===== NAV LINKS ===== */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}
.nav-links a {
    color: var(--nav-text-mid);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-links a:hover {
    color: var(--nav-purple);
}
.nav-cta {
    background: var(--nav-purple);
    color: var(--nav-white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: all 0.3s;
}
.nav-cta:hover {
    background: var(--nav-purple-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 107, 65, 0.3);
}

/* ===== DROPDOWNS ===== */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--nav-text-mid);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-dropdown-toggle:hover {
    color: var(--nav-purple);
}
.nav-dropdown-toggle svg {
    transition: transform 0.25s ease;
}
.nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-white);
    border: 1px solid var(--nav-lavender);
    border-radius: var(--nav-radius);
    box-shadow: var(--nav-shadow-md);
    min-width: 200px;
    overflow: hidden;
    z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nav-text-mid) !important;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid #e3ded2;
}
.nav-dropdown-menu a:last-child {
    border-bottom: none;
}
.nav-dropdown-menu a:hover {
    background: #e3ded2;
    color: var(--nav-purple) !important;
}
.nav-dropdown-group-header {
    display: block;
    padding: 8px 16px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nav-text-mid);
    background: #f5f5f0;
    border-top: 1px solid #e3ded2;
    border-bottom: 1px solid #e3ded2;
    margin-top: 2px;
    pointer-events: none;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--nav-text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    overflow-y: auto;
    padding: 4rem 2rem;
}
.mobile-menu.active {
    display: flex;
}
.mobile-menu > a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--nav-text-dark);
    text-decoration: none;
    transition: color 0.3s;
}
.mobile-menu > a:hover {
    color: var(--nav-purple);
}
.mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--nav-text-dark);
}
.mobile-tools-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.mobile-tools-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--nav-text-light);
    letter-spacing: 0.05em;
}
.mobile-tools-group a {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.2rem !important;
}
.mobile-tools-sublabel {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nav-text-light);
    padding: 6px 0 2px;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}
