/* Hero — ported from sections/hero-usbc.liquid */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--wp--preset--color--surface, #F5F5F5);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.68) 50%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-3xl, 4rem) var(--space-lg, 1.5rem);
  max-width: 800px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF !important;
  margin-bottom: var(--space-lg, 1.5rem);
  background: none;
  -webkit-text-fill-color: unset;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95) !important;
  max-width: 500px;
  margin: 0 auto var(--space-xl, 2rem);
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md, 1rem);
}

.hero-actions .btn.primary {
  background: #0048FF;
  color: #FFFFFF;
  border-color: #0048FF;
  letter-spacing: 0.1em;
  font-size: 13px;
  padding: 16px 40px;
}

.hero-actions .btn.primary:hover {
  background: #0039CC;
  border-color: #0039CC;
  opacity: 1;
}

.hero-actions .btn:not(.primary) {
  color: #FFFFFF;
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-actions .btn:not(.primary):hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: transparent;
  color: #FFFFFF;
  opacity: 1;
}

.hero-actions .btn-lg {
  padding: 16px 32px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    /* Keep overflow:hidden for the background image only; text must not clip */
  }

  .hero-inner {
    padding: var(--space-2xl, 3rem) var(--space-md, 1rem);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .hero h1 {
    /* P2-5: smaller font so full title fits on 2 lines at 360px+ */
    font-size: clamp(1.5rem, 6vw, 2rem);
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    white-space: normal;
  }

  .hero-subtitle {
    /* P2-5: ensure subtitle doesn't clip */
    overflow-wrap: break-word;
    max-width: 100%;
    white-space: normal;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}
