/* =============================================================================
   page-services.css  —  CerebrumCity Services Page (page-id-192)
   ============================================================================= */

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
    --srv-blue:       #1a56f0;
    --srv-ink:        #0B1945;
    --srv-ink-muted:  #626262;
    --srv-radius:     28px;
    --srv-font-head:  'Poppins',  sans-serif;
    --srv-font-body:  'Manrope',  sans-serif;
}


/* =============================================================================
   WHITE NAV  (page-id-192)
   The header outputs a plain <img> with no .white/.blue class, so we invert
   the logo to white via CSS filter and colour the links directly.
   ============================================================================= */
/* Nav handled via .blue / .white logo anchors in header.php + default.css */

/* Revert when scrolled (.bgcolor added by theme JS) */
.page-id-192 .navbar.bgcolor .menu-toggle span {
    background: var(--srv-ink);
}


/* =============================================================================
   HERO
   ============================================================================= */
.srv-hero {
    min-height: 72vh;
    display: flex;
    align-items: center;
    background: var(--srv-ink) center/cover no-repeat;
    position: relative;
    padding: 140px 0 80px;
}
.srv-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(9 14 50 / 52%) 0%, rgb(26 86 240 / 0%) 100%);
}
.srv-hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: left;
}
.srv-hero__content h1 {
    font-family: var(--srv-font-head);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}
.srv-hero__content p {
    font-family: var(--srv-font-body);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255,255,255,0.88);
    line-height: 1.75;
    max-width: 560px;
}


/* =============================================================================
   LOGO CAROUSEL
   ============================================================================= */
.client-carousel-wrap {
    background: #fff;
    padding: 18px 0;
    overflow: hidden;
}
.continuous-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
    display: flex;
    gap: 52px;
    width: max-content;
    animation: srv-marquee 32s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item img {
    height: 50px; width: auto; object-fit: contain;
    filter: grayscale(1); opacity: 0.5;
    transition: filter .25s, opacity .25s;
}
.marquee-item img:hover { filter: none; opacity: 1; }
@keyframes srv-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* =============================================================================
   SERVICES LIST — orb background
   ============================================================================= */
.srv-list {
    padding: 80px 0 140px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #eef2ff 0%, #f5f0ff 40%, #edf8ff 100%);
}

.srv-list__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    z-index: 0;
}
.srv-list__orb--1 {
    width: 600px; height: 600px;
    background: #c7d7ff; opacity: 0.55;
    top: -180px; left: -160px;
}
.srv-list__orb--2 {
    width: 480px; height: 480px;
    background: #d9f5ff; opacity: 0.50;
    bottom: -80px; right: -140px;
}
.srv-list__orb--3 {
    width: 380px; height: 380px;
    background: #ede9fe; opacity: 0.60;
    top: 45%; left: 28%;
}

.srv-list .container { position: relative; z-index: 1; }

.srv-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--edi-font);
    font-size: .92rem;
    font-weight: 500;
    border-radius: var(--edi-r-sm);
    padding: .72rem 1.65rem;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, filter .2s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.srv-btn:hover { transform: translateY(-2px); }

.srv-btn--hero-primary {
    margin-top: 20px;
    border-radius: 24px;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
    background: #2a11b8;
    background: linear-gradient(106deg, rgba(42, 17, 184, 1) 0%, rgb(51 132 189) 84%);
    width: 43%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 28px;
}
.srv-btn--hero-primary:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }


/* =============================================================================
   ROW  —  full-width flex, card centered
   ============================================================================= */
.srv-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 72px;
}
.srv-row:last-child { margin-bottom: 0; }


/* =============================================================================
   SERVICES DESCRIPTION / INTRO
   ============================================================================= */
.srv-intro {
    padding: 80px 0 40px;
    text-align: center;
    background: var(--ssc-bg); /* Uses your defined light blue background */
}

.srv-intro__content {
    max-width: 800px;
    margin: 0 auto;
}

.srv-intro__title {
    font-family: var(--ssc-font-heading); /* Uses Poppins */
    font-size: 2.5rem;
    color: var(--ssc-ink);
    margin-bottom: 20px;
    font-weight: 700;
}

.srv-intro__bar {
    width: 60px;
    height: 4px;
    background: var(--ssc-blue); /* Uses your brand blue */
    margin: 0 auto 25px;
    border-radius: 2px;
}

.srv-intro__desc {
    font-family: var(--ssc-font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ssc-ink-muted);
    margin-bottom: 60px;
    text-align: center;
}

/* =============================================================================
   CARD
   ============================================================================= */
.srv-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1120px;
    min-height: 480px;
    border-radius: var(--srv-radius);
    overflow: hidden;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow:
        0 12px 60px rgba(26,86,240,0.11),
        0  3px 14px rgba(0,0,0,0.05);
    position: relative;
}

/* Blue → cyan hairline top */
.srv-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg,
        transparent 2%, #1a56f0 25%, #06b6d4 75%, transparent 98%);
    z-index: 3;
}

/* Reversed row */
.srv-row--reversed .srv-card  { direction: rtl; }
.srv-row--reversed .srv-card > * { direction: ltr; }


/* ── Text pane ── */
.srv-card__text {
    padding: 60px 56px 52px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}

.srv-card__top { display: flex; flex-direction: column; gap: 16px; }

.srv-card__num {
    font-family: var(--srv-font-body);
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.30em; text-transform: uppercase;
    color: var(--srv-blue); margin: 0;
}

.srv-card__tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--srv-font-body);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--srv-blue);
    background: rgba(26,86,240,0.06);
    border: 1px solid rgba(26,86,240,0.22);
    border-radius: 100px;
    padding: 5px 14px;
    width: fit-content;
}
.srv-card__tag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--srv-blue); flex-shrink: 0;
}

.srv-card__title {
    font-family: var(--srv-font-head);
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 800; line-height: 1.2;
    color: var(--srv-ink); margin: 0;
}

.srv-card__desc {
    font-family: var(--srv-font-body);
    font-size: 1rem; line-height: 1.9;
    color: var(--srv-ink-muted);
    max-width: 440px; margin: 0;
}

.srv-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.srv-chip {
    font-family: var(--srv-font-body);
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 14px; border-radius: 100px;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    transition: filter 0.2s, transform 0.2s;
}
.srv-chip:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}


/* ── Media pane ── */
.srv-card__media {
    position: relative;
    overflow: hidden;
    background: rgba(240,244,255,0.6);
    min-height: 420px;
}

.srv-card__media video,
.srv-card__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.srv-card:hover .srv-card__media video,
.srv-card:hover .srv-card__media img { transform: scale(1.04); }

.srv-card__media::after {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(to right, rgba(255,255,255,0.70) 0%, rgba(255,255,255,0.04) 38%),
        linear-gradient(to top,   rgba(255,255,255,0.42) 0%, transparent 30%);
    pointer-events: none;
}

/* Icon badge */
.srv-icon-badge {
    position: absolute; top: 24px; right: 24px; z-index: 3;
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(255,255,255,0.90); backdrop-filter: blur(12px);
    border: 1px solid rgba(200,215,245,0.70);
    box-shadow: 0 4px 16px rgba(26,86,240,0.13);
    display: flex; align-items: center; justify-content: center;
}
.srv-icon-badge svg {
    width: 22px; height: 22px;
    stroke: var(--srv-blue); fill: none; stroke-width: 1.8;
}

/* ── Stat badge ── */
.srv-stat-badge {
    position: absolute; bottom: 24px; right: 24px; z-index: 3;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(16px);
    border: 1px solid rgba(200,215,245,0.60);
    box-shadow: 0 8px 32px rgba(26,86,240,0.13);
    border-radius: 18px; padding: 16px 24px;
    text-align: right; min-width: 140px;
}

/* ── GRADIENT STAT VALUE ── */
.srv-stat-badge__value {
    display: block;
    font-family: var(--srv-font-head);
    font-size: 2.4rem; font-weight: 800; line-height: 1;
    background: linear-gradient(120deg, #1a56f0 0%, #06b6d4 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* fallback */
}

.srv-stat-badge__label {
    display: block;
    font-family: var(--srv-font-body);
    font-size: 11px; color: var(--srv-ink-muted);
    margin-top: 5px; line-height: 1.4;
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 1000px) {
    .srv-card { max-width: 90vw; }
}

@media (max-width: 860px) {
    .srv-row { margin-bottom: 40px; }
    .srv-card {
        grid-template-columns: 1fr;
        direction: ltr !important;
        min-height: auto; max-width: 100%;
    }
    .srv-row--reversed .srv-card { direction: ltr !important; }
    .srv-card__media {
        min-height: 260px;
        border-left: none;
        border-top: 1px solid rgba(200,210,235,0.55);
    }
    .srv-card__text { padding: 36px 28px 32px; }
    .srv-list { padding: 60px 0 80px; }
    .srv-list__orb { display: none; }
}

@media (max-width: 600px) {
    .srv-hero { min-height: 60vh; padding: 110px 0 60px; }
    .srv-card__title { font-size: 1.5rem; }
}