/* Hub selector — Catalyst Energy Advisors UEA Demos */

:root {
  --navy:  #192854;
  --amber: #FBB228;
  --slate: #475569;
  --blue:  #3651AA;
  --cream: #FAF6EE;
  --white: #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow-x: hidden;
}

/* Animated background — same hookGradient used in both demos */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(54, 81, 170, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse at 15% 75%, rgba(251, 178, 40, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 60% 90%, rgba(54, 81, 170, 0.15) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: hookGradient 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes hookGradient {
  0%, 100% { background-position: 0% 0%, 100% 100%, 50% 100%; }
  50%       { background-position: 30% 20%, 60% 80%, 20% 60%; }
}

/* Layout wrapper */
.hub {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Brand line */
.hub-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.65;
  margin-bottom: 1.25rem;
}

/* Title */
.hub-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

/* Subtitle */
.hub-sub {
  font-size: 22px;
  font-weight: 600;
  color: var(--amber);
  max-width: 720px;
  line-height: 1.4;
  margin-bottom: 0;
}

/* Cards grid */
.hub-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3vw;
  width: 100%;
  max-width: 1080px;
  margin: 4rem auto 0;
}

@media (max-width: 680px) {
  .hub-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
}

/* Individual card */
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: 14px;
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  text-align: left;
}

.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.26);
}

.hub-card:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

/* Card label */
.card-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}

/* Card heading */
.hub-card h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

/* Card description */
.card-desc {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
  max-width: 340px;
  flex: 1;
}

/* Card arrow */
.card-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.5rem;
  font-size: 28px;
  color: var(--amber);
  line-height: 1;
  transition: transform 200ms ease;
}

.hub-card:hover .card-arrow {
  transform: translateX(4px);
}

/* Partner logos */
.hub-logo {
  position: absolute;
  top: 28px;
  height: 52px;
  width: auto;
  opacity: 0.95;
  z-index: 10;
}
.hub-logo-left  { left: 32px; }
.hub-logo-right {
  right: 32px;
  filter: brightness(0) invert(1);
}

/* Card illustrative art */
.card-art {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  height: 64px;
  width: auto;
  opacity: 0.92;
}

.hub-card .card-label,
.hub-card h3 {
  padding-right: 90px;
}

/* Footer */
.hub-footer {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  font-size: 11px;
  color: var(--cream);
  opacity: 0.5;
  letter-spacing: 0.05em;
  text-align: center;
}
