/* * SA Coating - SERVICE PAGE SPECIFIC STYLES
 * Focus: Technical Data, Timelines, Comparisons
 */

/* --- 1. HERO & STATS --- */
.service-hero {
    background-color: #0f1115;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}
.service-id {
    font-family: var(--font-mono);
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5px 10px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Stats Strip */
.stats-strip {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 30px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.stat-box { border-right: 1px solid rgba(255,255,255,0.2); }
.stat-box:last-child { border-right: none; }

/* --- 2. PAIN vs GAIN (Comparison) --- */
.comparison-card {
    background: white;
    border: 1px solid #eee;
    padding: 40px;
    height: 100%;
    transition: 0.3s;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.comparison-bad { border-top: 5px solid var(--secondary); }
.comparison-good { border-top: 5px solid var(--accent); transform: scale(1.02); box-shadow: 0 10px 40px rgba(0,0,0,0.1); }

.comparison-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.95rem;
    color: #555;
}

/* --- 3. PROCESS TIMELINE (Vertical) --- */
.process-section {
    background-color: #151921; /* Dark Theme */
    color: white;
    padding: 100px 0;
}
.timeline-wrapper {
    position: relative;
    padding: 20px 0;
}
/* The Line */
.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: rgba(255,255,255,0.1);
    transform: translateX(-50%);
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}
.timeline-row:last-child { margin-bottom: 0; }

.timeline-content { width: 45%; }
.timeline-number {
    width: 60px; height: 60px;
    background: var(--dark);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800;
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 0 10px #151921; /* Fake spacing */
}

/* Alternating Layout */
.timeline-row:nth-child(even) { flex-direction: row-reverse; }
.timeline-row:nth-child(even) .timeline-content { text-align: right; }
.timeline-row:nth-child(odd) .timeline-content { text-align: left; }

/* Timeline Colors per Step */
.timeline-row:nth-child(1) .timeline-number { border-color: var(--primary); color: var(--primary); }
.timeline-row:nth-child(2) .timeline-number { border-color: var(--secondary); color: var(--secondary); }
.timeline-row:nth-child(3) .timeline-number { border-color: var(--highlight); color: var(--highlight); }
.timeline-row:nth-child(4) .timeline-number { border-color: var(--accent); color: var(--accent); }

/* --- 4. TECH SPECS TABLE --- */
.tech-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.tech-table th {
    background-color: var(--dark);
    color: white;
    padding: 15px 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.tech-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #555;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.tech-table tr:last-child td { border-bottom: none; }
.tech-table tr:nth-child(even) { background-color: #f8f9fa; }

/* --- 5. APPLICATION GRID --- */
.app-card {
    background: white;
    border: 1px solid #eee;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
}
.app-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.app-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ccc;
    transition: 0.3s;
}
.app-card:hover .app-icon { color: var(--primary); }

/* --- 6. SIDEBAR WIDGETS --- */
.service-sidebar-widget {
    background: white;
    border: 1px solid #eee;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
}
.sidebar-cta {
    background: url('/assets/images/sidebar-bg.jpg') center/cover;
    position: relative;
    color: white;
    text-align: center;
}
.sidebar-cta::before {
    content: ''; position: absolute; top:0; left:0; right:0; bottom:0;
    background: rgba(15, 17, 21, 0.85); z-index: 0; border-radius: 8px;
}
.sidebar-cta > * { position: relative; z-index: 1; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .stats-strip { margin-top: 20px; }
    .stat-box { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 15px; margin-bottom: 15px; }
    .stat-box:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    
    /* Reset Timeline to simple vertical list on mobile */
    .timeline-wrapper::before { left: 20px; }
    .timeline-row, .timeline-row:nth-child(even) { flex-direction: column; align-items: flex-start; margin-left: 50px; }
    .timeline-content, .timeline-row:nth-child(even) .timeline-content { width: 100%; text-align: left; }
    .timeline-number { left: 20px; width: 40px; height: 40px; font-size: 1rem; top: 0; transform: translate(-50%, 0); }
}