:root {
    --sage-green: #698156;
    --lime-green: #8eac50;
    --tan: #a9835f;
    --warm-gray: #a29f95;
    --purple: #71578a;
    --olive-green: #5d8d3c;
    --gold: #c8ac7c;
    --cream: #f9f7f4;
    --dark-text: #3a3a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: var(--cream);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgb(100, 60, 100);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

nav li {
    margin: 0 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-family: 'Crimson Text', serif;
}

nav a:hover {
    color: var(--gold);
}

/* Banner Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../images/bannerbg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(105, 129, 86, 0.2);
}

.banner-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 5rem 2rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    display: inline-block;
    border: 3px solid var(--gold);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.logo-container img {
    max-width: 400px;
    height: auto;
    display: block;
}

.banner-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
    color: white;
    display: none;
}

.banner-subtitle {
    font-size: 1.5rem;
    font-family: 'Crimson Text', serif;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    color: var(--cream);
}

/* Section Styles */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Override max-width for home section */
#home {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--sage-green);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto;
}

/* About Section */
#about {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-highlight {
    color: var(--purple);
    font-weight: 600;
    font-style: italic;
}

/* Events Section */
#events {
    background: var(--cream);
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--sage-green);
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(169, 131, 95, 0.1);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-date {
    background: linear-gradient(135deg, var(--sage-green), var(--olive-green));
    color: white;
    padding: 1.5rem;
    text-align: center;
    text-transform: uppercase;
}

.event-date .month {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.3rem;
}

.event-date .day {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.3rem;
    font-family: 'Playfair Display', serif;
}

.event-date .year {
    font-size: 1.1rem;
    opacity: 0.9;
}

.event-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-details h3 {
    color: var(--sage-green);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.event-location {
    color: var(--dark-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.event-time {
    color: var(--purple);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.event-description {
    color: var(--dark-text);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Gallery Section */
#gallery {
    background: linear-gradient(to bottom, var(--cream), rgba(169, 131, 95, 0.1));
    padding: 4rem 2rem;
}

/* Gallery link & subtitle tweaks */
.gallery-subtitle {
    text-align: center;
    color: var(--sage-green);
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Crimson Text', serif;
}

/* Remove default underline from gallery card links and make the whole card clickable */
.gallery-item > a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.gallery-item > a:focus {
    outline: 3px solid rgba(110,160,90,0.25);
    outline-offset: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--gold);
}

.gallery-image {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--sage-green), var(--lime-green));
    color: white;
    position: relative;
    overflow: hidden;
}

.gallery-item:nth-child(1) .gallery-image {
    background: linear-gradient(135deg, var(--tan), var(--gold));
}

.gallery-item:nth-child(2) .gallery-image {
    background: linear-gradient(135deg, var(--purple), var(--sage-green));
}

.gallery-item:nth-child(3) .gallery-image {
    background: linear-gradient(135deg, var(--lime-green), var(--olive-green));
}

.gallery-image::before {
    content: '🎨';
    font-size: 8rem;
    opacity: 0.2;
    position: absolute;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--sage-green);
}

.gallery-info p {
    color: var(--dark-text);
    font-size: 0.95rem;
}

/* Contact Section */
#contact {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--sage-green);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--warm-gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-green);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--sage-green), var(--olive-green));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(105, 129, 86, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* Footer */
footer {
    background: rgb(136, 82, 136);
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        padding: 0.5rem;
    }

    nav li {
        margin: 0.5rem 1rem;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1.2rem;
    }

    .logo-container img {
        max-width: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 3rem 1rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Form Status Messages */
.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: rgba(93, 141, 60, 0.1);
    color: var(--olive-green);
    border: 2px solid var(--olive-green);
}

.form-message.error {
    background-color: rgba(192, 21, 47, 0.1);
    color: #c0152f;
    border: 2px solid #c0152f;
}
/* Modal / Slider Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-slider {
    max-width: 1100px;
    width: 100%;
    background: rgba(255,255,255,0.03);
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.slides { position: relative; width: 100%; height: 70vh; max-height: 720px; background: #111; display: flex; align-items: center; justify-content: center; }
.slide { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; }
.slide img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; margin: 0 auto; }

.modal-caption { color: #fff; padding: 0.75rem 1rem; background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.6)); font-size: 1rem; }

.modal-controls { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; pointer-events: none; }
.modal-controls button { pointer-events: auto; background: rgba(0,0,0,0.5); border: none; color: white; font-size: 2rem; padding: 0.5rem 0.9rem; margin: 0 0.5rem; border-radius: 6px; cursor: pointer; }

.modal-close { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: white; border: none; padding: 0.5rem 0.8rem; border-radius: 6px; cursor: pointer; }

.modal-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: rgba(0,0,0,0.15); }
.modal-thumbs img { height: 56px; border-radius: 6px; cursor: pointer; opacity: 0.75; transition: opacity 0.2s ease, transform 0.15s ease; }
.modal-thumbs img.active { outline: 2px solid var(--gold); opacity: 1; transform: translateY(-2px); }

/* Honeypot (hidden) field - keep off-screen for accessibility */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
