/* =========================================================
   American Security Party: black & white theme
   Edit the variables below to re-theme the whole site.
   ========================================================= */

:root {
  /* Colour tokens */
  --black:    #000000;
  --white:    #ffffff;
  --ink:      #111111;
  --grey-900: #1a1a1a;
  --grey-800: #262626;
  --grey-300: #bdbdbd;
  --grey-200: #d4d4d4;
  --muted:    #595959;
  --bg-alt:   #f2f2f2;
  --focus:    #777777;

  /* Layout + type */
  --max: 1120px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
  --font-caps: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--black); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--black); margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--white); color: var(--black); padding: 8px 14px;
}
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8em 1.5em;
  background: var(--white);
  color: var(--black);
  font: 700 .9rem/1.2 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--black); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-small { padding: .55em 1.1em; font-size: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--white);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .03em; text-transform: uppercase; }
.brand-tag { font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--grey-300); }

.primary-nav ul { display: flex; align-items: center; gap: 24px; }
.primary-nav a:not(.btn) {
  color: #e0e0e0; text-decoration: none; font-weight: 600; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.primary-nav a:not(.btn):hover { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block; width: 24px; height: 2px; background: var(--white); position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after  { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
  color: var(--white);
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.10), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.025) 3px 4px),
    var(--black);
  padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 10vw, 112px);
  overflow: hidden;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }

.hero-logo-wrap {
  position: relative;
  width: min(360px, 72vw);
  aspect-ratio: 1;
  margin-block: 24px;
}
.hero-logo {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 0 60px rgba(255,255,255,.18);
}
/* Two staggered rings that slowly expand and fade, like a watching pulse */
.hero-logo-wrap::before,
.hero-logo-wrap::after {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: ring-pulse 4.5s ease-out infinite;
}
.hero-logo-wrap::after { animation-delay: 2.25s; }
@keyframes ring-pulse {
  0%   { transform: scale(1);    opacity: .55; }
  70%  { opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

.hero h1 {
  font-family: var(--font-caps);
  font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .3em;
}
.eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: .8rem; color: var(--grey-300); font-weight: 700; margin-bottom: 1.2em; }
.lead { font-size: 1.25rem; max-width: 40ch; margin-inline: auto; color: #d9d9d9; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 1.8em; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 2em; font-size: 1.1rem; }
.section-dark .section-intro { color: #c4c4c4; }

/* ---------- Headlines ---------- */
.headline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 1.5em; }
.headline {
  background: var(--white);
  border: 2px solid var(--black);
  border-top-width: 8px;
  padding: 28px;
  min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .15s, box-shadow .15s;
}
.headline:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--black); }
.headline-num { font-family: var(--font-caps); font-size: 1rem; letter-spacing: .15em; color: var(--muted); }
.headline h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 1em 0 0; }

/* ---------- History ---------- */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.pull {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1.3;
  border-left: 6px solid var(--black); padding-left: 18px; margin-top: 1.4em;
}
.callout {
  background: var(--black); color: var(--white);
  padding: 32px;
  border: 2px solid var(--black);
  box-shadow: 8px 8px 0 var(--grey-300);
}
.callout h3 { color: var(--white); text-transform: uppercase; letter-spacing: .05em; }
.callout p { margin: 0; color: #cfcfcf; font-family: var(--font-head); font-size: 1.1rem; }

/* ---------- Programs ---------- */
.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.program {
  border: 2px solid var(--white);
  padding: 36px;
  background: var(--grey-900);
  transition: background .15s;
}
.program:hover { background: var(--grey-800); }
.program-icon { color: var(--white); margin-bottom: 18px; }
.program h3 { text-transform: uppercase; letter-spacing: .05em; }
.program p { color: var(--grey-200); font-size: 1.05rem; margin-bottom: 1.5em; }

/* ---------- Join / CTA ---------- */
.cta { background: var(--white); color: var(--black); padding: clamp(48px, 7vw, 80px) 0; border-top: 3px solid var(--black); }
.cta p { color: var(--muted); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.signup { display: grid; gap: 12px; }
.signup input,
.signup select {
  width: 100%;
  padding: .9em 1.1em;
  border: 2px solid var(--black);
  border-radius: 0;
  font: inherit; background: var(--white); color: var(--ink);
}
.signup .btn { justify-self: start; background: var(--black); color: var(--white); border-color: var(--black); }
.signup .btn:hover { background: var(--white); color: var(--black); }
.form-status { margin: 0; font-weight: 700; color: var(--black); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #b0b0b0; padding-top: 48px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.footer-brand { font-family: var(--font-head); font-size: 1.2rem; color: var(--white); margin-bottom: .4em; text-transform: uppercase; letter-spacing: .04em; }
.site-footer a { color: #b0b0b0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer li { margin-bottom: .5em; }
.muted { color: #8a8a8a; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); padding-block: 20px; font-size: .8rem; color: #7a7a7a; }
.footer-legal p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .cta-inner, .program-grid, .headline-grid { grid-template-columns: 1fr; }
  .headline { min-height: 0; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--black); border-bottom: 3px solid var(--white);
    display: none; padding: 12px 16px 20px;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .headline, .btn, .program { transition: none; }
  .hero-logo-wrap::before,
  .hero-logo-wrap::after { animation: none; display: none; }
}
