:root {
    --burgundy: #4a0404;
    --burgundy-light: #6b0f0f;
    --gold: #c5a059;
    --gold-bright: #e5c185;
    --cream: #f9f7f2;
    --text-dark: #2c2c2c;
    --text-muted: #555;
    --serif: 'Playfair Display', serif;
    --heading-serif: 'Cinzel', serif;
    --sans: 'Lato', sans-serif;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

body {
    background-color: var(--cream);
    background-image: url('subtle_texture.png');
    color: var(--text-dark);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--heading-serif);
    color: var(--burgundy);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

a {
    color: var(--burgundy);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--gold);
}

/* Header & Nav */
header {
    background: var(--burgundy);
    color: var(--gold);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--heading-serif);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.nav-logo {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--gold);
    font-family: var(--heading-serif);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: white;
}

/* Sections */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-image: linear-gradient(rgba(74, 4, 4, 0.4), rgba(74, 4, 4, 0.4)), url('mason_banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero h1 {
    color: var(--gold-bright);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    max-width: 800px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.4rem;
}

.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* Featured Story Card */
.featured-story {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: white;
    padding: 3rem;
    border: 1px solid #eee;
    box-shadow: var(--shadow);
    align-items: center;
}

.featured-img {
    display: block;
    width: calc(100% - 10px);
    max-width: 500px;
    margin: 0 auto 10px;
    border-radius: 4px;
    box-shadow: 10px 10px 0 var(--burgundy);
    object-fit: cover;
}

.detail-portrait {
    display: block;
    margin: 0 auto 2rem;
    width: 320px;
    height: 320px;
    max-width: 85vw;
    max-height: 85vw;
    border-radius: 50%;
    border: 6px solid var(--gold);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Memorial Wall */
.memorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.memorial-card {
    background: white;
    padding: 1.5rem;
    border: 1px solid #ddd;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.memorial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.card-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--gold);
}

.card-dates {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--serif);
    margin-bottom: 1rem;
}

/* Form Styles */
.form-container {
    background: white;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: var(--heading-serif);
    color: var(--burgundy);
}

input, textarea, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    font-family: var(--sans);
    font-size: 1rem;
}

.btn {
    padding: 1rem 2rem;
    background: var(--burgundy);
    color: var(--gold);
    border: none;
    cursor: pointer;
    font-family: var(--heading-serif);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--burgundy-light);
    color: white;
}

.btn-secondary {
    background: #666;
    color: white;
}

/* Detail Page */
.memorial-header {
    text-align: center;
    margin-bottom: 3rem;
}

.memorial-header h1 {
    font-size: 3rem;
}

.story-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.story-block {
    background: white;
    padding: 2rem;
    border-left: 5px solid var(--gold);
}

.recollections {
    margin-top: 4rem;
}

.recollection-card {
    background: #fdfdfd;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
}

.recollection-meta {
    font-weight: bold;
    color: var(--burgundy);
    font-family: var(--heading-serif);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

/* Resources */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-cat {
    background: white;
    padding: 2rem;
    border: 1px solid #eee;
}

/* Footer */
footer {
    background: var(--burgundy);
    color: var(--gold);
    padding: 4rem 5% 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    font-size: 0.8rem;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple for now */
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .featured-story {
        grid-template-columns: 1fr;
    }
}