/* Styles for home/partners (app/sections/).
   Every rule is scoped to #section-partners, so none of it reaches other
   parts of the page.

   The heading row as in the other sections. Each partner is a card: the
   logo in its own colours on a cream plate (a logo drawn for a white
   page stays readable), then the name, a line about them and a link to
   their site. A closing strip asks visitors to become a partner. The
   stage is the dark ink, so it stands apart from the navy FAQ above. */

#section-partners {
  --pt-navy: #001e53;
  --pt-ink: #060c22;
  --pt-gold: #f1ae22;
  --pt-gold-hi: #ffc94d;
  --pt-cream: #f3eee2;
  --pt-line: rgba(243, 238, 226, 0.14);
  --pt-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pt-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  padding: clamp(56px, 8vw, 112px) clamp(20px, 6vw, 96px);
  /* from the navy the FAQ ends on, into the dark ink */
  background: linear-gradient(180deg, #001440 0%, var(--pt-ink) 38%);
  color: #fff;
  overflow: hidden;
}

#section-partners *,
#section-partners *::before,
#section-partners *::after {
  box-sizing: border-box;
}

#section-partners ::selection {
  background: var(--pt-gold);
  color: var(--pt-navy);
}

#section-partners .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#section-partners .partners-wrapper {
  max-width: 1320px;
  margin: 0 auto;
}

/* ---------- Heading row ---------- */
#section-partners .partners-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}

#section-partners .partners-title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
}

#section-partners .partners-title span {
  color: #feca16;
}

#section-partners .partners-subtitle {
  max-width: 34ch;
  margin: 0;
  font-family: var(--pt-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(243, 238, 226, 0.85);
}

/* ---------- The cards ---------- */
#section-partners .partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* one partner: a single card, not a full-width band */
#section-partners .partners-grid--one {
  grid-template-columns: minmax(0, 560px);
}

#section-partners .partner-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  background: var(--pt-navy);
  overflow: hidden;
  transition: transform 0.45s var(--pt-ease), border-color 0.3s ease, box-shadow 0.45s var(--pt-ease);
}

#section-partners .partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 174, 34, 0.55);
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, 0.9);
}

#section-partners .partner-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(150px, 16vw, 200px);
  overflow: hidden;
  padding: 28px 40px;
  background: var(--pt-cream);
  /* the alt text, if a logo cannot load */
  color: var(--pt-navy);
  font-family: var(--pt-sans);
  font-weight: 600;
  text-align: center;
}

#section-partners .partner-logo {
  display: block;
  /* the logo fills the plate's inner box, shrunk to fit either way */
  width: 100%;
  max-width: 280px;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--pt-ease);
}

#section-partners .partner-card:hover .partner-logo {
  transform: scale(1.05);
}

#section-partners .partner-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(22px, 2.4vw, 30px);
  border-top: 3px solid var(--pt-gold);
}

#section-partners .partner-name {
  margin: 0;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
}

#section-partners .partner-description {
  margin: 10px 0 0;
  font-family: var(--pt-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(243, 238, 226, 0.82);
}

#section-partners .partner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--pt-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pt-gold-hi);
  text-decoration: none;
}

#section-partners .partner-link svg {
  transition: transform 0.35s var(--pt-ease);
}

#section-partners .partner-link:hover {
  color: #fff;
}

#section-partners .partner-link:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- Closing strip ---------- */
#section-partners .partners-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4.4vw, 56px);
  padding-top: clamp(28px, 3.4vw, 40px);
  border-top: 1px solid var(--pt-line);
}

#section-partners .cta-heading {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
}

#section-partners .cta-text {
  margin: 8px 0 0;
  font-family: var(--pt-sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(243, 238, 226, 0.8);
}

/* The gold button, as in the other sections */
#section-partners .partnership-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--pt-gold);
  color: var(--pt-navy);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: background-color 0.25s ease, transform 0.35s var(--pt-ease);
}

#section-partners .partnership-btn svg {
  transition: transform 0.35s var(--pt-ease);
}

#section-partners .partnership-btn:hover {
  background: var(--pt-gold-hi);
  color: var(--pt-navy);
  transform: translateY(-2px);
}

#section-partners .partnership-btn:hover svg {
  transform: translateX(4px);
}

#section-partners a:focus-visible {
  outline: 2px solid var(--pt-gold-hi);
  outline-offset: 4px;
  border-radius: 4px;
}

#section-partners .partnership-btn:focus-visible {
  border-radius: 999px;
}

/* ---------- Phones ---------- */
@media (max-width: 560px) {
  #section-partners .partnership-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #section-partners *,
  #section-partners *::before,
  #section-partners *::after {
    transition-duration: 0.01ms !important;
  }
}
