/*
 * LAFER Responsive Consistency v40
 * Unifies the scale of our approved design between laptops, desktops and QHD.
 * No global zoom, no transformed layout, no edits to scripts, colors or widgets.
 * Desktop only unless noted: preserves the established phone/CTA experience.
 */

/* Site-wide floating menu: avoid the sudden 82px -> 94px jump at 1450px. */
@media (min-width:1191px) {
  html body.lafer-enterprise {
    --lf-nav-h:clamp(82px,5.75vw,88px);
  }
  html body.lafer-enterprise .lf-header .site-nav .nav-actions>a.btn,
  html body.lafer-enterprise .lf-header .site-nav.compact .nav-actions>a.btn {
    height:clamp(48px,3.9vw,54px)!important;
    min-height:clamp(48px,3.9vw,54px)!important;
    max-height:clamp(48px,3.9vw,54px)!important;
  }
}

/* Laptop and desktop: fluid typography, no 1450px step in heading sizes. */
@media (min-width:1025px) {
  html body.lafer-enterprise #main .section-title {
    font-size:clamp(37px,calc(18px + 1.57vw),52px)!important;
    line-height:1.12!important;
  }
  html body.lafer-enterprise #main .section-lead {
    font-size:clamp(15px,calc(11px + .31vw),17px)!important;
    line-height:1.6!important;
  }
  html body.lafer-enterprise.home #main .section,
  html body.lafer-enterprise.home #main .why-v2 {
    padding-block:clamp(68px,5vw,92px)!important;
  }
  html body.lafer-enterprise.home #main > .hero-section.hero-v2 {
    padding-top:clamp(130px,7.9vw,148px)!important;
  }
  html body.lafer-enterprise.home #main .cinema.cinema-v2 {
    height:clamp(325px,min(25vw,47svh),465px)!important;
    max-height:465px!important;
    min-height:0!important;
  }
  html body.lafer-enterprise.home #main .stats-v2 .stat-value {
    font-size:clamp(42px,calc(20px + 2.1vw),60px)!important;
  }

  /* The needs section is a deliberate compact editorial heading, but it
     should grow smoothly instead of remaining frozen on large monitors. */
  html body.lafer-enterprise.home #main #resolver .solve-heading .section-title {
    font-size:clamp(28px,calc(14px + 1.45vw),41px)!important;
    white-space:normal!important;
    text-wrap:balance;
  }
  html body.lafer-enterprise.home #main #resolver .solve-heading .section-lead {
    font-size:clamp(14px,calc(10px + .33vw),17px)!important;
  }

  /* Distinct inner-page hero styles retain their alignment and appearance;
     only the desktop type sizes become continuous. */
  html body.lafer-enterprise .brand-team-org .brand-team-intro h1 {
    font-size:clamp(37px,calc(11px + 2.5vw),56px)!important;
  }
  html body.lafer-enterprise .brand-about .brand-about-intro-centered h1 {
    font-size:clamp(33px,calc(12px + 2.15vw),54px)!important;
  }
}

/* Lower-height laptops: keep the cinematic media visible but don't use the
   majority of a short viewport. The video stays full-bleed and unmodified. */
@media (min-width:1025px) and (max-height:800px) {
  html body.lafer-enterprise.home #main .cinema.cinema-v2 {
    height:clamp(325px,min(25vw,44svh),395px)!important;
  }
}

/* Tablet/compact laptop bridge: no video-height jump at 740 or 1025px. */
@media (min-width:741px) and (max-width:1024px) {
  html body.lafer-enterprise.home #main .cinema.cinema-v2 {
    height:clamp(300px,31vw,325px)!important;
    min-height:0!important;
    max-height:325px!important;
  }
}

/* Wider displays: preserve readable proportions without narrow islands of
   cards in an otherwise edge-to-edge experience. Small/standard screens keep
   their previous container dimensions. */
@media (min-width:1600px) {
  html body.lafer-enterprise.home #main .container {
    width:min(calc(100% - clamp(54px,6.6vw,180px)),clamp(1430px,calc(840px + 36vw),1640px))!important;
    max-width:1640px!important;
  }
  html body.lafer-enterprise.home #main #resolver>.container {
    width:min(calc(100% - clamp(54px,6.6vw,180px)),clamp(1130px,calc(470px + 40vw),1430px))!important;
    max-width:1430px!important;
  }
  html body.lafer-enterprise.home #main #resolver .problems-grid {
    max-width:1430px!important;
  }
  html body.lafer-enterprise.home #main #resolver .problems-grid>.problem-card.problem-v2 {
    min-height:clamp(222px,calc(38px + 11.2vw),250px)!important;
    padding:clamp(23px,1.4vw,28px)!important;
  }
  html body.lafer-enterprise.home #main #resolver .problems-grid>.problem-card.problem-v2>strong {
    font-size:clamp(16px,calc(10px + .4vw),19px)!important;
    line-height:1.26!important;
  }
}

/* More robust sizing under accessibility text scaling. */
@media (min-width:741px) {
  html body.lafer-enterprise #main .container,
  html body.lafer-enterprise #main .full-container {
    min-width:0;
  }
}
