/* ============================================================
   Landscaping Hero Slider — PURE CSS, zero JavaScript.
   3 slides x 8s = 24s crossfade cycle.
   To change timing: edit --lhs-cycle and the three delays
   (each slide = 1/3 of the cycle). Square corners throughout.
   ============================================================ */
.lhs-hero {
  --lhs-cycle: 24s;              /* 3 slides x 8 seconds */
  --lhs-accent: #f06414;         /* CTA orange */
  --lhs-ink: #ffffff;
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 340px;
  max-height: 84vh;
  overflow: hidden;
  background: #0b140d;
  color: var(--lhs-ink);
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  isolation: isolate;
}
.lhs-hero *, .lhs-hero *::before, .lhs-hero *::after { box-sizing: border-box; }

/* ---- slides ---- */
.lhs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: lhs-cycle var(--lhs-cycle) linear infinite;
  animation-fill-mode: backwards;
}
.lhs-slide:nth-child(1) { animation-delay: 0s; }
.lhs-slide:nth-child(2) { animation-delay: 8s; }
.lhs-slide:nth-child(3) { animation-delay: 16s; }
.lhs-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* semi-transparent black mask over the footage */
.lhs-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1;
}
/* each slide: fade in 1s, hold its 8s window, fade out 1s, slow push-in */
@keyframes lhs-cycle {
  0%     { opacity: 0; transform: scale(1); }
  4.1667%   { opacity: 1; }
  33.333%    { opacity: 1; }
  37.5%  { opacity: 0; transform: scale(1.07); }
  100%   { opacity: 0; transform: scale(1.07); }
}

/* ---- captions ---- */
.lhs-caption {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 6vw, 89px);
  bottom: clamp(24px, 7vh, 72px);
  max-width: 620px;
  padding-right: 20px;
  animation: lhs-caption var(--lhs-cycle) linear infinite;
  animation-fill-mode: backwards;
}
.lhs-slide:nth-child(1) .lhs-caption { animation-delay: 0s; }
.lhs-slide:nth-child(2) .lhs-caption { animation-delay: 8s; }
.lhs-slide:nth-child(3) .lhs-caption { animation-delay: 16s; }
@keyframes lhs-caption {
  0%     { transform: translateY(16px); }
  6.25%  { transform: translateY(0); }
  100%   { transform: translateY(0); }
}
.lhs-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lhs-accent);
}
.lhs-caption h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: .01em;
  text-wrap: balance;
}
.lhs-sub {
  margin: 0 0 22px;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.45;
  color: rgba(255, 255, 255, .88);
  max-width: 34em;
}

/* ---- buttons (demo links: href="#") ---- */
.lhs-btn {
  display: inline-block;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;              /* square corners */
  transition: background .2s ease, color .2s ease;
}
.lhs-btn-quote { background: var(--lhs-accent); color: #fff; }
.lhs-btn-quote:hover, .lhs-btn-quote:focus-visible { background: #c74e0d; }
.lhs-btn-more { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.lhs-btn-more:hover, .lhs-btn-more:focus-visible { background: rgba(255, 255, 255, .14); }

/* ---- progress bars ---- */
.lhs-bars {
  position: absolute;
  z-index: 5;
  right: clamp(20px, 4vw, 55px);
  bottom: 26px;
  display: flex;
  gap: 8px;
}
.lhs-bar {
  width: 38px;
  height: 4px;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
}
.lhs-bar i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  animation: lhs-bar var(--lhs-cycle) linear infinite;
  animation-fill-mode: backwards;
}
.lhs-bar:nth-child(1) i { animation-delay: 0s; }
.lhs-bar:nth-child(2) i { animation-delay: 8s; }
.lhs-bar:nth-child(3) i { animation-delay: 16s; }
@keyframes lhs-bar {
  0%     { transform: scaleX(0); }
  33.333%    { transform: scaleX(1); }
  33.4667%  { transform: scaleX(0); }
  100%   { transform: scaleX(0); }
}

/* pause the show on hover */
.lhs-hero:hover .lhs-slide,
.lhs-hero:hover .lhs-caption,
.lhs-hero:hover .lhs-bar i { animation-play-state: paused; }

/* ---- small screens ---- */
@media (max-width: 700px) {
  .lhs-hero { aspect-ratio: 3 / 4; max-height: none; }
  .lhs-caption { bottom: 64px; }
  .lhs-bars { right: auto; left: clamp(20px, 6vw, 89px); bottom: 26px; }
}

/* ---- reduced motion: freeze on slide 1 ---- */
@media (prefers-reduced-motion: reduce) {
  .lhs-slide, .lhs-caption, .lhs-bar i { animation: none; }
  .lhs-slide { opacity: 0; }
  .lhs-slide:first-child { opacity: 1; }
  .lhs-bar:first-child i { transform: scaleX(1); }
}
