/* ============================================================
   STHERB -- History Redesign
   Scoped to .stherb-redesign-history (body class on
   template-history-redesign.php). Reuses design tokens and base
   classes (.sr-container, .sr-kicker, .sr-btn) from
   homepage-redesign.css, and classes from about-redesign.css
   (sr-about-media, sr-about-ph, sr-about-statbar, sr-about-hub,
   sr-about-cta), enqueued as a dependency.
   ============================================================ */

/* ---- Hero ---- */
.sr-history-hero {
  padding: 72px 0 64px;
}

.sr-history-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sr-history-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.sr-history-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.sr-history-hero-copy h1 {
  margin-bottom: 18px;
}

.sr-history-hero-copy > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.sr-history-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.sr-history-hero-media {
  aspect-ratio: 4 / 3;
}

/* ---- Story ---- */
.sr-history-story {
  padding: 8px 0 72px;
}

.sr-history-story-col {
  max-width: 760px;
  margin: 0 auto;
}

.sr-history-story-col p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 22px;
}

.sr-history-story-col p:last-child {
  margin-bottom: 0;
}

/* ---- Timeline ---- */
.sr-history-timeline {
  padding: 24px 0 72px;
  background: var(--soft);
}

.sr-history-timeline-list {
  max-width: 760px;
  margin: 40px auto 0;
}

.sr-history-timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
}

.sr-history-timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.sr-history-timeline-rail::before {
  content: '';
  position: absolute;
  top: 52px;
  bottom: -32px;
  left: 50%;
  width: 2px;
  background: rgba(28, 111, 171, 0.3);
  transform: translateX(-50%);
}

.sr-history-timeline-item:last-child .sr-history-timeline-rail::before {
  display: none;
}

.sr-history-timeline-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.1;
  padding: 4px;
  flex-shrink: 0;
}

.sr-history-timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 32px;
}

.sr-history-timeline-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
}

.sr-history-timeline-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
}

/* ---- Disclaimer ---- */
.sr-history-disclaimer {
  padding: 0 0 56px;
}

.sr-history-disclaimer p {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.sr-history-disclaimer strong {
  color: var(--ink);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .sr-history-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sr-history-hero-media { order: -1; }

  .sr-history-timeline-item {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .sr-history-timeline-dot {
    width: 44px;
    height: 44px;
    font-size: 9.5px;
  }

  .sr-history-timeline-rail::before {
    top: 46px;
  }
}

@media (max-width: 640px) {
  .sr-history-hero { padding: 44px 0 40px; }

  .sr-history-hero-copy > p { max-width: none; }

  .sr-history-hero-ctas .sr-btn { flex: 1 1 auto; justify-content: center; }

  .sr-history-story { padding: 4px 0 48px; }

  .sr-history-timeline { padding: 12px 0 48px; }
}
