/* Scadea theme: archive-partnership.css
   Global Alliances & Partnerships archive page.
   Loaded only on is_post_type_archive('partnership') via scadea_enqueue_assets(). */

/* ============================================================
   HERO
   ============================================================ */
.pa-hero {
  background: linear-gradient(135deg, #0E1D3F 0%, #122348 55%, #1A2E5C 100%);
  padding: clamp(4.5rem, 10vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.pa-hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.pa-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pa-hero__eyebrow {
  display: inline-block;
  font-family: var(--f-acc);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(250, 166, 26, 0.12);
  padding: 6px 16px;
  border-radius: 30px;
}

.pa-hero__title {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.pa-hero__desc {
  font-family: var(--f-body);
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 680px;
  margin: 0;
}

/* ============================================================
   SHARED SECTION CHROME
   ============================================================ */
.pa-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.pa-section--global {
  background: var(--white);
}

.pa-section--emerging {
  background: var(--light-gray);
}

.pa-section__head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.pa-section__head .eyebrow {
  display: inline-block;
  font-family: var(--f-acc);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.pa-section__head h2 {
  margin: 0 0 16px;
}

.pa-section__intro {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ============================================================
   GLOBAL PARTNER GRID + CARDS
   ============================================================ */
.pa-grid--global {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.pa-card--global {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pa-card--global:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

/* Logo container — fixed height keeps grid rows consistent */
.pa-card--global .pa-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 64px;
  margin-bottom: 20px;
}

.pa-card--global .pa-card__logo {
  max-height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
}

.pa-card__logo-text {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}

.pa-card__tagline {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 20px;
}

.pa-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pa-card__block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pa-card__label {
  font-family: var(--f-acc);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.pa-card__block p {
  font-family: var(--f-body);
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.65;
  margin: 0;
}

/* CTA link — pinned to bottom of card */
.pa-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--f-acc);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

.pa-card__cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.pa-card__cta:hover,
.pa-card__cta:focus {
  color: var(--blue-hover);
}

.pa-card__cta:hover svg,
.pa-card__cta:focus svg {
  transform: translateX(3px);
}

/* ============================================================
   EMERGING ALLIANCES — LOGO WALL
   ============================================================ */
.pa-logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Each badge: white card, centered logo + name label */
.pa-logo-badge {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  cursor: default;
}

.pa-logo-badge:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(0, 149, 218, 0.2);
  transform: translateY(-2px);
}

/* Fixed-height image area keeps all badges the same height */
.pa-logo-badge__img-wrap {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pa-logo-badge__img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  /* filter makes coloured logos consistent against white card */
  filter: none;
  transition: filter 0.15s ease;
}

/* Fallback when no image is found */
.pa-logo-badge__name {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
  text-align: center;
}

/* Partner name caption below the logo */
.pa-logo-badge__label {
  font-family: var(--f-acc);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.pa-empty {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  padding: 48px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .pa-grid--global  { grid-template-columns: 1fr; }
  .pa-logo-wall     { grid-template-columns: repeat(2, 1fr); }
  .pa-card--global  { padding: 24px 20px 20px; }
}

@media (min-width: 481px) and (max-width: 640px) {
  .pa-grid--global  { grid-template-columns: 1fr; }
  .pa-logo-wall     { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 641px) and (max-width: 900px) {
  .pa-grid--global  { grid-template-columns: repeat(2, 1fr); }
  .pa-logo-wall     { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .pa-logo-wall     { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1101px) {
  .pa-logo-wall     { grid-template-columns: repeat(6, 1fr); }
}
