/* New Path PAC — first-pass layout from content-to-layout (text-only build).
   Structure only, deliberately unbranded; dependency-free: no build step,
   no framework.

   Brand palette is client-supplied (navy/blue/gold). CTA pairing chosen by
   WCAG contrast: navy-on-gold 7.5:1 (AA); white-on-gold fails at 1.73:1. */

:root {
  --bg: #FFFFFF;
  --fg: #000000;
  --muted: #5c5c5c;
  --accent: var(--tertiary);
  /* CTA gold — navy text, 7.5:1 */
  --accent-fg: var(--primary);
  --rule: #e2e2e2;
  --primary: #233054;
  --primary-dark: #182441;
  --secondary: #5A83C2;
  --tertiary: #FDB932;
  --secondary-bright: #60CBEB;

  /* Typekit kit moa0can serves ebony at 200 (body) and stratum-1-web at
     900 only (display). */
  --font-body: "ebony", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "stratum-1-web", var(--font-body);

  --maxw: 1080px;
  --measure: 66ch;
  /* readable body width */
  --gap: 1.5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 200;
  font-style: normal;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- layout primitives ---------- */

section {
  padding: 4rem 1.25rem;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  /* 12px — half of Bootstrap's 1.5rem gutter */
  padding-right: 0.75rem;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.prose>p {
  max-width: var(--measure);
}

.prose>p+p {
  margin-top: 1.25em;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  /* the kit ships stratum-1-web in 900 only */
  color: var(--primary);
  line-height: 1.15;
  margin: 0 0 0.75em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

h1 span {
  color: var(--tertiary);
}

h2 {
  font-size: clamp(4rem, 10vw, 6rem);
  line-height: 1;
}

/* ---------- menu bar ----------
   Deck: "New Path PAC logo on top left. Donate button on top right." */
.site-nav {
  display: block;
  position: relative;
  padding: 2rem 0;
  background-color: var(--primary);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.site-nav__logo {
  display: block;
  position: relative;
  width: 100%;
  max-width: 175px;
  height: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}

.btn.join-movement {
  padding: 0.5rem 1.5rem;
  background-color: var(--secondary-bright);
  color: var(--primary-dark);
  font-family: var(--font-display);
  text-transform: uppercase;
  border-radius: 0;
  font-size: 1.75rem;
}

.hero .btn.join-movement {
  padding: 0.5rem 1.5rem;
  background-color: var(--secondary-bright);
  color: var(--primary-dark);
  font-family: var(--font-display);
  text-transform: uppercase;
  border-radius: 0;
  font-size: 1.75rem;
  margin: -15px 0 0 auto;
}

.hero.sm .btn.join-movement {
  margin: 0 auto;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.1);
}

/* ---------- top section ----------
   Text-only build: centered as a conservative default; arrangement
   unverified against the wireframe. */

.hero {
  display: flex;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 80vh;
  background-color: var(--primary);
  border-bottom: 1rem var(--secondary) solid;

  @media (max-width: 992px) {
    min-height: 400px;
    display: block;
  }
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  background: linear-gradient(90deg, rgba(24, 36, 65, 0) 18%, rgba(24, 36, 65, 1) 60%);
  z-index: 10;
}

.hero h1,
.hero a,
.hero p.hero__name {
  color: var(--bg);
  z-index: 200;
  position: relative;
  display: block;
}

.hero__photo {
  margin: 0 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  position: absolute;
  top: 0;
  left: -250px;
  right: 0;
  bottom: 0;
  z-index: 1;

  @media (max-width: 992px) {
    /* left: -50px; */

    object-position: 50% 50%;
    z-index: 100;
    left: 0;
  }
}

.hero__content-wrap.lg {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  max-width: 60vw;
  height: 100%;
  text-align: right;
  margin: 0 0 0 auto;
  z-index: 200;

  @media (max-width: 992px) {
    display: none;
    max-width: 100%;
    padding-top: 15rem;
    text-align: center;
  }
}

.hero.sm {
  display: none;
  position: relative;
  padding: 1.5rem 0;
  justify-content: center;

  @media (max-width: 992px) {
    display: flex;
  }

  .hero__content-wrap.sm .container {
    text-align: center;
  }
}

.hero__content-wrap .container {
  text-align: right;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__name {
  margin: 0 0 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  /* secondary blue is 3.85:1 on white — too low for text this small,
     so the eyebrow takes primary navy instead */
  color: var(--primary);
  z-index: 200;
  position: relative;
  display: block;
}

.hero .btn {
  margin-top: 1.5rem;
  width: fit-content;
  z-index: 200;
  position: relative;
  display: block;
  margin: 0 auto;
}

/* ---------- second section ----------
   Deck places Independence Hall / Liberty Bell photos "around 2nd graph";
   flanking columns as a conservative reading until the wireframe is seen. */
.narrative .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  align-items: start;

  @media (max-width: 992px) {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.headline {
  padding: 0;
  margin: 0;
}

.narrative__photo {
  position: relative;
  display: block;
  margin: -130px 0 2rem auto;
  width: 100%;
  max-width: 720px;
  z-index: 500;

  @media (max-width: 992px) {
    margin: 0 auto;
    position: relative;
  }
}

/* ---------- third section (donate) ---------- */
.donate {
  background-color: var(--tertiary);
}

.donate .donate__text-wrap .headline {
  font-size: 5rem;
  text-transform: uppercase;
}

.donate__text-wrap {
  @media(max-width: 992px) {
    text-align: center;
  }
}

.donate .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
  align-content: center;

  @media(max-width: 992px) {
    display: flex;
    flex-direction: column;

  }
}

.donate .container p {
  font-size: 2rem;
  color: var(--primary);
  padding: 0;
  margin: 0;
  line-height: 1.35;
}

.donate__express {
  max-width: 750px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;

  @media(max-width: 992px) {
    max-width: 100%;
  }
}

.btn.donate {
  width: 100%;
  height: auto;
  background-color: var(--secondary);
  color: var(--bg);
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  border: solid 5px var(--bg);
  text-align: center;
}

/* ---------- 404 page ---------- */

.error-404 {
  min-height: 55vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.error-404 .container {
  max-width: var(--measure);
}

.error-404 p {
  margin: 0 auto 2rem;
  max-width: var(--measure);
}

.error-404 .btn {
  margin: 0 auto;
}

/* ---------- stubs ----------
   A media element with no asset yet must read as an obvious hole in the
   page, not collapse to nothing. Remove once real assets land. */

img[src=""],
[data-stub],
[data-actblue-embed] {
  min-height: 160px;
  background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 10px, #ebebeb 10px, #ebebeb 20px);
  border: 2px dashed #b4b4b4;
  border-radius: 4px;
}

.site-nav__logo[data-stub],
.site-footer__logo[data-stub] {
  min-height: 56px;
  min-width: 180px;
}

[data-stub]::after,
[data-actblue-embed]::after {
  content: attr(data-stub-label);
  display: block;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* ---------- footer ----------
   Deck: PAC logo; links to donate, sign up, email us; disclaimers. */

.site-footer {
  padding: 3rem 1.25rem;
  border-top: 1rem solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
  background-color: var(--primary);
}

.site-footer .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;

  @media (max-width: 992px) {
    display: flex;
    flex-direction: column;
  }
}

.site-footer__logo {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin: 2rem auto;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.site-footer__links li a {
  font-size: 1.75rem;
  display: block;
  width: fit-content;
  text-decoration: none;
  color: var(--bg);
  text-transform: uppercase;
  background-color: var(--secondary);
  padding: 0.5rem 2rem;
  font-family: var(--font-display);
}

.site-footer__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: center;
  justify-content: center;
  align-items: center;
}

/* Legal / disclaimer text. Content is never authored here — it is supplied. */
.site-footer__disclaimer {
  width: fit-content;
  max-width: var(--measure);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
  margin: 0 auto;
  display: block;
  position: relative;
  color: var(--bg);
  opacity: 0.65;
  border: solid 1px var(--bg);
  padding: 0.5rem 2rem;
}

.site-footer__disclaimer p {
  padding: 0;
  margin: 0;
  line-height: 1.35;
}

/* No animation, transition, or smooth-scroll is defined here — nothing in
   the deck asks for motion. If added later, pair with a
   prefers-reduced-motion guard. */
/* ---------- form honeypot ---------- */
/* Visually removed but still in the DOM so bots fill it; not display:none,
   which some bots detect and skip. One rule only — a second, more specific
   rule here previously overrode the off-screen offset. */
label.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- reCAPTCHA v3 ----------
   Badge hidden per Google's documented allowance (visibility, not display);
   the required attribution text lives in .form__recaptcha-notice instead.
   If the notice is ever removed, this rule must go too (ToS requirement). */
.grecaptcha-badge {
  visibility: hidden;
}

.form__recaptcha-notice {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  width: 100%;
  height: auto;
}

.form__recaptcha-notice a {
  display: inline-block;
  position: relative;
}

.form__recaptcha-notice a {
  color: inherit;
}

/* ---------- Form styles ------------ */

.hero__content-wrap.lg-join {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: auto;
  text-align: right;
  margin: 0 0 0 auto;
  z-index: 200;

  @media (max-width: 992px) {
    max-width: 100%;
    text-align: center;
  }
}

.hero__content-wrap.lg-join .container {
  @media (max-width: 992px) {
    text-align: center;
  }
}

.hero__photo.join {
  @media (max-width: 992px) {
    display: none;
  }
}

.hero.sm-join {
  position: relative;
  display: block;

  @media (min-width: 992px) {
    display: none;
  }
}

.hero.sm-join .hero__photo.sm-join {
  left: 0;
}

.form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
  width: 50vw;
  max-width: 625px;
  margin: 0 0 0 auto;

  @media (max-width: 992px) {
    margin: 1rem auto;
    max-width: unset;
    width: 100%;
  }
}

.form form {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  margin: 0 0 0 auto;
}

.form form label:not(.hp-field) {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  text-align: left;
  margin-bottom: 1rem;
  border-radius: none;
  color: var(--bg);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.form form label input {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  /* min-height: 2.5rem; */
  padding: 1rem;
  font-size: 1.15rem;
  margin: 0 auto;
  border-radius: none;
}

.form form label textarea {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 10rem;
  padding: 5px 1rem;
  margin: 0 auto;
}

/* Status sits on the dark hero overlay here (it was on the white page
   background on index), so the inherited black body color is unreadable —
   match the labels' white instead. */
.form form .form__status {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 1.15rem;
  color: var(--bg);
}

.form form .no-disclaimer {
  display: block;
  position: relative;
  font-size: 0.9rem;
  opacity: 0.7;
  text-transform: none;
  font-family: var(--font-body);
  margin-top: 0;
  color: var(--bg);
  text-align: left;
}

.form form .submit-btn {
  background-color: var(--secondary);
  outline: none;
  border: none;
  width: fit-content;
  height: auto;
  padding: 0.5rem 2.5rem;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--bg);
  transition: all ease-in-out 300ms;
  margin: 1rem auto;

  &:hover,
  &:active,
  &:focus {
    color: var(--primary);
    background-color: var(--secondary-bright);
  }
}