/* Customer Journey - Redesigned Timeline Style */

.customer-journey {
    position: relative;
    overflow: hidden;
}

.customer-journey::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(187, 154, 101, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(187, 154, 101, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.customer-journey__heading {
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .customer-journey__heading {
        margin-bottom: 4rem;
    }
}

/* Timeline Container */
.customer-journey__timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Vertical Timeline Line */
.customer-journey__timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: 60px;
    width: 3px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--secondary-color-100) 10%,
        var(--secondary-color-100) 90%,
        transparent 100%
    );
    border-radius: 2px;
}

@media (min-width: 1024px) {
    .customer-journey__timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Individual Phase */
.customer-journey__phases {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 0 0 70px;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .customer-journey__phases {
        flex-direction: row;
        padding: 0;
        margin-bottom: 0;
        align-items: center;
        min-height: 450px;
    }
    
    /* Left positioned phase - content on left, image on right */
    .customer-journey__phases.phase--left {
        flex-direction: row;
    }
    
    /* Right positioned phase - content on right, image on left */
    .customer-journey__phases.phase--right {
        flex-direction: row-reverse;
    }
}

@media (min-width: 1280px) {
    .customer-journey__phases {
        min-height: 520px;
    }
}

/* Step Number Circle */
.customer-journey__step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color-100) 0%, #8C6629 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'AlbertSansBold', sans-serif;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 700;
    box-shadow: 
        0 4px 20px rgba(187, 154, 101, 0.4),
        0 0 0 6px rgba(187, 154, 101, 0.15);
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
}

.customer-journey__phases:hover .customer-journey__step-number {
    transform: scale(1.1);
    box-shadow: 
        0 6px 25px rgba(187, 154, 101, 0.5),
        0 0 0 8px rgba(187, 154, 101, 0.2);
}

@media (min-width: 1024px) {
    .customer-journey__step-number {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .customer-journey__phases:hover .customer-journey__step-number {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Content Side */
.customer-journey__phase--content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 10px 40px rgba(64, 50, 38, 0.06),
        0 2px 10px rgba(64, 50, 38, 0.04);
    border: 1px solid rgba(187, 154, 101, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.customer-journey__phases:hover .customer-journey__phase--content {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 50px rgba(64, 50, 38, 0.1),
        0 5px 20px rgba(64, 50, 38, 0.06);
    border-color: rgba(187, 154, 101, 0.25);
}

@media (min-width: 1024px) {
    .customer-journey__phase--content {
        width: calc(50% - 60px);
        padding: 2.5rem;
        border-radius: 24px;
    }
    
    /* Left phase - content aligns right */
    .customer-journey__phases.phase--left .customer-journey__phase--content {
        margin-right: auto;
        text-align: right;
    }
    
    /* Right phase - content aligns left */
    .customer-journey__phases.phase--right .customer-journey__phase--content {
        margin-left: auto;
        text-align: left;
    }
}

/* Phase Tag/Label */
.customer-journey__phase-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(187, 154, 101, 0.15) 0%, rgba(187, 154, 101, 0.08) 100%);
    color: var(--secondary-color-100);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(187, 154, 101, 0.2);
}

.customer-journey__phase-tag svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

@media (min-width: 1024px) {
    .customer-journey__phases.phase--left .customer-journey__phase-tag {
        margin-left: auto;
    }
}

/* Phase Title */
.customer-journey__phase--content h3 {
    color: var(--primary-color-100);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Phase Description */
.customer-journey__phase--content > p {
    color: var(--ternary-color-100);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Feature List */
.customer-journey__phase--list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 1024px) {
    .customer-journey__phases.phase--left .customer-journey__phase--list {
        align-items: flex-end;
    }
}

.customer-journey__phase--list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(187, 154, 101, 0.06) 0%, transparent 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.customer-journey__phase--list li:hover {
    background: linear-gradient(90deg, rgba(187, 154, 101, 0.12) 0%, rgba(187, 154, 101, 0.04) 100%);
    border-left-color: var(--secondary-color-100);
    transform: translateX(5px);
}

@media (min-width: 1024px) {
    /* Left phase - list items reverse direction */
    .customer-journey__phases.phase--left .customer-journey__phase--list li {
        flex-direction: row-reverse;
        background: linear-gradient(270deg, rgba(187, 154, 101, 0.06) 0%, transparent 100%);
        border-left: none;
        border-right: 3px solid transparent;
    }
    
    .customer-journey__phases.phase--left .customer-journey__phase--list li:hover {
        background: linear-gradient(270deg, rgba(187, 154, 101, 0.12) 0%, rgba(187, 154, 101, 0.04) 100%);
        border-right-color: var(--secondary-color-100);
        border-left-color: transparent;
        transform: translateX(-5px);
    }
}

.customer-journey__phase--list img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.customer-journey__phase--list li p {
    color: var(--primary-color-200);
    font-weight: 500;
    margin: 0;
}

/* Image Side */
.customer-journey__phase--images {
    display: none;
}

@media (min-width: 768px) {
    .customer-journey__phase--images {
        display: block;
        position: relative;
        margin-top: 1.5rem;
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .customer-journey__phase--images {
        position: absolute;
        width: calc(50% - 50px);
        height: 420px;
        margin-top: 0;
    }
    
    /* Left phase - images on right side */
    .customer-journey__phases.phase--left .customer-journey__phase--images {
        right: 0;
        left: auto;
    }
    
    /* Right phase - images on left side */
    .customer-journey__phases.phase--right .customer-journey__phase--images {
        left: 0;
        right: auto;
    }
}

@media (min-width: 1280px) {
    .customer-journey__phase--images {
        width: calc(50% - 60px);
        height: 480px;
    }
}

/* Primary Image */
.customer-journey__primary--image {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 70%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(64, 50, 38, 0.15);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.customer-journey__phases:hover .customer-journey__primary--image {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 25px 60px rgba(64, 50, 38, 0.2);
}

@media (min-width: 768px) {
    .customer-journey__primary--image {
        width: 80%;
        height: 75%;
    }
}

@media (min-width: 1024px) {
    .customer-journey__primary--image {
        width: 85%;
        height: 75%;
        border-radius: 24px;
    }
    
    /* Left phase - primary image on left of image container */
    .customer-journey__phases.phase--left .customer-journey__primary--image {
        right: auto;
        left: 0;
    }
    
    /* Right phase - primary image on right of image container */
    .customer-journey__phases.phase--right .customer-journey__primary--image {
        right: 0;
        left: auto;
    }
}

@media (min-width: 1280px) {
    .customer-journey__primary--image {
        width: 90%;
        height: 78%;
        border-radius: 28px;
    }
}

/* Secondary Image */
.customer-journey__secondary--image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 55%;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(64, 50, 38, 0.12);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s;
    z-index: 3;
}

.customer-journey__phases:hover .customer-journey__secondary--image {
    transform: translateY(-5px) rotate(-2deg);
    box-shadow: 0 20px 50px rgba(64, 50, 38, 0.18);
}

@media (min-width: 768px) {
    .customer-journey__secondary--image {
        width: 55%;
        height: 58%;
        border-width: 5px;
    }
}

@media (min-width: 1024px) {
    .customer-journey__secondary--image {
        width: 60%;
        height: 60%;
        border-radius: 20px;
        border-width: 5px;
    }
    
    /* Left phase - secondary image on right of image container */
    .customer-journey__phases.phase--left .customer-journey__secondary--image {
        left: auto;
        right: 0;
    }
    
    /* Right phase - secondary image on left of image container */
    .customer-journey__phases.phase--right .customer-journey__secondary--image {
        right: auto;
        left: 0;
    }
}

@media (min-width: 1280px) {
    .customer-journey__secondary--image {
        width: 65%;
        height: 62%;
        border-radius: 24px;
        border-width: 6px;
    }
}

/* Decorative Elements */
.customer-journey__primary--container,
.customer-journey__secondary--container {
    display: none;
}

@media (min-width: 1024px) {
    .customer-journey__primary--container {
        display: block;
        position: absolute;
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, var(--secondary-color-100) 0%, rgba(187, 154, 101, 0.6) 100%);
        border-radius: 20px;
        z-index: 1;
        opacity: 0.3;
        animation: floatDecor 6s ease-in-out infinite;
    }
    
    .customer-journey__phases.phase--left .customer-journey__primary--container {
        top: -20px;
        right: 10%;
        left: auto;
    }
    
    .customer-journey__phases.phase--right .customer-journey__primary--container {
        top: -20px;
        left: 10%;
        right: auto;
    }
    
    .customer-journey__secondary--container {
        display: block;
        position: absolute;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, rgba(64, 50, 38, 0.1) 0%, rgba(64, 50, 38, 0.05) 100%);
        border-radius: 50%;
        z-index: 1;
        animation: floatDecor 8s ease-in-out infinite reverse;
    }
    
    .customer-journey__phases.phase--left .customer-journey__secondary--container {
        bottom: -10px;
        left: 15%;
        right: auto;
    }
    
    .customer-journey__phases.phase--right .customer-journey__secondary--container {
        bottom: -10px;
        right: 15%;
        left: auto;
    }
}

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

/* Connector Line (hidden on mobile, subtle on desktop) */
.customer-journey__connector {
    display: none;
}

@media (min-width: 1024px) {
    .customer-journey__connector {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 40px;
        position: relative;
    }
    
    .customer-journey__connector:last-child {
        display: none;
    }
}

.customer-journey__connector-line {
    display: none;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .customer-journey__phases:hover .customer-journey__step-number,
    .customer-journey__phases:hover .customer-journey__phase--content,
    .customer-journey__phases:hover .customer-journey__primary--image,
    .customer-journey__phases:hover .customer-journey__secondary--image,
    .customer-journey__phase--list li:hover,
    .customer-journey__primary--container,
    .customer-journey__secondary--container {
        transform: none;
        animation: none;
    }
}

/* Dark Section Variant */
.customer-journey.bg-dark {
    background: linear-gradient(135deg, #403226 0%, #2a211a 100%);
}

.customer-journey.bg-dark .customer-journey__phase--content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.customer-journey.bg-dark .customer-journey__phase--content h3 {
    color: #fff;
}

.customer-journey.bg-dark .customer-journey__phase--content > p {
    color: rgba(255, 255, 255, 0.7);
}

.customer-journey.bg-dark .customer-journey__phase--list li {
    background: linear-gradient(90deg, rgba(187, 154, 101, 0.1) 0%, transparent 100%);
}

.customer-journey.bg-dark .customer-journey__phase--list li p {
    color: rgba(255, 255, 255, 0.85);
}

.customer-journey.bg-dark .customer-journey__timeline::before {
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(187, 154, 101, 0.5) 10%,
        rgba(187, 154, 101, 0.5) 90%,
        transparent 100%
    );
}
