/* ==========================================================================
   --- SERVICE PAGE STYLES ---
   ========================================================================== */

/* --- 1. SERVICE HERO --- */
.service-hero {
    position: relative; height: 50vh; min-height: 400px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-align: center; overflow: hidden;
    padding-top: 80px; /* Clears navbar */
}
.service-hero-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    background-attachment: fixed; z-index: 1; transform: scale(1.05);
}
.service-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(11, 19, 43, 0.95) 0%, rgba(11, 19, 43, 0.4) 100%);
    z-index: 2;
}
.service-hero-content {
    position: relative; z-index: 5; max-width: 800px; padding: 0 5vw; text-align: left; margin: 0 auto;
}
.service-hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 24px; font-weight: 900; text-transform: uppercase; }
.service-hero h1 span { color: var(--color-techblue); }
.service-hero p { font-size: 1.125rem; color: rgba(255, 255, 255, 0.85); line-height: 1.6; max-width: 600px; }

/* Mobile Hero Adjustments */
@media (max-width: 767px) {
    .service-hero { height: auto; padding: 120px 0 60px 0; }
    .service-hero-content { text-align: center; } /* Centers hero text on mobile */
    .service-hero p { font-size: 1rem; }
}

/* --- 2. INTRO (Reuses .intro-grid from style.css!) --- */
.service-intro { background-color: #fff; }

/* --- 3. EQUIPMENT SPECS --- */
.service-specs { background-color: var(--color-navy); padding: 80px 0; color: #fff; }
.specs-header { text-align: center; margin-bottom: 48px; }
.specs-header h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 16px; font-weight: 900; text-transform: uppercase; }
.specs-header h2 span { color: var(--color-techblue); }
.specs-header p { color: rgba(255,255,255,0.7); font-size: 1.125rem; }

/* Grid Fix: 1 column on mobile, 2 on tablet, 4 on desktop */
.specs-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 480px) { .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .specs-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.spec-card {
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.1);
    padding: 24px 16px; /* Shrunk padding for mobile */
    border-radius: 8px; text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, background 0.4s ease;
    cursor: default;
}
@media (min-width: 768px) { .spec-card { padding: 32px 24px; } } /* Restores premium padding on desktop */

/* Premium Hover Enhancement */
.spec-card:hover { 
    transform: translateY(-8px); 
    border-color: var(--color-techblue); 
    background: rgba(0, 163, 224, 0.05);
}
.spec-card h4 { font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--color-techblue); margin-bottom: 12px; }
.spec-card .spec-value { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }

/* --- 4. INDUSTRIES SERVED --- */
.service-industries { background-color: #f8fafc; }
.industries-header { text-align: center; margin-bottom: 56px; }
.industries-header h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); color: var(--color-navy); font-weight: 900; text-transform: uppercase; }
.industries-header h2 span { color: var(--color-techblue); }

.industries-grid {
    display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 768px) { .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }

.ind-card {
    background: #fff; padding: 24px; /* Shrunk padding for mobile */
    border-radius: 8px;
    border-left: 4px solid var(--color-techblue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
@media (min-width: 768px) { .ind-card { padding: 40px; } } /* Restores premium padding on desktop */

/* Premium Hover Enhancement */
.ind-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.ind-card h3 { font-size: 1.5rem; color: var(--color-navy); margin-bottom: 16px; font-weight: 800; text-transform: uppercase; }
.ind-card p { color: #475569; line-height: 1.6; font-size: 1rem; }


/* ==========================================================================
   --- SPECIALIZED SERVICE MODIFIERS & BADGE REPAIRS ---
   ========================================================================== */

/* Reefer Telematics Interactive Badge */
.reefer-telematics-badge {
    background-color: var(--color-navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.telematics-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Blinking satellite connection light */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-verified);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-verified);
    animation: reeferPulse 2s infinite;
}

@keyframes reeferPulse {
    0% { opacity: 1; box-shadow: 0 0 8px var(--color-verified); }
    50% { opacity: 0.4; box-shadow: 0 0 2px var(--color-verified); }
    100% { opacity: 1; box-shadow: 0 0 8px var(--color-verified); }
}

.reefer-telematics-badge .badge-num {
    color: var(--color-techblue);
}

/* --- THE MOBILE BADGE & OVERFLOW FIX --- */
@media (max-width: 767px) {
    .intro-badge, 
    .reefer-telematics-badge {
        padding: 10px 16px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: -15px !important;
        width: auto !important; 
        min-width: 60%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        white-space: nowrap;
    }
    
    .intro-badge .badge-num,
    .reefer-telematics-badge .badge-num { 
        font-size: 1.5rem !important;
    }
    
    .intro-badge .badge-text,
    .reefer-telematics-badge .badge-text { 
        font-size: 0.65rem !important; 
    }
    
    .telematics-header { 
        justify-content: center; 
    }
}