/* Homepage banner. Text stays editable in template-parts/home.php. */
.jj-home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(5, 29, 56, 0.28), rgba(5, 29, 56, 0.28)),
    url("../images/hero-michigan-backdrop.webp") right center / auto 100% no-repeat,
    #00183e;
  color: #fff;
}
.jj-home-hero-image,
.jj-home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.jj-home-hero-image {
  width: 60%;
  object-fit: cover;
  object-position: 35% center;
}
.jj-home-hero-shade {
  background: linear-gradient(
    90deg,
    rgba(5, 29, 56, 0.06),
    rgba(5, 29, 56, 0.14) 38%,
    rgba(5, 29, 56, 0.72) 51%,
    #051d38 60%,
    rgba(5, 29, 56, 0) 72%
  );
}
.jj-home-hero-inner {
  position: relative;
  display: flex;
  justify-content: flex-end;
  max-width: 1400px;
  min-height: 606px;
  margin: 0 auto;
  padding: 64px 24px 56px;
}
.jj-home-hero-copy {
  width: 100%;
  max-width: 640px;
}
.jj-home-ticket {
  margin: 0;
  color: #a9b9ce;
  font:
    400 14px/1.7 Montserrat,
    Arial,
    sans-serif;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.jj-home-rule {
  display: block;
  width: 59px;
  height: 2px;
  background: #e0002b;
  margin: 21px 0 28px;
}
.jj-home-hero h1 {
  margin: 14px 0 0;
  font:
    900 clamp(34px, 3.2vw, 46px) / 1 Montserrat,
    Arial,
    sans-serif;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.jj-home-hero h1 span {
  display: block;
  text-wrap: balance;
}
.jj-home-title-alert {
  color: #d20930;
  font-size: 1.18em;
  line-height: 1.05;
}
.jj-home-answer {
  margin: 0;
  max-width: 620px;
  color: #fff;
  font:
    800 clamp(20px, 1.8vw, 26px) / 1.2 Montserrat,
    Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.jj-home-answer strong {
  color: #ff3b52;
}
.jj-home-description {
  margin: 21px 0 0;
  font-size: 21px;
  line-height: 1.5;
  max-width: 620px;
}
.jj-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 55px;
}
.jj-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 15px 32px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #fff;
  font:
    600 14px/1.4 Montserrat,
    Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.jj-home-button-primary {
  min-width: 239px;
  background: #c8102e;
}
.jj-home-button-outline {
  border-color: #fff;
  background: rgba(0, 22, 44, 0.35);
}
.jj-home-button-primary:hover {
  background: #a90c28;
}
.jj-home-button-outline:hover {
  background: #fff;
  color: #0a2240;
}
.jj-home-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}
.jj-home-tagline {
  margin-top: 34px;
  color: #91a4be;
  font:
    800 13px/1.5 Montserrat,
    Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.26em;
}
.jj-home-tagline::before {
  content: "";
  display: block;
  width: 59px;
  height: 2px;
  background: #506b88;
  margin-bottom: 20px;
}
.jj-home-signature {
  position: absolute;
  right: 0;
  top: 142px;
  transform: rotate(-12deg);
  font:
    400 35px/1.1 "Great Vibes",
    cursive;
  color: #a8b8cc;
  text-align: center;
}
.jj-home-signature::after {
  content: "";
  display: block;
  width: 66px;
  height: 2px;
  background: #d20930;
  margin: 14px auto 0;
}
.jj-home-rank-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0 24px;
  margin: 28px 0 0;
}
.jj-home-rank {
  position: relative;
}
.jj-home-rank + .jj-home-rank::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: #254461;
}
.jj-home-rank p {
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 3px;
}
.jj-home-rank strong {
  color: #d20930;
  font:
    900 46px/1 Montserrat,
    Arial,
    sans-serif;
}
.jj-home-rank p span {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.7;
}
.jj-home-rank h3 {
  margin: 6px 0 0;
  color: #95a9c1;
  font:
    800 11px/1.4 Montserrat,
    Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.jj-home-ranking-note {
  margin: 16px 0 0;
  color: #6f88a6;
  font-size: 12px;
}
.jj-home-ranking-note a {
  color: #a9b9ce;
  text-decoration: underline;
}
.jj-home-ranking-note a:hover {
  color: #fff;
}

/* Hero message: "Keep Our Kids in Michigan" as live text (mirrors the campaign artwork) */
.jj-home-hero .jj-home-hero-copy {
  text-align: center;
}
.jj-home-hero .jj-home-rule {
  width: 40px;
  margin: 30px auto 24px;
}
.jj-home-hero .jj-home-actions {
  justify-content: center;
}
.jj-home-hero h1.jj-home-kids-title {
  margin: 0;
  font-size: clamp(44px, 4.4vw, 64px);
  letter-spacing: -0.03em;
}
.jj-home-kids-title .jj-home-title-alert {
  font-size: 1em;
  line-height: 1;
}
.jj-home-kids-title .jj-home-title-call {
  line-height: 1.05;
}
.jj-home-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.jj-home-pillars li {
  position: relative;
  padding: 0 14px;
  text-align: center;
  color: #fff;
  font:
    400 13px/1.3 Montserrat,
    Arial,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.jj-home-pillars li + li {
  border-left: 1px solid #d20930;
}
.jj-home-pillars li::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 6px;
  background: #d20930;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 1.5 3.1 6.9 7.4.8-5.5 5 1.5 7.3L12 17.8l-6.5 3.7L7 14.2l-5.5-5 7.4-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 1.5 3.1 6.9 7.4.8-5.5 5 1.5 7.3L12 17.8l-6.5 3.7L7 14.2l-5.5-5 7.4-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The record: 8 years of Democrat leadership (section right below the vote dates) */
.jj-home-record {
  background: linear-gradient(90deg, #051d38, #0a2a4d);
  color: #fff;
  padding: 64px 24px;
}
.jj-home-record-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.jj-home-record .jj-home-answer {
  max-width: none;
}
.jj-home-record h2 {
  margin: 14px 0 0;
  font:
    900 clamp(34px, 3.6vw, 52px) / 1 Montserrat,
    Arial,
    sans-serif;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.jj-home-record h2 span {
  display: block;
  text-wrap: balance;
}
.jj-home-record .jj-home-rank-grid {
  justify-content: center;
  gap: 0 64px;
  margin-top: 36px;
}
.jj-home-record .jj-home-rank {
  text-align: left;
}
.jj-home-record .jj-home-rank + .jj-home-rank::before {
  left: -32px;
}
.jj-home-record .jj-home-rank strong {
  font-size: 58px;
}
@media (max-width: 1100px) {
  .jj-home-signature {
    display: none;
  }
  .jj-home-hero-image {
    width: 55%;
    object-position: 30% center;
  }
  .jj-home-hero-inner {
    padding-left: 32px;
    padding-right: 32px;
  }
  .jj-home-hero-copy {
    max-width: 56%;
  }
  .jj-home-hero-shade {
    background: linear-gradient(
      90deg,
      rgba(5, 29, 56, 0.12),
      rgba(5, 29, 56, 0.8) 40%,
      #051d38 52%,
      rgba(5, 29, 56, 0) 66%
    );
  }
  .jj-home-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
  }
  .jj-home-rank:nth-child(3)::before {
    display: none;
  }
  .jj-home-record .jj-home-rank-grid {
    grid-template-columns: repeat(4, auto);
    gap: 0 48px;
  }
  .jj-home-record .jj-home-rank:nth-child(3)::before {
    display: block;
  }
  .jj-home-record .jj-home-rank + .jj-home-rank::before {
    left: -24px;
  }
  .jj-home-pillars li {
    font-size: 12px;
    padding: 0 10px;
  }
}
@media (max-width: 700px) {
  .jj-home-hero {
    background: #051d38; /* no Michigan backdrop on phones: the panel is too narrow for it */
  }
  .jj-home-hero-image {
    width: 100%;
    height: 350px;
    object-position: center 30%;
  }
  .jj-home-hero-shade {
    height: 351px;
    background: linear-gradient(0deg, #051d38, rgba(5, 29, 56, 0) 65%);
  }
  .jj-home-hero-inner {
    display: block;
    min-height: 0;
    padding: 300px 24px 38px;
  }
  .jj-home-hero-copy {
    max-width: none;
  }
  .jj-home-rule {
    margin: 18px 0 24px;
  }
  .jj-home-hero .jj-home-rule {
    margin: 0 auto 20px;
  }
  .jj-home-hero h1 {
    font-size: clamp(32px, 7.8vw, 51px);
  }
  .jj-home-answer {
    font-size: 18px;
  }
  .jj-home-actions {
    gap: 12px;
    margin-top: 25px;
  }
  .jj-home-button {
    width: 100%;
    min-width: 0;
    font-size: 12px;
  }
  .jj-home-rank-grid {
    margin-top: 22px;
  }
  .jj-home-rank strong {
    font-size: 40px;
  }
  .jj-home-rank p span {
    font-size: 15px;
  }
  .jj-home-rank h3 {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .jj-home-hero h1.jj-home-kids-title {
    font-size: clamp(38px, 11vw, 48px);
  }
  .jj-home-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
    margin-top: 26px;
  }
  .jj-home-pillars li:nth-child(3) {
    border-left: 0;
  }
  .jj-home-record {
    padding: 48px 20px;
  }
  .jj-home-record .jj-home-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
  }
  .jj-home-record .jj-home-rank {
    text-align: center;
  }
  .jj-home-record .jj-home-rank p {
    justify-content: center;
  }
  .jj-home-record .jj-home-rank:nth-child(3)::before {
    display: none;
  }
  .jj-home-record .jj-home-rank strong {
    font-size: 44px;
  }
}

/* Hero entrance: copy fades up in sequence on load (fadeUp keyframes live in prototype.css). */
.jj-home-hero .jj-home-rule,
.jj-home-hero .jj-home-kids-title,
.jj-home-hero .jj-home-pillars,
.jj-home-hero .jj-home-actions {
  animation: fadeUp 0.6s ease both;
}
.jj-home-hero .jj-home-kids-title { animation-delay: 0.08s; }
.jj-home-hero .jj-home-pillars { animation-delay: 0.16s; }
.jj-home-hero .jj-home-actions { animation-delay: 0.24s; }
