/* Spaces Page Styles */
@import url('globals.css');

:root {
    --spaces-bg-dark: #072A30;
    --spaces-bg-light: #EDF2F2;
    --spaces-accent: #17C64F;
    --spaces-text-dark: #072A30;
    --spaces-text-light: #FFFFFF;
}

/* Hero Section */
.spaces-hero {
    background-color: var(--spaces-bg-dark);
    color: white;
    padding: 180px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Doodle Animation */
.doodle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.8;
}

.doodle-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doodle-svg path {
    animation: dash 60s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}

.spaces-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.spaces-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
}

.spaces-hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #B8C1C1;
    max-width: 700px;
    margin: 0 auto;
}

/* Image-Led Sections Grid */
.spaces-grid {
    padding: 100px 20px;
    background-color: #FFFFFF;
}

.space-item {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto 150px;
}

.space-item:last-child {
    margin-bottom: 0;
}

.space-item:nth-child(even) {
    flex-direction: row-reverse;
}

.space-image {
    flex: 1.2;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    height: 600px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.space-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.space-item:hover .space-image img {
    transform: scale(1.05);
}

.space-text {
    flex: 0.8;
}

.space-text h2 {
    font-size: 2.5rem;
    color: var(--spaces-text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.space-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #556666;
    margin-bottom: 30px;
}

.btn-tell-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--spaces-bg-dark);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-tell-more:hover {
    background: var(--spaces-accent);
    color: var(--spaces-bg-dark);
    transform: translateX(5px);
}

/* Call to Action Section */
.spaces-cta {
    background-color: var(--spaces-bg-light);
    padding: 120px 20px;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-container h2 {
    font-size: 3rem;
    color: var(--spaces-text-dark);
    margin-bottom: 24px;
}

.cta-container p {
    font-size: 1.25rem;
    color: #445555;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-tour {
    padding: 18px 40px;
    background: var(--spaces-accent);
    color: var(--spaces-bg-dark);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-tour:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(23, 198, 79, 0.3);
}

.btn-whatsapp {
    padding: 18px 40px;
    background: white;
    color: #25D366;
    border: 2px solid #25D366;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: white;
    transform: translateY(-3px);
}

/* Responsiveness */
@media (max-width: 1100px) {
    .space-item {
        flex-direction: column !important;
        gap: 40px;
        margin-bottom: 100px;
    }

    .space-image {
        width: 100%;
        height: 450px;
    }

    .space-text {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .spaces-hero h1 {
        font-size: 2.2rem;
    }

    .space-text h2 {
        font-size: 2rem;
    }

    .cta-container h2 {
        font-size: 2rem;
    }

    .space-image {
        height: 350px;
    }

    .cta-buttons {
        flex-direction: column;
    }
}