/* ------------------------------------------------------------------
   Re-Lyte sponsor page template
   (template-parts/relyte-template.php)

   Uses the theme's brand variables (--color-primary, --font-primary…).
   Note: the theme sets html { font-size: 10px }, so sizes are in px.
   ------------------------------------------------------------------ */

.relyte-page {
  --relyte-red: var(--color-primary, #CF2027);
  --relyte-black: var(--background-color-2, #000);
  --relyte-charcoal: var(--background-color-4, #161116);
  --relyte-panel: #1d1d1d;
  --relyte-light: #f4f6f9;
  overflow-x: hidden;
  background: var(--relyte-black);
  color: #fff;
}

.relyte-page h1,
.relyte-page h2,
.relyte-page h3 {
  font-weight: 700;
  text-transform: uppercase;
}

/* Eyebrow */
.relyte-eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--relyte-red);
}

/* Section titles */
.relyte-title {
  font-size: 40px;
  line-height: 1.05;
  margin-bottom: 20px;
  color: #000;
}

.relyte-title--light {
  color: #fff;
}

/* Buttons */
.relyte-btn {
  display: inline-block;
  padding: 16px 32px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.relyte-btn--primary {
  background: var(--relyte-red);
  border-color: var(--relyte-red);
  color: #fff;
}

.relyte-btn--primary:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.relyte-btn--outline {
  border-color: #fff;
  color: #fff;
}

.relyte-btn--outline:hover {
  background: #fff;
  color: #000;
}

.relyte-btn--dark {
  background: #000;
  border-color: #000;
  color: #fff;
}

.relyte-btn--dark:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* Hero */
.relyte-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--relyte-charcoal);
  border-bottom: 4px solid var(--relyte-red);
}

.relyte-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 170px 60px 70px max(24px, calc((100vw - 1320px) / 2 + 12px));
}

.relyte-hero__crumbs {
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--color-gray, #BEC2CB);
}

.relyte-hero__crumbs a {
  color: var(--color-gray, #BEC2CB);
  text-decoration: none;
}

.relyte-hero__crumbs a:hover {
  color: #fff;
}

.relyte-hero__crumbs span {
  margin: 0 8px;
}

.relyte-hero__crumbs strong {
  color: #fff;
  font-weight: 400;
}

.relyte-hero__title {
  font-size: 68px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 24px;
}

.relyte-hero__intro {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.7;
  color: #fff;
  margin-bottom: 32px;
}

.relyte-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.relyte-hero__media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.relyte-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo strip */
.relyte-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 26px 24px;
  background: var(--relyte-panel);
}

.relyte-logos img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 56px;
  object-fit: contain;
}

.relyte-logos__x {
  font-size: 22px;
  color: var(--color-gray, #BEC2CB);
}

/* Sections */
.relyte-section {
  padding: 90px 0;
}

.relyte-section--light {
  background: #fff;
  color: #000;
}

.relyte-section--dark {
  background: var(--relyte-charcoal);
}

.relyte-meta {
  font-size: 13px;
  color: #666;
}

.relyte-prose p {
  font-size: 16px;
  line-height: 1.85;
  color: #000;
  margin-bottom: 18px;
}

/* Quotes */
.relyte-quote {
  margin: 28px 0 0;
  padding: 24px 28px;
  background: var(--relyte-light);
  border-left: 4px solid var(--relyte-red);
  border-radius: 0 10px 10px 0;
}

.relyte-quote blockquote {
  margin: 0 0 10px;
  font-family: var(--font-primary);
  font-size: 20px;
  line-height: 1.4;
  color: #000;
}

.relyte-quote figcaption {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
}

/* Benefit cards */
.relyte-card {
  height: 100%;
  overflow: hidden;
  background: var(--relyte-panel);
  border-bottom: 3px solid var(--relyte-red);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.relyte-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(207, 32, 39, 0.25);
}

.relyte-card__img img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.relyte-card__body {
  padding: 26px 26px 30px;
}

.relyte-card__body h3 {
  font-size: 22px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 12px;
}

.relyte-card__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-gray, #BEC2CB);
}

/* About */
.relyte-about__media {
  margin: 0;
}

.relyte-about__media img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.relyte-about__media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
}

.relyte-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.relyte-stat {
  padding: 22px 20px;
  background: var(--relyte-light);
  border-radius: 10px;
  border-top: 3px solid var(--relyte-red);
}

.relyte-stat strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-primary);
  font-size: 40px;
  line-height: 1;
  color: var(--relyte-red);
}

.relyte-stat span {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

.relyte-support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  background: #000;
  border-left: 4px solid var(--relyte-red);
  border-radius: 0 10px 10px 0;
}

.relyte-support p {
  flex: 1 1 260px;
  margin: 0;
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
}

.relyte-footnote {
  margin: 14px 0 0;
  font-size: 12px;
  color: #777;
}

/* Fundraising CTA */
.relyte-cta {
  padding: 80px 0;
  background: var(--relyte-red);
}

.relyte-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.relyte-cta .relyte-eyebrow {
  color: #fff;
}

.relyte-cta .relyte-title {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 46px;
}

.relyte-cta p {
  margin: 14px 0 0;
  color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
  .relyte-hero {
    grid-template-columns: 1fr;
  }

  .relyte-hero__content {
    padding: 130px 24px 50px;
  }

  .relyte-hero__media {
    order: -1;
    min-height: 280px;
  }

  .relyte-hero__title {
    font-size: 52px;
  }

  .relyte-section {
    padding: 60px 0;
  }
}

@media (max-width: 575px) {
  .relyte-hero__title {
    font-size: 40px;
  }

  .relyte-title,
  .relyte-cta .relyte-title {
    font-size: 30px;
  }

  .relyte-logos {
    flex-direction: column;
    gap: 16px;
  }

  .relyte-stats {
    grid-template-columns: 1fr;
  }

  .relyte-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
