:root {
    --olive-dark: #4a5a3c;
    --olive: #5c6b4a;
    --olive-light: #7a8a68;
    --gold: #c9a857;
    --gold-light: #d4b86a;
    --cream: #f8f6f1;
    --cream-dark: #efe9dc;
    --text-dark: #2d3a2a;
    --text-light: #f8f6f1;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--olive-dark);
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img { width: 100%; height: 100%; object-fit: cover; }

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-text span { color: var(--gold); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--olive); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-links .btn { padding: 0.65rem 1.5rem; font-size: 0.8rem; }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: var(--olive-dark);
    transition: 0.3s;
}

/* Hero */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--olive-dark) 0%, var(--olive) 50%, var(--olive-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 2rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-radius: 50%;
}

.hero-logo img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero h1 span { color: var(--gold-light); }

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary { background: var(--gold); color: var(--text-dark); }

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 168, 87, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--cream);
}

.btn-secondary:hover { background: var(--cream); color: var(--olive-dark); }

/* Sections */
section { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-header h2 {
    font-size: 2.75rem;
    color: var(--olive-dark);
    margin-bottom: 1rem;
}

.section-header .accent-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--olive-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Sign up */
#signup { background: var(--white); }

.signup-form {
    background: var(--cream);
    padding: 3rem;
    border-radius: 12px;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.signup-form::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--olive), var(--gold));
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--olive-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--olive); }

.form-group textarea { min-height: 130px; resize: vertical; }

.form-actions { text-align: center; margin-top: 0.5rem; }

.form-status {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

.form-status.success { display: block; background: rgba(92, 107, 74, 0.12); color: var(--olive-dark); }
.form-status.error { display: block; background: rgba(201, 87, 87, 0.12); color: #8a3a3a; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Contact */
#contact {
    background: var(--olive-dark);
    color: var(--cream);
    text-align: center;
}

#contact .section-header h2 { color: var(--cream); }
#contact .section-header p { color: var(--cream); opacity: 0.8; }

.contact-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    flex: 1 1 280px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: var(--cream);
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    border-color: var(--gold);
}

.contact-card svg {
    width: 36px;
    height: 36px;
    fill: var(--gold);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contact-card p { font-size: 1.1rem; word-break: break-word; }

.contact-note { margin-top: 2.5rem; opacity: 0.7; font-size: 0.95rem; }

/* Footer */
footer {
    background: var(--olive-dark);
    color: var(--cream);
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom a { color: var(--cream); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        align-items: stretch;
        text-align: center;
    }

    .nav-links.active { display: flex; }
    .mobile-menu { display: flex; }

    section { padding: 4rem 1.25rem; }

    .hero { min-height: 0; padding: 110px 1.25rem 3rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1.05rem; margin-bottom: 2rem; }
    .hero-logo { width: 120px; height: 120px; margin-bottom: 1.5rem; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .btn { text-align: center; }

    .section-header { margin-bottom: 2.5rem; }
    .section-header h2 { font-size: 2rem; }

    .signup-form { padding: 2rem 1.25rem; }
    .form-actions .btn { width: 100%; }

    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== Modules (blog, events, gallery) ===== */
[hidden] { display: none !important; }

.announce {
    background: var(--gold);
    color: var(--text-dark);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    position: relative;
    z-index: 1001;
}
.announce a { color: inherit; font-weight: 600; }
.announce.draft-bar { background: #8a3a3a; color: var(--cream); }
body.has-announce nav { top: 0; position: sticky; }
body.has-announce .hero { padding-top: 4rem; }
body.has-announce.subpage main { padding-top: 2rem; }

#blog { background: var(--cream); }
#events { background: var(--white); }
#gallery { background: var(--olive-dark); }
#gallery .section-header h2 { color: var(--cream); }
#gallery .section-header p { color: var(--cream); opacity: 0.8; }

.section-more { text-align: center; margin-top: 2.5rem; }
.btn-olive { background: var(--olive); color: var(--cream); }
.btn-olive:hover { background: var(--olive-dark); transform: translateY(-2px); }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--olive), var(--gold));
    z-index: 1;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-dark); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-body .meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--olive-light); font-weight: 500; }
.card-body h3 { font-size: 1.6rem; color: var(--olive-dark); }
.card-body p { color: #555; font-size: 0.95rem; }
.card-body .more { margin-top: auto; padding-top: 0.75rem; color: var(--olive); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.card.featured .meta::before { content: '★ '; color: var(--gold); }

.pill {
    display: inline-block;
    background: var(--gold); color: var(--text-dark);
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    padding: 0.2rem 0.6rem; border-radius: 50px; vertical-align: middle;
}

/* Events list */
.events-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }
.event {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.5rem;
    background: var(--cream);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.event:hover { border-color: var(--gold); transform: translateY(-2px); }
.event.past { opacity: 0.65; }
.event-date {
    background: var(--olive-dark); color: var(--cream);
    border-radius: 10px; text-align: center; padding: 0.75rem 0.25rem; align-self: start;
}
.event-date .m { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold-light); font-weight: 600; }
.event-date .d { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; line-height: 1; font-weight: 600; }
.event h3 { font-size: 1.5rem; color: var(--olive-dark); margin-bottom: 0.25rem; }
.event .when { font-size: 0.9rem; color: var(--olive); font-weight: 500; }
.event p { color: #555; margin-top: 0.5rem; font-size: 0.95rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item {
    position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 1;
    background: rgba(255,255,255,0.06); border: 0; padding: 0; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 1.5rem 0.9rem 0.7rem;
    background: linear-gradient(to top, rgba(45,58,42,0.85), transparent);
    color: var(--cream); font-size: 0.85rem; text-align: left;
}
.lightbox {
    position: fixed; inset: 0; background: rgba(20,25,18,0.92); z-index: 2000;
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; padding: 2rem; cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox p { color: var(--cream); font-size: 0.95rem; text-align: center; max-width: 700px; }

/* Empty / loading states */
.empty-note { text-align: center; color: var(--olive-light); padding: 2rem 0; }

/* Sub pages (blog list, article) */
body.subpage { background: var(--cream); }
body.subpage main { padding-top: 110px; min-height: 70vh; }
.page-head { text-align: center; padding: 3rem 2rem 1rem; }
.page-head h1 { font-size: 3rem; color: var(--olive-dark); margin-bottom: 0.75rem; }
.page-head p { color: var(--olive-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.page-body { padding: 2rem 2rem 6rem; }
body.subpage #gallery.page-body { background: transparent; }

.article .narrow { max-width: 760px; }
.article { padding-bottom: 6rem; }
.article .crumb a { color: var(--olive); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.article .meta { margin-top: 1.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--olive-light); font-weight: 500; }
.article h1 { font-size: 3rem; color: var(--olive-dark); margin: 0.5rem 0 1rem; }
.article .lede { font-size: 1.25rem; color: #555; font-weight: 300; margin-bottom: 1.5rem; }
.article .hero-img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; margin: 1rem 0 2rem; box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.prose { color: #444; font-size: 1.05rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2, .prose h3 { color: var(--olive-dark); margin-top: 2rem; }
.prose h2 { font-size: 2rem; } .prose h3 { font-size: 1.5rem; }
.prose a { color: var(--olive); }
.prose img { max-width: 100%; border-radius: 8px; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1rem; color: #666; font-style: italic; }
.prose code { background: var(--cream-dark); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

@media (max-width: 768px) {
    .event { grid-template-columns: 72px 1fr; gap: 1rem; padding: 1.25rem; }
    .event-date .d { font-size: 1.8rem; }
    .page-head h1, .article h1 { font-size: 2.2rem; }
    .cards { grid-template-columns: 1fr; }
}
