/* =========================================
   MANAGED SERVICES PAGE STYLES
   ========================================= */

/* =========================================
   HERO — same animated gradient + spotlight
   treatment as the About/Consultancy hero.
   ========================================= */
.ms-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 6.5rem 0 3rem;
    overflow: hidden;
    isolation: isolate;

    --hero-mx: 50%;
    --hero-my: 50%;

    background: linear-gradient(135deg,
                var(--color-navy) 0%,
                var(--color-navy-dark) 50%,
                var(--color-navy) 100%);
    background-size: 200% auto;
    background-position: 0% center;
    animation: msHeroGradientShift 18s ease-in-out infinite;
}

@keyframes msHeroGradientShift {
    0%   { background-position: 0% center; }
    50%  { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.ms-hero::before {
    content: "";
    position: absolute;
    inset: -25%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(38% 42% at 22% 28%, rgba(14, 23, 48, 0.55) 0%, rgba(14, 23, 48, 0) 66%),
        radial-gradient(34% 38% at 78% 70%, rgba(24, 38, 74, 0.60) 0%, rgba(24, 38, 74, 0) 68%),
        radial-gradient(30% 34% at 62% 16%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
    animation: msHeroAurora 26s ease-in-out infinite alternate;
}

@keyframes msHeroAurora {
    0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
    50%  { transform: translate3d(3%, 3%, 0) scale(1.08); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1.03); }
}

.ms-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(circle 420px at var(--hero-mx) var(--hero-my),
                rgba(255, 255, 255, 0.20) 0%,
                rgba(14, 23, 48, 0.35) 38%,
                rgba(255, 255, 255, 0) 72%);
}

.ms-hero.is-pointer-active::after { opacity: 1; }

.ms-hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease, gap 0.3s ease;
}

.hero-back-link i {
    font-size: 0.7rem;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.hero-back-link:hover {
    color: var(--color-white);
    gap: 0.75rem;
}

.ms-hero .overline {
    color: var(--color-accent);
}

.ms-hero h2 {
    color: var(--color-white);
    margin-bottom: 0;
}

.highlight-blue {
    color: var(--color-blue);
}

.ms-hero h2 .highlight-blue {
    color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
    .ms-hero,
    .ms-hero::before {
        animation: none;
    }
}

@media (max-width: 640px) {
    .ms-hero { padding: 6rem 0 6rem; }
}

/* =========================================
   SECTION 1 — INTRO + NOC/SOC (light bg)
   ========================================= */
.ms-intro-section {
    background-color: var(--color-white);
}

.ms-intro {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    text-align: center;
}

.ms-intro .overline,
.ms-intro .section-title {
    text-align: center;
}

/* Centred to match the title above it, and constrained to the same
   comfortable reading width used for intro copy across the rest of
   the site (previously justified and stretched full-width, which
   broke from that convention and from the centred title). */
.ms-intro .desc-text {
    color: var(--color-gray);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.1rem;
    text-align: center;
}

.ms-intro .desc-text:last-of-type {
    margin-bottom: 0;
}

/* ---- NOC / SOC cards ----
   Only the header (icon + title) carries the gradient/hover design;
   the rest of the card is a plain, static light-grey panel behind a
   simple border, per the latest direction. */
.ms-ops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.ms-ops-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-light);
    border-radius: 22px;
    overflow: hidden;
    background-color: var(--color-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.ms-ops-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* Header — icon and title sit side by side, on the same navy-to-blue
   diagonal gradient used site-wide, sweeping to a brighter position
   on hover. */
.ms-ops-card-top {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
    background-size: 160% 160%;
    background-position: 0% 0%;
    transition: background-position 0.6s ease;
}

.ms-ops-card:hover .ms-ops-card-top {
    background-position: 100% 100%;
}

.ms-ops-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    font-size: 1.3rem;
    transition: all 0.4s ease;
}

.ms-ops-card:hover .ms-ops-card-icon {
    background-color: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

.ms-ops-card-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ms-ops-card-step {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.ms-ops-card-top h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin: 0;
}

/* Body — plain and static: flat light-grey background, no gradient,
   no hover state of its own beyond the CTA pill's colour swap. */
.ms-ops-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--color-light);
    padding: 2rem 2rem 2.25rem;
}

.ms-ops-card-body p {
    color: var(--color-gray);
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

/* Pill button, styled after the homepage's CTA button (bold, rounded,
   arrow icon, lift + shadow on hover) but in colours that read on a
   light background instead of white-on-gradient. */
.ms-ops-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    align-self: flex-start;
    background-color: var(--color-navy);
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.85rem 1.6rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ms-ops-card-cta i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.ms-ops-card:hover .ms-ops-card-cta {
    background-color: var(--color-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .ms-ops-grid { grid-template-columns: 1fr; }
}

/* =========================================
   SECTION 2 — THE REST OF THE LIFECYCLE (light bg)
   Deliberately simple: intro line + a row of quick
   links, no card grid, no standalone CTA block.
   ========================================= */
.ms-related-section {
    background-color: var(--color-light);
}

.ms-related-intro {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.ms-related-intro .desc-text {
    color: var(--color-gray);
    font-size: 1.02rem;
    line-height: 1.75;
}

.ms-related-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.ms-related-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background-color: var(--color-white);
    border: 1px solid rgba(24, 38, 74, 0.1);
    color: var(--color-navy);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.ms-related-pill i {
    color: var(--color-blue);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.ms-related-pill:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: var(--color-white);
    transform: translateY(-2px);
}

.ms-related-pill:hover i {
    color: var(--color-white);
}

@media (max-width: 640px) {
    .ms-related-links { gap: 0.6rem; }
    .ms-related-pill { font-size: 0.82rem; padding: 0.6rem 1.05rem; }
}
