/* ===================================
   FINAL CTA SECTION - COMPELLING DESIGN
   =================================== */

.final-cta-section {
    padding: 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-white);
}

/* ===================================
   SPLIT LAYOUT CONTAINER
   =================================== */

.cta-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 700px;
    position: relative;
}

/* ===================================
   IMAGE SIDE - LEFT
   =================================== */

.cta-image-side {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, var(--primary-dark-grey) 100%);
}

.cta-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cta-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: all 0.6s ease;
    filter: grayscale(30%);
}

.cta-image-side:hover .cta-background-image {
    transform: scale(1.05);
    opacity: 0.4;
}

/* Gradient overlay on image */
.cta-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(42, 42, 42, 0.75) 50%,
        rgba(217, 180, 95, 0.15) 100%
    );
    z-index: 1;
}

/* Decorative pattern overlay */
.cta-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(217, 180, 95, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(217, 180, 95, 0.1) 0%, transparent 50%);
    z-index: 2;
    animation: pulseGlow 8s ease-in-out infinite;
}

/* Stats cards on image side */
.cta-stats-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cta-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.cta-stat-card:nth-child(1) { animation-delay: 0.2s; }
.cta-stat-card:nth-child(2) { animation-delay: 0.3s; }
.cta-stat-card:nth-child(3) { animation-delay: 0.4s; }

.cta-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(217, 180, 95, 0.4);
    box-shadow: 0 10px 30px rgba(217, 180, 95, 0.2);
}

.cta-stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
    display: block;
}

.cta-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===================================
   CONTENT SIDE - RIGHT
   =================================== */

.cta-content-side {
    position: relative;
    display: flex;
    align-items: center;
    padding: 80px 60px;
    background: var(--bg-white);
}

/* Subtle decorative shapes */
.cta-content-side::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 180, 95, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.cta-content-side::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 180, 95, 0.06) 0%, transparent 70%);
    z-index: 0;
}

.cta-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 550px;
}

/* Pre-header tag */
.cta-pre-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(217, 180, 95, 0.1) 0%, rgba(217, 180, 95, 0.05) 100%);
    border: 1px solid rgba(217, 180, 95, 0.2);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    margin-bottom: var(--spacing-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.6s ease forwards;
}

.cta-pre-header svg {
    width: 16px;
    height: 16px;
    animation: pulse 2s ease-in-out infinite;
}

/* Title */
.cta-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--primary-dark-grey);
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
    letter-spacing: -1px;
    animation: fadeInUp 0.6s ease forwards 0.1s;
    opacity: 0;
}

.cta-title .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.cta-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(217, 180, 95, 0.2);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: expandLine 0.8s ease forwards 0.6s;
}

@keyframes expandLine {
    to {
        transform: scaleX(1);
    }
}

/* Description */
.cta-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease forwards 0.2s;
    opacity: 0;
}

/* Feature list */
.cta-features {
    display: grid;
    gap: 12px;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease forwards 0.3s;
    opacity: 0;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.cta-feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    border-radius: 50%;
    color: white;
}

.cta-feature-icon svg {
    width: 14px;
    height: 14px;
}

.cta-feature-text {
    font-weight: 500;
}

/* Action buttons */
.cta-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease forwards 0.4s;
    opacity: 0;
}

.cta-button.primary {
    background: var(--gold-gradient);
    color: white;
    padding: 18px 40px;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(217, 180, 95, 0.35);
    border: 2px solid transparent;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(217, 180, 95, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-button.primary:hover::before {
    left: 100%;
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-dark-grey);
    padding: 18px 36px;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 600;
    border: 2px solid var(--primary-dark-grey);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button.secondary:hover {
    background: var(--primary-dark-grey);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 42, 42, 0.2);
}

.cta-button.secondary svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-normal);
}

.cta-button.secondary:hover svg {
    transform: translateX(4px);
}

/* Trust indicators */
.cta-trust-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(217, 180, 95, 0.15);
    animation: fadeInUp 0.6s ease forwards 0.5s;
    opacity: 0;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.cta-trust-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-gold);
}

/* Testimonial snippet */
.cta-testimonial-snippet {
    position: absolute;
    top: 40px;
    right: -120px;
    width: 300px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(217, 180, 95, 0.2);
    z-index: 10;
    animation: slideInRight 0.8s ease forwards 0.6s;
    opacity: 0;
}

.testimonial-quote {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 12px;
}

.testimonial-quote::before {
    content: '"';
    font-size: 2rem;
    color: var(--primary-gold);
    line-height: 0;
    position: relative;
    top: 10px;
}

.testimonial-author-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-author-mini img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
}

.testimonial-author-details {
    flex: 1;
}

.testimonial-author-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

.testimonial-author-location {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .cta-split-container {
        min-height: 650px;
    }
    
    .cta-content-side {
        padding: 60px 50px;
    }
    
    .cta-testimonial-snippet {
        right: -100px;
        width: 280px;
        padding: 20px;
    }
}

@media (max-width: 1024px) {
    .cta-split-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .cta-image-side {
        min-height: 500px;
        order: 2;
    }
    
    .cta-content-side {
        order: 1;
        padding: 60px 40px;
    }
    
    .cta-stats-overlay {
        bottom: 30px;
        left: 30px;
        right: 30px;
    }
    
    .cta-testimonial-snippet {
        display: none; /* Hide on tablet/mobile */
    }
}

@media (max-width: 768px) {
    .cta-content-side {
        padding: 50px 30px;
    }
    
    .cta-image-side {
        min-height: 400px;
    }
    
    .cta-stats-overlay {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    
    .cta-stat-card {
        padding: 12px 8px;
    }
    
    .cta-stat-number {
        font-size: 1.4rem;
    }
    
    .cta-stat-label {
        font-size: 0.65rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-button.primary,
    .cta-button.secondary {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
    }
    
    .cta-trust-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cta-content-side {
        padding: 40px 20px;
    }
    
    .cta-image-side {
        min-height: 350px;
    }
    
    .cta-title {
        margin-bottom: var(--spacing-sm);
    }
    
    .cta-description {
        font-size: 1.05rem;
        margin-bottom: var(--spacing-md);
    }
    
    .cta-features {
        margin-bottom: var(--spacing-md);
    }
    
    .cta-feature-item {
        font-size: 0.9rem;
    }
    
    .cta-button.primary,
    .cta-button.secondary {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* ===================================
   ACCESSIBILITY & REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .cta-background-image,
    .cta-stat-card,
    .cta-pre-header,
    .cta-title,
    .cta-description,
    .cta-features,
    .cta-actions,
    .cta-trust-bar,
    .cta-testimonial-snippet,
    .cta-image-side::before,
    .cta-pre-header svg {
        animation: none !important;
    }
    
    .cta-stat-card,
    .cta-pre-header,
    .cta-title,
    .cta-description,
    .cta-features,
    .cta-actions,
    .cta-trust-bar,
    .cta-testimonial-snippet {
        opacity: 1 !important;
    }
    
    .cta-button.primary:hover,
    .cta-button.secondary:hover,
    .cta-stat-card:hover {
        transform: none;
    }
}
