/* ===================================================
   Service Detail Page — page-specific styles only.
   Base styles (nav, footer, fonts, etc.) come from:
   style.css → deck-match.css → ui-fixes.css
=================================================== */

/* ── HERO ── */
.svc-hero {
    position: relative;
    height: min(540px, calc(100svh - 83px));
    min-height: 380px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    padding-top: 20px;
    padding-bottom: 20px;
}

.svc-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #0b2a42;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.svc-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,15,30,0.5) 0%, rgba(5,15,30,0.75) 100%);
}

body.loaded .svc-hero-bg { transform: scale(1); }

.svc-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.svc-hero-content .eyebrow {
    color: var(--orange, #f5821f);
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin: 0 auto 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.svc-hero-content .eyebrow::before,
.svc-hero-content .eyebrow::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--orange, #f5821f);
    border-radius: 2px;
}

.svc-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.35rem, 4.2vw, 3.25rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.02em;
    margin: 0 0 18px;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0,0,0,.4);
}

.svc-hero-content > p {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.35vw, 1.18rem);
    line-height: 1.68;
    color: #d8e8f2;
    max-width: 640px;
    margin: 0 auto;
    letter-spacing: .01em;
}

/* ── INTRO ── */
.svc-intro {
    background: #fff;
    padding: clamp(52px, 5.5vw, 68px) 0 clamp(48px, 5vw, 64px);
    overflow: hidden;
    position: relative;
    border-top: 3px solid var(--orange);
}

/* Subtle dot-grid watermark */
.svc-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(8, 21, 37, 0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: 0;
}

.svc-intro-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: svcFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── H2 ── */
.svc-intro-inner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    font-weight: 800;
    line-height: 1.18;
    color: var(--navy);
    margin: 0 0 0;
    letter-spacing: -.025em;
    animation: svcFadeUp 0.75s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Animated growing underline */
.svc-intro-inner h2::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange) 0%, #ffb060 100%);
    border-radius: 3px;
    margin: 16px auto 28px;
    animation: svcLineGrow 0.65s 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes svcLineGrow {
    to { width: 60px; }
}

/* ── TAGLINE PILLS ── */
.svc-tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 36px;
    padding: 0;
    animation: svcFadeUp 0.75s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.svc-tagline span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy);
    background: rgba(8, 21, 37, 0.05);
    border: 1px solid rgba(8, 21, 37, 0.12);
    border-radius: 100px;
    padding: 7px 16px;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

/* Orange dot before each pill */
.svc-tagline span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
}

.svc-tagline span:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    transform: translateY(-2px);
}

.svc-tagline span:hover::before {
    background: #fff;
}

/* ── BODY TEXT ── */
.svc-intro-body {
    font-family: var(--font-body);
    font-size: 0.97rem;
    line-height: 1.78;
    color: var(--ink);
    text-align: left;
    background: linear-gradient(135deg, rgba(245,130,31,0.04) 0%, rgba(8,21,37,0.02) 100%);
    border-left: 3px solid var(--orange);
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    animation: svcFadeUp 0.75s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── KEYFRAMES ── */
@keyframes svcFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.svc-detail {
    background: radial-gradient(circle at 18% 25%, rgba(16, 48, 82, 0.75) 0%, transparent 60%),
                radial-gradient(circle at 85% 75%, rgba(245, 130, 31, 0.08) 0%, transparent 50%),
                linear-gradient(175deg, #071728 0%, #0c233c 55%, #051423 100%);
    padding: 95px 0 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.svc-detail-header {
    text-align: center;
    padding: 0 20px 58px;
    max-width: 820px;
    margin: 0 auto;
}

.svc-detail-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 2.6vw, 2.05rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.02em;
    color: #ffffff;
    margin: 0 0 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.svc-detail-header > p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.65;
    color: #bad0e4;
    margin: 0 auto;
    letter-spacing: 0.01em;
}

.svc-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    padding-bottom: 70px;
}

.svc-pills {
    padding: 10px 50px 0 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.svc-pill {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 22px 26px 22px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 10, 25, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.svc-pill:hover {
    background: linear-gradient(135deg, rgba(245, 130, 31, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(245, 130, 31, 0.65);
    transform: translateX(8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 24px rgba(245, 130, 31, 0.16);
}

.svc-pill-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.svc-pill:hover .svc-pill-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.svc-pill-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s ease;
}

.svc-pill:hover .svc-pill-icon svg {
    transform: rotate(4deg);
}

.pi-1 { background: linear-gradient(135deg, #16a085, #0e6655); }
.pi-2 { background: linear-gradient(135deg, #e67e22, #b95f13); }
.pi-3 { background: linear-gradient(135deg, #8e44ad, #5e2d79); }
.pi-4 { background: linear-gradient(135deg, #1aa3b5, #0d7484); }
.pi-5 { background: linear-gradient(135deg, #2563eb, #1e40af); }
.pi-water { background: linear-gradient(135deg, #0284c7, #0369a1); }

.svc-pill-text h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.svc-pill-text p {
    font-family: var(--font-body);
    font-size: .9rem;
    line-height: 1.62;
    color: #b4c7d9;
    margin: 0;
}

.svc-detail-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    align-self: stretch;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.svc-detail-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.svc-detail:hover .svc-detail-image img {
    transform: scale(1.03);
}

/* ── CTA ── */
.svc-cta {
    background: #fff;
    padding: 72px 0;
}

.svc-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.svc-cta-inner h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 2.6vw, 2.05rem);
    font-weight: 800;
    line-height: 1.22;
    color: var(--navy);
    margin: 0 0 8px;
    letter-spacing: -.02em;
}

.svc-cta-inner > div > p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .svc-detail-body { grid-template-columns: 1fr; }
    .svc-pills { padding: 10px 0 40px; }
    .svc-detail-image { min-height: 300px; }
    .svc-cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
    .svc-hero-content h1 { font-size: 2.1rem; }
    .svc-pill { border-radius: 20px; }
    .svc-pill:hover { transform: none; }
    .svc-hero { padding-top: 80px; }
}