/* ═══════════════════════════════════════════════════════════════
 * EMBERWOOD — Shared header + footer chrome
 * ═══════════════════════════════════════════════════════════════
 * Normalizes navbar and footer styles across all inner pages so they
 * match the homepage. Loaded AFTER each page's inline <style> block,
 * so these rules override the per-page styles by document order at
 * equal specificity.
 *
 * The CSS variables (--pantone-*, --font-serif, --font-sans) are
 * defined in each page's :root, so we just reference them here.
 *
 * Created during the agency-flagged header/footer alignment audit.
 * ═══════════════════════════════════════════════════════════════ */

/* ─── NAVBAR ──────────────────────────────────────────────────── */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background: var(--pantone-warm-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Two-line logo: large serif name + small uppercased apricot subline */
.navbar .logo {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-family: var(--font-serif);
    text-decoration: none;
    line-height: 1.2;
}

.navbar .logo-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pantone-midnight);
}

.navbar .logo-sub {
    font-size: 0.65rem;
    color: var(--pantone-apricot);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Nav links — works for both <ul class="nav-links"> and <div class="nav-links"> */
.navbar .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar .nav-links a,
.navbar .nav-links li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pantone-midnight);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pantone-apricot);
    transition: width 0.25s ease;
}

.navbar .nav-links a:hover {
    color: var(--pantone-midnight);
}

.navbar .nav-links a:hover::after {
    width: 100%;
}

/* Mobile — collapse padding, stack to a manageable size */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .navbar .nav-links {
        gap: 1.25rem;
        flex-wrap: wrap;
        font-size: 0.85rem;
    }
    .navbar .logo-text {
        font-size: 1.15rem;
    }
}

/* ─── FOOTER ──────────────────────────────────────────────────── */

footer.footer,
footer:not([class]) {
    background: var(--pantone-midnight);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 10% 2.5rem;
    text-align: center;
    font-family: var(--font-sans);
    line-height: 1.7;
}

/* Footer logo (already inline-styled, this just adds spacing) */
footer .footer-logo {
    display: inline-block;
    margin-bottom: 1.25rem;
}

/* Normalize all footer links to the same spacing + color */
footer p,
footer p a,
footer > a {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0.4rem 0.6rem;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

footer p a:hover,
footer > a:hover {
    color: var(--pantone-apricot);
}

footer p:last-child {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Pages whose footer renders as: <footer><a><a><a>...<p>©</p></footer>
   need the link row visually grouped. Group the leading anchors. */
footer > a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 0.9rem;
    margin-left: 0;
}

@media (max-width: 768px) {
    footer.footer,
    footer:not([class]) {
        padding: 3rem 5% 2rem;
    }
    footer > a + a {
        border-left: none;
        padding-left: 0;
    }
}
