/* ==================================================================
 * Liafon 3D ? full-width layout overrides.
 * Loaded after liafon.css and home.css so every section runs
 * edge-to-edge (width: 100%) with no boxed container constraint.
 * !important guards against print-order variance (home.css is
 * enqueued late by the corporate template and prints in the footer).
 * The original stylesheets remain completely untouched.
 * ================================================================== */

/* page-width containers ? 100% edge-to-edge with comfortable gutters */
.lf-container  { max-width: 100% !important; padding-inline: clamp(1.25rem, 4vw, 5rem) !important; }
.lfh-container { width: 100% !important; max-width: 100% !important; margin-inline: 0 !important;
                 padding-inline: clamp(1.25rem, 4vw, 5rem) !important; }

/* readable measure for long-form content (page.php / single.php / 404.php) */
.lf-entry { max-width: 46rem; }


/* Full 100% width across all pages & prevent horizontal page scroll */
html, body, .lf-root, .lfh-root, main, section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
html, body {
  overflow-x: clip !important;
}
.lf-container, .lfh-container {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  padding-inline: clamp(1.25rem, 4vw, 5rem) !important;
}

/* Make Home Automation first section (#ha-hero) cover initial screen and hide #tour below fold */
#ha-hero.lf-ha-hero {
  min-height: 100svh !important;
  height: 100svh !important;
  overflow: hidden !important;
}
@media (max-width: 63.99rem) {
  #ha-hero.lf-ha-hero {
    min-height: 100svh !important;
    height: auto !important;
    padding-block: 5rem 3rem !important;
  }
}

/* Single-section sizing rhythm on desktop while keeping content visible */
@media (min-width: 64rem) {
  main > section:not(#ha-hero):not(#specs):not(#tour) {
    min-height: calc(100svh - 74px);
    box-sizing: border-box;
  }
}

/* Blast Lab rail scrollbar & full list support */
.lf-blastlab .lf-lab-rail,
#blast .lf-lab-rail {
  max-height: 440px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(139, 61, 255, .7) rgba(255, 255, 255, .08) !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
.lf-blastlab .lf-lab-rail::-webkit-scrollbar,
#blast .lf-lab-rail::-webkit-scrollbar {
  width: 6px !important;
  display: block !important;
}
.lf-blastlab .lf-lab-rail::-webkit-scrollbar-thumb,
#blast .lf-lab-rail::-webkit-scrollbar-thumb {
  background: rgba(139, 61, 255, .75) !important;
  border-radius: 999px !important;
}

/* Full 100% width fit for the first hero section */
#home,
#home > section:first-of-type,
main > section:first-of-type {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0 !important;
}

#home > section:first-of-type > div,
main > section:first-of-type > div {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Keep second section below the fold when viewing the first section */
#home,
#home > section:first-of-type,
main > section:first-of-type {
  min-height: 100vh !important;
  min-height: 100svh !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  padding-top: clamp(48px, 6vh, 96px) !important;
  padding-bottom: clamp(48px, 6vh, 96px) !important;
}

/* Clean full-width and full-height fit for Home Automation hero (#ha-hero) */
#ha-hero.lf-ha-hero {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100svh !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

#ha-hero.lf-ha-hero .lf-container,
#ha-hero.lf-ha-hero .lf-ha-hero-grid {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Center text and buttons vertically in #cta ("Make your home smarter today.") */
#cta.lf-ha-cta .lf-ha-cta-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 1.5rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(24px, 5vw, 64px) !important;
  padding-right: clamp(24px, 5vw, 64px) !important;
}

#cta.lf-ha-cta .lf-ha-cta-row > div:first-child {
  max-width: 46rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#cta.lf-ha-cta .lf-ha-cta-row p {
  margin-left: auto !important;
  margin-right: auto !important;
}

#cta.lf-ha-cta .lf-ha-cta-btns {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 1rem !important;
}
