/*
 * The Living Company - Public Page Styles
 *
 * Shared styles for public/unauthenticated pages (home, contact).
 * Includes: navigation bar, footer, mobile menu button.
 * Requires: theme.css (loaded first for variables, base reset, buttons).
 */

/* ==========================================================================
   Public Navigation Bar
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-gray-200);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 48px;
    align-items: center;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray-600);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-black);
}

.nav-links a.active {
    color: var(--color-primary);
}

/* Text utility for nav button */
.text-white {
    color: var(--color-white) !important;
}

/* Button overrides for public/landing pages (slightly larger than app defaults) */
.nav-links .btn,
.hero-buttons .btn,
.cta-buttons .btn,
.error-actions .btn {
    padding: 14px 28px;
    border-radius: 4px;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Mobile Menu Button
   ========================================================================== */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-black);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 80px 60px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 64px;
}

.footer-brand h4 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-gray-400);
    max-width: 280px;
}

.footer-section h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--color-gray-400);
}

.footer-section a {
    display: block;
    font-size: 14px;
    color: var(--color-gray-400);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--color-gray-800);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-gray-600);
}

/* ==========================================================================
   Public Mobile Menu (slide-out panel)
   ========================================================================== */

.pub-mob-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 200;
}
.pub-mob-overlay.open { display: block; }

.pub-mob-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: var(--color-white, #fff);
    z-index: 201;
    box-shadow: -4px 0 16px rgba(0,0,0,0.1);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}
.pub-mob-panel.open { transform: translateX(0); }

.pub-mob-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-gray-200, #e5e5e5);
}

.pub-mob-brand {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-black, #111);
}

.pub-mob-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--color-black, #111);
    padding: 4px;
    line-height: 1;
}

.pub-mob-links {
    padding: 12px 0;
}

.pub-mob-links a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-family: var(--font-body, 'Inter', -apple-system, sans-serif);
    color: var(--color-black, #111);
    text-decoration: none;
    transition: background 0.15s ease;
}
.pub-mob-links a:hover {
    background: var(--color-gray-100, #f5f5f5);
}

.pub-mob-divider {
    height: 1px;
    background: var(--color-gray-200, #e5e5e5);
    margin: 8px 0;
}

.pub-mob-cta {
    color: var(--color-primary, #2d5016) !important;
    font-weight: 600;
}

/* ==========================================================================
   Responsive - Public Nav & Footer
   ========================================================================== */

@media (max-width: 1200px) {
    .nav-links {
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .nav {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 12px 16px;
    }

    .footer {
        padding: 60px 24px 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
