/* ==========================================================================
   HOMEPAGE HERO (page 24184)  -  markup: inc/home-hero.php
   Mockups: workspace/5starloans/hero-build/mockup/Main, Mobile, OffHours*.
   The card is fsl_hero_card() (hero-card.css). Scoped under .home-hero.
   Desktop above 1100px (panel photo), band layout at 1100px and below.
   ========================================================================== */

.home-hero {
  --hh-ink: #101422;
  --hh-yellow: #FFCB05;

  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 0;
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  color: var(--hh-ink);
  -webkit-font-smoothing: antialiased;
}
.home-hero *,
.home-hero *::before,
.home-hero *::after { box-sizing: border-box; }

/* -- Frame: panel photo + bottom fade ------------------------------------- */
.home-hero__frame {
  position: relative; border-radius: 24px; overflow: hidden;
  background: #2a2f3a; min-height: 560px;
}
.home-hero__bg { position: absolute; inset: 0; overflow: hidden; background: #2a2f3a; }
.home-hero__bg picture { display: block; position: absolute; inset: 0; }
.home-hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: none; object-fit: cover; object-position: 100% 0%; display: block;
}
.home-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,14,30,.88) 0%, rgba(10,14,30,.6) 30%, rgba(10,14,30,0) 55%);
}

/* Copy bottom-left, card right (vertically centred). Grid, not absolute boxes,
   so nothing can clip. */
.home-hero__inner {
  position: relative; display: grid;
  grid-template-columns: minmax(0,1fr) 420px;
  gap: 48px; padding: 48px 48px 44px 64px; min-height: 560px;
}
.home-hero__copy {
  align-self: end; min-width: 0; max-width: 760px;
  display: flex; flex-direction: column; gap: 16px; color: #fff;
}
.home-hero .home-hero__title {
  margin: 0; padding: 0;
  font-family: 'Kanit', 'Lato', sans-serif; font-weight: 700;
  font-size: 52px; line-height: 1.1; letter-spacing: -.02em;
  text-transform: none; text-align: left; color: #fff;
}
.home-hero ul.home-hero__checks {
  display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 8px;
  margin: 2px 0 0; padding: 0; list-style: none;
  font-size: 18px; font-weight: 700; line-height: 1.3; color: #fff;
  text-shadow: 0 1px 8px rgba(10,14,30,.5);
}
.home-hero ul.home-hero__checks > li {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 0;
  white-space: nowrap; list-style: none; font-size: inherit; color: inherit;
}
.home-hero ul.home-hero__checks > li::before,
.home-hero ul.home-hero__checks > li::after { content: none; display: none; }
.home-hero .home-hero__check { flex: none; display: block; width: 18px; height: 18px; color: var(--hh-yellow); }

.home-hero__card { align-self: center; min-width: 0; }

@media (max-width: 1300px) {
  .home-hero__inner { gap: 40px; padding: 40px 40px 40px 48px; }
  .home-hero .home-hero__title { font-size: 46px; }
  .home-hero ul.home-hero__checks { font-size: 16px; column-gap: 18px; }
}

/* -- Band layout (phones / tablets) --------------------------------------- */
@media (max-width: 1100px) {
  .home-hero {
    max-width: none; padding: 20px 16px 22px;
    background: linear-gradient(180deg, #dcefff 0%, #eef7ff 100%);
  }
  .home-hero__frame { min-height: 0; background: transparent; border-radius: 0; overflow: visible; }
  .home-hero__bg,
  .home-hero ul.home-hero__checks { display: none; }
  .home-hero__inner {
    display: flex; flex-direction: column; gap: 14px;
    max-width: 528px; margin: 0 auto; padding: 0; min-height: 0;
  }
  .home-hero__copy,
  .home-hero__card { align-self: stretch; }
  .home-hero__copy { padding: 0 8px; gap: 6px; text-align: center; }
  .home-hero .home-hero__title {
    font-size: 30px; line-height: 1.15; text-align: center; color: var(--hh-ink);
  }
}

/* 320px phones: the 30px H1 would leave "Loans(TM)" alone on a third line. */
@media (max-width: 359px) {
  .home-hero .home-hero__title { font-size: 27px; }
}

/* Desktop only (owner 2026-11-23): "Keep Your Car, Get Cash Today" repeats the hero
   checks - hidden at 1101px+; its button shows after the first text block of
   "Need Fast Cash? ..." instead (copy printed by inc/home-hero.php). Mobile unchanged. */
.fsl-home-cta-desktop { display: none; }
@media (min-width: 1101px) {
  body.fsl-home-hero-on .fsl-home-dup,
  body.fsl-home-hero-on .gb-container-854b741d,
  body.fsl-home-hero-on .gb-container-fe972ad3 { display: none; }
  body.fsl-home-hero-on .fsl-home-cta-desktop { display: block; margin: 32px 0 40px; text-align: center; }
}
