/**
 * HERO — Sekcja powitalna
 */

.hero {
  height: 100vh;
  min-height: 640px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Tło — zdjęcie bg.jpg */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    var(--kwn-hero-bg, url('../images/bg.jpg'))
    center / cover
    no-repeat;
  filter: brightness(0.52);
  /* will-change: transform usunięte — powodowało artefakty GPU przy scrollu */
}

/* Subtelny gradient — tylko cieniuje dół, nie przyciemnia całości */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

/* Vignette — cień skupiony na centrum (gdzie leży tekst), boki jasne */
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 88% 78% at 50% 52%,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.12) 52%,
    transparent 100%
  );
  pointer-events: none;
}

/* Treść */
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--palette-white);
  max-width: 860px;
  padding: var(--space-8);
}

/* Eyebrow — tekst dekoracyjny nad tytułem */
.hero__eyebrow {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--color-accent);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: var(--space-4);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7), 0 2px 24px rgba(0, 0, 0, 0.5);
}

/* Główny tytuł */
.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-normal);
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65), 0 4px 32px rgba(0, 0, 0, 0.45);
}

/* Podtytuł */
.hero__sub {
  font-size: clamp(0.7rem, 1.4vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-10);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7), 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* CTA */
.btn-hero {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;                    /* nieco większy niż var(--text-sm) = 0.75rem */
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--palette-white);
  padding: var(--space-4) var(--space-12);
  border: var(--border-width) solid rgba(194, 164, 111, 0.9);
  background: transparent;
  transition: background var(--ease-mid), color var(--ease-mid), border-color var(--ease-mid);
  text-shadow: none;
}

.btn-hero:hover,
.btn-hero:focus-visible {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}


/* ── Scroll cue ── */
.scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  user-select: none;
}

.scroll-cue__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.55), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
  animation-fill-mode: both; /* startuje od opacity: 0.25, bez skoku na początku */
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 1; }
}
