/* Homepage hero - one static banner: fixed background artwork, bold headline left, linked
   character row, stats card floating over the bottom edge.
   Markup: resources/views/partials/home-hero.blade.php */

.gh-hero {
  --gh-cream: #fdf5ec;
  --gh-ease: cubic-bezier(.16, 1, .3, 1);
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(680px, 100vh);
  padding: 150px 0 140px;
  overflow: hidden;
  background: var(--gh-cream);
  isolation: isolate;
}

/* Full-bleed background artwork (open cream space on the left, subject on the right).
   The left-side wash keeps the headline crisp; the bottom fade blends into the stats card. */
/* Starts below the fixed header (which would otherwise hide the image top) and is pinned top-right,
   so any crop on wide screens trims the bottom - never the subject's head. */
.gh-scene {
  position: absolute;
  inset: var(--gh-header-h, 88px) 0 0 0;
  z-index: -1;
}
.gh-scene::before,
.gh-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gh-scene::before {
  background:
    linear-gradient(90deg, rgba(253, 245, 236, .82) 0%, rgba(253, 245, 236, .45) 34%, rgba(253, 245, 236, 0) 55%),
    radial-gradient(55% 60% at 8% 92%, rgba(235, 10, 30, .07), transparent 70%);
  z-index: 1;
}
.gh-scene::after {
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(253, 245, 236, 0) 0%, rgba(253, 245, 236, .85) 100%);
  z-index: 1;
}
.gh-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  display: block;
  animation: ghScene 1.6s var(--gh-ease) both;
}

.gh-container { position: relative; z-index: 2; width: min(92%, 1400px); }
.gh-copy { max-width: 860px; }

.gh-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(.78rem, 1vw, .95rem);
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  animation: ghUp .6s var(--gh-ease) .1s both;
}
.gh-eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
}

.gh-title {
  margin: 0 0 20px;
  font-family: "Anton", "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2.9rem, 6.4vw, 6.4rem);
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.gh-title span { display: block; }
.gh-title-main {
  color: #0d0d0d;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .6);
  animation: ghUp .7s var(--gh-ease) .2s both;
}
.gh-title-accent {
  background: linear-gradient(180deg, #ff2a3c 0%, var(--red) 45%, var(--red-dark) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 14px rgba(235, 10, 30, .18));
  animation: ghUp .7s var(--gh-ease) .32s both;
}

.gh-text {
  max-width: 780px;
  margin: 0 0 30px;
  color: #222;
  font-size: clamp(1.02rem, 1.7vw, 1.6rem);
  font-weight: 400;
  line-height: 1.4;
  animation: ghUp .6s var(--gh-ease) .44s both;
}

.gh-bottom {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Character row - each artwork already carries its own label, so it's just a linked image,
   standing on a soft shadow "stage". */
.gh-characters {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
  padding-bottom: 6px;
}
.gh-characters::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 40, 20, .22), transparent);
  z-index: -1;
}
.gh-character {
  position: relative;
  display: block;
  flex: 0 1 auto;
  border-radius: 14px;
  transition: transform .35s var(--gh-ease);
  animation: ghPop .6s var(--gh-ease) both;
  animation-delay: calc(.55s + var(--i, 0) * .1s);
}
.gh-character img {
  display: block;
  height: clamp(118px, 12vw, 190px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .12));
  transition: filter .35s ease;
}
/* Gentle idle bob once they've popped in, offset per character so they don't move in unison. */
@keyframes ghFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.gh-character img { animation: ghFloat 4.2s ease-in-out infinite; animation-delay: calc(1.4s + var(--i, 0) * .55s); }
.gh-character:hover img { animation-play-state: paused; }

.gh-character:hover,
.gh-character:focus-visible {
  transform: translateY(-10px) scale(1.07);
  z-index: 2;
}
.gh-character:hover img,
.gh-character:focus-visible img { filter: drop-shadow(0 18px 22px rgba(235, 10, 30, .28)); }
.gh-character:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

@keyframes ghUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ghScene { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes ghPop { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }

/* Floating stats card overlapping the hero's bottom edge (home page only). */
.stats-bar--floating {
  z-index: 6;
  margin-top: -82px;
  background: transparent;
  border: 0;
  overflow: visible;
}
.stats-bar--floating::before { display: none; }
.stats-bar--floating .stats-bar-grid {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(17, 17, 26, .10), 0 2px 6px rgba(17, 17, 26, .05);
}
.stats-bar--floating .stats-bar-item {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 18px;
  padding: 28px 18px;
  text-align: left;
}
.stats-bar--floating .stats-bar-item:hover { background: transparent; }
.stats-bar--floating .stats-bar-item i { grid-row: 1 / 3; margin: 0; font-size: 2.3rem; }
.stats-bar--floating .stats-bar-item strong { margin: 0; color: var(--ink); line-height: 1.1; }
.stats-bar--floating .stats-bar-item span { color: var(--muted); font-weight: 500; }

@media (max-width: 1200px) {
  .gh-bottom { flex-wrap: wrap; gap: 22px; }
}

/* Below tablet width the subject would sit behind the text, so the artwork becomes a
   picture under the copy instead of a full background. */
@media (max-width: 900px) {
  .gh-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 118px 0 110px;
  }
  .gh-scene {
    position: relative;
    inset: auto;
    order: 2;
    z-index: 0;
    width: 100%;
    /* Tall crop anchored right so the person fills the width (no empty sky on the left). */
    height: min(105vw, 620px);
    margin-top: -12px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
  }
  .gh-scene::before { display: none; }
  .gh-scene img { object-position: 94% center; }
}

@media (max-width: 768px) {
  .gh-eyebrow { gap: 10px; letter-spacing: .26em; }
  .gh-eyebrow::before { width: 36px; }
  .gh-title { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .gh-text { margin-bottom: 24px; }
  .gh-characters { width: 100%; justify-content: space-between; gap: 2px; }
  .gh-character { flex: 1 1 0; }
  .gh-character img { width: 100%; height: auto; max-height: 150px; }
  .stats-bar--floating { margin-top: -64px; }
  .stats-bar--floating .stats-bar-item { display: grid; padding: 18px 12px; column-gap: 10px; }
  .stats-bar--floating .stats-bar-item i { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-hero *, .gh-hero *::after { animation: none !important; }
  .gh-character { transition: none; }
}
