/* ===================================================================
   Services Portal — individual sub-service page styles
   Extends the shared .crs-portal / .svc-portal design system that lives
   in css/style.css. Only NEW components for child pages are defined here.
   =================================================================== */

/* ── DETAIL HERO (single large image) ── */
.svc-detail-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 0 0 28px 28px;
    margin: 0 0 26px;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: 200% 200%;
    animation: crsGradient 14s ease infinite;
}
.svc-detail-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.svc-detail-hero:hover .svc-detail-hero__img { transform: scale(1.12); }
.svc-detail-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(20,18,45,0.30) 0%, rgba(20,18,45,0.55) 60%, rgba(20,18,45,0.78) 100%);
}
.svc-detail-hero__inner {
    position: relative;
    z-index: 3;
    max-width: 760px;
    padding: 64px 24px 72px;
}
.svc-detail-hero__title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin: 14px 0 12px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.svc-detail-hero__subtitle {
    font-size: clamp(15px, 2.2vw, 19px);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
    opacity: .95;
    text-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.svc-detail-hero .crs-hero__eyebrow {
    position: relative;
    z-index: 3;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
}
.svc-detail-hero .crs-hero__shape { z-index: 2; }
.svc-detail-hero .crs-hero__wave { z-index: 3; }

@media (max-width: 600px) {
    .svc-detail-hero { min-height: 260px; }
    .svc-detail-hero__inner { padding: 44px 18px 54px; }
}

/* ── ABOUT (multi-paragraph) ── */
.svc-detail-page .crs-detail-about__body p { margin: 0 0 14px; }
.svc-detail-page .crs-detail-about__body p:last-child { margin-bottom: 0; }

/* ── FEATURE / RESPONSIBILITY CARDS (gradient glow per category) ── */
.svc-feature-card {
    --cv-grad: var(--crs-grad);
    text-align: left;
    position: relative;
}
.svc-feature-card .svc-why-card__icon {
    margin: 0 0 16px;
    color: #fff;
    background: var(--cv-grad);
}
.svc-feature-card:hover .svc-why-card__icon {
    transform: rotate(-8deg) scale(1.08);
    background: var(--cv-grad);
}

/* ── REQUIREMENTS (bullet cards) ── */
.svc-req-grid {
    opacity: 1;
}
.svc-req-col { display: flex; margin-bottom: 18px; }
.svc-req-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--crs-shadow);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.svc-req-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--crs-shadow-hover);
    border-color: rgba(109,94,252,0.35);
}
.svc-req-card__icon {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; color: #fff;
    background: var(--crs-grad);
    box-shadow: 0 10px 20px -10px rgba(109,94,252,0.8);
}
.svc-req-card__text {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--crs-ink);
    line-height: 1.5;
}

/* ── SIDEBAR BACK LINKS ── */
.crs-sidebar__back {
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13.5px; font-weight: 600;
    text-decoration: none;
    color: var(--crs-brand);
    background: var(--crs-grad-soft);
    transition: background .3s ease, color .3s ease, transform .25s ease;
}
.crs-sidebar__back:hover {
    background: var(--crs-grad);
    color: #fff;
    transform: translateX(3px);
}
.crs-sidebar__badge i { font-size: 11px; }
