/* =============================================================
   ENERGYM — Hero Section
   ============================================================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-lg);
  /* extra top padding to clear the two-row header (~108px total) */
  padding-top: 80px;
  overflow: hidden;
}

/* ---- Background slideshow ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity   1.2s var(--ease-out),
    transform 8s   linear;
}
.hero-bg-slide.active {
  opacity: 0.4;
  transform: scale(1);
}
.hero-bg-slide:nth-child(1) {
  background-image: url('https://framerusercontent.com/images/mQQvrq8NMRY7rWMxsKhWbEmR8dM.jpg');
}
.hero-bg-slide:nth-child(2) {
  background-image: url('https://framerusercontent.com/images/hrhQ5vHOEaOzdKWVZoBXgfZzvv0.jpg');
}
.hero-bg-slide:nth-child(3) {
  background-image: url('https://framerusercontent.com/images/TnJyQlSTxUuWAUUwGnecriw03Bg.jpg');
}
/* ---- When you add local images, replace the URLs above with:
   background-image: url('../assets/images/hero-1.jpg'); etc. ---- */

/* ---- Gradient overlay — two layers:
   1. A flat dark base so the photo is always subdued
   2. A bottom-to-top gradient that fades into the page bg ---- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* flat dark veil over the whole image */
    linear-gradient(
      to bottom,
      rgba(13, 13, 13, 0.55) 0%,
      rgba(13, 13, 13, 0.45) 50%,
      rgba(13, 13, 13, 0.80) 90%,
      #0d0d0d 100%
    );
  z-index: 1;
}

/* ---- Content layer ---- */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

/* ---- Headline ---- */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 4vw, 6rem);
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 1.6rem;
  margin-top: 56px;
  text-transform: uppercase;
}
.hero-title .highlight { color: var(--clr-primary); }

/* ---- Sub-copy ---- */
.hero-subtitle {
  max-width: 480px;
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--clr-text-soft);
  margin-bottom: var(--sp-md);
  line-height: 1.75;
}

/* ---- CTA row ---- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* ---- Social follow row ---- */
.hero-social {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1rem;
  color: var(--clr-text-muted);
}
.hero-social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--clr-text-muted);
  transition: color var(--dur-fast);
}
.hero-social-link:hover { color: var(--clr-primary); }
.hero-social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

@media (max-width: 1024px) {
  /* Responsive tablet */
.hero-title { font-size: clamp(3rem, 9vw,4rem); }
.hero-subtitle { font-size: 1.25rem; }
.hero-social { font-size: 1.25rem; }
  }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero-title { font-size: clamp(2rem, 7vw, 2rem); }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-social { font-size: 0.7rem; }
}
