/* Extracted verbatim from the approved design (cjps/facility-assembly-hall.html). Theme additions are marked. */

/* ── INTERIOR PAGE HERO ─────────────────────────── */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroDrift 24s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroDrift {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.14);
    }
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(6, 14, 28, 0.62) 0%,
            rgba(6, 14, 28, 0.55) 45%,
            rgba(6, 14, 28, 0.92) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 48px 72px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 22px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .sep {
    color: rgba(201, 168, 76, 0.6);
}

.breadcrumb .current {
    color: var(--gold);
}

.page-hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.page-hero-eyebrow::before {
    content: '';
    width: 36px;
    height: 2px;
    background: var(--gold);
}

.page-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 5.6vw, 70px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.06;
}

/* ── FACILITY LAYOUT ────────────────────────────── */
.facility-section {
    background: var(--white);
}

.facility-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
    align-items: start;
}

.facility-figure {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    background: var(--stone);
    box-shadow: 0 20px 56px rgba(10, 22, 40, 0.14);
}

.facility-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.facility-body {
    font-size: 16px;
    line-height: 1.95;
    color: var(--muted);
    margin-bottom: 20px;
}

.facility-body strong {
    color: var(--navy);
    font-weight: 600;
}

/* Highlight list — raised boxes, matching the stat cards on the listing */
.facility-points {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 36px 0 48px;
}

.facility-points li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 86px;
    background: linear-gradient(158deg, var(--white) 0%, var(--stone) 100%);
    border: 1px solid var(--stone-border);
    border-radius: 14px;
    padding: 20px 22px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--navy);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 1px 2px rgba(10, 22, 40, 0.05),
        0 6px 14px rgba(10, 22, 40, 0.07),
        0 16px 32px rgba(10, 22, 40, 0.07);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.facility-points li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 3px;
    background: var(--gold);
}

.facility-points li:hover {
    transform: translateY(-5px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 4px rgba(10, 22, 40, 0.06),
        0 12px 24px rgba(10, 22, 40, 0.1),
        0 28px 52px rgba(10, 22, 40, 0.1);
}

.facility-points .tick {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.facility-points svg {
    width: 15px;
    height: 15px;
    color: var(--gold);
}

.facility-figure-sm {
    border-radius: 12px;
    overflow: hidden;
    background: var(--stone);
}

.facility-figure-sm img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.facility-caption {
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 12px;
}

/* ── SIDEBAR ────────────────────────────────────── */
.facility-side {
    position: sticky;
    top: 104px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card {
    background: var(--offwhite);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px 24px;
}

.side-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.side-list {
    list-style: none;
    counter-reset: fac;
}

.side-list li {
    counter-increment: fac;
    border-bottom: 1px solid var(--border);
}

.side-list li:last-child {
    border-bottom: none;
}

.side-list a,
.side-list span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    font-size: 13.5px;
    color: var(--muted);
    transition: color 0.2s, padding-left 0.2s;
}

.side-list a::before,
.side-list span::before {
    content: '0' counter(fac);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--stone-border);
}

.side-list a:hover {
    color: var(--navy);
    padding-left: 5px;
}

.side-list .is-current span {
    color: var(--navy);
    font-weight: 600;
}

.side-list .is-current span::before {
    color: var(--gold);
}

/* Next-facility card */
.next-card {
    border: 1px solid var(--stone-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--stone);
}

.next-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.next-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.next-card:hover .next-media img {
    transform: scale(1.06);
}

.next-body {
    padding: 20px 22px 22px;
}

.next-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 7px;
}

.next-name {
    font-family: 'Playfair Display', serif;
    font-size: 21px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
}

.next-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--navy-deep);
    background: var(--gold);
    border: 2px solid var(--gold);
    padding: 12px 22px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: gap 0.25s, background 0.25s, color 0.25s;
}

.next-btn:hover {
    background: transparent;
    color: var(--gold);
    gap: 15px;
}

.next-btn svg {
    width: 15px;
    height: 15px;
}

/* ── BOTTOM PAGER ───────────────────────────────── */
.facility-pager {
    background: var(--offwhite);
    border-top: 1px solid var(--border);
    padding: 34px 48px;
}

.pager-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pager-link {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 42%;
    transition: gap 0.25s;
}

.pager-link:hover {
    gap: 20px;
}

.pager-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--stone-border);
    background: var(--white);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.pager-link:hover .pager-arrow {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-deep);
}

.pager-arrow svg {
    width: 17px;
    height: 17px;
}

.pager-lbl {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px;
}

.pager-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    transition: color 0.2s;
}

.pager-link:hover .pager-name {
    color: var(--gold);
}

.pager-next {
    text-align: right;
    flex-direction: row-reverse;
}

.pager-all {
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 3px;
    white-space: nowrap;
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
    .page-hero-content {
        padding: 0 40px 60px;
    }

    .facility-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .facility-side {
        position: static;
    }

    .facility-pager {
        padding: 28px 40px;
    }
}

@media (max-width: 640px) {
    .page-hero {
        min-height: 44vh;
    }

    .page-hero-content {
        padding: 0 24px 40px;
    }

    .page-hero-bg img {
        animation: none;
    }

    .breadcrumb {
        font-size: 9px;
        letter-spacing: 0.8px;
        gap: 6px;
        margin-bottom: 14px;
    }

    .page-hero-eyebrow {
        font-size: 9px;
        letter-spacing: 2.5px;
        margin-bottom: 12px;
    }

    .page-hero-title {
        font-size: clamp(30px, 9vw, 40px);
    }

    .facility-figure {
        margin-bottom: 28px;
    }

    .facility-body {
        font-size: 15px;
        line-height: 1.85;
    }

    .facility-points {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 28px 0 36px;
    }

    .facility-points li {
        min-height: 0;
        padding: 16px 18px;
        border-radius: 12px;
    }

    /* No hover lift on touch — avoids a stuck raised state */
    .facility-points li:hover {
        transform: none;
    }

    .facility-pager {
        padding: 24px;
    }

    .pager-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .pager-link {
        max-width: 100%;
        justify-content: flex-start;
    }

    .pager-next {
        flex-direction: row;
        text-align: left;
    }

    .pager-all {
        text-align: center;
        order: 3;
        align-self: center;
    }

    .next-card:hover .next-media img {
        transform: none;
    }
}

/* Theme addition: the facility description comes from the post editor */
.facility-content p {
    font-size: 16px;
    line-height: 1.95;
    color: var(--muted);
    margin-bottom: 20px;
}

.facility-content strong {
    color: var(--navy);
    font-weight: 600;
}

@media (max-width: 640px) {
    .facility-content p {
        font-size: 15px;
        line-height: 1.85;
    }
}

/* Theme addition: the design's '0' counter(fac) shows "010" past nine items; pad to two digits instead */
.side-list a::before,
.side-list span::before {
    content: counter(fac, decimal-leading-zero);
}

/* Theme addition: the facility's gallery images (JSL Facilities plugin), after the page's own images */
.facility-gallery {
    margin-top: 48px;
}
