/* ==========================================================================
   NEXO FASHIONS - MODULAR UI COMPONENT LIBRARY
   ========================================================================== */

/* --- 1. Stat Cards (Trust Metrics) --- */
.stat-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-luxury-gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-luxury-gold);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}


/* --- 2. Premium Service Cards (What We Do) --- */
.service-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(15, 118, 110, 0.05);
    border: 1px solid rgba(15, 118, 110, 0.1);
    color: var(--color-premium-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--space-md);
    transition: var(--transition-smooth);
}

.service-card h3 {
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.service-learn-more {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-premium-teal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: auto;
}

.service-learn-more svg {
    transition: transform var(--transition-fast);
}

/* Hover States */
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 118, 110, 0.3);
    box-shadow: var(--shadow-lg);
}

.service-card:hover .service-icon-box {
    background-color: var(--color-premium-teal);
    color: var(--color-bg-white);
    transform: rotate(360deg);
}

.service-card:hover .service-learn-more svg {
    transform: translateX(4px);
}


/* --- 3. Industry Showcase Cards --- */
.industry-card {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
    cursor: pointer;
}

.industry-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: transform var(--transition-slow);
    /* Set dark overlays to ensure readability of editorial white text */
    background: linear-gradient(180deg, rgba(17,24,39,0.1) 0%, rgba(17,24,39,0.85) 100%);
}

.industry-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform var(--transition-slow);
}

.industry-card-content {
    position: relative;
    z-index: 2;
    transform: translateY(15px);
    transition: transform var(--transition-smooth);
}

.industry-card h3 {
    color: var(--color-bg-white);
    margin-bottom: var(--space-xs);
    font-size: 1.45rem;
}

.industry-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

/* Hover state zooms image and raises text */
.industry-card:hover {
    box-shadow: var(--shadow-lg);
}

.industry-card:hover .industry-card-img {
    transform: scale(1.08);
}

.industry-card:hover .industry-card-content {
    transform: translateY(0);
}

.industry-card:hover p {
    opacity: 1;
}


/* --- 4. Sourcing Process Timeline --- */
.timeline-container {
    position: relative;
    padding: var(--space-md) 0;
}

/* Vertical line for mobile, becomes hidden in horizontal */
.timeline-line {
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border);
    z-index: 0;
}

.timeline-step {
    position: relative;
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    z-index: 1;
}

.timeline-node {
    width: 34px;
    height: 34px;
    border-radius: var(--border-radius-full);
    background-color: var(--color-bg-white);
    border: 2px solid var(--color-luxury-gold);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.timeline-content {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: var(--space-md);
    border-radius: var(--border-radius-sm);
    flex-grow: 1;
    transition: var(--transition-smooth);
}

.timeline-content h3 {
    font-weight: 600;
    margin-bottom: var(--space-xs);
    font-family: var(--font-body);
}

.timeline-content p {
    font-size: 0.9rem;
}

/* Hover effects */
.timeline-step:hover .timeline-node {
    background-color: var(--color-luxury-gold);
    color: var(--color-primary-dark);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.timeline-step:hover .timeline-content {
    border-color: var(--color-luxury-gold);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* Horizontal Timeline Layout for Desktops */
@media (min-width: 1024px) {
    .timeline-line {
        left: 0;
        right: 0;
        top: 40px;
        height: 2px;
        width: auto;
    }
    
    .timeline-grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: var(--space-xs);
    }
    
    .timeline-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 0;
    }
    
    .timeline-node {
        margin-bottom: var(--space-sm);
    }
    
    .timeline-content {
        padding: var(--space-sm) var(--space-xs);
        border: none;
        background: transparent;
    }
    
    .timeline-step:hover .timeline-content {
        transform: translateY(-5px);
        box-shadow: none;
    }
}


/* --- 5. Certification Cards (Quality & Compliance) --- */
.cert-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    border-radius: var(--border-radius-sm);
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-logo-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.cert-logo {
    max-height: 60px;
    filter: grayscale(1);
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.cert-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-body);
    margin-bottom: var(--space-xs);
    color: var(--color-primary-dark);
}

.cert-card p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.cert-card:hover {
    border-color: var(--color-luxury-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cert-card:hover .cert-logo {
    filter: grayscale(0);
    opacity: 1;
}


/* --- 6. Case Study Cards --- */
.case-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.case-card-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.case-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-luxury-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.case-card h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-md);
}

.case-metric-box {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-md);
}

.case-metric {
    flex: 1;
}

.case-metric-val {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-premium-teal);
}

.case-metric-lbl {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--shadow-lg);
}


/* --- 7. Testimonial Slider --- */
.testimonial-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--space-md) 0;
}

.testimonial-container {
    display: flex;
    transition: transform var(--transition-smooth);
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 var(--space-md);
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.85rem);
    font-style: italic;
    color: var(--color-bg-white);
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

.testimonial-author {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--color-luxury-gold);
}

.testimonial-company {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-lg);
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--border-radius-full);
    background-color: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial-dot.active {
    background-color: var(--color-luxury-gold);
    width: 24px;
}


/* --- 8. Interactive SVG Reach Map --- */
.map-wrapper {
    position: relative;
    background-color: #0b0f19;
    border-radius: var(--border-radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.reach-svg {
    width: 100%;
    height: auto;
    max-height: 500px;
}

.map-glow-dot {
    animation: ripple 2s infinite ease-in-out;
}

@keyframes ripple {
    0% { r: 4px; opacity: 0.8; }
    50% { r: 12px; opacity: 0.3; }
    100% { r: 4px; opacity: 0.8; }
}

.pulse-line {
    stroke-dasharray: 10, 10;
    animation: dash 30s linear infinite;
}

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


/* --- 9. B2B RFQ Intake Form & Uploader --- */
.rfq-form-box {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .rfq-form-box {
        padding: var(--space-xl);
    }
}

.form-row {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .form-row-2 { grid-template-columns: repeat(2, 1fr); }
    .form-row-3 { grid-template-columns: repeat(3, 1fr); }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
}

.form-control {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    color: var(--color-text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-premium-teal);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* File Upload Drag-and-Drop Area */
.file-upload-zone {
    border: 2px dashed var(--color-border);
    padding: var(--space-lg);
    text-align: center;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.file-upload-zone:hover, .file-upload-zone.dragover {
    border-color: var(--color-luxury-gold);
    background-color: rgba(212, 175, 55, 0.02);
}

.file-upload-icon {
    color: var(--color-luxury-gold);
    margin-bottom: var(--space-xs);
    font-size: 2rem;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-list-preview {
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-premium-teal);
    font-weight: 600;
}
