/* =========================================
   CONSULTANCY SERVICES PAGE STYLES
   ========================================= */

/* =========================================
   HERO — same animated gradient + spotlight
   treatment as the About page hero, plus a
   small "back to all services" breadcrumb link.
   ========================================= */
.consultancy-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: consultancyHeroGradientShift 18s ease-in-out infinite;
}

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

.consultancy-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: consultancyHeroAurora 26s ease-in-out infinite alternate;
}

@keyframes consultancyHeroAurora {
    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); }
}

.consultancy-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%);
}

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

.consultancy-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;
}

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

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

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

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

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

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

/* =========================================
   SECTION 1 — INTRO (light bg)
   Layout comes from the site-wide .media-split
   standard in main.css; this just styles the
   copy and the photo frame's finish.
   ========================================= */
.consultancy-intro-section {
    background-color: var(--color-white);
}

.consultancy-intro-section .desc-text {
    color: var(--color-gray);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

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

.consultancy-intro-section .media-frame {
    box-shadow: var(--shadow-md);
}

/* =========================================
   SECTION 2 — ADVISORY SCOPE (dark bg)
   ========================================= */
.advisory-scope-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--color-navy) url('Images/backgrounds/services_bg/advisory-scope.png') center / cover no-repeat;
}


.advisory-scope-section .overline {
    color: var(--color-accent);
}

.advisory-scope-section .section-title {
    color: var(--color-white);
    margin-bottom: 3rem;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.scope-card {
    background-color: #18264ae1 ;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scope-card:hover {
    background-color:#18264a ;
    border-color: var(--color-blue);
    transform: translateY(-4px);
}

.scope-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: rgba(94, 200, 229, 0.12);
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    transition: all 0.35s ease;
}

.scope-card:hover .scope-icon {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.scope-card h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

.scope-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* =========================================
   SECTION 3 — HOW WE ENGAGE (light bg)
   Vertical stepper (left) + detail panel (right).
   ========================================= */
.engage-section {
    background-color: var(--color-white);
}

.engage-section .section-title {
    margin-bottom: 1rem;
}

.engage-subtitle {
    color: var(--color-gray);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* ---- "Stair" visual: a single connected staircase silhouette on a
   shared ground line, ascending left -> right — matching the
   reference sketch. Each column = a number/title label floating
   above its own tread (a small box holding just the description,
   sized to fit that text) sitting on a riser whose height increases
   per step, so the whole thing climbs from the bottom-left up to the
   top-right. The divider between step 1|2|3|4 is a vertical line. ---- */
.engage-stairs {
    display: flex;
    align-items: flex-end;
    width: 100%;
    border-bottom: 2px solid var(--color-blue); /* the shared ground line */
}

.stair-step {
    flex: 0 0 auto;
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* The vertical divider between steps. */
.stair-step + .stair-step {
    border-left: 2px solid var(--color-blue);
}

/* The label: number + title, floating above the tread — not boxed. */
.stair-step-label {
    text-align: center;
    padding: 0 0.5rem;
    margin-bottom: 0.65rem;
}

.stair-step-circle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: 0 auto 0.5rem;
    border-radius: 50%;
    background-color: var(--color-blue);
    color: var(--color-white);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stair-step-title {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-navy);
}

/* The tread: just the description, boxed and sized to fit that text
   — no fixed/extra height, no empty space. */
.stair-step-tread {
    width: 100%;
    background-color: var(--color-white);
    border-top: 2px solid var(--color-blue);
    padding: 0.85rem 0.75rem;
    text-align: center;
}

.stair-step-text {
    color: var(--color-gray);
    font-size: 0.8rem;
    line-height: 1.55;
    margin: 0;
}

/* The riser: a slim vertical face below the tread. Height increases
   per step, left to right — this is what draws the ascending
   silhouette, kept small so it never reads as empty dead space. */
.stair-step-riser {
    width: 100%;
    background: linear-gradient(180deg, rgba(40, 65, 162, 0.1) 0%, rgba(40, 65, 162, 0.02) 100%);
}

.stair-step:nth-child(1) .stair-step-riser { height: 0; }
.stair-step:nth-child(2) .stair-step-riser { height: 20px; }
.stair-step:nth-child(3) .stair-step-riser { height: 40px; }
.stair-step:nth-child(4) .stair-step-riser { height: 60px; }

/* ---- Mobile: stairs become four stacked boxes, 1 → 4 ---- */
@media (max-width: 900px) {

    /* Drop the staircase mechanics — no ground line, no ascending risers */
    .engage-stairs {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        border-bottom: none;
    }

    .stair-step {
        /* flex:1 1 0 from the desktop rule sets HEIGHT once the axis
           flips to column — which collapses every box to 0px. */
        flex: 0 0 auto;

        border: 2px solid var(--color-blue);
        border-left: 2px solid var(--color-blue);  /* overrides the sibling rule */
        border-radius: 14px;
        overflow: hidden;
        background-color: var(--color-white);
        box-shadow: 0 4px 14px rgba(24, 38, 74, 0.06);
    }

    /* Number + title on one row at the top of the box */
    .stair-step-label {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        text-align: left;
        padding: 1.1rem 1.25rem 0;
        margin-bottom: 0;
    }

    .stair-step-circle {
        margin: 0;
    }

    .stair-step-title {
        font-size: 1.02rem;
    }

    /* Description fills the box width — no border, no centering */
    .stair-step-tread {
        border-top: none;
        text-align: left;
        padding: 0.6rem 1.25rem 1.1rem;
        background-color: transparent;
    }

    .stair-step-text {
        font-size: 0.9rem;
        line-height: 1.6;
        padding-left: 0;
    }

    /* The ascending risers only make sense horizontally */
    .stair-step-riser {
        display: none;
    }
}

@media (max-width: 560px) {
    .stair-step-label  { padding: 1rem 1.1rem 0; gap: 0.7rem; }
    .stair-step-tread  { padding: 0.5rem 1.1rem 1rem; }
    .stair-step-circle { width: 34px; height: 34px; font-size: 0.8rem; }
    .stair-step-title  { font-size: 0.98rem; }
    .stair-step-text   { font-size: 0.88rem; }
}


.engage-layout {
    display: grid;
    grid-template-columns: minmax(0, 460px) 1fr;
    gap: 3rem;
    align-items: stretch;
}

.engage-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Connecting vertical line behind the numbered circles — a visible
   grey track by default, filled from the top with blue as progress
   is made through the four steps. */
.engage-line-track {
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 24px;
    width: 3px;
    border-radius: 3px;
    background-color: var(--color-gray);
    overflow: hidden;
    z-index: 0;
}

.engage-line-fill {
    display: block;
    width: 100%;
    height: 25%;
    background: linear-gradient(180deg, var(--color-blue), var(--color-accent));
    border-radius: 3px;
    transition: height 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.engage-step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    background-color: var(--color-navy);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.engage-step-circle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.engage-step-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.engage-step-copy strong {
    color: var(--color-white);
    font-size: 1.05rem;
}

.engage-step-copy span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
}

.engage-step:hover {
    border-color: var(--color-accent);
    background-color: #223058;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.engage-step:hover .engage-step-circle {
    background-color: var(--color-accent);
    color: var(--color-navy);
    transform: scale(1.08);
}

.engage-step.active {
    border-color: var(--color-blue);
    background-color: var(--color-navy);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.engage-step.active .engage-step-circle {
    background-color: var(--color-blue);
    color: var(--color-white);
    transform: scale(1.08);
}

.engage-detail {
    background-color: var(--color-light);
    border: 2px solid rgba(40, 65, 162, 0.14);
    border-radius: 20px;
    padding: 2rem;
    min-height: 260px;
}

.engage-detail-step {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-blue);
    margin-bottom: 0.75rem;
}

.engage-detail-title {
    font-size: 1.6rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.engage-detail-text {
    color: var(--color-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Wrapper holds both the badge and the track so the badge can sit
   in open space above-right of the bar without being clipped by
   the track's own overflow:hidden (which is needed to clip the fill). */
.engage-progress-wrap {
    position: relative;
    margin-bottom: 0.75rem;
    padding-top: 1.6rem;
}

/* Percentage readout — a tight pill sized to just the number,
   sitting flush at the far right, just above the progress bar.
   Updates (25% / 50% / 75% / 100%) as each step is selected. */
.engage-line-percent {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-block;
    width: fit-content;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--color-blue);
    background-color: rgba(40, 65, 162, 0.08);
    border-radius: 50px;
    padding: 0.2rem 0.65rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.engage-progress-track {
    width: 100%;
    height: 6px;
    background-color: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
}

.engage-progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--color-blue), var(--color-accent));
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.engage-progress-caption {
    color: var(--color-gray);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .engage-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .engage-detail { padding: 1.75rem; }
}

/* =========================================
   SECTION 4 — BUSINESS OUTCOMES (dark bg)
   ========================================= */
.outcomes-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--color-navy) url('Images/backgrounds/services_bg/business-outcomes.png') center / cover no-repeat;
}


.outcomes-section .overline {
    color: var(--color-accent);
}

.outcomes-section .section-title {
    color: var(--color-white);
    margin-bottom: 3rem;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.outcome-card {
    text-align: center;
    padding: 1rem;
}

.outcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background-color: rgba(94, 200, 229, 0.12);
    color: var(--color-accent);
    font-size: 1.5rem;
    transition: all 0.35s ease;
}

.outcome-card:hover .outcome-icon {
    background-color: var(--color-blue);
    color: var(--color-white);
    transform: translateY(-4px);
}

.outcome-card h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.outcome-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* =========================================
   SECTION 5 — FULL-BLEED VIDEO CTA
   Mirrors the About page's .about-cta-section banner treatment.
   ========================================= */
.consultancy-cta-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--color-white);
    padding: 3.5rem 0;
    text-align: center;
}

.consultancy-cta-section .cta-bg-image,
.consultancy-cta-section .cta-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    display: block;
    pointer-events: none;
}

.consultancy-cta-section .cta-video-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg,
                rgba(126, 138, 150, 0.13) 0%,
                rgba(243, 246, 250, 0.58) 50%,
                rgba(126, 138, 150, 0.13) 100%);
}

.consultancy-cta-section .cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
}

.consultancy-cta-section .cta-justify-heading {
    font-size: clamp(1.5rem, 2.9vw, 2.15rem) !important;
    color: var(--color-navy);
    text-align: center;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.55);
}

.consultancy-cta-section .cta-content h3 {
    color: var(--color-navy);
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
}

/* main.css turns this button transparent-with-white-text on hover, which
   would vanish against the light band — flip it to navy instead. */
.consultancy-cta-section .btn-solid-navy {
    background-color: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

.consultancy-cta-section .btn-solid-navy:hover {
    background-color: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.consultancy-cta-section .cta-button-group {
    margin: 0;
}

@media (max-width: 700px) {
    .consultancy-cta-section { padding: 2.75rem 0; }
}