/* ==========================================================================
   Site Theme Variables
   ========================================================================== */

:root {
    /* Colors */
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #eab308;
    --text-color: #1a1a1a;
    --text-light: #64748b;
    --background-color: #f1faee;
    --background-alt: #f8fafc;

    /* Typography */
    --font-family: Inter;
    --font-heading: Playfair Display, system-ui, sans-serif;

    /* Spacing */
    --section-padding: 4rem 1.5rem;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}


/* ==========================================================================
   Base Styles
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    opacity: 0.9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    line-height: 1.2;
}

/* ==========================================================================
   Component Styles
   ========================================================================== */

/* Hero Banner */

.hero { position: relative; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.hero-full { min-height: 100vh; }
.hero-large { min-height: 80vh; }
.hero-medium { min-height: 60vh; }
.hero-small { min-height: 40vh; }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.hero-content { position: relative; z-index: 1; padding: 40px 20px; max-width: 800px; }
.hero-headline { font-size: 3.5rem; font-weight: 700; margin-bottom: 16px; }
.hero-subheadline { font-size: 1.25rem; margin-bottom: 32px; opacity: 0.9; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.btn { display: inline-block; padding: 14px 32px; font-weight: 600; text-decoration: none; border-radius: 6px; transition: all 0.3s; }
.btn-solid { background: var(--primary-color, #e63946); color: white; }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-ghost { background: rgba(255,255,255,0.1); color: white; }
@media (max-width: 768px) { .hero-headline { font-size: 2.5rem; } }


/* Text Block */

.text-block { display: flex; justify-content: center; }
.text-content { width: 100%; }
.width-narrow .text-content { max-width: 600px; }
.width-medium .text-content { max-width: 800px; }
.width-wide .text-content { max-width: 1000px; }
.width-full .text-content { max-width: 100%; }
.padding-none { padding: 0; }
.padding-small { padding: 24px 20px; }
.padding-medium { padding: 60px 20px; }
.padding-large { padding: 100px 20px; }
.text-block h2 { font-size: 2.5rem; margin-bottom: 24px; }
.text-body { line-height: 1.8; font-size: 1.1rem; }
.text-body p { margin-bottom: 16px; }


/* Navigation Bar */

.navbar { padding: 1rem 1.5rem; }
.navbar.sticky { position: sticky; top: 0; z-index: 1000; }
.navbar.style-light { background: white; color: var(--secondary-color, #1e293b); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.navbar.style-dark { background: var(--secondary-color, #1e293b); color: white; }
.navbar.style-transparent { background: transparent; color: white; position: absolute; width: 100%; }
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}
.navbar-logo { text-decoration: none; color: inherit; font-size: 1.5rem; font-weight: 700; }
.navbar-logo img { max-height: 50px; }
.navbar-menu { display: flex; align-items: center; gap: 2rem; }
.nav-link { text-decoration: none; color: inherit; font-weight: 500; }
.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color, #f97316);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}
.navbar-toggle { display: none; }
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }
    .navbar-toggle span { width: 25px; height: 2px; background: currentColor; }
    .navbar-menu { display: none; }
    .navbar-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: inherit;
        padding: 1rem;
    }
}


/* Feature Grid */

.feature-section { padding: 80px 20px; }
.feature-container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 16px; }
.section-subtitle { text-align: center; color: var(--text-light, #666); max-width: 600px; margin: 0 auto 48px; }
.feature-grid { display: grid; gap: 30px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.style-cards .feature-card { background: white; padding: 40px 24px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); text-align: center; transition: transform 0.3s; }
.style-cards .feature-card:hover { transform: translateY(-5px); }
.style-minimal .feature-card { text-align: center; padding: 20px; }
.feature-icon { font-size: 48px; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-light, #666); line-height: 1.6; }
@media (max-width: 768px) { .cols-3, .cols-4 { grid-template-columns: 1fr; } .cols-2 { grid-template-columns: 1fr; } }


/* FAQ Accordion */

.faq-section { padding: 4rem 1.5rem; max-width: 800px; margin: 0 auto; }
.faq-section h2 { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 2rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item { border: 1px solid var(--border-color, #e2e8f0); border-radius: 8px; overflow: hidden; }
.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.faq-icon { font-size: 1.5rem; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    display: none;
    padding: 0 1.25rem 1.25rem;
    color: var(--text-light, #64748b);
    line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }


/* Footer */

.site-footer { padding: 60px 20px 30px; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-main { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand p { opacity: 0.7; line-height: 1.8; margin-top: 16px; }
.footer-logo { height: 50px; }
.footer-col h4 { margin-bottom: 20px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; opacity: 0.7; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.social-links { display: flex; gap: 16px; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.6; font-size: 0.9rem; }
@media (max-width: 768px) { .footer-main { grid-template-columns: 1fr; } }


/* Call to Action */

.cta-section { padding: 80px 20px; text-align: center; }
.cta-container { max-width: 800px; margin: 0 auto; }
.cta-section h2 { font-size: 2.5rem; margin-bottom: 16px; }
.cta-section p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 32px; }
.cta-button { display: inline-block; background: white; color: var(--text-color, #333); padding: 16px 40px; border-radius: 6px; font-weight: 600; text-decoration: none; transition: transform 0.3s; }
.cta-button:hover { transform: translateY(-3px); }
.style-split { text-align: left; }
.style-split .cta-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; }
.style-banner { padding: 40px 20px; }


/* Testimonials */

.testimonials-section { padding: 80px 20px; }
.testimonials-container { max-width: 1200px; margin: 0 auto; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.testimonial-card { background: white; padding: 32px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.rating { color: var(--accent-color, #fbbf24); font-size: 1.2rem; margin-bottom: 16px; }
blockquote { font-size: 1.1rem; line-height: 1.8; margin: 0 0 20px; font-style: italic; }
cite { font-style: normal; font-weight: 600; }
cite span { font-weight: 400; opacity: 0.6; }
.testimonials-carousel { display: flex; overflow-x: auto; gap: 20px; scroll-snap-type: x mandatory; }
.testimonials-carousel .testimonial-card { min-width: 350px; scroll-snap-align: start; }
@media (max-width: 768px) { .testimonials-grid { grid-template-columns: 1fr; } }


/* Events Section (Data-Bound) */

.events-section { padding: 4rem 1.5rem; }
.events-heading { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 3rem; }
.events-grid { display: grid; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.events-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.events-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.events-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.event-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.event-image { width: 100%; height: 180px; object-fit: cover; }
.event-info { display: flex; gap: 1rem; padding: 1.5rem; }
.event-date { text-align: center; min-width: 50px; }
.event-date .month { display: block; font-size: 0.75rem; font-weight: 600; color: #f97316; text-transform: uppercase; }
.event-date .day { display: block; font-size: 1.75rem; font-weight: 700; }
.event-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.25rem; }
.event-time { color: #64748b; font-size: 0.875rem; }
.event-desc { color: #64748b; font-size: 0.875rem; margin-top: 0.5rem; }
.no-events { grid-column: 1 / -1; text-align: center; padding: 3rem; color: #64748b; }
@media (max-width: 768px) {
    .events-grid.cols-3, .events-grid.cols-4 { grid-template-columns: 1fr; }
}


/* Gallery Section (Data-Bound) */

.gallery-section { padding: 4rem 1.5rem; }
.gallery-heading { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 3rem; }
.gallery-grid { display: grid; gap: 0.5rem; max-width: 1400px; margin: 0 auto; }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-grid.ratio-square .gallery-item { aspect-ratio: 1; }
.gallery-grid.ratio-4\:3 .gallery-item { aspect-ratio: 4/3; }
.gallery-grid.ratio-16\:9 .gallery-item { aspect-ratio: 16/9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.image-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s; color: white; font-weight: 600;
}
.gallery-item:hover .image-overlay { opacity: 1; }
.gallery-lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.9); cursor: pointer;
    display: none; align-items: center; justify-content: center;
}
.gallery-lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; }
.no-images { grid-column: 1 / -1; text-align: center; padding: 3rem; color: #64748b; }
@media (max-width: 768px) {
    .gallery-grid.cols-4, .gallery-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
}


/* Dynamic Form */

.dynamic-form-section {
    padding: 4rem 1.5rem;
}
.dynamic-form-container {
    max-width: 600px;
    margin: 0 auto;
}
.dynamic-form-heading {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}
.dynamic-form-subtitle {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.dynamic-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.dynamic-form-fields .form-group {
    width: 100%;
}
.dynamic-form-fields .form-group.half-width {
    width: calc(50% - 0.5rem);
}
.dynamic-form-fields .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.dynamic-form-fields .form-group input,
.dynamic-form-fields .form-group textarea,
.dynamic-form-fields .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255,255,255,0.1);
    color: inherit;
    box-sizing: border-box;
}
.dynamic-form-fields .form-group textarea {
    min-height: 120px;
    resize: vertical;
}
.dynamic-form-fields .form-group input::placeholder,
.dynamic-form-fields .form-group textarea::placeholder {
    color: inherit;
    opacity: 0.5;
}
.dynamic-form-fields .form-group select option {
    color: var(--text-color, #333);
    background: #fff;
}
.dynamic-form-fields .form-group input:focus,
.dynamic-form-fields .form-group textarea:focus,
.dynamic-form-fields .form-group select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: auto !important;
}
.dynamic-form-submit {
    display: block;
    width: 100%;
    padding: 0.9rem 2rem;
    margin-top: 1.5rem;
    background: var(--primary-color, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.dynamic-form-submit:hover {
    background: var(--primary-color, #c0392b);
    transform: translateY(-1px);
}
.dynamic-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.dynamic-form-message {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}
.dynamic-form-message.success {
    background: rgba(46, 204, 113, 0.2);
    color: var(--accent-color, #2ecc71);
}
.dynamic-form-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: var(--primary-color, #e74c3c);
}
@media (max-width: 600px) {
    .dynamic-form-fields .form-group.half-width {
        width: 100%;
    }
}


/* Newsletter Signup */

.newsletter-section { padding: 60px 0; color: white; }
.newsletter-section .container { display: flex; align-items: center; gap: 40px; }
.newsletter-section.layout-centered .container { flex-direction: column; text-align: center; }
.newsletter-section.layout-stacked .container { flex-direction: column; }
.newsletter-content { flex: 1; }
.newsletter-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.newsletter-description { opacity: 0.8; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input { flex: 1; padding: 16px 20px; border: none; border-radius: 6px; font-size: 1rem; min-width: 280px; }
.newsletter-form button { padding: 16px 32px; border: none; border-radius: 6px; color: white; font-weight: 600; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 768px) { .newsletter-section .container { flex-direction: column; text-align: center; } .newsletter-form { flex-direction: column; } .newsletter-form input { min-width: 100%; } }


/* Contact Form */

.contact-form {
    padding: 4rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}
.form-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.form-header p { color: var(--text-light, #64748b); }
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    font-size: 1rem;
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color, #f97316);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}
.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color, #f97316);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.form-submit:hover { background: var(--primary-color, #ea580c); }


/* ==========================================================================
   Custom Component Styles
   ========================================================================== */

/* Custom: Hero Banner (#75) */

.hero-headline, .hero-subheadline, .hero-content p {
    text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.5);
}


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .features.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .features.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-headline { font-size: 2rem; }
    .hero-subheadline { font-size: 1rem; }
    .features.cols-4,
    .features.cols-3,
    .features.cols-2 { grid-template-columns: 1fr; }
    .navbar-menu { display: none; }
    .navbar-menu.active { display: flex; flex-direction: column; }
    .about-container { flex-direction: column !important; }
    .about-image { width: 100% !important; }
}
