/* ===== SECTIONS LAYOUT ===== */

/* Exclude hero slider from section styles */
.hero-slider {
    padding: 0 !important;
    margin: 0;
}

.hero-slider * {
    transform: none;
    opacity: 1;
}

/* Base section styles */
.content-section:not(.hero-slider) {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Section wrapper for chess layout */
.section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Content and image blocks */
.content-block {
    padding: 20px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.image-block {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.content-block.animated,
.image-block.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Chess pattern - odd sections */
.boutiques-section .section-wrapper,
.event-section .section-wrapper {
    grid-template-areas: "content image";
}

.boutiques-section .content-block,
.event-section .content-block {
    grid-area: content;
}

.boutiques-section .image-block,
.event-section .image-block {
    grid-area: image;
}

/* Chess pattern - even sections */
.cafe-section .section-wrapper,
.cosmos-section .section-wrapper {
    grid-template-areas: "image content";
}

.cafe-section .content-block,
.cosmos-section .content-block {
    grid-area: content;
}

.cafe-section .image-block,
.cosmos-section .image-block {
    grid-area: image;
}

/* Image styling */
.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.image-block:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-block:hover .image-overlay {
    opacity: 1;
}

/* Background colors alternating */
.boutiques-section,
.event-section {
    background: var(--white);
}

.cafe-section,
.cosmos-section {
    background: var(--gray-light);
}

/* Section titles and text */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TABLET RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content-section:not(.hero-slider) {
        padding: 70px 0;
    }
    
    .section-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Reset grid areas for tablet */
    .boutiques-section .section-wrapper,
    .cafe-section .section-wrapper,
    .event-section .section-wrapper,
    .cosmos-section .section-wrapper {
        grid-template-areas: none !important;
    }
    
    /* Image always first on tablet/mobile */
    .image-block {
        order: 1;
    }
    
    .content-block {
        order: 2;
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .content-section:not(.hero-slider) {
        padding: 50px 0;
    }
    
    .section-wrapper {
        gap: 30px;
        padding: 0 15px;
    }
    
    /* Reset animations for mobile */
    .content-block,
    .image-block {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Apply mobile animations */
    .content-block[data-animate],
    .image-block[data-animate] {
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    /* Mobile specific styles */
    .content-block {
        padding: 0;
        text-align: center;
    }
    
    .image-block {
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-bottom: 10px;
    }
    
    .image-block img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }
    
    /* Typography adjustments */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .section-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: left;
    }
    
    /* Button styling for mobile */
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 20px auto 0;
        padding: 15px 30px;
        font-size: 14px;
        justify-content: center;
        display: inline-flex;
    }
    
    /* Spacing adjustments */
    .boutiques-section,
    .cafe-section,
    .event-section,
    .cosmos-section {
        padding: 50px 0;
    }
    
    /* Add visual separation */
    .content-section:not(.hero-slider):nth-child(even) {
        background: var(--gray-light);
    }
    
    .content-section:not(.hero-slider):nth-child(odd) {
        background: var(--white);
    }
}

/* ===== SMALL MOBILE RESPONSIVE ===== */
@media (max-width: 480px) {
    .content-section:not(.hero-slider) {
        padding: 40px 0;
    }
    
    .section-wrapper {
        gap: 25px;
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .section-text {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .image-block {
        border-radius: 10px;
    }
    
    .image-block img {
        max-height: 250px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 13px;
        max-width: 250px;
    }
}