/* ==========================================================================
   PREMIUM CTA SECTION
   Inspired by geometric, lifestyle, editorial serif, and cinematic CTAs
   Emotionally supportive, welcoming, gentle, and safe
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* CTA Color Palette */
    --cta-lavender: #C8B6D8;
    --cta-lavender-soft: rgba(200, 182, 216, 0.15);
    --cta-peach: #F5D2C0;
    --cta-peach-soft: rgba(245, 210, 192, 0.15);
    --cta-teal: #A6D4D4;
    --cta-teal-soft: rgba(166, 212, 212, 0.15);
    --cta-plum: #5D3A4D;
    --cta-plum-light: #8B5A7C;
    
    /* Typography */
    --cta-font-serif: 'Cormorant Garamond', Georgia, serif;
    --cta-font-sans: 'Sora', sans-serif;
    
    /* Shadows */
    --cta-shadow-soft: 0 8px 40px rgba(93, 58, 77, 0.08);
    --cta-shadow-glow: 0 0 40px rgba(200, 182, 216, 0.3);
    
    /* Transitions */
    --cta-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --cta-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   SECTION WRAPPER
   ========================================================================== */
.premium-cta-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #F8F5F2 0%, #FDFCFB 100%);
}

/* Animated gradient wash background */
.premium-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 80% at 0% 50%, var(--cta-lavender-soft) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 100% 30%, var(--cta-peach-soft) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 50% 100%, var(--cta-teal-soft) 0%, transparent 50%);
    animation: gradientWash 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes gradientWash {
    0% {
        opacity: 0.6;
        transform: scale(1) translateX(0);
    }
    100% {
        opacity: 1;
        transform: scale(1.05) translateX(2%);
    }
}

/* ==========================================================================
   GEOMETRIC FRAMING SHAPES
   ========================================================================== */
.cta-geometric-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Soft angled block - left */
.cta-shape-left {
    position: absolute;
    left: -10%;
    top: 10%;
    width: 40%;
    height: 80%;
    background: linear-gradient(135deg, var(--cta-lavender-soft) 0%, transparent 60%);
    transform: skewX(-8deg) rotate(-3deg);
    border-radius: 40px;
    opacity: 0.6;
    transition: transform 0.3s ease-out;
}

/* Soft angled block - right */
.cta-shape-right {
    position: absolute;
    right: -10%;
    bottom: 5%;
    width: 35%;
    height: 70%;
    background: linear-gradient(225deg, var(--cta-peach-soft) 0%, transparent 60%);
    transform: skewX(8deg) rotate(3deg);
    border-radius: 40px;
    opacity: 0.5;
    transition: transform 0.3s ease-out;
}

/* Diagonal line accents */
.cta-line-accent {
    position: absolute;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(93, 58, 77, 0.06) 20%, rgba(93, 58, 77, 0.06) 80%, transparent 100%);
}

.cta-line-accent:nth-child(1) {
    top: 20%;
    left: -50%;
    transform: rotate(-5deg);
}

.cta-line-accent:nth-child(2) {
    bottom: 25%;
    left: -50%;
    transform: rotate(3deg);
}

/* Curved accent */
.cta-curve-accent {
    position: absolute;
    right: 10%;
    top: 15%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(93, 58, 77, 0.04);
    border-radius: 50%;
    opacity: 0.8;
}

/* ==========================================================================
   MAIN CONTAINER
   ========================================================================== */
.premium-cta-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.premium-cta-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(93, 58, 77, 0.12),
        0 8px 24px rgba(93, 58, 77, 0.08);
    border: 1px solid rgba(93, 58, 77, 0.05);
    
    /* Clip-path intro animation */
    clip-path: inset(0 0 100% 0);
    animation: clipRevealUp 1s var(--cta-ease) 0.2s both;
}

@keyframes clipRevealUp {
    from {
        clip-path: inset(100% 0 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

/* ==========================================================================
   IMAGE SIDE
   ========================================================================== */
.cta-image-side {
    position: relative;
    min-height: 480px;
    overflow: hidden;
}

.cta-image-parallax {
    position: absolute;
    inset: -30px;
    transition: transform 0.1s ease-out;
}

.cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay on image */
.cta-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(200, 182, 216, 0.2) 0%,
        rgba(245, 210, 192, 0.15) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Soft fade to content side */
.cta-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
}

/* ==========================================================================
   CONTENT SIDE
   ========================================================================== */
.cta-content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 70px 60px;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 240, 244, 0.9) 50%,
        rgba(237, 245, 245, 0.85) 100%
    );
}

/* Subtle geometric pattern overlay */
.cta-content-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, rgba(93, 58, 77, 0.015) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(93, 58, 77, 0.015) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(93, 58, 77, 0.015) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(93, 58, 77, 0.015) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.cta-eyebrow {
    font-family: var(--cta-font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cta-plum-light);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.7s var(--cta-ease) 0.5s both;
}

/* Headline with serif elegance */
.cta-headline {
    font-family: var(--cta-font-serif);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: #2D2D2D;
    margin-bottom: 24px;
    overflow: hidden;
}

.cta-headline-inner {
    display: block;
    transform: translateY(100%);
    animation: slideDown 0.8s var(--cta-ease) 0.6s both;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.cta-description {
    font-family: var(--cta-font-serif);
    font-size: 1.25rem;
    line-height: 1.7;
    color: #5A5A5A;
    max-width: 420px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.7s var(--cta-ease) 0.8s both;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   CTA BUTTON
   ========================================================================== */
.cta-button-wrapper {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.7s var(--cta-ease) 1s both;
}

/* Cursor-follow spotlight glow */
.cta-button-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 182, 216, 0.4) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.cta-button-wrapper:hover .cta-button-glow {
    opacity: 1;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    font-family: var(--cta-font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--cta-plum) 0%, var(--cta-plum-light) 100%);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    
    /* Subtle inner glow */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 20px rgba(93, 58, 77, 0.2);
    
    transition: all 0.4s var(--cta-ease);
}

/* Animated border beam */
.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 2px;
    background: linear-gradient(
        var(--beam-angle, 0deg),
        transparent 40%,
        var(--cta-lavender) 50%,
        var(--cta-teal) 55%,
        transparent 60%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-button:hover::before {
    opacity: 1;
    animation: beamRotate 2s linear infinite;
}

@keyframes beamRotate {
    from { --beam-angle: 0deg; }
    to { --beam-angle: 360deg; }
}

@property --beam-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 8px 30px rgba(93, 58, 77, 0.25),
        0 0 40px rgba(200, 182, 216, 0.2);
}

.cta-button iconify-icon {
    transition: transform 0.3s var(--cta-ease-bounce);
}

.cta-button:hover iconify-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   DECORATIVE ELEMENTS
   ========================================================================== */
.cta-floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

.cta-floating-shape-1 {
    width: 80px;
    height: 80px;
    background: var(--cta-lavender);
    top: 20%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
}

.cta-floating-shape-2 {
    width: 50px;
    height: 50px;
    background: var(--cta-peach);
    bottom: 25%;
    left: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

.cta-floating-shape-3 {
    width: 30px;
    height: 30px;
    background: var(--cta-teal);
    top: 60%;
    right: 25%;
    animation: float 5s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */
@media (max-width: 968px) {
    .premium-cta-section {
        padding: 60px 16px;
    }
    
    .premium-cta-card {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }
    
    .cta-image-side {
        min-height: 280px;
    }
    
    .cta-image-side::after {
        display: none;
    }
    
    .cta-content-side {
        padding: 50px 40px;
    }
    
    .cta-shape-left,
    .cta-shape-right {
        opacity: 0.3;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */
@media (max-width: 640px) {
    .premium-cta-section {
        padding: 50px 16px;
    }
    
    .premium-cta-card {
        border-radius: 20px;
    }
    
    .cta-image-side {
        min-height: 220px;
    }
    
    .cta-content-side {
        padding: 40px 28px;
    }
    
    .cta-eyebrow {
        font-size: 0.75rem;
        margin-bottom: 16px;
    }
    
    .cta-description {
        font-size: 1.05rem;
        margin-bottom: 28px;
    }
    
    .cta-button {
        padding: 16px 32px;
        font-size: 0.95rem;
    }
    
    /* Simplified shapes on mobile */
    .cta-geometric-frame {
        display: none;
    }
    
    .cta-floating-shape {
        display: none;
    }
    
    /* Reduce animation intensity */
    .premium-cta-section::before {
        animation: none;
        opacity: 0.5;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .premium-cta-card,
    .cta-headline-inner,
    .cta-eyebrow,
    .cta-description,
    .cta-button-wrapper {
        animation: none;
        opacity: 1;
        transform: none;
        clip-path: none;
    }
    
    .premium-cta-section::before,
    .cta-floating-shape {
        animation: none;
    }
    
    .cta-button:hover::before {
        animation: none;
    }
}
