/* =================================================== */
/* STYLES FOR: index.php
/* This file is loaded ONLY on the homepage.
/* Foundation styles are in style.css
/* =================================================== */

/* ==================== HERO ==================== */
.hero {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--color-surface);
    background-image: linear-gradient(135deg, hsla(var(--color-primary-hue), 80%, 95%, 0.5) 0%, hsla(0, 0%, 100%, 0) 60%);
}

[data-theme="dark"] .hero {
    background-image: linear-gradient(135deg, hsla(var(--color-primary-hue), 80%, 20%, 0.3) 0%, hsla(0, 0%, 7%, 0) 60%);
}

.hero__container {
    text-align: center;
}

.hero__content {
    max-width: 700px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero__cta-button {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* ==================== SERVICES & CARDS ==================== */
.services__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    overflow: hidden;
}

[data-theme="dark"] .card {
    background-color: var(--color-surface);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

[data-theme="dark"] .card:hover {
    background-color: hsl(240, 2%, 15%);
    box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-medium);
}

.card__icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.card__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card__description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ==================== EVENTS PREVIEW ==================== */
.events-preview {
    background-color: var(--color-surface);
}

.events-preview__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.event-card {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.event-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-medium);
}

[data-theme="dark"] .event-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
}

.event-card__content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-card__description {
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.event-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials__container {
    max-width: 800px;
    display: grid;
    gap: 2.5rem;
}

.testimonial-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 2rem;
    border-left: 5px solid var(--color-primary);
}

[data-theme="dark"] .testimonial-card {
    background-color: var(--color-surface);
}

.testimonial-card__quote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.testimonial-card__author {
    font-weight: 700;
    color: var(--color-text);
}

/* ==================== ABOUT TEASER ==================== */
.about-teaser {
    background-color: var(--color-surface);
}

.about-teaser__container {
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Update the .about-teaser__image-container to remove placeholder styles */
.about-teaser__image-container {
    /* REMOVE THESE OLD STYLES IF YOU HAD THEM: */
    /* background-color: var(--color-border); */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* color: var(--color-text-light); */
    /* font-style: italic; */
    /* font-size: 0.9rem; */

    border-radius: var(--border-radius);
    overflow: hidden; /* Ensures image corners are rounded */
    height: 300px; /* Or a suitable fixed height, or remove for auto height */
    position: relative; /* For object-fit to work reliably if needed */
}

.about-teaser__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
    display: block; /* Removes extra space below image */
}

.about-teaser__title {
    /* Aligns title to the left, not center */
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-teaser__description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* ==================== BROCHURE ==================== */
.brochure {
    background-color: var(--color-background);
}

.brochure__container {
    max-width: 800px;
    text-align: center;
    padding: 4rem 2rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--border-radius);
}

[data-theme="dark"] .brochure__container {
    background-color: var(--color-surface);
}

.brochure__icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.brochure__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.brochure__description {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== FAQ TEASER ==================== */
.faq-teaser {
    background-color: var(--color-surface);
}

.faq-teaser__container {
    text-align: center;
    max-width: 700px;
}

.faq-teaser__description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* ==================== CALL TO ACTION ==================== */
.cta {
    background-color: var(--color-primary);
    color: #fff;
    padding-top: 6rem;
    padding-bottom: 6rem;
    border-radius: var(--border-radius);
    /* The container is centered, but the CTA section itself 
       can bleed to the edges. We control its max-width
       using the inner .cta__container */
}

[data-theme="dark"] .cta {
    background: linear-gradient(135deg, var(--color-primary), hsl(var(--color-primary-hue), 100%, 40%));
}

.cta__container {
    text-align: center;
}

.cta__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta__subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta__button {
    background-color: #fff;
    color: var(--color-primary);
    box-shadow: 0 5px 15px hsla(0, 0%, 0%, 0.2);
}

.cta__button:hover {
    background-color: hsl(0, 0%, 95%);
    color: var(--color-primary-alt);
    box-shadow: 0 8px 20px hsla(0, 0%, 0%, 0.3);
}

/* ==================== MEDIA QUERIES (Page Specific) ==================== */

/* For medium devices */
@media screen and (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
    }

    .cta__title {
        font-size: 2rem;
    }
}

/* For small devices */
@media screen and (max-width: 375px) {
    .hero__title {
        font-size: 2rem;
    }

    .services__container,
    .events-preview__grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 768px) {
    .about-teaser__container {
        grid-template-columns: 1fr 1fr;
    }

    .about-teaser__image-container {
        height: 400px;
    }
}