/* ================================
   HERO SECTION
================================ */

.hero {
  position: relative;
  min-height: 860px;

  margin-top: -80px;
  padding-top: 80px;

  background-image: url("../images/hero/hero-background.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;

  overflow: hidden;
  color: #ffffff;
}

/* DARK LAYER OVER THE BACKGROUND IMAGE */
.hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(17, 24, 39, 0.92) 0%,
    rgba(17, 24, 39, 0.72) 42%,
    rgba(17, 24, 39, 0.28) 75%,
    rgba(17, 24, 39, 0.12) 100%
  );

  z-index: 1;
}

/* MAIN HERO CONTENT WRAPPER */
.hero-container {
  position: relative;
  z-index: 2;

  width: min(100% - 80px, 1400px);
  min-height: 820px;
  margin-inline: auto;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding-top: 130px;
}

/* LEFT HERO TEXT */
.hero-content {
  max-width: 760px;
}

.hero-eyebrow {
  margin-bottom: 20px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #d1d5db;
}

.hero-title {
  margin: 0;

  font-size: clamp(64px, 6vw, 104px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;

  color: #ffffff;
}

.hero-description {
  max-width: 620px;
  margin-top: 28px;

  font-size: 18px;
  line-height: 1.7;

  color: #d1d5db;
}

/* PRIMARY CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 34px;
  padding: 15px 26px;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;

  background: #ffffff;
  color: #111827;

  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: #e5e7eb;
}

.hero-cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* ================================
   HERO INFORMATION PANELS
================================ */

.hero-panels {
  will-change: transform;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  width: 100%;
  margin-top: 80px;

  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-panel {
  min-height: 190px;
  padding: 28px;

  border-right: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);

  background: rgba(17, 24, 39, 0.18);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-panel-number {
  margin: 0 0 28px;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;

  color: #9ca3af;
}

.hero-panel-title {
  margin: 0;

  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;

  color: #ffffff;
}

.hero-panel-text {
  max-width: 260px;
  margin-top: 12px;

  font-size: 14px;
  line-height: 1.6;

  color: #cbd5e1;
}

/* ================================
   HERO DESKTOP REFINEMENTS
================================ */

.hero {
  min-height: 860px;

  background-position: center 42%;
}

.hero-container {
  min-height: 860px;

  padding-top: 120px;
  padding-bottom: 40px;
}

.hero-content {
  max-width: 780px;
}

.hero-title {
  max-width: 900px;
}

.hero-description {
  max-width: 560px;
}

.hero-panels {
  margin-top: 72px;
}

.hero-panel {
  min-height: 200px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-panel-number {
  margin-bottom: auto;
}

/* ================================
   TABLET HERO
================================ */

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    background-position: 58% center;
  }

  .hero-container {
    min-height: auto;
    width: min(100% - 48px, 1400px);

    padding-top: 100px;
    padding-bottom: 32px;
  }

  .hero-content {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(56px, 8vw, 78px);
  }

  .hero-description {
    max-width: 540px;

    font-size: 17px;
  }

  .hero-panels {
    grid-template-columns: repeat(2, 1fr);

    margin-top: 64px;
  }

  .hero-panel {
    min-height: 180px;
  }
}

/* ================================
   MOBILE HERO
================================ */

@media (max-width: 768px) {
  .hero {
    min-height: auto;

    margin-top: -72px;
    padding-top: 72px;

    background-position: 62% center;
  }

  .hero-container {
    width: min(100% - 32px, 1400px);

    padding-top: 48px;
    padding-bottom: 24px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-eyebrow {
    margin-bottom: 16px;

    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .hero-title {
    font-size: clamp(44px, 13vw, 64px);
    line-height: 0.98;
  }

  .hero-description {
    max-width: 100%;

    margin-top: 22px;

    font-size: 16px;
    line-height: 1.6;
  }

  .hero-cta {
    margin-top: 28px;

    padding: 14px 22px;
  }

  .hero-panels {
    grid-template-columns: 1fr;
    transform: none !important;
    will-change: auto;
    margin-top: 52px;
  }

  .hero-panel {
    min-height: 160px;

    padding: 24px;
  }

  .hero-panel-number {
    margin-bottom: 24px;
  }

  .hero-panel-title {
    font-size: 20px;
  }

  .hero-panel-text {
    max-width: 100%;

    font-size: 14px;
  }
}

/* ================================
   HERO FINAL POLISH
================================ */

/* Prevent accidental horizontal scrolling */
.hero,
.hero-container,
.hero-panels,
.hero-panel {
  max-width: 100%;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-cta {
    transition: none;
  }

  .hero-cta:hover {
    transform: none;
  }

  .hero-panels {
    transform: none !important;
    will-change: auto;
  }
}

/* Extra-small mobile tuning */
@media (max-width: 480px) {
  .hero {
    background-position: 66% center;
  }

  .hero-container {
    width: min(100% - 24px, 1400px);

    padding-top: 40px;
  }

  .hero-eyebrow {
    font-size: 11px;
    line-height: 1.5;
  }

  .hero-title {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1;
  }

  .hero-description {
    margin-top: 20px;

    font-size: 15px;
  }

  .hero-cta {
    width: 100%;

    margin-top: 24px;
  }

  .hero-panels {
    margin-top: 44px;
  }

  .hero-panel {
    min-height: 150px;

    padding: 22px;
  }
}
