/* =========================================
   PROFESSIONAL SERVICES PAGE STYLES
   ========================================= */

/* =========================================
   HERO — same animated gradient + spotlight
   treatment as the About/Consultancy hero.
   ========================================= */
.ps-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: psHeroGradientShift 18s ease-in-out infinite;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* =========================================
   SECTION 1 — INTRO (light bg)
   Layout is the site-wide .media-split standard
   (reversed), from main.css.
   ========================================= */
.ps-intro-section {
    background-color: var(--color-white);
}

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

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

/* Mobile only: once the two columns stack, show the copy first and
   the photo second (the reverse of the desktop picture-left layout,
   and of this section's normal DOM order). */
@media (max-width: 900px) {
    .ps-intro-section .media-split-text { order: 1; }
    .ps-intro-section .media-split-media { order: 2; }
}

/* =========================================
   SECTION 2 — THREE PILLARS (dark navy bg,
   white boxes)
   ========================================= */
.ps-pillars-section {
    background-color: var(--color-navy);
}

.ps-pillars-intro {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.ps-pillars-intro .overline {
    color: var(--color-accent);
}

.ps-pillars-intro .section-title {
    color: var(--color-white);
}

.ps-pillars-intro .desc-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.02rem;
    line-height: 1.7;
}

/* ---- Pillar timeline / segmented tabs ---- */
.ps-pillar-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.ps-pillar-btn {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    background-color: var(--color-white);
    border: 2px solid rgba(40, 65, 162, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem 1.65rem;
    cursor: pointer;
    font-family: var(--font-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Small chevron hinting that clicking/hovering reveals a panel
   below. Subtle at rest, sharpens and drops slightly on hover
   or when this pillar's panel is open. */
.ps-pillar-btn-arrow {
    position: absolute;
    left: 50%;
    bottom: 0.5rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
    font-size: 0.9rem;
    opacity: 0.78;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ps-pillar-btn:hover .ps-pillar-btn-arrow {
    opacity: 0.85;
    transform: translateX(-50%) translateY(3px);
}

.ps-pillar-btn.active .ps-pillar-btn-arrow {
    opacity: 1;
    color: var(--color-blue);
    transform: translateX(-50%) rotate(180deg);
}

.ps-pillar-btn-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(40, 65, 162, 0.08);
    color: var(--color-blue);
    font-size: 1.2rem;
    transition: all 0.35s ease;
}

.ps-pillar-btn-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ps-pillar-btn-step {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-blue);
}

.ps-pillar-btn-copy strong {
    color: var(--color-navy);
    font-size: 1rem;
    line-height: 1.35;
}

.ps-pillar-btn-desc {
    color: var(--color-gray);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 0.15rem;
    text-align: justify;
}

.ps-pillar-btn:hover {
    border-color: rgba(40, 65, 162, 0.3);
    transform: translateY(-3px);
}

.ps-pillar-btn.active {
    border-color: var(--color-blue);
    box-shadow: 0 16px 32px rgba(24, 38, 74, 0.12);
}

.ps-pillar-btn.active .ps-pillar-btn-icon {
    background-color: var(--color-blue);
    color: var(--color-white);
}

/* ---- Large detail panel underneath ---- */
.ps-pillar-panel-wrap {
    position: relative;
}

.ps-pillar-panel {
    display: none;
    background-color: var(--color-white);
    border: 2px solid rgba(40, 65, 162, 0.12);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    animation: psPanelFade 0.35s ease-in-out;
}

.ps-pillar-panel.active {
    display: block;
}

@keyframes psPanelFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ps-pillar-columns {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
}

/* Each pillar's list is now its own bordered box, sitting side by
   side — Core Capabilities on the left, Business Benefits on the
   right. A coloured top rule identifies each box at a glance, and
   a subtle lift and border/icon colour change on hover signals
   it's an explorable panel rather than plain text. */
.ps-pillar-col {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    background-color: var(--color-light);
    border: 1px solid rgba(24, 38, 74, 0.08);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ps-pillar-col::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-blue);
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ps-pillar-col:last-child::before {
    background: var(--color-blue);
}

.ps-pillar-col:hover {
    background-color: var(--color-white);
    border-color: var(--color-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.ps-pillar-col:hover::before {
    transform: scaleX(1);
}

.ps-pillar-col:last-child:hover {
    border-color: var(--color-blue);
}

.ps-pillar-col h4 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    font-size: 0.95rem;
    color: var(--color-navy);
    letter-spacing: 0.3px;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(24, 38, 74, 0.08);
}

.ps-pillar-col h4 i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(40, 65, 162, 0.1);
    color: var(--color-blue);
    font-size: 0.72rem;
    transition: all 0.35s ease;
}

.ps-pillar-col:last-child h4 i {
    background-color: rgba(40, 65, 162, 0.1);
    color: var(--color-blue);
}

.ps-pillar-col:hover h4 i {
    transform: scale(1.12);
}

/* List items become their own interactive mini-cards, laid out in a
   responsive grid so the now full-width box reads as a set of
   distinct, explorable points rather than one long list. */
.ps-pillar-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.6rem;
}

.ps-pillar-list li {
    position: relative;
    background-color: var(--color-white);
    border: 1px solid rgba(24, 38, 74, 0.06);
    border-radius: 10px;
    padding: 0.7rem 0.8rem 0.7rem 2.1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ps-pillar-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 0.72rem;
    left: 0.75rem;
    color: var(--color-blue);
    font-size: 0.85rem;
    line-height: 1;
}

/* Title sits on its own line; the explanatory text stacks
   underneath it rather than running inline beside it. */
.ps-pillar-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: justify;
}

.ps-pillar-item-body span {
    color: var(--color-gray);
    font-size: 0.82rem;
    line-height: 1.5;
}

.ps-pillar-list--benefits li::before {
    content: "\f201";
    color: var(--color-blue);
}

.ps-pillar-list li:hover {
    border-color: var(--color-blue);
    background-color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.ps-pillar-list--benefits li:hover {
    border-color: var(--color-blue);
}

.ps-pillar-list li strong {
    display: block;
    color: var(--color-navy);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .ps-pillar-timeline {
        grid-template-columns: 1fr;
    }
    .ps-pillar-panel { padding: 1.25rem; }
}

@media (max-width: 768px) {
    .ps-pillar-columns {
        flex-direction: column;
    }

    .ps-pillar-col {
        flex: 0 0 auto;
        width: 100%;
    }

    .ps-pillar-list {
        grid-template-columns: 1fr;
    }
}

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

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

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

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

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

.ps-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. */
.ps-cta-section .btn-solid-navy {
    background-color: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

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

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

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