/* =====================================================================
   Energus – laptop viewport fixes
   Targets the standard business-laptop CSS viewports:
     1280 × 800  (14" WUXGA @150%)
     1440 × 900  (14" 2.8K @200%)
     1536 × 864  (15.6" FHD @125%)
     1536 × 960  (16" WUXGA @125%)
   Load AFTER home.css / style.css / header.css (e.g. enqueue last, or
   paste at the end of dev.css). 1920+ desktop and ≤1199 tablet/mobile
   are left untouched.
   ===================================================================== */

/* ---------- 1. Container: consistent side gutters ----------
   Today the container jumps 1140px → 1450px at 1440, so at a 1440
   viewport content sits 15px from the screen edge. */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .container {
    max-width: 100%;
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* ---------- 2. Header: keep it on one row ----------
   .header-right is forced to 185px wide at ≤1440, which wraps the phone
   and the CTA onto two lines and makes the fixed header ~160px tall
   (20% of an 800px screen). */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .mainheader,
  .fixed-header .mainheader { padding: 10px 16px; }

  .mainheader .mainheader-inner {
    min-height: 72px;
    padding: 6px 20px;
    gap: 16px;
  }
  .mainheader .logo img { max-height: 48px; width: auto; }

  .header-right {
    width: auto;
    flex-wrap: nowrap;
    gap: 14px;
  }
  .header-right .call-link .flex-middle a { font-size: 16px; }
  .header-right a.button.btn-gradient {
    padding: 10px 18px;
    font-size: 14px;
    white-space: nowrap;
  }
}
/* 1280-class screens: drop the "Talk to Our Team" label to free space */
@media (min-width: 1200px) and (max-width: 1365.98px) {
  .header-right .call-link .flex-middle > span { display: none; }
  .header-right .call-link .link-icon { display: none; }
}

/* ---------- 3. Hero: fit the first screen ----------
   .hero-slide has min-height: 950px, taller than every laptop viewport
   (800–960px), so the wave and next section are never visible. */
@media (min-width: 1200px) and (max-height: 1000px) {
  .hero-slide { min-height: max(640px, 100svh); }
}
/* Inner page banners (min-height 700 / 555) */
@media (min-width: 1200px) and (max-height: 900px) {
  .inner-banner          { min-height: 620px; }
  .inner-banner.no-form  { min-height: 480px; }
}

/* ---------- 4. Vertical rhythm ----------
   100px top+bottom on every section is a lot on an 800–900px screen. */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .padd-tpbt100 { padding-top: 72px; padding-bottom: 72px; }
}
@media (min-width: 1200px) and (max-height: 820px) {
  .padd-tpbt100 { padding-top: 60px; padding-bottom: 60px; }
}

/* ---------- 6. Footer wave: hairline above the shape ----------
   hero-wave-divider.svg is 116 units tall but its white path stops at
   y=115.665, so after the scaleY(-1) flip there is a ~0.3-unit
   transparent strip at the top. At 1280 / 150% scaling that strip lands
   on a part-covered device pixel and the black footer background shows
   through as a grey line. (top:-1px on .footer-wave can't hide it because
   footer has overflow:hidden.) Fix: paint the top 3px of the footer white
   and start the dark layers below it. Not media-scoped, since it can
   happen at any fractional zoom. */
footer {
  background: linear-gradient(#fff 0 3px, #000 3px);
}
footer > .bgimg,
footer > .footer-overlay {
  top: 3px;
  height: calc(100% - 3px);
}

/* ---------- 5. "Why Energus" grid ----------
   Image column is fixed at 470px, squeezing the stat cards to ~173px at
   1280 so text wraps 1–2 words per line. */
@media (min-width: 1200px) and (max-width: 1599.98px) {
  .why-energus-grid {
    grid-template-columns: 1fr 1fr minmax(0, 1.2fr) 1fr;
    gap: 24px;
  }
  .why-energus-media img { max-width: 100%; }
}
