/**
 * ACF Blocks Styles
 * Frontend styles for custom ACF blocks
 */

/* ==========================================================================
ACF BLOCKS STYLES
========================================================================== */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* or your overlay color */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Hero Section Block */
.acf-block-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.acf-block-hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.acf-block-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.acf-block-hero-section .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.acf-block-hero-section .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.acf-block-hero-section .hero-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.acf-block-hero-section .hero-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Content Section Block */
.acf-block-content-section {
    padding: 4rem 0;
}

.acf-block-content-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.acf-block-content-section .section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.acf-block-content-section .section-image {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Testimonials Block */
.acf-block-testimonials {
    padding: 4rem 0;
    background: var(--light-color);
}

.acf-block-testimonials .testimonial-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.acf-block-testimonials .testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.acf-block-testimonials .testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.acf-block-testimonials .testimonial-position {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Call to Action Block */
.acf-block-call-to-action {
    padding: 4rem 0;
    background: var(--accent-color);
    color: white;
    text-align: center;
}

.acf-block-call-to-action .cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.acf-block-call-to-action .cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.acf-block-call-to-action .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.acf-block-call-to-action .cta-button:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    color: var(--accent-color);
    text-decoration: none;
}

/* Flexible Section Block */
.acf-block-flexible-section {
    position: relative;
}

.acf-block-flexible-section .section-header {
    margin-bottom: 2rem;
}

.acf-block-flexible-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.acf-block-flexible-section .section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.acf-block-flexible-section .section-inner-blocks {
    /* This area allows for additional blocks to be added */
    margin-top: 2rem;
}

.acf-block-flexible-section .section-inner-blocks > *:first-child {
    margin-top: 0;
}

.acf-block-flexible-section .section-inner-blocks > *:last-child {
    margin-bottom: 0;
}

/* Background Color Variations */
.acf-block-flexible-section.bg-primary .section-title,
.acf-block-flexible-section.bg-secondary .section-title,
.acf-block-flexible-section.bg-accent .section-title,
.acf-block-flexible-section.bg-dark .section-title,
.acf-block-flexible-section.bg-success .section-title,
.acf-block-flexible-section.bg-danger .section-title,
.acf-block-flexible-section.bg-info .section-title {
    color: white;
}

.acf-block-flexible-section.bg-warning .section-title {
    color: var(--dark-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .acf-block-hero-section .hero-title {
        font-size: 2rem;
    }
    
    .acf-block-hero-section .hero-subtitle {
        font-size: 1rem;
    }
    
    .acf-block-content-section .section-title,
    .acf-block-call-to-action .cta-title,
    .acf-block-flexible-section .section-title {
        font-size: 2rem;
    }
    
    .acf-block-content-section,
    .acf-block-testimonials,
    .acf-block-call-to-action,
    .acf-block-flexible-section {
        padding: 2rem 0;
    }
} 