/* ==========================================================================
   Elmsdale Aggregates – interior.css
   Sections used only on interior pages. Loads after site.css.
   ========================================================================== */

/* SECTION: page header (breadcrumb, h1, intro, optional buttons) */
.section-page-header { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 475px; background: var(--ea-ink); color: #FFFFFF; }
.section-page-header .header-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 55%; opacity: 0.15; pointer-events: none; }
.section-page-header .container { position: relative; width: 100%; }
.section-page-header .header-inner { padding: 48px 0; max-width: 780px; }
.section-page-header .breadcrumb { margin-bottom: 18px; font-size: 15px; }
.section-page-header .breadcrumb a { color: var(--ea-accent); }
.section-page-header .breadcrumb-item.active,
.section-page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--ea-on-dark-muted); }
.section-page-header .lead { color: #ECEAE5; }
.section-page-header .btn-group-ea { margin-top: 28px; }
.section-page-header .header-phone { margin-top: 20px; font-size: 20px; font-weight: 600; }
.section-page-header .header-phone a { color: var(--ea-accent); }

/* SECTION: 2 column table + photo (product details) */
.section-2col-table-media .row { align-items: stretch; }
.section-2col-table-media .media-col { position: relative; min-height: 360px; }
.section-2col-table-media .media-img { position: absolute; top: 0; bottom: 0; left: calc(var(--bs-gutter-x) * 0.5); width: calc(100% - var(--bs-gutter-x)); height: 100%; object-fit: cover; border-radius: var(--radius-lg); display: block; }

/* SECTION: 2 column text + FAQ (Bootstrap accordion) */
.section-2col-text-faq .btn-group-ea { margin-top: 28px; }
.section-2col-text-faq .accordion-item { border-color: var(--ea-line); }
.section-2col-text-faq .accordion-button { font-family: var(--font-body); font-weight: 600; font-size: 17px; color: var(--ea-ink); padding: 20px 24px; }
.section-2col-text-faq .accordion-button:not(.collapsed) { background: var(--ea-surface); color: var(--ea-ink); box-shadow: inset 0 -1px 0 var(--ea-line); }
.section-2col-text-faq .accordion-body { padding: 18px 24px 24px; }
.section-2col-text-faq .accordion-body p { color: var(--ea-muted); }

/* SECTION: 1 column form */
.section-2col-form .form-panel { background: var(--ea-surface); border: 1px solid var(--ea-line); border-radius: var(--radius-lg); padding: 40px; }
.section-2col-form .form-label { font-weight: 600; font-size: 15px; }
.section-2col-form .form-control,
.section-2col-form .form-select { min-height: 48px; border: 1.5px solid #C9C5BD; border-radius: var(--radius); font-size: 16px; }
.section-2col-form .form-control:focus,
.section-2col-form .form-select:focus { border-color: var(--ea-ink); box-shadow: 0 0 0 3px rgba(255, 189, 89, 0.55); }
.section-2col-form .form-help { margin: 20px 0 24px; font-size: 15px; color: var(--ea-muted); }
/* CMS form builder markup (QuoteForm content) */
.section-2col-form .cms-form { row-gap: 8px; }
.section-2col-form .cms-form-label { font-weight: 600; font-size: 15px; margin-bottom: 0.5rem; }
.section-2col-form .cms-form .form-help { margin: 4px 0 0; }
.section-2col-form .cms-field-submit { background: var(--ea-accent); border-color: var(--ea-accent); color: var(--ea-ink); font-weight: 700; }
.section-2col-form .cms-field-submit:hover,
.section-2col-form .cms-field-submit:focus { background: var(--ea-accent-hover); border-color: var(--ea-accent-hover); color: var(--ea-ink); }
/* Quote line items (built by site.js in place of the CMS Product / Order code / Quantity fields) */
.section-2col-form .quote-item + .quote-item { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ea-line); }
.section-2col-form .quote-item-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.section-2col-form .quote-item-title { font-weight: 700; font-size: 15px; }
.section-2col-form .quote-remove { background: none; border: 0; padding: 0; font-size: 14px; color: var(--ea-muted); text-decoration: underline; }
.section-2col-form .quote-remove:hover { color: var(--ea-ink); }
.section-2col-form .quote-add { margin-top: 16px; }
.section-2col-form .quote-add::before { content: "+"; margin-right: 0.4em; font-weight: 700; }
.section-2col-form .form-select:disabled { background-color: var(--ea-ground); }

/* Responsive – same breakpoints as site.css
   ≥1400 xxl | ≤1199.98 lg | ≤991.98 md | ≤767.98 sm | ≤575.98 xs | ≤374.98 xxs */

@media (max-width: 1366px) {
    .section-page-header {
        min-height: 450px;
    }
}

@media (max-width: 1199.98px) {
    .section-page-header {
        min-height: 400px;
    }

        .section-page-header .header-inner {
            padding: 30px 0;
            max-width: 700px;
        }
}

    @media (max-width: 991.98px) {
        .section-2col-text-faq .faq-col {
            margin-top: 24px;
        }

        .section-2col-table-media .media-col {
            min-height: 0;
        }

            .section-2col-table-media .media-col img {
                margin-top:30px;
            }

            .section-2col-table-media .media-img {
                position: static;
                width: 100%;
                height: 380px;
            }

        .section-page-header {
            min-height: 375px;
        }

            .section-page-header .header-inner {
                padding: 20px 0;
                max-width: 600px;
            }

        .section-2col-form .form-panel {
            padding: 32px;
        }
    }

    @media (max-width: 767.98px) {
        .section-2col-table-media .media-img {
            height: 320px;
        }

        .section-page-header .header-bg {
            object-position: 75% 55%;
        }

        .section-page-header {
            min-height: 100%;
            max-height: 100%;
            height: 100%;
        }

            .section-page-header .header-inner {
                padding: 40px 0;
                max-width: 100%;
            }

        .section-2col-table-media .media-col img {
            margin-top: 15px;
        }

            .section-page-header .header-phone {
                font-size: 18px;
            }

        .section-2col-text-faq .accordion-button {
            padding: 18px 20px;
            font-size: 16px;
        }

        .section-2col-text-faq .btn-group-ea {
            margin-top: 24px;
        }

        .section-2col-text-faq .accordion-body {
            padding: 16px 20px 20px;
        }

        .section-2col-form .form-panel {
            padding: 24px;
        }
    }

    @media (max-width: 575.98px) {
        .section-2col-text-faq .faq-col {
            margin-top: 16px;
        }

        .section-2col-table-media .media-img {
            height: 260px;
        }

        .section-page-header {
            min-height: 100%;
            max-height: 100%;
            height: 100%;
        }

            .section-page-header .header-inner {
                padding: 40px 0 50px 0;
            }

            .section-page-header .breadcrumb {
                font-size: 14px;
                margin-bottom: 14px;
            }

        .section-2col-text-faq .accordion-button {
            padding: 15px 20px;
        }

        .section-2col-text-faq .accordion-body {
            padding: 14px 16px 18px;
        }


        .section-2col-form .btn {
            width: 100%;
        }
    }

    @media (max-width: 374.98px) {
        .section-2col-table-media .media-img {
            height: 220px;
        }

        .section-page-header {
            min-height: 100%;
            max-height: 100%;
            height: 100%;
        }

        .section-2col-form .form-label {
            font-size: 14px;
        }
    }
