/* =========================================================================
   Component: fm-hero
   Full-width hero with eyebrow, title, lede and CTA row.
   Variants: default (light), dark, split (image on right).
   ========================================================================= */

.fm-hero {
  position: relative;
  padding: var(--fm-sp-8) 0;
  background: var(--fm-white);
  overflow: hidden;
}

@media (min-width: 992px) {
  .fm-hero { padding: var(--fm-sp-9) 0; }
}

.fm-hero--dark {
  background: var(--fm-black);
  color: var(--fm-gray-200);
}
.fm-hero--dark .fm-hero__title { color: var(--fm-white); }

/* Image background variant.
   Set the image via inline style: style="--fm-hero-image: url('...')"
   A dark gradient overlay is drawn on top via ::before so text stays
   readable regardless of which photo is used. */
/* Image variant: set the photo via inline style on the section itself:
     <section class="fm-hero fm-hero--image"
              style="background-image: url('assets/img/xxx.jpg');">
   This file only owns sizing, positioning and the darkening overlay. */
.fm-hero.fm-hero--image {
  position: relative;
  background-color: var(--fm-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--fm-gray-200);
  min-height: 600px;
}
.fm-hero.fm-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 0;
}
.fm-hero.fm-hero--image .fm-hero__inner { position: relative; z-index: 1; }
.fm-hero.fm-hero--image .fm-hero__title { color: var(--fm-white); }

/* Right-half content: split the hero into 2 columns and drop the content
   into the right one. Same left-alignment inside, just shifted over. */
.fm-hero--right .fm-hero__inner {
  grid-template-columns: 2fr 3fr; /* 40% / 60% */
}
.fm-hero--right .fm-hero__inner > * {
  grid-column: 2;
}
@media (max-width: 720px) {
  .fm-hero--right .fm-hero__inner {
    grid-template-columns: 1fr;
  }
  .fm-hero--right .fm-hero__inner > * {
    grid-column: 1;
  }
}

/* -------------------------------------------------------------------
   Message card overlay: a white card sitting on top of the hero image,
   used to present a compact offer with bullet points and a CTA. Kills
   the darkening overlay so the photo shows in full color.
   ------------------------------------------------------------------- */
.fm-hero--card::before { display: none; }

.fm-hero__card {
  background: var(--fm-white);
  border-radius: 20px;
  padding: var(--fm-sp-7);
  max-width: 572px;                /* +30% vs. the initial 440px */
  color: var(--fm-text);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  justify-self: end;               /* dock to the right edge of the grid cell (= container right = "My account" chevron) */
}

.fm-hero__card-eyebrow {
  display: block;
  color: var(--fm-black);
  font-size: var(--fm-fs-base);
  font-weight: var(--fm-fw-bold);
  margin: 0 0 var(--fm-sp-3);
}

.fm-hero__card-title {
  color: var(--fm-accent);
  font-size: var(--fm-fs-2xl);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--fm-sp-5);
}

@media (min-width: 992px) {
  .fm-hero__card-title { font-size: 2.75rem; }
}

.fm-hero__card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--fm-sp-5);
}

.fm-hero__card-list li {
  position: relative;
  padding-left: 1.9em;
  margin: 0 0 var(--fm-sp-3);
  color: var(--fm-text-strong);
  font-size: var(--fm-fs-base);
  line-height: var(--fm-lh-normal);
}

/* Orange checkmark drawn with two CSS borders */
.fm-hero__card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--fm-accent);
  border-bottom: 2px solid var(--fm-accent);
  transform: rotate(-45deg);
}

/* Left-half content: mirror of --right. Same 60/40 ratio, content on left. */
.fm-hero--left .fm-hero__inner {
  grid-template-columns: 3fr 2fr; /* 60% / 40% */
}
.fm-hero--left .fm-hero__inner > * {
  grid-column: 1;
}
@media (max-width: 720px) {
  .fm-hero--left .fm-hero__inner {
    grid-template-columns: 1fr;
  }
}

.fm-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--fm-sp-6);
  align-items: center;
}

@media (min-width: 992px) {
  .fm-hero--split .fm-hero__inner {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--fm-sp-8);
  }
}

.fm-hero__title {
  font-size: var(--fm-fs-2xl);
  line-height: var(--fm-lh-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--fm-sp-4);
}

@media (min-width: 992px) {
  .fm-hero__title { font-size: var(--fm-fs-3xl); }
}

.fm-hero__lede {
  font-size: var(--fm-fs-md);
  max-width: 560px;
  margin: 0 0 var(--fm-sp-6);
}

.fm-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fm-sp-3);
}

.fm-hero__media img,
.fm-hero__media picture {
  width: 100%;
  height: auto;
  border-radius: var(--fm-radius);
}

/* Split layout — product shot on the right, contained, not stretched. */
.fm-hero--split .fm-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.fm-hero--split .fm-hero__media img {
  max-height: 480px;
  width: auto;
  max-width: 100%;
  border-radius: 0;
}

/* Edge-to-edge half/half hero: full-width photo on the left, full-height
   black panel on the right with text. No container inside — this variant
   spans the slider's whole width. */
.fm-hero--split-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  min-height: 600px;
  background: var(--fm-black);
  overflow: hidden;
}

.fm-hero__half-media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--fm-black);
}

.fm-hero__half-text {
  display: flex;
  align-items: center;
  background: var(--fm-black);
  color: var(--fm-white);
  padding: var(--fm-sp-8) clamp(var(--fm-sp-5), 6vw, var(--fm-sp-8));
}

.fm-hero__half-content { max-width: 520px; }

.fm-hero--split-half .fm-hero__title { color: var(--fm-white); }
.fm-hero--split-half .fm-hero__lede  { color: var(--fm-gray-200); }

@media (max-width: 720px) {
  .fm-hero--split-half {
    grid-template-columns: 1fr;
  }
  .fm-hero__half-media { min-height: 260px; }
}
