/*!
 * Responsive fixes — Shree Umiya Structure Pvt. Ltd.   v1.0.0  (Dec 2026)
 * Loaded once, last, from footer.php so it applies to every page (css/custom.css is only linked on
 * a few inner pages, so site-wide fixes cannot live there). Page-specific fixes for pages that do load
 * custom.css are in custom.css ("RESPONSIVE AUDIT — Dec 2026" block).
 *
 * Only responsive corrections: no colours, fonts, content or section structure are changed.
 * Same convention as the rest of the theme: plain values and per-breakpoint `zoom` for 2K–8K.
 * Companion script: js/suspl-responsive-fixes.js (banner heading fit).
 */

/* ======================================================================
   1. 2K / 4K / 5K / 8K — plain Bootstrap containers
   Most sections already scale up on large screens (their own zoom per tier: 1.4 / 2.1 / 2.8 / 4.2),
   but every section that uses the theme's plain `.container` stayed 1320 px wide with 16 px text —
   e.g. the homepage contact form, FAQ and quote CTA, and almost every inner page. On a 4K screen
   that is a narrow strip of tiny text in the middle. These tiers bring them in line with the rest:
   1320 px × 1.4 = 1848 px on 2560 · × 2.1 = 2772 px on 3840 · × 2.8 = 3696 px on 5120 · × 4.2 = 5544 px on 7680.
   Containers that already scale or have their own large-screen width are excluded below.
   ====================================================================== */
@media (min-width: 2560px) {
    section .container,
    footer .container {
        zoom: 1.4;
    }
}

@media (min-width: 3840px) {
    section .container,
    footer .container {
        zoom: 2.1;
    }
}

@media (min-width: 5120px) {
    section .container,
    footer .container {
        zoom: 2.8;
    }
}

@media (min-width: 7680px) {
    section .container,
    footer .container {
        zoom: 4.2;
    }
}

/* never twice: nested containers, and sections that have their own 2K–8K sizing */
@media (min-width: 2560px) {
    section .container .container,
    footer .container .container,
    section.swu .container,
    section.about-peb-option-six .container,
    section#pebv2 .container,
    section.pst-section .container,
    section.pcp-section .container,
    section.pid-section .container,
    section.pcs-section .container,
    section.pcm-section .container,
    section.pwc-section .container,
    section.suspl-blog .container,
    section.cr-sec .container,
    section.scl .container,
    .suspl-header .container,
    .suspl-footer .container {
        zoom: 1;
    }
}

/* homepage quote CTA strip (Bootstrap .py-5 = 48 px): its content is scaled above, so scale the
   padding with it or the text sits on the edges of the band */
@media (min-width: 2560px) { section.py-5[data-parallax-background-ratio] { padding-top: 67px !important; padding-bottom: 67px !important; } }
@media (min-width: 3840px) { section.py-5[data-parallax-background-ratio] { padding-top: 100px !important; padding-bottom: 100px !important; } }
@media (min-width: 5120px) { section.py-5[data-parallax-background-ratio] { padding-top: 134px !important; padding-bottom: 134px !important; } }
@media (min-width: 7680px) { section.py-5[data-parallax-background-ratio] { padding-top: 200px !important; padding-bottom: 200px !important; } }

/* ======================================================================
   2. Inner-page banner (about-bb section, every inner page)
   The heading column is 44vw wide from 1024 px but the font stays 70 px until 2560 px, so a
   three-line heading such as "PEB Construction" (≈540 px) ran over the 3D model / photo between
   1024 and ~1230 px. 5.6vw keeps the reference proportion (it equals 70 px at 1250 px).
   Headings longer than the default are fitted line-by-line by js/suspl-responsive-fixes.js.
   ====================================================================== */
@media (min-width: 1024px) and (max-width: 1249px) {
    .abb .abb__title {
        font-size: 5.6vw;
    }
}

/* phones: the 44 px heading is wider than a 320–389 px screen */
@media (max-width: 389px) {
    .abb .abb__title {
        font-size: 11.2vw;
    }
}

/* ======================================================================
   3. Homepage — tablet rhythm (768–991 px)
   ====================================================================== */
@media (min-width: 768px) and (max-width: 991px) {
    /* About: stacked layout kept 96 px on top (on top of the clients section's 64 px) and 210 px
       underneath for the faint wireframe drawing, which left ~300 px of empty white between
       "View More" and "Our Expertise". The drawing still sits along the bottom edge. */
    section.suspl-about {
        padding-top: 64px;
        padding-bottom: 150px;
    }

    /* Social Media Coverage + its stats strip used 94% of the screen (24 px edges) while every
       other section sits on the 720 px Bootstrap container — line them up with the rest. */
    .ssm__wrap,
    .ssm__strip-in {
        width: 696px;
        max-width: 94%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .ssm__wrap,
    .ssm__strip-in {
        width: 936px;
        max-width: 94%;
    }
}

/* ======================================================================
   4. PEB Warehouse — FAQ block on phones
   The "Talk to Our PEB Experts" link above the FAQ is floated right (inline style). The FAQ row is a
   flex container, so it squeezed in beside the float: on phones the questions were ~6 px wide and
   rendered one letter per line. Clearing the float puts the FAQ on its own full-width line.
   ====================================================================== */
#faq.row {
    clear: both;
}
