/**
 * Shared CSS for the public parish website.
 * All public/site/*.html pages link to this file.
 * Page-specific styles go in a <style> block on the page itself.
 */

/* ── Font faces ── */
@font-face {
    font-family: 'Heldane Text';
    src: url('/fonts/heldane-text-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Heldane Display';
    src: url('/fonts/heldane-display-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Heldane Display';
    src: url('/fonts/heldane-display-regular-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Heldane Display';
    src: url('/fonts/heldane-display-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Heldane Display';
    src: url('/fonts/heldane-display-medium-italic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Heldane Display';
    src: url('/fonts/heldane-display-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Heldane Display';
    src: url('/fonts/heldane-display-bold-italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── CSS Variables ── */
:root {
    --bg: #f5f1ea;
    --bg-alt: #ede7dc;
    --card: #ffffff;
    --header-bg: #a08870;
    --text: #2c2820;
    --text-muted: #8a8478;
    --text-light: #b0a89c;
    --border: #e8e0d2;
    --footer-bg: #2c2820;
    --footer-text: #d4cec4;
    --accent: #a08870;
    --accent-light: #c4a882;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--header-bg);
    padding: 0 2.5rem;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-wordmark img {
    height: 100px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
}

.header-nav a:hover {
    opacity: 0.85;
}

.header-nav a.active {
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
}

.header-nav .give-btn {
    background: #fff;
    color: var(--text);
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
}

.header-nav .give-btn:hover {
    background: #f0ece4;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero (shared structure — pages set their own background-image) ── */
.hero {
    margin-top: 128px;
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 3rem 2rem;
    color: #fff;
}

.hero-content h1 {
    font-family: 'Heldane Display', serif;
    font-weight: 400;
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.92;
}

/* ── Section layout ── */
.section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-alt {
    background: var(--bg-alt);
}

.section-full {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.section h2 {
    font-family: 'Heldane Display', serif;
    font-weight: 400;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ── Footer ── */
.site-footer {
    background: #fff;
    color: var(--text);
    padding: 0;
}

.footer-heading {
    font-family: 'Heldane Display', Georgia, serif;
    font-weight: 400;
    font-size: 3rem;
    text-align: center;
    padding: 4rem 2rem 3rem;
    color: var(--text);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem 3.5rem;
}

.footer-col h4 {
    font-family: 'Heldane Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--header-bg);
    margin-bottom: 0.8rem;
}

.footer-col p, .footer-col a {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
}

.footer-col a {
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--header-bg);
}

.footer-hours-label {
    font-family: 'Heldane Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--header-bg);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-hours-label:first-child {
    margin-top: 0;
}

.footer-map {
    width: 100%;
    height: 350px;
    border: none;
    display: block;
    filter: invert(0.92) hue-rotate(180deg) saturate(0.25) contrast(1.05);
}

.footer-bottom-bar {
    background: var(--bg);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom-bar a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom-bar a:hover {
    color: var(--text);
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    z-index: 200;
    font-size: 14px;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Focus States ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .site-header {
        padding: 0 1rem;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 128px;
        left: 0;
        right: 0;
        background: var(--header-bg);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .header-nav.open {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero {
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-map {
        height: 250px;
    }

    .section {
        padding: 3rem 1.2rem;
    }
}
