/**
 * Facilities / Infrastructure page — power layout + interactive explorer
 */

body.page-infrastructure {
    background: #eef6f0;
}

body.page-infrastructure main#infra-main {
    flex-grow: 0;
    position: relative;
    z-index: 10;
    padding-top: 0 !important;
    padding-bottom: 24px;
    margin-top: 0;
}

body.page-infrastructure .js-interactive-reveal-target {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* —— Hero —— */
.infra-hero.infra-hero--power {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: calc(var(--site-fixed-header-offset, 120px) + clamp(12px, 2vw, 20px)) clamp(16px, 4vw, 32px) clamp(56px, 9vw, 72px);
    border-bottom: 4px solid var(--primary-green, #007305);
    overflow: hidden;
}

.infra-hero.infra-hero--power::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, #003d03 0%, #004b04 48%, #002a02 100%);
    z-index: 0;
}

.infra-hero.infra-hero--power::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(0, 22, 8, 0.88) 0%, rgba(0, 48, 14, 0.78) 50%, rgba(0, 12, 4, 0.92) 100%);
    z-index: 1;
}

.infra-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    padding-inline: clamp(12px, 4vw, 24px);
    box-sizing: border-box;
}

.infra-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    margin-bottom: 16px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ecfdf5;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(167, 243, 208, 0.45);
}

.infra-hero-badge i {
    color: #fbbf24;
}

body.page-infrastructure .infra-hero-title {
    text-wrap: balance;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.35em !important;
    text-align: center !important;
}

body.page-infrastructure .infra-hero-title .programs-title-line:not(.programs-title-line--sub) {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    line-height: 1.15 !important;
}

body.page-infrastructure .infra-hero-title .programs-title-line--sub {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: clamp(0.95rem, 1.8vw + 0.35rem, 1.2rem) !important;
    font-weight: 500 !important;
    color: #86efac !important;
    -webkit-text-fill-color: #86efac !important;
    letter-spacing: 0.02em !important;
    line-height: 1.4 !important;
    margin-top: 0 !important;
}

.infra-hero-hook {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.12rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    margin: 14px auto 0;
}

.infra-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 22px;
}

.infra-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.infra-hero-meta i {
    color: #86efac;
}

.infra-hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.infra-hero-cta .btn {
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.infra-hero-cta .btn-primary {
    background: var(--primary-green, #007305);
    color: #fff;
    border: 1px solid var(--primary-green, #007305);
}

.infra-hero-cta .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* —— Stats —— */
body.page-infrastructure .infra-power-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: clamp(12px, 3vw, 20px) auto clamp(12px, 3vw, 20px);
    max-width: 960px;
    position: relative;
    z-index: 12;
    padding-inline: clamp(12px, 4vw, 20px);
    box-sizing: border-box;
}

body.page-infrastructure .infra-power-stat {
    text-align: center;
    padding: 18px 12px;
    border-radius: 14px;
    background: linear-gradient(165deg, #004b04 0%, #007305 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0, 75, 4, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.page-infrastructure .infra-power-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 75, 4, 0.24);
}

body.page-infrastructure .infra-power-stat__num {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

body.page-infrastructure .infra-power-stat__lbl {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

body.page-infrastructure main > section[id^="infra-"] {
    scroll-margin-top: calc(var(--site-fixed-header-offset, 72px) + 12px);
}

body.page-infrastructure main > section.content-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px 20px;
    border: 1px solid rgba(0, 115, 5, 0.07);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin-bottom: 12px;
}

body.page-infrastructure .section-eyebrow,
html.ha-unified body.page-infrastructure main .section-eyebrow {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
}

body.page-infrastructure .section-title {
    font-size: clamp(1.45rem, 3vw, 2rem) !important;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    line-height: 1.25 !important;
    text-wrap: pretty;
}

body.page-infrastructure #infra-units > .section-title {
    margin-top: 0;
    padding-top: 0;
}

body.page-infrastructure .section-power-lead {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.08rem);
    line-height: 1.65;
    color: var(--text-light, #525a54);
    margin-bottom: 14px;
}

body.page-infrastructure .section-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-main, #1a1f1b);
}

body.page-infrastructure .section-text p + p {
    margin-top: 12px;
}

/* —— Why grid —— */
.infra-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.infra-why-card {
    text-align: center;
    padding: 20px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f6fbf7 0%, #fff 100%);
    border: 1px solid rgba(0, 115, 5, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.infra-why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 75, 4, 0.08);
}

.infra-why-card i {
    font-size: 1.6rem;
    color: var(--primary-green, #007305);
    margin-bottom: 10px;
}

.infra-why-card strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--dark-green, #004b04);
    line-height: 1.4;
}

.infra-why-card span {
    display: block;
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--text-light, #525a54);
    line-height: 1.5;
}

/* —— Unit filter —— */
.infra-unit-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.infra-unit-filter button {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 115, 5, 0.22);
    background: #fff;
    color: var(--dark-green, #004b04);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.infra-unit-filter button:hover,
.infra-unit-filter button:focus-visible {
    background: #f0fdf4;
    border-color: var(--primary-green, #007305);
}

.infra-unit-filter button.is-active {
    background: var(--primary-green, #007305);
    border-color: var(--primary-green, #007305);
    color: #fff;
}

/* —— Facility power cards —— */
.infra-facility-power {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 115, 5, 0.1);
    margin-bottom: 16px;
    background: #fff;
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.infra-facility-power.is-dimmed {
    opacity: 0.38;
    transform: scale(0.985);
}

.infra-facility-power.is-highlight {
    box-shadow: 0 16px 40px rgba(0, 75, 4, 0.12);
    border-color: rgba(0, 115, 5, 0.28);
}

.infra-facility-power--reverse {
    direction: rtl;
}

.infra-facility-power--reverse > * {
    direction: ltr;
}

.infra-facility-power__media {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
}

.infra-facility-power__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 30, 10, 0.35) 100%);
}

.infra-facility-power__body {
    position: relative;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
}

.infra-facility-power__tag {
    display: inline-block;
    width: fit-content;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 75, 4, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.infra-facility-power__media .infra-facility-power__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    margin: 0;
}

.infra-facility-power__body h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.65rem) !important;
    margin-bottom: 8px;
}

.infra-facility-power__lead {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-green, #004b04);
    margin-bottom: 12px;
}

.infra-skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.infra-skill-pills span {
    padding: 6px 12px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dark-green, #004b04);
    background: #ecfdf5;
    border: 1px solid rgba(0, 115, 5, 0.15);
}

.infra-facility-acc {
    border-top: 1px solid rgba(0, 115, 5, 0.1);
    margin-top: auto;
}

.infra-facility-acc .acc-item {
    border-bottom: 1px solid rgba(0, 115, 5, 0.08);
}

.infra-facility-acc .acc-item:last-child {
    border-bottom: none;
}

.infra-facility-acc .acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-green, #004b04);
    text-align: left;
}

.infra-facility-acc .acc-header i {
    transition: transform 0.25s ease;
    color: var(--primary-green, #007305);
}

.infra-facility-acc .acc-item.active .acc-header i {
    transform: rotate(180deg);
}

.infra-facility-acc .acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.infra-facility-acc .acc-item.active .acc-body {
    max-height: 320px;
}

.infra-facility-acc .acc-content {
    padding: 0 0 14px;
}

.infra-facility-acc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.infra-facility-acc li {
    position: relative;
    padding-left: 22px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-main, #1a1f1b);
}

.infra-facility-acc li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-green, #007305);
    font-size: 0.75rem;
}

/* —— Compare table —— */
.infra-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 12px;
}

.infra-compare-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

@media (min-width: 641px) {
    .infra-compare-table {
        min-width: 520px;
    }
}

.infra-compare-table th,
.infra-compare-table td {
    padding: 12px 14px;
    border: 1px solid rgba(0, 115, 5, 0.12);
    text-align: center;
}

.infra-compare-table th {
    background: linear-gradient(165deg, #004b04 0%, #007305 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

body.page-infrastructure .infra-compare-table th:not(:first-child),
html.ha-unified .infra-compare-table th:not(:first-child) {
    color: #ffffff !important;
    -webkit-text-fill-color: currentColor !important;
    background: linear-gradient(165deg, #004b04 0%, #007305 100%) !important;
}

.infra-compare-table th:first-child,
.infra-compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--dark-green, #004b04);
    background: #f6fbf7;
}

.infra-compare-table td .fa-check {
    color: var(--primary-green, #007305);
}

.infra-compare-table td .fa-minus {
    color: #cbd5e1;
}

.infra-closure-band {
    margin-top: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark-green, #004b04);
    background: linear-gradient(180deg, #ecfdf5 0%, #f6fbf7 100%);
    border: 1px solid rgba(0, 115, 5, 0.12);
}

.infra-closure-band i {
    color: var(--primary-green, #007305);
    margin-right: 8px;
}

/* —— CTA —— */
body.page-infrastructure .infra-power-cta {
    text-align: center;
    background: var(--dark-green, #004b04) !important;
    color: #fff;
    padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 28px) !important;
    border: none !important;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 75, 4, 0.2);
    margin-bottom: 12px;
}

body.page-infrastructure .infra-power-cta h2 {
    color: #fff !important;
    -webkit-text-fill-color: currentColor !important;
    margin-bottom: 10px;
}

body.page-infrastructure .infra-power-cta .section-text,
body.page-infrastructure .infra-power-cta .section-power-lead {
    color: rgba(255, 255, 255, 0.92) !important;
    -webkit-text-fill-color: currentColor !important;
    max-width: 36rem;
    margin: 0 auto 18px;
}

body.page-infrastructure .infra-power-cta .btn-primary {
    background: #fff !important;
    color: var(--dark-green, #004b04) !important;
    border-color: #fff !important;
}

body.page-infrastructure .infra-power-cta .btn-outline {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
}

body.page-infrastructure .infra-power-cta .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

body.page-infrastructure .infra-power-cta .btn {
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.page-infrastructure .infra-power-cta__tagline {
    display: block;
    margin-top: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65) !important;
    -webkit-text-fill-color: currentColor !important;
}

/* —— Page-wide text visibility (light cards + dark CTA band) —— */
body.page-infrastructure main#infra-main {
    color: #1a1f1b;
}

body.page-infrastructure main > section.content-card,
body.page-infrastructure main .content-card {
    background: #fff !important;
    color: #1a1f1b;
}

body.page-infrastructure main .section-title,
body.page-infrastructure main h2.section-title,
body.page-infrastructure main h3.serif-text,
body.page-infrastructure main .infra-facility-power__body h3 {
    color: #004b04 !important;
    -webkit-text-fill-color: currentColor !important;
}

body.page-infrastructure main .section-eyebrow {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
}

body.page-infrastructure main .section-power-lead,
body.page-infrastructure main .section-text,
body.page-infrastructure main .section-text p,
body.page-infrastructure main .infra-facility-power__lead,
body.page-infrastructure main .infra-facility-acc li,
body.page-infrastructure main .infra-why-card span,
body.page-infrastructure main .infra-closure-band {
    color: #3d4a42 !important;
    -webkit-text-fill-color: currentColor !important;
}

body.page-infrastructure main .infra-why-card strong,
body.page-infrastructure main .infra-closure-band {
    color: #004b04 !important;
    -webkit-text-fill-color: currentColor !important;
}

body.page-infrastructure main .infra-power-stat,
body.page-infrastructure main .infra-power-stat__num,
body.page-infrastructure main .infra-power-stat__lbl {
    color: #ffffff !important;
    -webkit-text-fill-color: currentColor !important;
}

body.page-infrastructure main > section.infra-power-cta,
body.page-infrastructure main > section#infra-visit {
    background: var(--dark-green, #004b04) !important;
    border: none !important;
    box-shadow: 0 14px 40px rgba(0, 75, 4, 0.2);
    color: #fff !important;
}

body.page-infrastructure main > section.infra-power-cta h2,
body.page-infrastructure .infra-power-cta h2 {
    color: #fff !important;
    -webkit-text-fill-color: currentColor !important;
}

body.page-infrastructure main > section.infra-power-cta .section-text,
body.page-infrastructure main > section.infra-power-cta p,
body.page-infrastructure .infra-power-cta .section-text {
    color: rgba(255, 255, 255, 0.92) !important;
    -webkit-text-fill-color: currentColor !important;
}

body.page-infrastructure .infra-power-cta .btn-primary {
    -webkit-text-fill-color: currentColor !important;
}

body.page-infrastructure .infra-power-cta .btn-outline {
    -webkit-text-fill-color: currentColor !important;
}

body.page-infrastructure main .section-text a:not(.btn) {
    color: var(--primary-green, #007305) !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    body.page-infrastructure .infra-power-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .infra-why-grid {
        grid-template-columns: 1fr;
    }

    .infra-facility-power,
    .infra-facility-power--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

@media (max-width: 768px) {

    body.page-infrastructure .infra-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    body.page-infrastructure .infra-hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    body.page-infrastructure .infra-unit-filter {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        gap: 8px;
    }

    body.page-infrastructure .infra-unit-filter button {
        flex: 0 1 auto;
    }

    body.page-infrastructure #infra-units > .section-title {
        font-size: clamp(1.28rem, 5.2vw, 1.55rem) !important;
        padding-right: 4px;
    }
}
