/* ==========================================================================
   Service detail pages — Brinks-inspired corporate layout
   ========================================================================== */

.service-page {
    background: #fff;
    color: #1a1a1a;
}

/* ---- Loading screen ---- */
.service-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a1628;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.service-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.service-loader-inner {
    text-align: center;
}

.service-loader-ring {
    width: 52px;
    height: 52px;
    margin: 0 auto 28px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #c5a028;
    border-radius: 50%;
    animation: serviceSpin 0.9s linear infinite;
}

@keyframes serviceSpin {
    to { transform: rotate(360deg); }
}

.service-loader-brand {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-loader-text {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

/* ---- Header ---- */
.service-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.service-header.is-solid {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.service-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.service-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #fff;
    line-height: 1.45;
    max-width: 60%;
    transition: color 0.35s ease;
}

.service-logo .brand-emblem { flex-basis: 66px; width: 66px; height: 42px; background-size: 117px 73px; }
.service-logo .brand-wordmark strong { font-size: 12px; letter-spacing: 1.5px; }
.service-logo .brand-wordmark span { font-size: 6px; letter-spacing: 0.8px; }

.service-header.is-solid .service-logo {
    color: #0a1628;
}

.service-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.service-nav a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.25s ease;
}

.service-header.is-solid .service-nav a:not(.service-nav-cta) {
    color: #444;
}

.service-nav a:hover {
    color: #c5a028;
}

.service-nav-cta {
    background: #c5a028 !important;
    color: #0a1628 !important;
    padding: 10px 18px !important;
    border-radius: 2px;
}

.service-header.is-solid .service-nav-cta {
    background: #0a1628 !important;
    color: #fff !important;
}

/* ---- Cinematic hero ---- */
.service-hero-cinematic {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #0a1628;
}

.service-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.service-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.55) 45%, rgba(10, 22, 40, 0.15) 100%),
        linear-gradient(to top, rgba(10, 22, 40, 0.85) 0%, transparent 50%);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 140px 24px 70px;
}

.service-breadcrumb {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.service-breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.service-breadcrumb a:hover {
    color: #c5a028;
}

.service-breadcrumb span {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
}

.service-breadcrumb .current {
    color: #c5a028;
}

.service-hero-cinematic h1 {
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.15;
    color: #fff;
    max-width: 720px;
    margin-bottom: 18px;
}

.service-hero-lead {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin-bottom: 32px;
}

.service-hero-scroll {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #c5a028;
    text-decoration: none;
    border-bottom: 2px solid #c5a028;
    padding-bottom: 4px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.service-hero-scroll:hover {
    color: #fff;
    border-color: #fff;
}

/* ---- Shared layout ---- */
.service-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.service-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c5a028;
    margin-bottom: 14px;
}

.service-eyebrow--dark {
    color: #0a1628;
}

/* ---- Overview (light section) ---- */
.service-overview {
    padding: 90px 0;
    background: #f5f5f5;
}

.service-overview-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 60px;
    align-items: start;
}

.service-overview h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 22px;
    line-height: 1.25;
}

.service-overview-text {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: #444;
    margin: 0 0 28px;
}

.service-overview-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-overview-points li {
    position: relative;
    padding: 12px 0 12px 28px;
    font-size: 15px;
    line-height: 1.65;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.service-overview-points li:last-child {
    border-bottom: none;
}

.service-overview-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background: #c5a028;
    border-radius: 50%;
}

/* ---- Security protocols (Brinks-style detail band) ---- */
.service-security {
    padding: 90px 0;
    background: #0a1628;
}

.service-security .service-eyebrow {
    color: #c5a028;
}

.service-security-title {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.service-security-intro {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    max-width: 720px;
    margin: 0 0 48px;
}

.service-security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-security-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #c5a028;
    padding: 32px 28px;
}

.service-security-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: 0.3px;
}

.service-security-card p {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.service-trust-panel {
    background: #fff;
    border-left: 4px solid #c5a028;
    padding: 32px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.service-trust-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.service-trust-list li {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
}

.service-trust-list li:last-child {
    border-bottom: none;
}

.service-trust-address {
    font-style: normal;
    font-size: 12px;
    letter-spacing: 0.5px;
    line-height: 1.7;
    color: #777;
}

/* ---- Editorial split bands (Brinks-style 50/50) ---- */
.service-editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
    background: #fff;
}

.service-editorial--reverse {
    direction: rtl;
}

.service-editorial--reverse > * {
    direction: ltr;
}

.service-editorial-media {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}

.service-editorial-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.service-editorial-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    background: #fff;
}

.service-editorial-copy h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 18px;
    line-height: 1.3;
}

.service-editorial-copy p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: #555;
    margin: 0 0 22px;
}

.service-editorial-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-editorial-highlights li {
    position: relative;
    padding: 10px 0 10px 26px;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    border-top: 1px solid #eee;
}

.service-editorial-highlights li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 10px;
    color: #c5a028;
    font-weight: 700;
    font-size: 13px;
}

.service-editorial:nth-of-type(even) .service-editorial-copy {
    background: #f9f9f9;
}

/* ---- Capabilities (dark navy band) ---- */
.service-capabilities {
    padding: 90px 0;
    background: #0a1628;
}

.service-capabilities .service-eyebrow {
    color: #c5a028;
}

.service-capabilities-title {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 48px;
}

.service-capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-capabilities-grid--single {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
}

.service-capability-col h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c5a028;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.service-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-checklist li {
    position: relative;
    padding: 13px 0 13px 32px;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.service-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5a028' stroke-width='2.5'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- CTA band ---- */
.service-cta-band {
    padding: 70px 0;
    background: linear-gradient(135deg, #c5a028 0%, #e8c547 100%);
}

.service-cta-band-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.service-cta-band h2 {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: #0a1628;
    margin-bottom: 10px;
}

.service-cta-band p {
    font-size: 15px;
    color: rgba(10, 22, 40, 0.75);
    max-width: 480px;
    line-height: 1.6;
    margin: 0;
}

.service-cta-band-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.service-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.service-btn--primary {
    background: #0a1628;
    color: #fff;
}

.service-btn--primary:hover {
    background: #000;
}

.service-btn--ghost {
    background: transparent;
    color: #0a1628;
    border: 2px solid #0a1628;
}

.service-btn--ghost:hover {
    background: #0a1628;
    color: #fff;
}

/* ---- Related ---- */
.service-related-band {
    padding: 60px 0;
    background: #f5f5f5;
}

.service-related-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.service-related-link {
    display: block;
    padding: 24px 22px;
    background: #fff;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-related-link:hover {
    border-color: #c5a028;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-related-link strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #0a1628;
    margin-bottom: 8px;
}

.service-related-link span {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* ---- Footer ---- */
.service-footer {
    background: #0a1628;
    padding: 48px 0 24px;
    color: rgba(255, 255, 255, 0.7);
}

.service-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-footer strong {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 8px;
}

.service-footer p {
    font-size: 12px;
    margin: 0;
}

.service-footer-links {
    display: flex;
    gap: 20px;
}

.service-footer-links a {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.service-footer-links a:hover {
    color: #c5a028;
}

.service-footer-copy {
    padding-top: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

/* ---- Legacy gallery fallback (other services) ---- */
.service-gallery-legacy {
    padding: 60px 0;
}

.service-gallery-legacy-item img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* ---- Homepage solution card link ---- */
a.solution-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.solution-card-link .solution-overlay::after {
    content: 'Learn More →';
    display: inline-block;
    margin-top: 14px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.solution-card-link:hover .solution-overlay::after {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .service-overview-grid,
    .service-capabilities-grid,
    .service-security-grid {
        grid-template-columns: 1fr;
    }

    .service-editorial,
    .service-editorial--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .service-editorial-media {
        min-height: 280px;
    }

    .service-editorial-copy {
        padding: 40px 24px;
    }

    .service-nav a:not(.service-nav-cta) {
        display: none;
    }

    .service-logo {
        max-width: 50%;
    }

    .service-logo .brand-emblem { flex-basis: 48px; width: 48px; height: 30px; background-size: 85px 53px; }
    .service-logo .brand-wordmark { gap: 2px; }
    .service-logo .brand-wordmark strong { font-size: 10px; letter-spacing: 0.9px; }
    .service-logo .brand-wordmark span { font-size: 5px; letter-spacing: 0.35px; }
}

@media (prefers-reduced-motion: reduce) {
    .service-loader-ring {
        animation: none;
    }

    .service-loader {
        transition: none;
    }
}
