/* ---------------------------------------------------------------
   Shared site chrome for the Aaron Gunn campaign site.
   Design tokens + reset + nav + footer + pre-launch gate + shared
   buttons. Loaded by every static page so the markup stays DRY.
---------------------------------------------------------------- */

:root {
  --red: #ed1937;
  --red-dark: #cf1531;
  --navy: #142f52;
  --deep-navy: #003456;
  --ink: #16181d;
  --black: #0b0e12;
  --grey: #f1f1f0;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h2,
h3 {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Brand convention: wrap text in <em> to make it brand-red (no italics).
   Used throughout content and by the page editor's rich-text fields. */
em {
  color: var(--red);
  font-style: normal;
}

img {
  max-width: 100%;
}

input {
  font-family: inherit;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding-left: 28px;
  padding-right: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.3px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--red {
  background: var(--red);
  color: #fff;
  border: none;
}
.btn--red:hover {
  background: var(--red-dark);
}
.btn--outline {
  border: 1px solid #cfd0d2;
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--ink);
}

/* ============ ARROW BUTTON (split-open) ============
   Canonical campaign button. Stroke + uppercase text, no divider at rest.
   On hover the text & arrow pull apart, a pad slides in from the right, and
   the arrow grows x1.4 and inverts to the surface colour so it reads as a
   cut-out. Two looks:
     .btn-arrow              outline (transparent fill, --c stroke/text)
     .btn-arrow--solid       solid fill (default red), white pad
   Surface modifiers set --c (foreground) and --surface (the colour the arrow
   inverts to on hover). Markup:
     <a class="btn-arrow btn-arrow--on-dark">
       <span class="btn-arrow__pad"></span>LABEL <svg class="btn-arrow__ico">…</svg>
     </a>
--------------------------------------------------------------------------- */
/* Text + arrow are one centred in-flow group, so they stay together at ANY
   button width — compact, full-width, justify-content:center, all identical.
   The arrow is wrapped in .btn-arrow__pad; on hover the text & arrow pull
   apart, a full-height pad grows from behind the arrow (centred on it via a
   bleeding ::before that overflow:hidden clips to the button), and the arrow
   scales up and inverts to the surface colour so it reads as a cut-out.
   Markup:  LABEL <span class="btn-arrow__pad"><svg class="btn-arrow__ico">…</svg></span> */
.btn-arrow {
  --c: #fff;
  --surface: #0b0e12;
  --pad-c: var(--c);
  --lane: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: 600 13px/1 'Archivo', Helvetica, Arial, sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c);
  background: transparent;
  border: 1.5px solid var(--c);
  padding: 14px 22px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: gap 0.28s ease, padding 0.28s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
}
.btn-arrow:hover {
  gap: 30px;
}
/* Outline only: tuck the right padding in on hover so the arrow centres in the
   54px pad. (Solid keeps its own right padding — its chip wipes 0→100%.) */
.btn-arrow:not(.btn-arrow--solid):hover {
  padding-right: 18px;
}
/* The pad wrapper just holds the arrow in flow; the growing fill is its
   ::before, pinned to the BUTTON's inner edges (right/top/bottom) so it always
   reaches the border — no gap. (Solid re-positions the pad below.) */
.btn-arrow__pad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.btn-arrow__pad::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: 0;
  background: var(--pad-c);
  z-index: 0;
  transition: width 0.28s ease;
}
.btn-arrow:hover .btn-arrow__pad::before {
  width: var(--lane);
}
.btn-arrow__ico {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  flex: none;
  display: block;
  overflow: visible;
  transform-origin: center;
  transition: color 0.2s ease, transform 0.24s cubic-bezier(0.5, 0.1, 0.2, 1);
}
.btn-arrow:hover .btn-arrow__ico {
  color: var(--surface);
  transform: scale(1.4);
}

/* surface modifiers (outline look) */
.btn-arrow--on-dark {
  --c: #fff;
  --surface: var(--ink);
}
.btn-arrow--on-light {
  --c: var(--ink);
  --surface: #fff;
}

/* solid fill — no stroke. The arrow + white background are pinned to the RIGHT
   edge at ANY button width: the pad is pulled out of flow and anchored right,
   the label centres in the space to its left, and on hover the white chip wipes
   in from the right while the arrow inverts to the fill colour. (Option 3.) */
.btn-arrow--solid {
  --fill: var(--red);
  --pad-c: #fff;
  --solid-lane: 50px;
  color: #fff;
  background: var(--fill);
  border: none;
  padding: 15.5px;
  padding-left: 24px;
  padding-right: calc(var(--solid-lane) + 16px);
}
.btn-arrow--solid .btn-arrow__pad {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--solid-lane);
  z-index: 2;
}
.btn-arrow--solid .btn-arrow__pad::before {
  top: 0;
  bottom: 0;
  left: auto;
  right: 0;
  width: 0;
  transform: none;
}
.btn-arrow--solid:hover .btn-arrow__pad::before {
  width: 100%;
}
.btn-arrow--solid:hover .btn-arrow__ico {
  color: var(--fill);
}

@media (max-width: 880px) {
  .stack-mobile {
    grid-template-columns: 1fr !important;
  }
}

/* ============ NAV ============ */
/* Two-row header: row 1 = logo lockup + action buttons; row 2 = content pages.
   Collapses to logo + Donate + hamburger (full-screen overlay) below 940px. */
.nav {
  display: block;
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 28px;
}
/* Header sits as a solid two-tone band above the page (not an overlay):
   row 1 = brand black, row 2 = white with navy links. Backgrounds are
   full-bleed (100vw) layers centred on the contained nav. */
.nav__util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 16px;
  position: relative;
  z-index: 9999;
}
.nav__util::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--black, #0b0e12);
  z-index: -1;
}
/* logo lockup: AARON [icon] GUNN */
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.nav__logo img {
  height: 34px;
  width: auto;
  display: block;
}
.nav__word {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1;
}
/* desktop action buttons (locked height so outline vs. solid match) */
.nav__ctas {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__cta {
  font-size: 11.5px;
  letter-spacing: 1.3px;
  height: 42px;
  padding-top: 0;
  padding-bottom: 0;
}
.btn-arrow--on-dark.nav__cta {
  padding-left: 16px;
  padding-right: 16px;
}
.nav__cta--donate {
  padding-left: 18px;
  padding-right: calc(var(--solid-lane) + 12px);
}
/* content-page links (row 2) — white band, navy links */
.nav__main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 52px;
  padding: 0;
  position: relative;
}
.nav__main::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #fff;
  z-index: -1;
}
/* Links are pure text height; the red underline is an absolute pseudo so it
   never affects the row's vertical centring. */
.nav__link {
  position: relative;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  white-space: nowrap;
  line-height: 1;
  transition: color 0.15s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--red);
  transition: right 0.22s ease;
}
.nav__link:hover::after,
.nav__link--active::after {
  right: 0;
}
.nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav__cart-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
/* mobile-only controls + overlay */
.nav__mobile {
  display: none;
  align-items: center;
  gap: 12px;
}
.nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__burger i {
  display: block;
  height: 2px;
  width: 22px;
  background: #fff;
  margin: 0 auto;
  transition: 0.25s;
}
.nav--open .nav__burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__burger i:nth-child(2) { opacity: 0; }
.nav--open .nav__burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile overlay = two-tone: the black top bar stays on top (z-index 40),
   the panel below is white with navy links — mirroring the desktop band. */
.nav__panel {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #fff;
  transform: translateY(-100%);
  transition: transform 0.32s ease;
  z-index: 9998;
  overflow-y: auto;
}
.nav--open .nav__panel { transform: translateY(0); }
.nav__panel-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 24px 40px;
}
.nav__panel-link {
  display: block;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(20, 47, 82, 0.12);
}
.nav__panel-lab {
  color: #8a93a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 22px 4px 14px;
}
/* outline CTAs flip to navy-on-white inside the white panel; donate stays red */
.nav__panel .btn-arrow--on-dark { --c: var(--navy); --surface: #fff; }
.nav__panel-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
body.nav-locked { overflow: hidden; }
@media (min-width: 941px) { .nav__panel { display: none; } }
@media (max-width: 940px) {
  .nav__ctas,
  .nav__main { display: none; }
  .nav__mobile { display: flex; }
  .nav__util { padding: 13px 0; }
  .nav__word { font-size: 22px; }
  .nav__logo img { height: 30px; }
}
/* When the overlay menu is open, lift the whole nav above any page element that
   sets its own z-index (the nav is injected into #site-nav which has z-index:5,
   so the fixed panel was otherwise trapped at that level and could be covered). */
body.nav-locked #site-nav { z-index: 9999 !important; }
/* Tight phones: keep only logo + cart + hamburger; donate lives in the menu. */
@media (max-width: 550px) {
  .nav__mobile .nav__cta--donate { display: none; }
}

/* ---- Shared mobile form/quote helpers (used across interior pages) ---- */
@media (max-width: 560px) {
  /* collapse two-up field rows (signup / request / RSVP forms) to one column */
  form [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}
/* Homepage-style pull quote: smaller, mark stacked above the text on tablet & below */
@media (max-width: 880px) {
  .home-quote { flex-direction: column !important; gap: 0 !important; }
  .home-quote > span { font-size: 120px !important; }
  .home-quote > p { font-size: 24px !important; }
}

/* ============ FOOTER ============
   Dark "Join the Movement" band — subscribe + social proof + action CTAs —
   then a slim bottom bar (lockup + page menu) and legal line. The four action
   CTAs (Volunteer / Lawn Signs / Shop / Donate) get full arrow-buttons so they
   read louder than the plain page links. Used by every page (site.js injects it;
   the homepage hardcodes the same markup). */
.footer {
  background: #0b0e12;
  color: #fff;
  padding: 74px 0 40px; /* horizontal gutter lives on .footer__inner, like every other section */
}
/* on the black footer the outline-button arrow inverts to the footer colour */
.footer .btn-arrow--on-dark {
  --surface: #0b0e12;
}
.footer__inner {
  /* same formula as every other section: max width + 28px gutters, so the footer
     lines up with the rest of the page instead of running ~56px wider */
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.footer__head {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1;
}
.footer__sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 16px 0 28px;
}
.footer__form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
}
.footer__form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.footer__form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.footer__form .footer__postal {
  width: 118px;
  flex: 0 0 auto;
}
/* footer subscribe is a .btn-arrow--solid; keep it from shrinking in the row */
.footer__form button {
  flex-shrink: 0;
}
.footer__done {
  max-width: 620px;
  margin: 16px auto 0;
  color: #fff;
  background: rgba(31, 138, 76, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
}

/* social proof — squared pills (no radius, on brand) */
.footer__socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 16px 9px 12px;
  color: #fff;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.footer__social:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
.footer__social-ico {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer__social-num {
  font-size: 13px;
  font-weight: 600;
}
.footer__social-net {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* "Get Involved" CTA band */
.footer__involve {
  margin-top: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  text-align: left;
}
.footer__involve-eyebrow {
  display: block;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
}
.footer__involve-title {
  display: block;
  font-size: 19px;
  font-weight: 600;
  margin-top: 5px;
}
.footer__involve-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* slim bottom bar */
.footer__bottom {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__lockup {
  height: 40px; /* match the header logo */
  width: auto;
  max-width: 100%;
  /* the default text lockup is dark art, so invert it white on the black footer.
     An uploaded light logo already suits dark backgrounds — site.js clears this
     filter for it (via inline filter:none) so its colour is preserved. */
  filter: brightness(0) invert(1);
}
.footer__menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer__menu a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.18s ease;
}
.footer__menu a:hover {
  color: #fff;
}
.footer__legal {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.footer__legal span,
.footer__legal a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.footer__legal-links {
  display: flex;
  gap: 14px;
}
@media (max-width: 760px) {
  .footer {
    padding: 56px 0 36px;
  }
  .footer__form {
    flex-wrap: wrap;
  }
  .footer__form .footer__postal {
    width: 100%;
  }
  .footer__involve {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ============ PRE-LAUNCH GATE (remove at launch) ============ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background:
    linear-gradient(180deg, rgba(11, 14, 18, 0.92), rgba(11, 14, 18, 0.98)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 16px, rgba(255, 255, 255, 0) 16px 32px),
    #0b0e12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.gate__card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  color: #fff;
}
.gate__logo {
  height: 64px;
  width: auto;
  margin: 0 auto 22px;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.35));
}
.gate__tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
}
.gate__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 1px;
  margin: 10px 0 12px;
}
.gate__sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 340px;
  margin: 0 auto 26px;
}
#gate-form {
  display: flex;
  gap: 10px;
}
#gate-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 15px 16px;
  color: #fff;
  font-size: 15px;
  outline: none;
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
}
#gate-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
/* gate ENTER is a .btn-arrow--solid (see ARROW BUTTON block) */
.gate__error {
  display: none;
  color: #ff6b80;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
}
.gate--hidden {
  display: none !important;
}
