/**
 * Hero Section Component
 * Full-height cinematic entry point with subtle backdrop
 */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  padding-top: calc(var(--space-2xl) + 64px); /* Account for fixed nav */
  position: relative;
  overflow: hidden;
}

/* Subtle background gradient — not dominant */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 40%, rgba(200, 164, 94, 0.06), transparent),
    radial-gradient(ellipse 500px 500px at 70% 60%, rgba(200, 164, 94, 0.04), transparent);
  pointer-events: none;
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

/* Eyebrow label */
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  animation: slideUp 0.6s ease-out 0.1s both;
}

/* Main headline */
.hero h1 {
  max-width: 780px;
  margin-bottom: var(--space-md);
  animation: slideUp 0.6s ease-out 0.2s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

/* Subheadline */
.hero-sub {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-ink-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  animation: slideUp 0.6s ease-out 0.3s both;
}

/* Search bar — primary action */
.hero-search {
  width: 100%;
  max-width: 580px;
  position: relative;
  margin-bottom: var(--space-md);
  animation: slideUp 0.6s ease-out 0.4s both;
}

.hero-search input {
  width: 100%;
  padding: 18px 24px;
  padding-right: 140px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-elevated);
  color: var(--color-ink);
  outline: none;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.hero-search input::placeholder {
  color: #b0ada6;
}

.hero-search input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200, 164, 94, 0.1);
}

/* Search button */
.hero-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px 24px;
  background: var(--color-ink);
  color: var(--color-surface);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--duration-fast) ease;
}

.hero-search button:hover {
  opacity: 0.85;
}

/* Hints below search */
.hero-hint {
  margin-top: var(--space-sm);
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  animation: slideUp 0.6s ease-out 0.5s both;
}

.hero-hint a {
  color: var(--color-ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) ease;
}

.hero-hint a:hover {
  color: var(--color-accent);
}

/* Dark variant (for sections on dark background) */
.hero.hero-dark {
  color: var(--color-surface);
  background: var(--color-ink);
}

.hero.hero-dark h1 {
  color: var(--color-surface);
}

.hero.hero-dark .hero-sub {
  color: rgba(255, 255, 255, 0.6);
}

.hero.hero-dark .hero-search input {
  background: var(--color-ink-soft);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--color-surface);
}

.hero.hero-dark .hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.hero.hero-dark .hero-search input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200, 164, 94, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-xl) var(--space-md);
    padding-top: calc(var(--space-xl) + 56px);
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .hero-sub {
    font-size: 1rem;
  }

  .hero-search input {
    padding-right: 100px;
    padding: 14px 16px;
    padding-right: 100px;
    font-size: 0.85rem;
  }

  .hero-search button {
    padding: 10px 18px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.4rem;
  }

  .hero-search {
    max-width: 100%;
  }

  .hero-search input {
    padding-right: 90px;
  }

  .hero-hint {
    display: none;
  }
}

/* Animation keyframes */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
