/* =========================================
   1. GLOBAL RESET & UTILITIES 
   ========================================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #444;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.3s; 
}
a:hover { opacity: 0.8; }

/* Color Variables */
:root {
    --primary-green: #2E7D54; 
    --light-bg: #f9f9f9;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: var(--primary-green);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo { font-weight: bold; font-size: 1.2rem; }

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}
nav a { color: white; font-weight: 500; }
nav .active-link { color: white; font-weight: 800; font-size: 1rem; }

/* =========================================
   3. HERO SECTION (Homepage)
   ========================================= */
.hero {
    background-color: #500;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('red-curtain.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background: white;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-title {
    color: var(--primary-green);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.hero-text { font-size: 0.95rem; margin-bottom: 20px; }

.btn {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
}

/* =========================================
   4. FEATURES SECTION (Homepage)
   ========================================= */
.features { padding: 60px 0; background: white; }

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 15px;
}

.section-title {
    font-family: Georgia, serif;
    color: var(--primary-green);
    font-size: 2rem;
    margin: 0;
}

.title-line {
    height: 1px;
    width: 100px;
    background-color: var(--primary-green);
    display: block;
}

.columns-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap; 
}

.col {
    flex: 1;
    min-width: 280px; 
    text-align: center;
}

.circle-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    background-color: #ddd; 
}

.col h3 {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.col p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* FAQ CTA (Homepage) */
.faq-cta {
    text-align: center;
    padding-bottom: 60px;
}

/* =========================================
   5. CALENDAR PAGE STYLES
   ========================================= */
.calendar-intro {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}
.calendar-intro h1 {
    color: #444;
    margin-bottom: 20px;
}
.calendar-tips {
    list-style: none; 
    padding: 0;
    color: var(--primary-green);
    font-weight: 500;
    margin-bottom: 30px;
    line-height: 1.8;
}
.calendar-key {
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.calendar-subscribe a {
    color: var(--primary-green);
    text-decoration: underline;
}
.key-title {
    font-weight: bold;
    color: var(--primary-green);
    display: block;
    margin-bottom: 5px;
}
.airtable-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* =========================================
   6. LIST YOUR EVENT & SPLIT LAYOUTS
   ========================================= */
.split-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.split-image {
    flex: 1;
    text-align: right;
}
.split-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; 
}
.split-content {
    flex: 1;
    text-align: left;
}
.split-title {
    color: var(--primary-green);
    font-family: Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.split-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 400px;
}

/* =========================================
   7. POPUP MODAL STYLES
   ========================================= */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7); 
    z-index: 1000; 
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    height: 80vh; 
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-modal-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    background: white;
    padding: 0 10px;
    border-radius: 5px;
}
.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================
   8. FAQ PAGE STYLES
   ========================================= */
.faq-header {
    text-align: center;
    padding: 40px 20px 20px 20px;
    max-width: 900px;
    margin: 0 auto;
}
.faq-header h1 {
    color: var(--primary-green);
    font-family: Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--primary-green); 
    display: inline-block;
    padding-bottom: 10px;
}
.faq-subtitle {
    margin-top: 20px;
    color: #555;
}
.faq-subtitle a {
    color: var(--primary-green);
    text-decoration: underline;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}
.faq-question:hover {
    color: var(--primary-green);
}
.faq-question::after {
    content: '+'; 
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg); 
}
.faq-item.active .faq-question {
    color: var(--primary-green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 20px;
}
.faq-answer p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

/* =========================================
   9. CONTACT PAGE STYLES
   ========================================= */
.contact-container {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}
.contact-left {
    flex: 1;
    max-width: 500px;
}
.contact-right {
    flex: 1;
}
.contact-right img {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Visibility states */
#contact-form-section, #contact-success {
    display: none; 
}

/* Form Styling */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* Contact Buttons */
.btn-green {
    background-color: var(--primary-green);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}
.btn-green:hover { background-color: #246644; }

.btn-cancel {
    background: none;
    border: none;
    text-decoration: underline;
    color: #666;
    cursor: pointer;
    margin-left: 15px;
    font-size: 1rem;
}

.success-icon {
    font-size: 60px;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: block;
}

/* =========================================
   10. BACK TO TOP BUTTON
   ========================================= */
#backToTop {
    display: none; 
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-green);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}
#backToTop:hover {
    background-color: #246644;
    transform: translateY(-3px); 
}

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    background-color: #f8f8f8;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #eaeaea;
}
.footer-nav { margin-bottom: 20px; }
.footer-nav a {
    margin: 0 10px;
    color: var(--primary-green);
}
.footer-info {
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
}
.footer-sub { color: #666; margin-bottom: 30px; }
.copyright-row {
    display: flex;
    justify-content: center;
    color: var(--primary-green);
}