/* =========================================================
   TABLET LAYER
   Loaded after every page stylesheet (before mobile-menu.css).
   Two ranges in between the existing phone + desktop designs:

     PORTRAIT  768px – 991px   (iPad mini / Air / 11" portrait)
     LANDSCAPE 992px – 1199px  (iPad landscape, small laptops)

   Phones (< 768px) and desktop (>= 1200px) are untouched.
========================================================= */


/* ---------------------------------------------------------
   1. HOME — value points bar under the hero (4 items)
   was: 3 + 1 orphan at ~1024px, cramped single column ~768px
--------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .trust-bar-section {
        margin-left: 20px;
        margin-right: 20px;
        padding: 30px 32px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .trust-bar-section {
        flex-direction: row;
    }
    .trust-bar-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 36px;
    }
    .trust-bar-feature {
        min-width: 0;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .trust-bar-features {
        flex-wrap: nowrap;
        gap: 22px;
    }
    .trust-bar-feature {
        flex: 1 1 0;
        min-width: 0;
        gap: 12px;
    }
    .trust-bar-feature-title { font-size: 17px; }
    .trust-bar-feature-description { font-size: 14.5px; }
    .trust-bar-feature-icon { width: 44px; height: 44px; }
}


/* ---------------------------------------------------------
   2. BEFORE / AFTER slider — cards were only 200px tall at 768
--------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .ba-card img {
        height: 300px;
    }
    .beforeAfterSlider {
        margin-top: 48px;
    }
}


/* ---------------------------------------------------------
   3. STORY section — image was a giant full-width circle
--------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991px) {
    .story-container {
        align-items: center;
        gap: 48px;
    }
    .story-content {
        max-width: 640px;
        margin: 0 auto;
        text-align: center;
    }
    .story-content h2 {
        font-size: 38px;
    }
    .story-image {
        max-width: 520px;
        margin: 0 auto;
    }
    .signature-wrapper {
        justify-content: center;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .story-container { gap: 48px; }
    .story-content h2 { font-size: 40px; }
}

.signature img {
    max-width: 100%;
    height: auto;
}


/* ---------------------------------------------------------
   4. FOOTER — CTA card + link columns
--------------------------------------------------------- */

/* CTA ("Trusted by homeowners"): it stacked at <= 1024px, leaving
   a huge pink block with a small photo. Keep it side-by-side. */
@media (min-width: 768px) and (max-width: 1199px) {
    .trusted-homeowners__inner {
        flex-direction: row;
        align-items: flex-end;
    }
    .trusted-homeowners__image {
        flex: 0 0 40%;
        align-self: flex-end;
    }
    .trusted-homeowners__image img {
        width: 100%;
        height: auto;
        max-height: 440px;
        margin-top: -60px;
        object-fit: contain;
        object-position: bottom center;
    }
    .trusted-homeowners__content {
        flex: 1;
        min-width: 0;
        padding: 48px 40px 48px 8px;
    }
    .trusted-homeowners__title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    .trusted-homeowners__description {
        font-size: 16px;
        margin-bottom: 26px;
    }
    .trusted-homeowners__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
        max-width: none;
        margin-bottom: 30px;
    }
    .trusted-homeowners__item {
        font-size: 15px;
        line-height: 1.3;
    }
    .trusted-homeowners__button {
        width: auto;
        height: 56px;
        padding: 0 36px;
        font-size: 16px;
    }
}

@media (min-width: 768px) and (max-width: 860px) {
    .trusted-homeowners__content { padding: 40px 28px 40px 4px; }
    .trusted-homeowners__title { font-size: 28px; }
    .trusted-homeowners__list { grid-template-columns: 1fr; }
}

/* Link columns: desktop uses fixed 400/200/280/220px columns (1100px),
   which overflowed the screen between 992px and 1199px. */
@media (min-width: 992px) and (max-width: 1279px) {
    .footer-links {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr);
        gap: 36px;
        justify-content: normal;
    }
}

/* portrait: 2 x 2 instead of 3 + 1 */
@media (min-width: 768px) and (max-width: 991px) {
    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 48px;
    }
    .footer-col { min-width: 0; }
}


/* ---------------------------------------------------------
   5. SERVICE pages
--------------------------------------------------------- */

/* hero check-list: two even columns that wrap instead of
   two "max-content" columns that ran off the screen */
@media (min-width: 768px) and (max-width: 1199px) {
    .service-hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 28px;
        max-width: 640px;
    }
    .service-feature-item {
        align-items: flex-start;
        text-align: left;
        line-height: 1.35;
    }
}

/* "What's included" cards: 4 skinny columns -> 2 x 2 */
@media (min-width: 768px) and (max-width: 1099px) {
    .checklist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 56px 24px;
    }
    .checklist-card {
        min-height: auto;
    }
}


/* ---------------------------------------------------------
   6. ABOUT — team tabs (3 tabs didn't fit in 439px at 769-1024)
--------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
    .team-tabs {
        max-width: 620px;
    }
    .team-tab {
        font-size: 16px;
        white-space: nowrap;
    }
}


/* ---------------------------------------------------------
   7. FAQ page — 768px got the phone sizes (353px heading,
      450px list); give tablets the room
--------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 992px) {
    .faq-wrap .faq-heading {
        max-width: 640px;
        font-size: 36px;
        margin-left: auto;
        margin-right: auto;
    }
    .faq-grid {
        width: 100%;
        max-width: 700px;
        margin: 50px auto 0;
    }
    .faq-tab-button {
        font-size: 16px;
    }
    .faq-contact-mobile {
        max-width: 700px;
    }
    .business-hours-description {
        max-width: 560px;
    }
}

.faq-category.active {
    width: 100%;
}

/* the question list is a direct flex child of .faq-wrapper: let it take
   the remaining width instead of shrinking to the longest question */
@media (min-width: 993px) {
    .faq-wrapper > .faq-grid {
        flex: 1 1 auto;
        min-width: 0;
    }
}
@media (min-width: 993px) and (max-width: 1199px) {
    .faq-wrapper { gap: 40px; }
    .faq-sidebar { width: 340px; flex-basis: 340px; }
}


/* ---------------------------------------------------------
   8. CANCER page — impact stats: 90px gaps + 30px padding pushed
      the last stat off-screen between 992px and 1199px
--------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199px) {
    .cancer-impact-stats {
        gap: 28px;
    }
    .cancer-impact-item {
        min-width: 0;
        padding: 0 8px;
    }
    .cancer-impact-number {
        font-size: 44px;
    }
}
