/* Cleared — see main style.css */
/* ============================================================
   RomIQ Solutions — Services & Service Detail Page
   Shares one stylesheet; both templates link to this file.
   ============================================================ */

/* ── PAGE HERO ── */
.page-header {
    padding: 160px 52px 80px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Ghost watermark */
.page-header::before {
    content: 'SERVICES';
    position: absolute;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18vw;
    color: rgba(255, 255, 255, 0.015);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Override watermark text on detail page */
.sd-body-section ~ .page-header::before,
body:has(.sd-layout) .page-header::before {
    content: 'DETAIL';
}

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.9;
    letter-spacing: 0.04em;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 24px;
}

.page-title .accent {
    color: var(--cyan);
}

.page-subtitle {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.85;
    max-width: 560px;
    font-family: 'Cabinet Grotesk', sans-serif;
}

/* ── EMPTY STATE ── */
.svc-empty {
    color: var(--muted);
    text-align: center;
    padding: 3rem 0;
    font-family: 'Chivo Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── svc-row as a full <a> link ── */
a.svc-row {
    color: inherit;
    display: grid;
}

a.svc-row:hover .svc-name {
    color: var(--cyan);
}

/* ── SERVICE DETAIL BODY ── */
.sd-body-section {
    padding: 100px 52px 120px;
    position: relative;
    z-index: 1;
}

/* Two-column: features + sidebar */
.sd-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 80px;
    align-items: start;
}

/* ── FEATURES HEADER ── */
.sd-features-header {
    margin-bottom: 12px;
}

.sd-features-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--text);
    margin-top: 8px;
}

/* ── FEATURE ROWS ── */
.sd-feature-list {
    display: flex;
    flex-direction: column;
}

.sd-feature-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 28px;
    align-items: center;
    padding: 26px 0;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: padding 0.3s ease;
}

.sd-feature-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: var(--surface2);
    transition: width 0.4s cubic-bezier(0.77, 0, 0.18, 1);
    z-index: 0;
}

.sd-feature-row:hover { padding-left: 18px; }
.sd-feature-row:hover::before { width: 100%; }
.sd-feature-row:last-child { border-bottom: 1px solid var(--border); }
.sd-feature-row > * { position: relative; z-index: 1; }

.sd-feature-num {
    font-family: 'Chivo Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.sd-feature-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sd-feature-check {
    font-size: 0.5rem;
    color: var(--cyan);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.sd-feature-row:hover .sd-feature-check {
    transform: scale(1.4);
}

.sd-feature-text {
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--text);
    font-family: 'Cabinet Grotesk', sans-serif;
    line-height: 1.5;
    transition: color 0.2s;
}

.sd-feature-row:hover .sd-feature-text {
    color: var(--text);
}

/* ── SIDEBAR (reuses case_study.css classes) ── */
/* These are defined in case_study.css — if loading separately, include below */
.cs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 100px;
}

.cs-meta-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.cs-meta-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.cs-meta-card:hover { border-color: rgba(0, 229, 255, 0.2); }
.cs-meta-card:hover::after { transform: scaleX(1); }

.cs-meta-label {
    font-family: 'Chivo Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.cs-meta-value {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    font-family: 'Cabinet Grotesk', sans-serif;
}

.sd-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.04em;
    color: var(--cyan);
}

.cs-sidebar-cta {
    display: block;
    text-align: center;
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* btn-primary needs a child <span> for the z-index fill trick */
.cs-sidebar-cta span { position: relative; z-index: 1; }

.cs-back-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-family: 'Chivo Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    cursor: none;
}

.cs-back-link:hover { color: var(--cyan); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .page-header {
        padding: 120px 24px 60px;
    }

    .sd-body-section {
        padding: 60px 24px 80px;
    }

    .sd-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Sidebar moves above features on mobile */
    .cs-sidebar {
        order: -1;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cs-meta-card {
        flex: 1 1 140px;
    }

    .cs-sidebar-cta,
    .cs-back-link {
        flex: 1 1 100%;
    }

    .sd-feature-row {
        grid-template-columns: 36px 1fr;
        gap: 16px;
    }

    .page-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    /* Services list page */
    .services {
        padding: 80px 24px;
    }
}

@media (max-width: 600px) {
    .cs-sidebar {
        flex-direction: column;
    }
}