/* Services page: Products-style top bar + cream content column, // comments in red (JS) */

.services-page {
    background: white;
    color: var(--text-dark);
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero headline — LCD board photo background */
.services-page > .page-header--hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: clamp(120px, 16vh, 180px);
    padding: 1.5rem 2rem;
    text-align: center;
    background: #0a0d12 url('/images/services-hero.png') center center / cover no-repeat;
    overflow: hidden;
}

.services-page > .page-header--hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.52);
    z-index: 0;
}

.services-page > .page-header--hero h1,
.services-page > .page-header--hero .gold-line {
    position: relative;
    z-index: 1;
}

.services-page > .page-header--hero h1 {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.services-page > .page-header .page-header-sub {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.65rem;
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.services-page > .page-header--hero .gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.services-page-body {
    padding: 2.5rem 1.25rem 3rem;
    box-sizing: border-box;
}

.services-shell {
    max-width: 90rem;
    margin: 0 auto;
    /* background: #f9e79f; */
    border-radius: 12px;
    /* box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28); */
    overflow: hidden;
}

.services-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 2rem 2.5rem;
    box-sizing: border-box;
    text-align: left;
}

.service-row {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(13, 27, 42, 0.1);
}

.service-row:last-child {
    border-bottom: none;
}

.service-text {
    max-width: none;
    margin: 0;
    text-align: left;
}

.service-num {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    color: #b45309;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.service-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 2.2vw, 2.65rem);
    font-weight: 700;
    color: #0d1b2a;
    margin-bottom: 1rem;
}

.service-text p {
    color: #374151;
    line-height: 1.75;
    font-size: clamp(1.25rem, 2.2vw, 0.65rem);
    margin-bottom: 1rem;
}

.service-body {
    color: #1f2937;
    line-height: 1.65;
    text-align: left;
    font-size: clamp(1.25rem, 2.2vw, 0.65rem);
}

.service-body p {
    margin-bottom: 1rem;
}

.service-body p:last-child {
    margin-bottom: 0;
}

.service-body pre,
.service-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.88rem;
}

.service-body pre {
    margin: 1rem 0;
    padding: 1.1rem 1.25rem;
    background: #f9e79f;
    border: 1px solid rgba(13, 27, 42, 0.12);
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre;
    color: #111827;
}

.service-body pre code {
    font-size: inherit;
    background: transparent;
    padding: 0;
    border: none;
}

.service-body :not(pre) > code {
    background: rgba(13, 27, 42, 0.06);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.service-code-line-comment {
    color: #dc2626;
    font-style: normal;
    font-weight: 500;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    justify-content: flex-start;
}

.tag {
    background: #fef3c7;
    border: 1px solid rgba(180, 83, 9, 0.25);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    color: #78350f;
    font-weight: 600;
}

.services-empty {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    color: #6b7280;
    font-size: 1rem;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.65;
}

@media (max-width: 700px) {
    .services-page-body {
        padding: 1.25rem 0.75rem 2rem;
    }

    .services-shell {
        border-radius: 8px;
    }

    .services-page > .page-header--hero {
        min-height: 120px;
        padding: 1.25rem 1rem;
    }

    .services-page > .page-header--hero h1 {
        font-size: 2rem;
    }

    .services-section {
        padding: 0 1.25rem 2rem;
    }

    .service-row {
        padding: 1.5rem 0;
    }

    .service-body pre {
        padding: 0.85rem 1rem;
        font-size: 0.82rem;
    }
}
