/* Etusivun hero-ilme alasivuille */
.ls-page-hero,
.hero.ls-page-hero:not(.ls-hero) {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 0;
  height: auto;
  overflow: hidden;
  padding: clamp(3.25rem, 7vw, 6rem) 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(28, 33, 45, .78), rgba(28, 33, 45, .52) 62%, rgba(28, 33, 45, .36)),
    #2c3244 url("/assets/images/hero-lamposaaga-1600.webp") center 65% / cover no-repeat;
}

.ls-page-hero > .hero-overlay,
.ls-page-hero::before,
.ls-page-hero::after,
.ls-page-hero .hero-panel::before {
  display: none;
}

.ls-page-hero > .container {
  position: relative;
  padding-block: 0 !important;
}

.ls-page-hero.ls-page-hero :is(.hero-card, .ilp-hero-copy, .cases-hero-card, .hero-panel, .ls-page-hero-copy) {
  max-width: 760px;
  padding: 0 !important;
  border: 0;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.ls-page-hero h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.25rem, 4.4vw, 4.15rem) !important;
  font-weight: 800;
  line-height: 1.08 !important;
  letter-spacing: -.035em;
  text-wrap: initial;
  overflow-wrap: break-word;
}

.ls-page-hero :is(.hero-main-text, .ilp-hero-lead, .lead, .cases-hero-card > p, .hero-panel > p) {
  max-width: 650px;
  color: #f1f1f4;
  font-size: 1.12rem;
  line-height: 1.7;
}

.ls-page-hero :is(.hero-page-tag, .hero-subtitle, .ilp-kicker, .eyebrow, .ls-page-hero-kicker) {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffd4c6;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ls-page-hero :is(.hero-breadcrumb, .breadcrumb-wrap, .mlp-breadcrumb, .ilp-breadcrumb) a {
  color: #fff;
  text-underline-offset: .2em;
}

.ls-page-hero :is(.hero-btn-red, .hero-btn-outline, .ilp-btn, .btn-red) {
  border-radius: .55rem;
}

/* Navigointi pysyy näkyvissä viemättä tilaa heron tekstiltä. */
nav.navbar {
  position: sticky !important;
}

.navbar .navbar-nav {
  gap: .4rem;
}

.navbar .nav-link {
  margin-left: 0;
  white-space: nowrap;
}

.navbar .ls-nav-quote {
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .navbar .navbar-nav {
    padding-block: .75rem;
  }

  .navbar .navbar-collapse.show {
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* Tarjouspainike ja kelluva WhatsApp-linkki */
.btn.ls-nav-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 46px;
  padding: .65rem 1rem;
  border: 1px solid #b82c01;
  border-radius: .55rem;
  background: #b82c01;
  color: #fff;
  font-weight: 750;
}

.btn.ls-nav-quote:hover,
.btn.ls-nav-quote:focus-visible {
  border-color: #962300;
  background: #962300;
  color: #fff;
}

.ls-mobile-quote-bar {
  display: none;
}

.ls-whatsapp-float {
  position: fixed;
  z-index: 1030;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 50px;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: #147438;
  color: #fff;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .24);
  text-decoration: none;
  font-weight: 750;
}

.ls-whatsapp-float:hover,
.ls-whatsapp-float:focus-visible {
  background: #0e5f2d;
  color: #fff;
}

.ls-whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body:has(.ls-whatsapp-float) footer {
  padding-bottom: 5rem !important;
}

.ls-quote-section {
  padding: clamp(2rem, 6vw, 5rem) 0;
  background: #f5f6f8;
}

.ls-quote-card {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #e0e2e6;
  border-radius: 1rem;
  background: #fff;
  color: #2c3244;
}

.ls-quote-card textarea {
  min-height: 8rem;
}

#tarjouslomake {
  scroll-margin-top: 7.5rem;
}

@media (max-width: 767.98px) {
  .ls-page-hero,
  .hero.ls-page-hero:not(.ls-hero) {
    padding-block: 3.25rem 2.8rem;
  }

  .ls-page-hero.ls-page-hero :is(.hero-card, .ilp-hero-copy, .cases-hero-card, .hero-panel, .ls-page-hero-copy) {
    padding: 1.2rem !important;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1rem !important;
    background: rgba(18, 22, 32, .72) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .ls-page-hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.35rem) !important;
    line-height: 1.12 !important;
  }

  .ls-page-hero :is(.hero-main-text, .ilp-hero-lead, .lead, .cases-hero-card > p, .hero-panel > p) {
    font-size: 1rem;
    line-height: 1.55;
  }

  :root {
    --ls-mobile-quote-height: calc(64px + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: var(--ls-mobile-quote-height);
  }

  body {
    padding-bottom: var(--ls-mobile-quote-height);
  }

  .ls-mobile-quote-bar {
    position: fixed;
    z-index: 1030;
    inset: auto 0 0;
    display: flex;
    min-height: var(--ls-mobile-quote-height);
    padding: 8px max(1rem, env(safe-area-inset-right, 0px))
      calc(8px + env(safe-area-inset-bottom, 0px))
      max(1rem, env(safe-area-inset-left, 0px));
    background: #212529;
  }

  .ls-mobile-quote-bar .ls-nav-quote {
    width: 100%;
    min-height: 48px;
  }

  .ls-whatsapp-float {
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: calc(var(--ls-mobile-quote-height) + .85rem);
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
  }

  .ls-whatsapp-float > span {
    display: none;
  }
}

@media (min-width: 1200px) {
  .navbar > .container {
    max-width: 1320px;
    gap: 1rem;
  }

  .navbar .logo-img {
    width: min(16vw, 220px);
    height: auto;
  }
}

/* Vaakasuuntainen rajaus ilman sticky-navigoinnin estävää vieritysaluetta. */
@media (min-width: 768px) {
  html,
  body,
  body.about-page {
    overflow-x: clip;
  }
}

.ls-site-footer a {
  color: inherit;
  text-underline-offset: .2em;
}

.ls-site-footer li {
  margin-bottom: .45rem;
}

.ls-footer-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  column-gap: 1rem;
}

.ls-site-footer .ls-footer-contacts li {
  margin-bottom: .85rem;
}

.ls-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.ls-footer-bottom p {
  margin: 0;
}

.ls-footer-social a {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  font-size: 1.2rem;
  text-decoration: none;
}

.ls-footer-social a:hover,
.ls-footer-social a:focus-visible {
  background: rgba(255, 255, 255, .16);
}

/* Referenssi ja asennettu hinta palvelu- ja tuotevalinnan tueksi. */
.ls-install-example {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #e0e2e6;
  border-radius: 1rem;
  background: #f5f6f8;
}

.ls-install-example > div {
  flex: 1 1 18rem;
}

.ls-install-example img {
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: .65rem;
}

.ls-install-example a {
  margin-top: .4rem;
}

.ls-installed-price strong {
  color: #962300;
  font-size: 1.2rem;
}

@media (max-width: 767.98px) {
  #homeHero.ls-hero {
    background-image: url("/assets/images/hero-lamposaaga-800.webp");
  }

  .ls-page-hero,
  .hero.ls-page-hero:not(.ls-hero) {
    background-image:
      linear-gradient(90deg, rgba(28, 33, 45, .78), rgba(28, 33, 45, .52) 62%, rgba(28, 33, 45, .36)),
      url("/assets/images/hero-lamposaaga-800.webp");
  }
}
