/* ==========================================================================
   pages.css — RECONSTRUCTED
   The original root pages.css was deleted without a backup; the styles in
   this file rebuild everything the What-We-Do page family needs that is not
   already covered by main.css / components.css:
     .page-hero band · .intro--page · .split children · .module__title
     action buttons (.header-cta__action, .subnav__button) · .future panel
   Adjust freely to match the original design intent.
   ========================================================================== */

/* Intro (What-We-Do style intro — distinct from components.css's .intro) --- */
.intro--page {
    padding-block: clamp(48px, 6vw, 88px);
    background: var(--paper);
}

.intro__eyebrow {
    flex: none;
    width: 100%;
    max-width: 298px;
    padding-top: 0.375rem;
}

.intro__category {
    margin: 0;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Page hero band (What We Do landing) --------------------------------------
   Sits in the second grid row of .site-hero, like the homepage carousel. */
.page-hero {
    grid-column: 2 / -1;
    grid-row: 2;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: clamp(480px, 38vw, 700px);
    padding: clamp(3rem, 5vw, 5rem) clamp(24px, 4vw, 64px) clamp(3rem, 5vw, 5rem) var(--edge);
    overflow: hidden;
    isolation: isolate;
    background: var(--navy);
    color: var(--paper);
}

.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, center);
    opacity: 0.82;
}

.page-hero__content {
    position: relative;
    max-width: 62rem;
}

.page-hero__kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    color: rgba(241, 241, 242, 0.76);
    font-size: 13.2px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-hero__kicker::before {
    content: "";
    width: 38px;
    height: 1px;
    background: var(--sky);
}

.page-hero__title {
    margin: 0;
    font: 400 clamp(2.8rem, 6vw, 5.5rem)/1.05 var(--font-serif);
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.page-hero__title em {
    font-style: normal;
    color: var(--sky);
}

.page-hero__lede {
    max-width: 56ch;
    margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
    color: var(--on-dark);
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    line-height: 1.6;
}

.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* Shared action buttons -----------------------------------------------------
   .header-cta__action — dark translucent hero/panel contexts (white outline)
   .subnav__button     — the light dropdown panel (navy outline)            */
.header-cta__action,
.subnav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid rgba(241, 241, 242, 0.48);
    background: transparent;
    color: var(--paper);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.header-cta__action:hover,
.header-cta__action:focus-visible {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--navy);
}

.subnav__button {
    border-color: var(--navy);
    color: var(--navy);
}

.subnav__button:hover,
.subnav__button:focus-visible {
    background: var(--navy);
    color: var(--paper);
}

/* Module heading ----------------------------------------------------------- */
.module__title {
    max-width: 56rem;
    margin: 0;
    color: var(--navy);
    font: 400 clamp(2rem, 3.6vw, 3.5rem)/1.08 var(--font-serif);
    letter-spacing: -0.025em;
    text-wrap: balance;
}

/* Split storytelling children ---------------------------------------------- */
.split__media img {
    width: 100%;
    object-fit: cover;
    object-position: center top;
    box-shadow: var(--shadow-card);
}

.split__body {
    display: grid;
    gap: clamp(1rem, 2vw, 1.75rem);
    padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
    border-top: 2px solid var(--navy);
}

.split__kicker {
    margin: 0;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.split__title {
    margin: 0;
    color: var(--navy);
    font: 400 clamp(1.9rem, 3.2vw, 3rem)/1.08 var(--font-serif);
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.split__text {
    margin: 0;
    max-width: 56ch;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Future closing panel ------------------------------------------------------ */
.future {
    position: relative;
    padding: clamp(64px, 7vw, 112px) 0;
    background: var(--navy);
    color: var(--paper);
    overflow: hidden;
}

.future__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
}

.future__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.future__panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 60rem;
    padding-left: var(--edge);
    padding-right: var(--gutter);
}

.future__kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    color: rgba(241, 241, 242, 0.76);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.future__kicker::before {
    content: "";
    width: 38px;
    height: 1px;
    background: var(--sky);
}

.future__title {
    margin: 0;
    font: 400 clamp(2.4rem, 4.6vw, 4rem)/1.05 var(--font-serif);
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.future__text {
    max-width: 56ch;
    margin: 0;
    color: var(--on-dark);
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    line-height: 1.65;
}

.future__tagline {
    margin: 0;
    color: rgba(241, 241, 242, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 700px) {
    .page-hero {
        flex-direction: column-reverse;
        align-items: stretch;
        min-height: 0;
        padding: 0;
    }

    .page-hero__media {
        position: relative;
        inset: auto;
        z-index: 0;
        width: 100%;
        height: clamp(240px, 52vw, 420px);
    }

    .page-hero__media img {
        height: 100%;
        opacity: 1;
    }

    .page-hero__content {
        padding: 2rem 1.25rem 2.5rem;
    }

    .intro__eyebrow {
        max-width: none;
        padding-top: 0;
    }

    .split__body {
        border-left: 0;
        padding-left: 0;
    }
}
