/* premium-process-section.css */

/* Core variables */
:root {
    --bg-slate: #F8FAFC;
    --primary-blue: #2563EB;
    --luxury-gold: #D4AF37;
    --dark-text: #111827;
    --white: #FFFFFF;
    --shadow-large: 0 20px 40px -10px rgba(17, 24, 39, 0.06), 0 4px 12px -2px rgba(17, 24, 39, 0.03);
    --shadow-hover: 0 30px 60px -15px rgba(17, 24, 39, 0.12), 0 8px 24px -4px rgba(17, 24, 39, 0.06);
}

.process-section {
    width: 100%;
    background-color: var(--bg-slate);
    padding: 80px 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.process-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Section Header Styling */
.process-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.process-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.process-badge-icon {
    width: 15px;
    height: 15px;
    color: var(--primary-blue);
}

.process-badge span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--dark-text);
}

.process-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-text);
    line-height: 1.15;
    margin: 0 0 18px 0;
    letter-spacing: -0.5px;
}

.process-gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #AA820A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-subtitle {
    color: #556987;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Timeline Layout */
.process-timeline-wrapper {
    position: relative;
    margin-bottom: 35px;
}

/* Timeline Connector SVGs */
.timeline-svg-connector {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 6px;
    z-index: 1;
    pointer-events: none;
}

/* Dotted Line Animations */
.timeline-dotted-line {
    stroke-dashoffset: 0;
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -1000;
    }
}

.timeline-glow-line {
    opacity: 0;
    stroke-dashoffset: 0;
    transition: opacity 300ms ease;
}

/* Cards Grid */
.process-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* Step Card Styling */
.process-step-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 24px;
    box-shadow: var(--shadow-large);
    transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 300ms cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.step-card-inner {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
    box-sizing: border-box;
}

/* Corner Number Badges */
.step-corner-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: rgba(17, 24, 39, 0.25);
    background-color: rgba(37, 99, 235, 0.05);
    padding: 4px 10px;
    border-radius: 8px;
    transition: color 300ms ease, background-color 300ms ease, box-shadow 300ms ease;
}

/* Connecting Dot on desktop timeline line */
.step-connector-circle {
    position: absolute;
    top: 47px;
    left: -15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    border: 2px solid var(--white);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    z-index: 10;
}

.process-step-card:first-child .step-connector-circle {
    display: none;
}

.step-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),
                background-color 300ms ease,
                color 300ms ease;
}

.step-svg {
    width: 26px;
    height: 26px;
}

.step-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0 0 10px 0;
}

.step-desc {
    font-size: 13.5px;
    color: #556987;
    line-height: 1.55;
    margin: 0;
}

/* Step Card Hover triggers */
.process-step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--luxury-gold);
}

.process-step-card:hover .step-icon-circle {
    transform: scale(1.1);
    background-color: var(--primary-blue);
    color: var(--white);
}

.process-step-card:hover .step-corner-badge {
    color: var(--luxury-gold);
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Bottom CTA Card styling */
.process-cta-card {
    background: linear-gradient(135deg, #071A33 0%, #0D2F59 100%);
    border-radius: 28px;
    padding: 40px 60px;
    box-shadow: 0 20px 40px rgba(7, 26, 51, 0.15);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.process-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-col {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 45%;
}

.cta-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--luxury-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-svg {
    width: 24px;
    height: 24px;
}

.cta-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cta-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
}

.cta-link {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--luxury-gold);
    transition: color 300ms ease, border-color 300ms ease;
}

.cta-link:hover {
    color: var(--luxury-gold);
    border-color: var(--white);
}

.cta-divider {
    height: 60px;
    width: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Floating White Glass Trust Bar styling */
.process-trust-bar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-large);
}

.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    position: relative;
}

/* Dividers between columns */
.trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: rgba(17, 24, 39, 0.08);
}

.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { padding-right: 0; }

.trust-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon-box svg {
    width: 18px;
    height: 18px;
}

.trust-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trust-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.trust-desc {
    font-size: 11.5px;
    color: #556987;
    margin: 0;
}

/* Animations classes (scroll-driven observer) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-down {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible,
.fade-down.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Breakpoints */

/* Tablet (2x2 Grid) */
@media (max-width: 1024px) {
    .process-section {
        padding: 80px 0;
    }
    
    .timeline-svg-connector {
        display: none;
    }
    
    .step-connector-circle {
        display: none !important;
    }
    
    .process-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .process-cta-card {
        padding: 30px 40px;
    }
    
    .cta-card-content {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    
    .cta-col {
        width: 100%;
    }
    
    .cta-divider {
        display: none;
    }
    
    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 20px;
    }
    
    .trust-item { padding: 0; }
    
    .trust-item::after {
        display: none !important;
    }
}

/* Mobile (Single column + vertical timeline lines) */
@media (max-width: 768px) {
    .process-section {
        padding: 60px 0;
    }
    
    .process-title {
        font-size: 36px;
    }
    
    .process-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Vertical timeline connector lines on mobile */
    .process-step-card::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        width: 2px;
        height: 20px;
        background-color: var(--primary-blue);
        border-style: dotted;
        z-index: 1;
    }
    
    .process-step-card:last-child::after {
        display: none;
    }
    
    .trust-bar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-trust-bar {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .cta-link {
        font-size: 14.5px !important;
        word-break: break-all;
    }
    .cta-col {
        gap: 12px;
    }
    .cta-icon-box {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
}
