/* Global Shared Styles for Header and Footer */

:root {
    --header-height: 80px;
    --footer-bg: #433B32;
    --footer-text: #F2ECE1;
    --footer-border: #2C2620;
    --bg-parchment: #FAF7F2;
    --ink: #1F1D1A;
    --ink-muted: #665F55;
    --accent: #8B4031;
    --border: #D8CEBE;
}

/* Fixed Navigation Header */
header { 
    background-color: var(--bg-parchment); 
    border-bottom: 2px double var(--border); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    left: 0; 
    z-index: 100; 
    height: var(--header-height);
}

.header-container { 
    width: 100%;
    max-width: 1100px; 
    height: 100%;
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 40px;
}

.logo { 
    font-family: 'Cinzel', serif;
    font-size: 22px; 
    font-weight: 700; 
    color: var(--ink); 
    text-decoration: none; 
    letter-spacing: 1px; 
    text-transform: uppercase;
}

.desktop-nav { 
    display: flex; 
    list-style: none; 
    gap: 24px;
}

.desktop-nav a { 
    font-family: 'Cinzel', serif;
    text-decoration: none; 
    color: var(--ink-muted); 
    font-size: 13.5px; 
    font-weight: 600; 
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease; 
    padding-bottom: 4px; 
}
.desktop-nav a:hover { color: var(--accent); }
.desktop-nav a.active { 
    font-weight: 700; 
    color: var(--ink); 
    border-bottom: 1.5px solid var(--accent); 
}

/* Mobile Hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}
.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--ink);
    transition: all 0.3s ease;
    transform-origin: center;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100dvh;
    background-color: var(--bg-parchment);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    list-style: none;
    z-index: 105; 
    padding: 24px;
    gap: 16px;
}
.nav-menu.active { display: flex; }
.nav-menu a {
    font-family: 'Cinzel', serif;
    text-decoration: none;
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Footer */
footer { 
    flex-shrink: 0;
    width: 100%;
    background-color: var(--footer-bg);
    border-top: 2px solid var(--footer-border);
    color: var(--footer-text); 
    text-align: center; 
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    font-size: 14px;
    font-style: italic;
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-container { padding: 0 20px; }
}
