/* =============================================
   shared.css — Navbar, Footer & Common Elements
   Used by every page that loads components.js
   ============================================= */

:root {
    --bg-cream: #f1ecd9;
    --bg-slate: #36517c;
    --text-dark: #111111;
    --text-light: #ffffff;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-slate);
    line-height: 1.5;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(244, 242, 234, 0.90);
    backdrop-filter: blur(8px);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* --- BRAND --- */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.brand:hover { opacity: 0.7; }
.brand-icon { height: 35px; width: auto; }
.brand-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-dark);
}

/* --- NAV LINKS --- */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}
.nav-links a:hover { opacity: 0.6; }

/* --- DROPDOWNS --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-dropdown-btn:hover { opacity: 0.6; }

.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 8px;
    top: 100%;
    right: 0;
    padding: 0.2rem 0;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}
.nav-dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}
.nav-dropdown-content a:hover {
    background-color: var(--bg-cream);
    opacity: 1;
}
.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

/* --- HAMBURGER --- */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 1001;
}

/* --- FOOTER --- */
.psb-footer {
    background-color: var(--bg-cream);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 3rem 8%;
}
.psb-footer .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-info p { margin: 0; line-height: 1.5; }
.copyright { font-size: 1.1rem; font-weight: 800; }
.managed-by { font-size: 0.9rem; font-weight: 600; color: #555; }

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--bg-slate);
    font-size: 1.1rem;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background-color: var(--bg-slate);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.back-link {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-dark) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}
.back-link:hover {
    background-color: #a7f3d0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background-color: #555555;
    transform: translateY(-5px);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 900px) {
    .navbar { padding: 1rem 5%; }

    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }

    .psb-footer .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }
}
