/* ==========================================================================
   LS Metal Works - Homepage Hero
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(
      90deg,
      rgb(15 23 42 / 0.97) 0%,
      rgb(15 23 42 / 0.91) 43%,
      rgb(15 23 42 / 0.62) 70%,
      rgb(15 23 42 / 0.48) 100%
    ),
    linear-gradient(180deg, rgb(15 23 42 / 0.08), rgb(15 23 42 / 0.5)),
    url("../images/gallery/shed-fabrication-welding.jpg");
  background-position: center;
  background-size: cover;
  color: var(--color-white);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgb(255 255 255 / 0.025) 80px
    ),
    linear-gradient(115deg, rgb(249 115 22 / 0.07), transparent 28%);
  content: "";
  pointer-events: none;
}

.hero-container {
  position: relative;
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 49rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: 0.5rem 0.85rem;
  border: 1px solid rgb(249 115 22 / 0.45);
  border-radius: var(--radius-full);
  background: rgb(15 23 42 / 0.52);
  color: #fed7aa;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(0.5rem);
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgb(249 115 22 / 0.14);
}

.hero-title {
  color: var(--color-white);
  font-size: clamp(2.35rem, 9vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  color: var(--color-accent);
}

.hero-description {
  max-width: 41rem;
  margin-top: var(--space-6);
  color: #e2e8f0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.8;
  text-shadow: 0 1px 1px rgb(15 23 42 / 0.25);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero-primary-button,
.hero-secondary-button {
  min-height: 3.5rem;
  padding-inline: 1.5rem;
}

.hero-secondary-button {
  border-color: rgb(255 255 255 / 0.72);
  background: rgb(15 23 42 / 0.28);
  color: var(--color-white);
  backdrop-filter: blur(0.4rem);
}

.hero-secondary-button:hover {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-primary);
}

.hero-primary-button svg {
  transition: transform var(--transition-base);
}

.hero-primary-button:hover svg {
  transform: translateX(0.25rem);
}

.hero-highlights {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgb(255 255 255 / 0.22);
  color: #f1f5f9;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.highlight-icon {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgb(249 115 22 / 0.14);
}

.highlight-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--color-accent);
  content: "";
  transform: translate(-50%, -50%);
}

.hero-stats {
  position: relative;
  z-index: 1;
  width: min(100%, 20rem);
  padding: var(--space-6);
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.07)),
    rgb(15 23 42 / 0.38);
  box-shadow: 0 1.5rem 4rem rgb(2 6 23 / 0.28);
  backdrop-filter: blur(0.85rem);
}

.hero-stats::before {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2rem;
  height: 0.2rem;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  content: "";
}

.hero-stats-label {
  margin-bottom: var(--space-4);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stats-list {
  display: grid;
}

.hero-stat {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid rgb(255 255 255 / 0.14);
}

.hero-stat-value {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-stat-value span {
  color: var(--color-accent);
}

.hero-stat dt {
  color: #e2e8f0;
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.35;
}

.hero-accent {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.hero-accent-top {
  top: -8rem;
  left: -7rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgb(249 115 22 / 0.22);
  box-shadow:
    0 0 0 2.5rem rgb(249 115 22 / 0.035),
    0 0 0 5rem rgb(249 115 22 / 0.02);
}

.hero-accent-bottom {
  right: 8%;
  bottom: -8rem;
  width: 16rem;
  height: 16rem;
  background: rgb(255 255 255 / 0.025);
}

/* Entrance animation
   ========================================================================== */

.hero-animate {
  opacity: 0;
  animation: hero-fade-up 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-delay-1 {
  animation-delay: 80ms;
}

.hero-delay-2 {
  animation-delay: 160ms;
}

.hero-delay-3 {
  animation-delay: 260ms;
}

.hero-delay-4 {
  animation-delay: 360ms;
}

.hero-delay-5 {
  animation-delay: 460ms;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive layout
   ========================================================================== */

@media (min-width: 36rem) {
  .hero-highlights {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: var(--space-6);
  }
}

@media (min-width: 62rem) {
  .hero {
    padding-block: clamp(2.75rem, 6vh, 4.5rem);
  }

  .hero-container {
    grid-template-columns: minmax(0, 1fr) 18.5rem;
    gap: clamp(3rem, 6vw, 6rem);
  }

  .hero-title {
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    white-space: nowrap;
  }

  .hero-stats {
    justify-self: end;
  }
}

@media (max-width: 35.9375rem) {
  .hero {
    background:
      linear-gradient(
        90deg,
        rgb(15 23 42 / 0.97) 0%,
        rgb(15 23 42 / 0.9) 65%,
        rgb(15 23 42 / 0.72) 100%
      ),
      linear-gradient(180deg, rgb(15 23 42 / 0.2), rgb(15 23 42 / 0.58)),
      url("../images/gallery/shed-fabrication-welding.jpg");
    background-position: 62% center;
    background-size: cover;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    margin-inline: auto;
  }
}

@media (min-width: 36rem) and (max-width: 61.9375rem) {
  .hero-stats {
    width: 100%;
  }

  .hero-stats-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stat {
    grid-template-columns: 1fr;
    align-content: start;
    padding: var(--space-4);
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 0.14);
  }

  .hero-stat:first-child {
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-animate {
    opacity: 1;
    animation: none;
  }
}
