/* ==========================================================================
   css/pages/service-detail.css
   CONTEXT: Technical Service Detail Template (Master)
   ========================================================================== */

/* --- GLOBAL --- */
#page-bg-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; background-color: var(--bg-color);
    transition: background-color 0.8s ease;
}
body[data-current-theme="dark"] #page-bg-layer { background-color: #050505; }

.service-mod { position: relative; z-index: 10; width: 100%; padding: 140px 0; }
.mod-num { font-family: 'Courier New', monospace; color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 20px; }
.mod-heading { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; color: var(--text-main); margin-bottom: 30px; text-transform: uppercase; }


/* ==========================================================================
   MODULE A: THE ASYMMETRIC SPLIT HERO
   ========================================================================== */
.mod-hero-split {
    height: 100dvh; 
    padding: 0;
    background: #000;
    overflow: hidden;
    position: relative;
    /* FIX: Pull the section up behind the header */
    margin-top: calc(var(--header-height) * -1);
}

.split-hero-container {
    width: 100%; height: 100%;
    display: flex;
}

/* Left Column: Data & Text */
.hero-col-data {
    width: 50%;
    height: 100%;
    background: #000;
    display: flex; flex-direction: column; justify-content: center;
    padding: 0 4vw;
    box-sizing: border-box;
    border-right: 1px solid rgba(255,255,255,0.1);
    position: relative; z-index: 10;
    
    /* FIX: Add internal padding so text clears the header visually */
    padding-top: var(--header-height);
    will-change: transform, opacity;
}

.hero-super-label {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem; color: var(--accent);
    margin-bottom: 30px; display: block;
    text-transform: uppercase; letter-spacing: 0.1em;
}

.hero-split-title {
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 800;
    color: #fff;
    margin: 0 0 60px 0;
}
.hero-split-title .block-line { display: block; }
.hero-split-title .outline { color: transparent; -webkit-text-stroke: 1px #fff; }

.hero-spec-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 30px;
}
.spec-item { display: flex; flex-direction: column; }
.spec-item .lbl { font-family: 'Courier New', monospace; font-size: 0.7rem; color: #666; text-transform: uppercase; margin-bottom: 5px; }
.spec-item .val { font-family: var(--font-body); font-size: 1rem; color: #fff; font-weight: 600; }

/* Right Column: Visual */
.hero-col-visual {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #111;
    will-change: transform;
}
.hero-col-visual video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(50%) contrast(1.1);
    will-change: transform;
}
.vis-curtain {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: #000; z-index: 5;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}


/* ==========================================================================
   MODULE B: THE TECHNICAL MANIFEST
   ========================================================================== */
.mod-intro-technical {
    background: #000;
    padding-top: 140px; padding-bottom: 140px;
}

/* The Header */
.manifest-header { margin-bottom: 80px; }
.manifest-title {
    font-size: clamp(3rem, 7vw, 8rem);
    line-height: 0.9;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    display: flex; flex-direction: column;
}
.manifest-title .highlight {
    color: transparent;
    -webkit-text-stroke: 1px #fff; 
    opacity: 0.5;
}

/* The Split Grid */
.manifest-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr; 
    gap: 60px;
    align-items: stretch;
}

.m-divider {
    width: 1px; height: 0%; /* Start closed */
    background: linear-gradient(to bottom, var(--accent), transparent);
    transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.m-divider.is-grown { height: 100%; }

.col-label {
    display: block; font-family: 'Courier New', monospace; 
    color: #666; font-size: 0.9rem; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 0.05em;
}

.m-col p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #ccc; 
    margin: 0;
    max-width: 500px;
}


/* ==========================================================================
   MODULE C: CATALOG (Shared)
   ========================================================================== */
.mod-catalog { padding: 0; background-color: #0b0b0b; }
.mod-catalog .container {
        max-width: 100%;       /* Override the global 1400px limit */
        width: 100%;
        padding: 0;            /* Remove global gutters */
        margin: 0;
    }
.pin-container { display: flex; position: relative; }

/* LEFT: Visuals (Desktop) */
.catalog-visuals { width: 50%; height: 100vh; position: sticky; top: 0; overflow: hidden; }
.catalog-visuals .visual-item { 
    width: 100%; height: 100%; position: absolute; top:0; left:0; 
    transition: opacity 0.6s ease, transform 0.8s ease; 
    opacity: 0; transform: scale(1.1); 
}
.catalog-visuals .visual-item.is-active { opacity: 1; transform: scale(1); }
.catalog-visuals img { width: 100%; height: 100%; object-fit: cover; }
.catalog-overlay { 
    position: absolute; top:0; left:0; width:100%; height:100%; 
    background: linear-gradient(to right, rgba(0,0,0,0.3), transparent); 
}

/* RIGHT: Content */
.catalog-content {
        width: 50%;
        /* Increased padding for better proportion on wide screens */
        padding: 120px 6vw 120px 80px; 
        box-sizing: border-box;
    }
.catalog-header { margin-bottom: 80px; }

.catalog-item {
    min-height: 60vh; 
    display: flex; flex-direction: column; justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.1); padding-left: 40px;
    margin-bottom: 60px;
    opacity: 0.3; transition: opacity 0.5s, border-color 0.5s;
}
.catalog-item.is-active { opacity: 1; border-left-color: var(--accent); }

.cat-num { font-family: 'Courier New', monospace; color: var(--accent); font-size: 1.2rem; margin-bottom: 20px; display: block; }
.catalog-item h3 { font-size: 2.5rem; color: #fff; margin-bottom: 20px; text-transform: uppercase; line-height: 1.1; }
.catalog-item p { font-size: 1.1rem; color: #999; line-height: 1.6; max-width: 450px; }

/* Mobile Only Image (Inline) */
.mobile-visual { display: none; }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    /* Hero: Stack Vertical */
    .mod-hero-split { 
        height: auto; 
        min-height: 100dvh;
        margin-top: calc(var(--header-height) * -1); 
    }
    .split-hero-container { flex-direction: column-reverse; }
    
    .hero-col-data { 
        width: 100%; height: auto; 
        padding: 60px 20px; 
        border-right: none;
        padding-top: 40px; 
    }
    
    .hero-col-visual { 
        width: 100%; 
        height: 50vh; 
        min-height: 400px;
        padding-top: var(--header-height); 
    }
    
    .hero-split-title { font-size: 14vw; margin-bottom: 40px; }
    .hero-super-label { margin-bottom: 20px; }

    /* Intro */
    .manifest-grid { grid-template-columns: 1fr; gap: 40px; }
    .m-divider { width: 0%; height: 1px; background: linear-gradient(to right, var(--accent), transparent); }
    .m-divider.is-grown { width: 100%; }
    
    .manifest-title { font-size: 12vw; }

    /* Catalog: Convert to Stack */
    .pin-container { flex-direction: column; }
    .catalog-visuals { display: none; } /* Hide sticky column */
    
    .catalog-content { 
        width: 100%; padding: 40px 20px; 
        position: relative; z-index: 10; 
        background: var(--bg-color); 
    }
    
    .catalog-item { 
        min-height: auto; margin-bottom: 100px; 
        opacity: 1; border-left: none; padding-left: 0; 
    }

    /* Reveal Mobile Images */
    .mobile-visual { 
        display: block; 
        width: 100%; height: 60vw; 
        object-fit: cover; margin-bottom: 30px; 
        filter: brightness(0.9);
        border: 1px solid rgba(255,255,255,0.1);
    }
}