/**
 * css/pages/index.css
 * ====================
 * Homepage layout. Loaded only by pages/index.html.
 * Replaces 38 inline style attributes.
 */

/* -- Feature sections ------------------------------------------------------ */

.home-section {
    padding: var(--layout-section-padding, 5rem 0);
}

.home-section-alt {
    background: var(--theme-bg-alt);
}

.home-section-header {
    text-align: center;
    margin-bottom: var(--space-xl, 4rem);
}

.home-section-header .section-title {
    margin-bottom: var(--space-sm, 1rem);
}

.home-section-header .section-subtitle {
    max-width: 700px;
    margin: 0 auto;
}

/* -- Image containers ------------------------------------------------------ */

.image-container {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md, 12px);
    margin-bottom: var(--space-sm, 1rem);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -- Featured grids -------------------------------------------------------- */

.featured-products-grid,
.featured-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* gap deliberately omitted -- inherits from .grid { gap: 1.75rem } in outback-theme.css */
}

@media (max-width: 900px) {
    .featured-products-grid,
    .featured-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .featured-products-grid,
    .featured-events-grid {
        grid-template-columns: 1fr;
    }
}

/* -- Loading / placeholder states ------------------------------------------ */

.home-loading-placeholder {
    padding: var(--space-xl, 4rem);
    color: var(--theme-text-light);
    text-align: center;
    grid-column: 1 / -1;
}

/* -- CTA banner (email signup) --------------------------------------------- */

.home-cta-banner {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-hover) 100%);
    color: #FFFFFF;
    padding: var(--space-xl, 4rem) 0;
    display: flex;
    align-items: center;
    min-height: 300px;
}

.home-cta-banner .section-title {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm, 1rem);
}

.home-cta-form {
    display: flex;
    gap: var(--space-sm, 1rem);
    flex-wrap: wrap;
    margin-top: var(--space-lg, 2.5rem);
}

.home-cta-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm, 6px);
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 1rem;
    font-family: var(--theme-font-sans);
    backdrop-filter: blur(10px);
}

.home-cta-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.home-cta-btn {
    white-space: nowrap;
    background: #FFFFFF;
    color: var(--theme-primary);
    border-color: #FFFFFF;
}

.home-cta-btn:hover {
    background: var(--theme-secondary);
    border-color: var(--theme-secondary);
    color: #1A1A1A;
}

/* -- Testimonials filter button (homepage) --------------------------------- */

.testimonials-filter-btn {
    background: var(--theme-bg-alt);
    border: 2px solid var(--theme-primary);
    color: var(--theme-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    font-family: var(--theme-font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.testimonials-filter-btn:hover,
.testimonials-filter-btn.active {
    background: var(--theme-primary);
    color: #FFFFFF;
}

.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md, 1.5rem);
    flex-wrap: wrap;
    gap: var(--space-sm, 1rem);
}

/* -- Seasonal carousel section --------------------------------------------- */

.home-seasonal {
    background: var(--theme-bg-alt);
}

.home-seasonal-header {
    text-align: center;
    margin-bottom: var(--space-xl, 4rem);
}
