/* ============================================================
   FPA Site — homepage (index2) specifics
   ============================================================ */

/* ——— Hero: 50/50 split, image fills right column ——— */
.fpa-home-hero {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.fpa-home-hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}

.fpa-home-hero__content {
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 7vw, 2.5rem) clamp(1.25rem, 4vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
  background: #ffffff;
}

.fpa-home-hero__media {
  position: relative;
  background: #ffffff;
  padding: 0 0 0;
  overflow: hidden;
}

.fpa-home-hero__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(400px, 52vh);
  margin: 0;
  object-fit: contain;
  object-position: right bottom;
}

.fpa-home-hero__copy {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

.fpa-home-hero__title {
  font-size: clamp(2.25rem, 8.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: none;
}

.fpa-home-hero__lead {
  margin-top: 1.125rem;
  max-width: 28rem;
  font-size: clamp(1.0625rem, 2.5vw, 1.125rem);
  line-height: 1.55;
}

.fpa-home-hero__ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.fpa-home-hero__ctas .fpa-site-btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  justify-content: center;
}

.fpa-home-hero__social {
  margin-top: 1.75rem;
}

.fpa-home-hero__social-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fpa-home-hero__social-avatars {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding-left: 0.2rem;
}

.fpa-home-hero__social-avatar {
  width: 40px;
  height: 40px;
  margin-left: -0.6rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  background: var(--fpa-app-surface-muted);
  filter: grayscale(100%);
  transition: filter 0.45s ease;
}

.fpa-home-hero__social-avatar.is-active {
  filter: grayscale(0%);
}

.fpa-home-hero__social-avatar:first-child {
  margin-left: 0;
}

.fpa-home-hero__social-avatar--skeleton {
  display: block;
  animation: fpa-site-pulse 1.1s ease-in-out infinite;
}

.fpa-home-hero__social-rotator {
  margin: 0;
  min-height: 1.35em;
  font-family: var(--fpa-app-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--fpa-app-text-muted);
}

.fpa-home-hero__social-line {
  display: inline-block;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.fpa-home-hero__social-line.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}

.fpa-home-hero__social-line.is-entering {
  opacity: 0;
  transform: translateY(-6px);
}

.fpa-home-hero__social-em {
  font-weight: 600;
  color: var(--fpa-app-text);
}

.fpa-home-hero__social-browse {
  color: inherit;
}

.fpa-home-hero__social-browse:hover {
  color: var(--fpa-app-text);
}

.fpa-home-hero__social-browse .fpa-home-hero__social-em {
  color: var(--fpa-app-text);
}

.fpa-home-hero__social-name-link {
  font-weight: 600;
  color: var(--fpa-app-text);
}

.fpa-home-hero__social-name-link:hover {
  color: var(--fpa-app-text);
}

@media (prefers-reduced-motion: reduce) {
  .fpa-home-hero__social-avatar {
    transition: none;
  }
}

.fpa-home-hero__social-line--skeleton {
  display: block;
  width: 11rem;
  max-width: 100%;
  height: 0.875rem;
  margin-inline: auto;
  border-radius: 4px;
  background: var(--fpa-app-surface-muted);
  animation: fpa-site-pulse 1.1s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .fpa-home-hero__social-line {
    transition: none;
  }
}

@media (max-width: 899px) {
  .fpa-home-hero__social-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .fpa-home-hero__social-avatars {
    justify-content: center;
    padding-left: 0;
  }

  .fpa-home-hero__social-rotator {
    text-align: center;
  }
}

@media (min-width: 900px) {
  .fpa-home-hero__layout {
    grid-template-columns: 1fr 1fr;
    min-height: clamp(520px, 72vh, 680px);
  }

  .fpa-home-hero__media {
    min-height: 100%;
    padding: 0;
  }

  .fpa-home-hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    object-fit: contain;
    object-position: right center;
  }

  .fpa-home-hero__content {
    padding: clamp(2.5rem, 4vw, 3.5rem)
      clamp(1.5rem, 4vw, 2.5rem)
      clamp(2.5rem, 4vw, 3.5rem)
      max(1rem, calc((100vw - var(--fpa-app-max-width)) / 2 + 1rem));
  }

  .fpa-home-hero__copy {
    margin-inline: 0;
    max-width: 28rem;
  }

  .fpa-home-hero__title {
    font-size: clamp(2.75rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    max-width: 16ch;
  }

  .fpa-home-hero__social-inner {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }

  .fpa-home-hero__social-avatars {
    padding-left: 0.2rem;
  }

  .fpa-home-hero__social-rotator {
    text-align: left;
  }

  .fpa-home-hero__social-line--skeleton {
    margin-inline: 0;
  }

  .fpa-home-hero__ctas {
    margin-top: 2rem;
  }

  .fpa-home-hero__social {
    margin-top: 2rem;
  }
}

/* ——— Advocates section ——— */
.fpa-home-advocates {
  background: var(--fpa-app-surface-muted);
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}

.fpa-home-advocates__header {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.fpa-home-advocates__header .fpa-site-lead {
  max-width: 36rem;
  margin-inline: auto;
}

/* ——— Browse by state (hero-style split + grid) ——— */
.fpa-home-states {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.fpa-home-states__layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
}

.fpa-home-states__content {
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1rem, 4vw, 1.5rem) clamp(1.25rem, 3vw, 1.5rem);
  background: #ffffff;
}

.fpa-home-states__copy {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

.fpa-home-states__copy .fpa-site-heading {
  max-width: 14ch;
}

@media (max-width: 899px) {
  .fpa-home-hero__title,
  .fpa-home-states__copy .fpa-site-heading {
    max-width: none;
  }
}

.fpa-home-states__copy .fpa-site-lead {
  max-width: 28rem;
}

.fpa-home-states__media {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

.fpa-home-states__photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(400px, 52vh);
  margin: 0;
  object-fit: contain;
  object-position: right bottom;
}

.fpa-home-states__browse {
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 1.5rem) clamp(2.5rem, 6vw, 4rem);
  background: #ffffff;
}

.fpa-home-states__browse-title {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  font-family: var(--fpa-app-font-sans);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fpa-app-text);
}

@media (min-width: 900px) {
  .fpa-home-states__layout {
    grid-template-columns: 1fr 1fr;
    min-height: clamp(480px, 58vh, 620px);
  }

  .fpa-home-states__media {
    min-height: 100%;
    padding: 0;
  }

  .fpa-home-states__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    object-fit: contain;
    object-position: right center;
  }

  .fpa-home-states__content {
    padding: clamp(2.5rem, 4vw, 3.5rem)
      clamp(1.5rem, 4vw, 2.5rem)
      clamp(2.5rem, 4vw, 3.5rem)
      max(1rem, calc((100vw - var(--fpa-app-max-width)) / 2 + 1rem));
  }

  .fpa-home-states__copy {
    margin-inline: 0;
    max-width: 28rem;
  }

  .fpa-home-states__copy .fpa-site-lead {
    max-width: 22rem;
  }
}
