/* How it Works & Sourcing Comparison Styles */
/* Uses signature brand red #AD0F1A and fluent styles */

.how-sourcing-section,
.comparison-section {
    padding: 80px 0;
}

.how-sourcing-section {
    background: var(--white);
}

.comparison-section {
    background: var(--gray-100);
}

/* Header & Intro */
.sourcing-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.sourcing-header-col h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 12px;
}

.sourcing-header-col .sourcing-subtitle {
    font-size: 20px;
    color: #AD0F1A;
    font-weight: 600;
    margin-bottom: 24px;
}

.sourcing-desc-box {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.sourcing-desc-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sourcing-desc-box p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 15px;
}

.sourcing-desc-box p:last-child {
    margin-bottom: 0;
}

/* Timeline Layout */
.sourcing-timeline-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sourcing-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 80px auto;
    padding: 20px 0;
}

.sourcing-timeline::after {
    content: '\f57c'; /* Font Awesome unicode for fa-earth-africa */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 450px;
    color: rgba(173, 15, 26, 0.035); /* 3.5% opacity brand red watermark */
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .sourcing-timeline::after {
        font-size: 290px; /* scale down on mobile viewports */
    }
}


.sourcing-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--black);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--white);
    border: 4px solid #AD0F1A;
    border-radius: 50%;
    top: 35px;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-card {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    padding: 25px;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-card:hover {
    transform: translateY(-5px);
}

.timeline-card:hover::after {
    background: #AD0F1A;
}

.timeline-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #AD0F1A;
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}

.timeline-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-item.left .timeline-card h4 {
    justify-content: flex-end;
}

.timeline-card h4 i {
    color: #AD0F1A;
}

.timeline-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Things You Should Know Grid */
.know-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.know-card {
    background: #f7f7f8;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: none;
    transition: var(--transition);
}

.know-card:hover {
    background: var(--white);
    border: 1.5px solid var(--black);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.know-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(173, 15, 26, 0.06); /* Light brand red tint */
    color: #AD0F1A; /* Solid brand red */
    font-size: 22px;
    margin-bottom: 18px;
    transition: var(--transition);
}

.know-card:hover .know-card-icon {
    background: #AD0F1A;
    color: var(--white);
}

.know-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.know-card p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* Sourcing Comparison Styles */
.comparison-container {
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-header {
    text-align: center;
    margin-bottom: 50px;
}

.comparison-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.comparison-header p {
    font-size: 18px;
    color: var(--gray-500);
}

.comparison-table-wrapper {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius);
    overflow-x: auto;
    box-shadow: var(--shadow);
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table th {
    background: #AD0F1A;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.comparison-table th:first-child {
    background: var(--black);
}

.comparison-table td:first-child {
    font-weight: 700;
    color: var(--black);
    width: 25%;
}

.comparison-table td:nth-child(2) {
    background: rgba(16, 124, 16, 0.03); /* subtle green tint for our platform */
    width: 38%;
}

.comparison-table td:nth-child(3) {
    background: rgba(173, 15, 26, 0.03); /* subtle brand red tint for traditional */
    color: var(--gray-500);
    width: 37%;
}

.comparison-table td i {
    margin-right: 8px;
}

.comparison-table td .feature-yes {
    color: var(--sourcing-green);
    font-weight: 600;
}

.comparison-table td .feature-no {
    color: var(--error);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .sourcing-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .how-sourcing-section,
    .comparison-section {
        padding: 50px 0;
    }

    .sourcing-header-col h2 {
        font-size: 32px;
    }

    .sourcing-header-col .sourcing-subtitle {
        font-size: 18px;
    }

    .sourcing-timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item::after {
        left: 10px !important;
        right: auto !important;
        top: 32px;
    }

    .timeline-item.left .timeline-card h4 {
        justify-content: flex-start;
    }

    .comparison-table {
        table-layout: fixed;
        width: 100%;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
        font-size: 11px;
        word-wrap: break-word;
        white-space: normal;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        width: 30%;
    }

    .comparison-table th:nth-child(2),
    .comparison-table td:nth-child(2) {
        width: 35%;
    }

    .comparison-table th:nth-child(3),
    .comparison-table td:nth-child(3) {
        width: 35%;
    }
}

/* Sourcing CTA Button - Fluent Black Secondary style */
.sourcing-cta-btn {
    background: transparent !important;
    border: 1.5px solid var(--black) !important;
    color: var(--black) !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sourcing-cta-btn:hover {
    background: var(--black) !important;
    color: var(--white) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Comparison table mobile swipe hint styling */
.comparison-swipe-hint {
    justify-content: flex-end !important;
    margin-top: 10px !important;
    padding: 0 4px !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: opacity 0.2s ease !important;
}

.comparison-swipe-hint:active {
    opacity: 0.6 !important;
}
