/* shared-nav.css — Single source of truth for site navigation styles.
   Owns: .site-nav, .nav-logo, .nav-link, .nav-cta, mobile hamburger menu.
   Does NOT own: page-specific layouts, blog grids, footer. */

/* NAV */
.site-nav {
    background: var(--cream, #f5f0e8);
    border-bottom: 1px solid rgba(74,103,65,0.12);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark, #1a1a18);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo span {
    color: var(--sage, #4a6741);
}

.nav-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-logo-text {
    display: inline;
    line-height: 1;
    white-space: nowrap;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--sage, #4a6741);
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-link:hover { opacity: 0.75; }

.nav-cta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--sage, #4a6741);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 100px;
    transition: opacity 0.2s;
}

.nav-cta:hover { opacity: 0.88; }

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    background: rgba(245, 240, 232, 0.95);
    border: 1px solid rgba(74, 103, 65, 0.15);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a18;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.nav-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.nav-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.nav-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 60px 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.nav-open { display: flex; opacity: 1; }

.mobile-menu-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none; border: none;
    font-size: 32px; color: #fff;
    cursor: pointer;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s ease;
    z-index: 1002;
}

.mobile-menu-close:hover { transform: scale(1.1); }

.mobile-menu-items {
    display: flex; flex-direction: column;
    align-items: center; gap: 32px; text-align: center;
}

.mobile-menu-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px; font-weight: 700;
    color: #fff; text-decoration: none;
    transition: color 0.2s ease;
    animation: mobileMenuFadeIn 0.5s ease forwards;
    opacity: 0;
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.18s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.26s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.34s; }
.mobile-menu-item:hover { color: #f59e0b; }

@keyframes mobileMenuFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-cta {
    display: block; width: 80%; max-width: 300px;
    padding: 16px 24px; background: #10b981; color: #fff;
    text-decoration: none; text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px; font-weight: 600;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-top: 16px;
    animation: mobileMenuFadeIn 0.5s ease forwards;
    animation-delay: 0.42s;
    opacity: 0;
}

.mobile-menu-cta:hover { background: #059669; transform: translateY(-2px); }

.mobile-menu-footer {
    position: absolute; bottom: 40px; left: 0; right: 0;
    text-align: center;
    animation: mobileMenuFadeIn 0.5s ease forwards;
    animation-delay: 0.5s; opacity: 0;
}

.mobile-menu-footer a {
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 12px; margin: 0 12px;
    transition: color 0.2s ease;
}

.mobile-menu-footer a:hover { color: rgba(255,255,255,0.9); }
.mobile-menu-footer span { color: rgba(255,255,255,0.3); }

/* Responsive: show hamburger on mobile, hide desktop nav links */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .site-nav .nav-link,
    .site-nav .nav-cta {
        display: none !important;
    }
    .nav-logo-img {
        height: 50px;
    }
    .nav-logo {
        font-size: 16px;
        gap: 8px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle { display: none !important; }
    .mobile-menu-overlay { display: none !important; }
}
