:root {
    --latte-light: #f5ebe0;
    --latte-medium: #e3d5ca;
    --coffee-accent: #d5bdaf;
    --text-dark: #4a3f35;
    --morph-opacity: 1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--latte-light);
    color: var(--text-dark);
}

/* --- HEADER --- */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    z-index: 1000;
    overflow: visible;
}

#main-header.shrunk {
    height: 80px;
    background-color: rgba(227, 213, 202, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
    transition: font-size 0.4s ease;
}

#main-header.shrunk #header-title {
    font-size: 1.2rem;
}

.header-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    pointer-events: none;
}

.narrow-bg {
    background-image: linear-gradient(rgba(245,235,224,0.4), rgba(245,235,224,0.4)),
        url('https://shepherdsrock.org/coffee/assets/narrow-header.png');
    opacity: var(--morph-opacity);
}

.wide-bg {
    background-image: linear-gradient(rgba(245,235,224,0.4), rgba(245,235,224,0.4)),
        url('https://shepherdsrock.org/coffee/assets/wide-header.jpg');
    opacity: calc(1 - var(--morph-opacity));
}

.header-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- NAV --- */
.header-nav { display: flex; gap: 15px; }

.nav-btn {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    padding: 8px 16px;
    border: 1px solid var(--text-dark);
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    transition: background 0.2s;
}

.nav-btn:hover { background: rgba(255,255,255,0.4); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.bar { width: 25px; height: 3px; background: var(--text-dark); border-radius: 2px; }

@media (max-width: 850px) {
    .menu-toggle { display: flex; }

    .header-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--latte-medium);
        width: 250px;
        border-bottom-left-radius: 8px;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
        z-index: 9999;
    }

    .header-nav.active { display: flex !important; }

    .nav-btn {
        margin: 5px 20px;
        display: block;
        text-align: center;
        background: rgba(255,255,255,0.5);
    }
}

/* --- MAIN CONTENT --- */
.content-container {
    padding: 220px 20px 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.calendar-month,
.calendar-list {
    width: 100%;
    min-height: 600px;
    border: 0;
}

.calendar-list { display: none; }

@media (max-width: 768px) {
    .calendar-month { display: none; }
    .calendar-list { display: block; }
}

/* --- FOOTER --- */
footer {
    background: var(--latte-medium);
    padding: 40px 20px;
    border-top: 2px solid var(--coffee-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

footer h3 {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

footer p { margin: 4px 0; }

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { text-decoration: none; color: var(--text-dark); }
.footer-links a:hover { text-decoration: underline; }

.copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 0.85rem;
}