/* ==========================================================================
   EQUIDEM DESIGN SYSTEM - HERO (components/hero.css)
   Institutional hero: metric grid texture, editorial title, ETS badge.
   ========================================================================== */

.c-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(var(--space-8), 5vw, var(--space-12)) var(--space-6);
  border: 1px solid var(--color-border-subtle);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: none;
  background-color: var(--color-bg-surface);
  /* Metric grid: 1px rules at 4% opacity instead of blurred gradients. */
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  margin-top: 0;
}

/* Neutral wash that fades the grid towards the page canvas. */
.c-hero__accent-radial {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.c-hero__accent-radial--subtle {
  opacity: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(241, 245, 249, 0.75) 100%);
}

.c-hero__content {
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.c-hero__title {
  font-family: var(--font-header);
  font-weight: var(--font-weight-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text-heading);
  margin-bottom: var(--space-4);
}

.c-hero__lead {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-body);
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-3);
}

/* Editorial variant (homepage masthead): left aligned on desktop. */
.c-hero--editorial .c-hero__content {
  max-width: 880px;
}

/* ---- Split variant: statement (left) + call to action (right) ---------- */
.c-hero--split {
  padding: clamp(var(--space-6), 4vw, var(--space-10)) clamp(var(--space-5), 3vw, var(--space-8));
  text-align: left;
}

.c-hero--split .c-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: clamp(var(--space-6), 3.5vw, var(--space-10));
  align-items: stretch;
}

.c-hero--split .c-hero__content {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.c-hero--split .c-hero__title {
  font-size: clamp(1.9rem, 3.1vw, 2.8rem);
  max-width: 22ch;
}

.c-hero--split .c-hero__lead {
  max-width: 60ch;
  margin: 0;
}

/* Right column: the existing CTA blocks grouped on one panel. */
.c-hero__aside {
  display: flex;
  min-width: 0;
}

.c-hero__action-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.c-hero__support {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--color-text-body);
}

.c-hero__support .c-meta-label {
  margin-bottom: var(--space-1);
}

.c-hero__actions--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}

.c-hero__actions--stacked .btn {
  width: 100%;
}

.c-hero__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}

@media (max-width: 991.98px) {
  .c-hero--split .c-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .c-hero--split .c-hero__title {
    max-width: none;
  }
}

@media (min-width: 992px) {
  .c-hero--editorial {
    text-align: left;
  }

  .c-hero--editorial .c-hero__content {
    margin-left: 0;
  }

  .c-hero--editorial .c-hero__lead {
    margin-left: 0;
  }
}

.c-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

@media (min-width: 992px) {
  .c-hero--editorial .c-hero__actions {
    justify-content: flex-start;
  }
}

/* ---- Accent variant (callouts such as the /video subscribe banner) ---- */
.c-hero--accent {
  padding: var(--space-6);
  border: 1px solid rgba(158, 42, 43, 0.22);
  border-left: 3px solid var(--color-civic-crimson);
  border-radius: var(--radius-md);
  background-color: var(--color-danger-light);
  background-image: none;
  box-shadow: none;
}
