/* hero.css — Era-Spine Hero 72/28. Bal text + jobb 9-cellás vertikális era-sáv. Mobile: horizontal strip felül. */

.hero--era-spine {
  padding: var(--s-96) 0 var(--s-80);
  min-height: 76vh;
  display: flex;
  align-items: center;
  background-color: #141010;
  background-image:
    linear-gradient(100deg,
      rgba(16, 12, 10, 0.82) 0%,
      rgba(16, 12, 10, 0.62) 55%,
      rgba(16, 12, 10, 0.35) 100%),
    url('../images/unciv-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hero--era-spine > .container {
  width: 100%;
}

.hero__text {
  max-width: 680px;
}

/* Hero text overrides — light-on-dark for the photo-backed hero only.
   Era-spine panel keeps its own parchment background + dark text for readability. */
.hero--era-spine .hero__kicker {
  color: #F4EFE2;
  opacity: 0.92;
}
.hero--era-spine .hero__text h1 {
  color: #F4EFE2;
}
.hero--era-spine .hero__subtitle {
  color: rgba(244, 239, 226, 0.88);
}
.hero--era-spine .hero__lead {
  color: rgba(244, 239, 226, 0.92);
}
.hero--era-spine .hero__lead::first-letter {
  color: #D4914A;
}
.hero--era-spine .btn-secondary {
  color: #D4914A;
}
.hero--era-spine .btn-secondary:hover {
  color: #E8A861;
}
.hero--era-spine .divider-cartographic {
  color: #D4914A;
}
.hero--era-spine .divider-cartographic::before,
.hero--era-spine .divider-cartographic::after {
  border-top-color: rgba(201, 191, 165, 0.45);
}
.hero--era-spine .divider-cartographic .glyph {
  color: #D4914A;
}

/* Small variant (sub-pages): no photo bg — keep editorial parchment */
.hero--sm {
  background-color: var(--c-bg);
  background-image: none;
  min-height: auto;
  padding: var(--s-80) 0 var(--s-48);
}
.hero--sm .hero__kicker  { color: var(--c-accent); opacity: 1; }
.hero--sm .hero__text h1 { color: var(--c-text); }
.hero--sm .hero__subtitle { color: var(--c-text-dim); }
.hero--sm .hero__lead { color: var(--c-text); }
.hero--sm .hero__lead::first-letter { color: var(--c-accent); }
.hero--sm .btn-secondary { color: var(--c-accent); }
.hero--sm .btn-secondary:hover { color: var(--c-accent-hover); }
.hero--sm .divider-cartographic { color: var(--c-accent); }
.hero--sm .divider-cartographic::before,
.hero--sm .divider-cartographic::after { border-top-color: var(--c-border-hi); }
.hero--sm .divider-cartographic .glyph { color: var(--c-accent); }

.hero__kicker {
  display: block;
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: var(--s-16);
}

.hero__text h1 {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--c-text);
  margin-bottom: var(--s-24);
}

.hero__subtitle {
  font-family: var(--f-body);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--c-text-dim);
  max-width: 580px;
  margin-bottom: var(--s-32);
}

.hero__lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: var(--s-32);
}
.hero__lead::first-letter {
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 4rem;
  float: left;
  line-height: 0.92;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--c-accent);
}

.hero__cta-wrap {
  display: flex;
  gap: var(--s-24);
  flex-wrap: wrap;
  align-items: center;
}

.hero__era-spine {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
  overflow: hidden;
}

.era-cell {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur) var(--ease);
}
.era-cell:last-child { border-bottom: none; }
.era-cell:hover {
  background: var(--c-surface);
  color: inherit;
}

.era-cell__name {
  font-family: var(--f-body);
  font-weight: 600;
  font-variant: small-caps;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--c-text);
  text-transform: lowercase;
}

.era-cell__years {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--c-text-dim);
}

.era-cell__hint {
  font-family: var(--f-body);
  font-size: 0.75rem;
  color: var(--c-text-dim);
  margin-top: 2px;
}

.era-cell.is-active {
  background: var(--c-surface);
  border-left: 4px solid var(--c-accent-sec);
  padding-left: 10px;
}
.era-cell.is-active .era-cell__name {
  color: var(--c-accent);
}

/* Mobile: era-spine becomes a horizontal scroll strip placed ABOVE the text */
@media (max-width: 1023px) {
  .hero--era-spine {
    padding: var(--s-48) 0;
    min-height: auto;
    background-position: center top;
  }
  .hero--era-spine > .container.grid--72-28 {
    grid-template-columns: 1fr;
    gap: var(--s-32);
  }
  .hero__era-spine {
    order: -1;
    display: flex;
    overflow-x: auto;
    border: none;
    padding: var(--s-12) 0;
    gap: 0;
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .era-cell {
    flex: 0 0 auto;
    min-width: 150px;
    border-bottom: none;
    border-right: 1px solid var(--c-border);
    padding: var(--s-8) var(--s-16);
  }
  .era-cell:last-child { border-right: none; }
  .era-cell.is-active {
    border-left: none;
    border-top: 3px solid var(--c-accent-sec);
    padding-top: 5px;
    padding-left: var(--s-16);
  }
}
