/* ==========================================
   Walter Beuttler – Shared Styles
   ========================================== */

/* --- Self-hosted Fonts --- */
@font-face {
    font-family: 'Merriweather';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/merriweather-300-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/merriweather-300-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/merriweather-300-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/opensans-400-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/opensans-400-600.woff2') format('woff2');
}

/* --- Variables --- */
:root {
    --primary-color: #800000;
    --accent-color: #d4a017;
    --text-color: #444444;
    --bg-color: #fdfdfd;
    --container-width: 900px;
}

/* --- Reset & Base --- */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 40px auto;
    background: var(--bg-color);
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
}

/* --- Header & Navigation --- */
header {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0 auto;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #666;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Image --- */
.header-wrapper {
    position: relative;
    margin-bottom: 50px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Typography --- */
h1 {
    font-family: 'Merriweather', serif;
    color: #222;
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

h2 {
    font-family: 'Merriweather', serif;
    color: #222;
    font-size: 24px;
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

p {
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 400;
}

/* --- Footer --- */
footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    nav ul.open {
        display: flex;
    }

    h1 {
        font-size: 26px;
    }

    p {
        font-size: 16px;
    }
}
