/**
 * Infrastructure page — lean layout: homepage-aligned rhythm, minimal motion, no band chrome.
 * Requires body.infra-page--lean (loaded after infrastructure-page.css).
 */

/* —— Page shell —— */
.page-infrastructure.infra-page--lean .main-content {
    background: var(--color-bg, #f7fbfc);
}

/* Tighter vertical rhythm than global story-journey sections */
.page-infrastructure.infra-page--lean {
    --story-space-y: clamp(2.1rem, 4vw, 3.1rem);
}

/* —— Bridge first section to cinematic hero (matches story-journey home pattern) —— */
.page-infrastructure.infra-page--lean .infra-hero + .infra-hero-bridge + .section.story-band--after-hero {
    position: relative;
    margin-top: -1.75rem;
    padding-top: calc(var(--story-space-y) + 0.35rem);
    border-radius: clamp(18px, 3.5vw, 26px) clamp(18px, 3.5vw, 26px) 0 0;
    box-shadow: 0 -8px 36px rgba(var(--rgb-teal-deep), 0.1);
    z-index: 2;
}

.page-infrastructure.infra-page--lean .infra-hero + .infra-hero-bridge + .section.story-band--after-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--rgb-teal-bright), 0.4),
        rgba(var(--rgb-green), 0.3),
        transparent
    );
    border-radius: inherit;
    opacity: 0.75;
}

/* —— Hero: calmer motion, lighter blueprint —— */
.page-infrastructure.infra-page--lean .infra-hero__media {
    animation: none;
}

@media (prefers-reduced-motion: no-preference) {
    .page-infrastructure.infra-page--lean .infra-hero__img {
        animation: infra-hero-focus 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
}

.page-infrastructure.infra-page--lean .infra-hero__glow-sheet {
    animation: none;
    opacity: 0.38;
}

.page-infrastructure.infra-page--lean .infra-hero__bp-path {
    animation: none;
}

.page-infrastructure.infra-page--lean .infra-hero__panel-media {
    animation: none;
}

/* —— Services: drop section grid overlay from pro theme —— */
.page-infrastructure.infra-page--lean .main-content .section.infra-services--pro::before {
    display: none;
}

.page-infrastructure.infra-page--lean .infra-services__header--pro .section__title {
    color: var(--text-heading);
}

.page-infrastructure.infra-page--lean .infra-services__header--pro .section__intro {
    color: rgba(15, 56, 62, 0.68);
}

/* —— Projects: flat container (no glass card) —— */
.page-infrastructure.infra-page--lean .infra-projects > .container {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding-left: var(--container-padding, 1.25rem);
    padding-right: var(--container-padding, 1.25rem);
}

.page-infrastructure.infra-page--lean .infra-projects .section__title {
    color: var(--text-heading);
}

.page-infrastructure.infra-page--lean .infra-projects .section__intro {
    color: rgba(15, 56, 62, 0.68);
    max-width: 40rem;
}

@media (hover: hover) and (pointer: fine) {
    .page-infrastructure.infra-page--lean .infra-project-card:hover .infra-project-card__img {
        transform: scale(1.04);
    }

    .page-infrastructure.infra-page--lean .infra-project-card:hover {
        transform: translateY(-4px);
        box-shadow:
            0 16px 40px rgba(var(--rgb-teal-deep), 0.12),
            0 0 0 1px rgba(var(--rgb-teal-deep), 0.08);
    }
}

/* —— Process: horizontal flow from tablet up —— */
@media (min-width: 768px) {
    .page-infrastructure.infra-page--lean .infra-process--stream {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        position: relative;
        padding-top: 0.5rem;
        grid-template-columns: unset;
    }

    .page-infrastructure.infra-page--lean .infra-process--stream::before {
        content: "";
        position: absolute;
        top: 2.65rem;
        left: 5%;
        right: 5%;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(
            90deg,
            rgba(var(--rgb-teal-bright), 0.15),
            rgba(var(--rgb-teal-bright), 0.45),
            rgba(var(--rgb-green), 0.35),
            rgba(var(--rgb-teal-bright), 0.15)
        );
        z-index: 0;
        pointer-events: none;
    }

    .page-infrastructure.infra-page--lean .infra-process--stream .infra-process__step {
        flex: 1;
        position: relative;
        z-index: 1;
        margin: 0 0.3rem;
        min-width: 0;
    }
}

@media (hover: hover) and (pointer: fine) {
    .page-infrastructure.infra-page--lean .infra-process--stream .infra-process__step:hover {
        transform: translateY(-3px);
    }
}

/* —— Closing CTA —— */
.page-infrastructure.infra-page--lean .infra-final-cta__header {
    max-width: 44rem;
    margin-left: auto;
    margin-right: auto;
}

.page-infrastructure.infra-page--lean .infra-final-cta__header .section__title {
    color: var(--text-heading);
}

.page-infrastructure.infra-page--lean .infra-final-cta__header .section__intro {
    margin-left: auto;
    margin-right: auto;
    color: rgba(15, 56, 62, 0.72);
    line-height: 1.72;
}

.page-infrastructure.infra-page--lean .infra-final-cta__action {
    margin: clamp(1rem, 3vw, 1.5rem) 0 0;
}

.page-infrastructure.infra-page--lean .infra-projects__header {
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.page-infrastructure.infra-page--lean .main-content .section .section__header {
    margin-bottom: clamp(1rem, 2.2vw, 1.45rem);
}

.page-infrastructure.infra-page--lean .infra-services__header--pro {
    margin-bottom: clamp(1.05rem, 2.4vw, 1.5rem);
}

.page-infrastructure.infra-page--lean .infra-hero {
    min-height: min(78vh, 720px);
}
