/* ============================================
   GUTENBERG BLOCKS STYLES
   ============================================ */

/* ============================================
   1. HERO SECTION BLOCK
   ============================================ */

.wp-block-chesterton-hero-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.wp-block-chesterton-hero-section .hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.wp-block-chesterton-hero-section .hero-section-content {
    color: var(--text-color, #ffffff);
}

.wp-editor-block-list__block-popover .wp-block-chesterton-hero-section {
    margin: 0;
    overflow: visible;
}

/* ============================================
   2. FEATURES GRID BLOCK
   ============================================ */

.wp-block-chesterton-features-grid {
    margin-bottom: var(--spacing-xl);
}

.wp-block-chesterton-features-grid .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .wp-block-chesterton-features-grid .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   3. CTA BUTTON BLOCK
   ============================================ */

.wp-block-chesterton-cta-button {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.wp-block-chesterton-cta-button .btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.wp-block-chesterton-cta-button .btn:hover {
    text-decoration: none;
}

/* ============================================
   4. PRODUCTS LIST BLOCK
   ============================================ */

.wp-block-chesterton-products-list {
    margin-bottom: var(--spacing-xl);
}

.wp-block-chesterton-products-list .products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .wp-block-chesterton-products-list .products-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* ============================================
   5. TESTIMONIALS BLOCK
   ============================================ */

.wp-block-chesterton-testimonials {
    margin-bottom: var(--spacing-xl);
}

.wp-block-chesterton-testimonials .testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

@media (max-width: 768px) {
    .wp-block-chesterton-testimonials .testimonials-carousel {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   6. EDITOR-SPECIFIC STYLES
   ============================================ */

/* Ensure blocks look good in editor */
.wp-block-chesterton-hero-section.is-selected,
.wp-block-chesterton-features-grid.is-selected,
.wp-block-chesterton-products-list.is-selected,
.wp-block-chesterton-testimonials.is-selected {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
}

/* ============================================
   7. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 480px) {
    .wp-block-chesterton-hero-section .hero-section-content {
        padding: var(--spacing-md);
    }

    .wp-block-chesterton-hero-section h1 {
        font-size: var(--font-size-2xl);
    }

    .wp-block-chesterton-cta-button .btn {
        display: block;
        width: 100%;
    }
}

/* ============================================
   8. ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.wp-block-chesterton-hero-section .hero-section-content *:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   9. PLACEHOLDER STYLES
   ============================================ */

.wp-block-chesterton-hero-section.is-placeholder {
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.wp-block-chesterton-hero-section.is-placeholder p {
    color: var(--color-text-light);
    margin: 0;
}
