/* --- CTA Section --- */
.cta {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: var(--color-primary);
    position: relative;
    padding: 0; /* Padding handled by container to allow full height image */
    overflow: hidden;
    align-items: center;
    min-height: 500px;
    margin-top: 0;
}

/* Hexagon Background Pattern */
.cta__hex-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* SVG Pattern for Hexagons */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='104' viewBox='0 0 60 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l28.867 16.667v33.334L30 66.667 1.133 50V16.667zM30 52l28.867 16.667v33.334L30 118.667 1.133 102V68.667z' fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.15'/%3E%3C/svg%3E");
    background-size: 60px 104px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.cta__container {
    width: 90%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0;
    margin: 0 auto;
}

/* Left Content */
.cta__content {
    flex: 1;
    padding: var(--space-4xl) 0;
    color: var(--color-text-light);
}

.cta__title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -1.5px;
    text-shadow: 0 2px 10px var(--shadow-text-very-soft);
}

.cta__text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    opacity: 0.95;
    max-width: 480px;
    font-weight: 500;
}

/* The Pill Button */
.cta__button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    background-color: var(--color-bg-light); /* White */
    color: var(--color-primary);
    padding: var(--space-md) var(--space-xl);
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    min-height: 44px; /* Touch target size */
    min-width: 44px;
    justify-content: center;
}

.cta__button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0;
}

.cta__button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: none;
}

.cta__button:hover::after {
    opacity: 1;
}

.cta__button-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta__button:hover .cta__button-icon {
    transform: translateX(5px);
}

/* Right Image */
.cta__image-wrapper {
    flex: 0.8;
    height: 500px;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-right: -5%; /* Pull slightly to edge */
}

.cta__image {
    width: 100%;
    height: 90%; /* Slightly smaller than container to create floating effect */
    object-fit: cover;
    border-radius: 4px;
    box-shadow: -20px 20px 60px var(--shadow-card-heavy);
    /* Clip path to make it look sharper/angled */
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    filter: saturate(1.1) contrast(1.1);
}

/* Decorative Corner Squares */
.cta__squares {
    position: absolute;
    z-index: 3;
    display: flex;
    gap: 0;
}

.cta__squares span {
    display: block;
    width: var(--space-2xl);
    height: var(--space-2xl);
    background-color: var(--bg-white-soft);
    backdrop-filter: blur(5px);
}

/* Top Left Pattern */
.cta__squares--top-left {
    top: 0;
    left: 5%;
}
.cta__squares--top-left span:nth-child(1) { opacity: 1; background-color: var(--bg-white-strong); }
.cta__squares--top-left span:nth-child(2) { opacity: 0; } /* Gap */
.cta__squares--top-left span:nth-child(3) { opacity: 0.5; margin-top: var(--space-2xl); margin-left: calc(var(--space-2xl) * -1); }

/* Bottom Right Pattern */
.cta__squares--bottom-right {
    bottom: 0;
    right: 0;
    flex-direction: column-reverse;
    align-items: flex-end;
}
.cta__squares--bottom-right span:nth-child(1) { opacity: 1; background-color: var(--bg-white-strong); }
.cta__squares--bottom-right span:nth-child(2) { opacity: 0.5; margin-right: var(--space-2xl); margin-bottom: calc(var(--space-2xl) * -1); }

/* Responsive */
@media (max-width: 1024px) {
    .cta__container {
        flex-direction: column;
        text-align: center;
        padding: var(--space-4xl) var(--space-lg);
    }
    
    .cta__content {
        padding: 0 0 var(--space-2xl) 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: 0;
    }

    .cta__title {
        font-size: 2.5rem;
    }

    .cta__image-wrapper {
        width: 100%;
        height: 300px;
        margin-right: 0;
    }
    
    .cta__image {
        height: 100%;
        clip-path: none;
        width: 100%;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cta__button,
    .cta__button::after,
    .cta__button-icon {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }

    .cta__button:hover {
        transform: none;
        box-shadow: none;
    }

    .cta__button:hover .cta__button-icon {
        transform: none;
    }
}
