/* ==========================================================================
   KOBIL — Homepage: full-bleed statement banner
   Figma: D-Homepage → 6019:111663 (1440x617), mobile 6203:46526

   One image with a serif line over its left third. The image is exported
   flat (it is a single rendered picture, no separate scrim layer), so the
   only job here is to bleed it the full 1440 and hold the text legible on
   top of it.
   ========================================================================== */

.sec-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: var(--w617);
  background-image: url(/assets/banner/banner.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* The render is darkest at the left where the text sits, but only just —
   this keeps the headline at a safe contrast without visibly greying the
   picture. */
.sec-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 60%;
  background: linear-gradient(90deg, rgba(9, 14, 40, 0.45) 0%, rgba(9, 14, 40, 0) 100%);
  pointer-events: none;
}

.sec-banner__inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--w80);
}

.sec-banner__title {
  max-width: var(--w520);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--w48);
  line-height: 1.2;
  color: var(--white);
}

/* Phone — Figma 6203:46526 is 393x550, not a shortened crop of the desktop
   band: the headline moves to 40px, centres horizontally (268px wide inside
   393) and sits low in the frame (y:386 of 550), so the picture reads above
   it rather than behind it. */
@media (max-width: 768px) {
  .sec-banner {
    min-height: var(--m550);
    align-items: flex-end;
    /* Figma's own 393x550 phone crop (6203:46527) — the desktop export
       recropped by cover cut the sun rays short. */
    background-image: url(/assets/banner/banner-mobile.webp);
  }

  /* Bottom-up scrim to match, since the text is now at the bottom. */
  .sec-banner::before {
    inset: auto 0 0 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(180deg, rgba(9, 14, 40, 0) 0%, rgba(9, 14, 40, 0.55) 100%);
  }

  .sec-banner__inner {
    padding: 0 var(--m24) var(--m68);
  }

  .sec-banner__title {
    max-width: 100%;
    font-size: var(--m40);
    line-height: 1.2;
    text-align: center;
  }
}

@media (max-width: 359px) {
  .sec-banner__title {
    font-size: var(--m32);
  }
}
