/* ==========================================================================
   EQUIPMENT-FACILITIES.CSS
   Equipment + Facilities page only — Lisa short-banner hero + sq ft info
   ========================================================================== */

.page-equipment-facilities .slam-main {
    padding-bottom: 0;
    overflow-x: clip;
}

/* Hero height/fit: shared .page-service .slam-ihero in interior.css
   (Lisa short-banner aspect 2667/278). Building left → yellow/orange → red. */

/* --------------------------------------------------------------------------
   WHITE CONTENT — shared 72rem grid + global intro-arrow row
   -------------------------------------------------------------------------- */
.page-equipment-facilities .slam-equipment-section--top {
    padding-top: clamp(2.75rem, 4.8vw, 4rem);
    /* Equal to shared footer gap below closing (was clamp(4rem, 8vw, 6rem) ≈ 96px) */
    padding-bottom: var(--slam-footer-gap);
}

.page-equipment-facilities .slam-equipment-content {
    box-sizing: border-box;
    width: min(100%, var(--content-wide));
    max-width: var(--content-wide);
    margin-inline: auto;
}

.page-equipment-facilities .slam-equipment-section--top .slam-section-heading {
    /* Generous space before intro — spacing only; heading size stays global */
    margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* Spacing only — do not override shared arrow size/gap/alignment */
.page-equipment-facilities .slam-equipment-section--top .slam-intro-row {
    margin-bottom: clamp(0.85rem, 1.8vw, 1.15rem);
}

/*
 * Follow-on copy aligns with intro paragraph text (not the arrow).
 * Indent uses shared intro tokens so arrow + text stay in sync.
 */
.page-equipment-facilities .slam-equipment-follow {
    box-sizing: border-box;
    padding-left: calc(var(--intro-arrow-size) + var(--intro-arrow-gap));
    text-align: left;
}

.page-equipment-facilities .slam-equipment-lead {
    margin: 0;
    max-width: none;
    text-align: left;
}

.page-equipment-facilities .slam-equipment-benefits {
    margin: 0 0 clamp(1.15rem, 2.4vw, 1.65rem);
}

.page-equipment-facilities .slam-equipment-benefits .slam-block-title {
    color: var(--color-primary);
    margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.page-equipment-facilities .slam-equipment-benefits .slam-bullets {
    margin-top: 0;
    gap: 0.35rem;
}

.page-equipment-facilities .slam-equipment-benefits .slam-bullets li {
    color: var(--color-dark-700);
    font-weight: var(--weight-medium);
}

.page-equipment-facilities .slam-equipment-benefits .slam-bullets li::before {
    content: "";
    width: 0.35em;
    height: 0.35em;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: transparent;
    top: 0.55em;
}

.page-equipment-facilities .slam-equipment-catalog,
.page-equipment-facilities .slam-equipment-contact {
    margin: 0;
    max-width: none;
    text-align: left;
}

.page-equipment-facilities .slam-equipment-catalog {
    margin-bottom: clamp(0.85rem, 1.8vw, 1.15rem);
}

.page-equipment-facilities .slam-equipment-contact a {
    color: inherit;
    text-decoration: none;
}

.page-equipment-facilities .slam-equipment-contact a:hover,
.page-equipment-facilities .slam-equipment-contact a:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   GALLERY — before square-feet infographic
   Assets from equipment_new.pdf (matched to approved gallery strip).
   -------------------------------------------------------------------------- */
.page-equipment-facilities .slam-equipment-gallery {
    align-items: stretch;
    margin: 0;
    gap: 4px;
}

.page-equipment-facilities .slam-equipment-gallery .slam-gallery__cell {
    position: relative;
    /* Match approved strip proportions (~3:2 cells, not tall 4:3) */
    aspect-ratio: 3 / 2;
    background-color: var(--color-white);
    overflow: hidden;
}

.page-equipment-facilities .slam-equipment-gallery .slam-gallery__cell img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   SQ FT INFOGRAPHIC — Lisa short banner (2667×278) + HTML copy in yellow box
   Yellow fill (measured on source): x 1489–2386, y 38–242
     → left 55.83%, top 13.67%, width 33.67%, height 73.74%.
   “UP TO / 4,500 / SQ. FT. / PER RESTAURANT BUILD-OUT” is baked into the JPG.
   Do NOT recreate those in HTML. Keep paragraph inside yellow at all widths.
   Do NOT paint a second yellow background — the JPG already has it.
   ========================================================================== */

.page-equipment-facilities .slam-equipment-sqft {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    line-height: 0;
    background: none;
    background-color: transparent;

    container-type: inline-size;
    container-name: equip-sqft;
}

.page-equipment-facilities .slam-equipment-sqft__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

/*
 * Exactly the blank yellow rectangle in the JPG (percentage of image).
 * Always absolute over the image — never in normal flow below it.
 */
.page-equipment-facilities .slam-equipment-sqft__copy {
    position: absolute;
    left: 55.83%;
    top: 13.67%;
    z-index: 2;

    box-sizing: border-box;
    width: 33.67%;
    height: 73.74%;
    margin: 0;
    padding: 0;
    overflow: visible;
    pointer-events: none;
    line-height: normal;
    background: transparent;

    container-type: size;
    container-name: equip-sqft-yellow;
}

.page-equipment-facilities .slam-equipment-sqft__copy p {
    /*
     * Inset is % of the yellow-box overlay (this containing block).
     * Horizontally + vertically centered; clear of all yellow edges.
     */
    position: absolute;
    left: 6%;
    right: 6%;
    top: 7%;
    bottom: 7%;
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--color-primary);
    text-align: center;

    font-family: "Aptos Display", "Aptos", var(--font-heading);
    /* Fill yellow area; ~4–6 balanced lines on desktop */
    font-size: calc(clamp(0.72rem, min(4.85cqw, 14.8cqh), 1.2rem) * var(--callout-type-scale));
    font-weight: var(--weight-bold);
    line-height: 1.14;
    letter-spacing: 0.005em;
}

/* Tablet: stay over baked-in yellow; shrink type — never stack below */
@media (max-width: 1199px) {
    .page-equipment-facilities .slam-equipment-sqft__copy {
        position: absolute;
        left: 55.83%;
        top: 13.67%;
        width: 33.67%;
        height: 73.74%;
        background: transparent;
    }

    .page-equipment-facilities .slam-equipment-sqft__copy p {
        left: 5.5%;
        right: 5.5%;
        top: 6%;
        bottom: 6%;
        font-size: calc(clamp(0.28rem, min(4.2cqw, 13.5cqh), 0.95rem) * var(--callout-type-scale));
        line-height: 1.12;
    }
}

/* Mobile: tighter inset + smaller type so full paragraph stays in yellow */
@media (max-width: 767px) {
    .page-equipment-facilities .slam-equipment-sqft__copy {
        position: absolute;
        left: 55.83%;
        top: 13.67%;
        width: 33.67%;
        height: 73.74%;
        background: transparent;
    }

    .page-equipment-facilities .slam-equipment-sqft__copy p {
        left: 5%;
        right: 5%;
        top: 6%;
        bottom: 6%;
        font-size: calc(clamp(0.18rem, min(4.0cqw, 13cqh), 0.6rem) * var(--callout-type-scale));
        line-height: 1.08;
    }
}

/* --------------------------------------------------------------------------
   CLOSING — full-bleed dining band (matches equipment_new PDF)
   -------------------------------------------------------------------------- */
.page-equipment-facilities .slam-equipment-closing {
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
    background-color: #d8cfc4;
}

.page-equipment-facilities .slam-equipment-closing__img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .page-equipment-facilities .slam-equipment-section--top {
        padding-top: clamp(2rem, 6vw, 2.75rem);
        padding-bottom: var(--slam-footer-gap);
    }

    /* Keep follow copy aligned with intro paragraph (arrow stays beside text) */
    .page-equipment-facilities .slam-equipment-follow {
        padding-left: calc(var(--intro-arrow-size-mobile) + var(--intro-arrow-gap-mobile));
    }

    .page-equipment-facilities .slam-equipment-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-equipment-facilities .slam-equipment-gallery {
        grid-template-columns: 1fr;
    }
}
