/* ============================================================
   LA DEFENSA DEL PUEBLO — styles.css

   HOW TO EDIT:
   • Colors & fonts live in the :root block right below. Change them
     once here and they update everywhere.
   • Each page section has its own clearly-labeled block further down.
   • Layout uses simple fl/grid — no framework, nothing to compile.

   NOTE: Unused helper classes (.features, .press, .pull, .tag--block)
   live in styles.reference.css. Copy from there when you wire them up.
   ============================================================ */

:root {
  /* ---- Colors (the whole palette in one place) ---- */
  --bg:        #ffffff;   /* page background        */
  --offwhite:  #f7f5f0;   /* warm alt background    */
  --ink:       #111111;   /* body text              */
  --black:     #000000;   /* dark sections          */
  --muted:     #6b6b6b;   /* secondary text         */
  --line:      #e7e4dd;   /* hairline borders       */
  --accent:    #ce1126;   /* buttons / highlights   */
  --accent-ink:#ffffff;   /* text on accent         */

  /* ---- Fonts (system fallbacks keep it readable offline) ---- */
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* ---- Layout ---- */
  --maxw: 1180px;          /* content max width      */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 72px;
}

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }   /* make every button pick up body font by default */

/* Shared layout helper */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Accessible-only text (screen readers) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip-link — first Tab on the page jumps to #main. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  transform: translateY(-110%);
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---- Headings ---- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; text-transform: uppercase; letter-spacing: 0.01em; margin: 0; }

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 0.7em 1.4em;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #a50e1f; border-color: #a50e1f; color: var(--accent-ink); }
.btn--lg { font-size: 1rem; padding: 0.85em 1.8em; }

/* Ghost button — white outline, transparent fill. Use on dark
   backgrounds (the hero) where a solid red button would compete
   with the primary CTA. */
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--ghost:hover {
  background: #fff;
  color: var(--ink);
}

/* ============================================================
   HEADER / NAV
   Desktop: nav | brand | register  (brand centered)
   Mobile: hamburger | brand | register; nav drops down.
   The header markup is injected by the <site-header> web component
   in script.js — both pages share one source of truth.
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav { display: flex; gap: 1.75rem; }
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); }
.nav a.active { border-bottom-color: var(--accent); }

.brand {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.92;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand__line2 { display: block; color: var(--accent); }

.header-cta { grid-column: 3; justify-self: end; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  grid-column: 1;
  justify-self: start;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; background: var(--ink);
  transform: translate(-50%, -50%);
}
.nav-toggle__bars::before { transform: translate(-50%, -8px); }
.nav-toggle__bars::after  { transform: translate(-50%, 6px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.7) 100%);
}
.hero__content { position: relative; padding-block: clamp(2.5rem, 8vh, 6rem); }
.hero__title {
  font-size: clamp(3rem, 13vw, 9rem);
  margin: 0 0 1rem;
}
/* The stacked wordmark: line 1 white, line 2 red. */
.hero__title-accent {
  display: block;
  color: var(--accent);
}
.hero__lead {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  margin: 0 0 2rem;
  color: rgba(255,255,255,0.9);
}
.hero .eyebrow { color: #fff; }
.hero--short { min-height: clamp(400px, 55vh, 500px); align-items: center; }

/* Hero CTAs — primary + secondary side by side, wrap on narrow. */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ============================================================
   STATEMENT
   ============================================================ */
.statement { padding-block: clamp(4rem, 12vh, 9rem); text-align: center; }
.statement__text {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  max-width: 28ch;
  margin-inline: auto;
}

/* Spanish mission callout — sits just below the main Statement.
   Left-edge red bar marks it as a translation; warm offwhite fill
   distinguishes it from the body. */
.statement__es {
  max-width: 60ch;
  margin: 3rem auto 0;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--offwhite);
  border-left: 4px solid var(--accent);
  text-align: left;
}
.statement__es .eyebrow { margin-bottom: 0.5rem; }
.statement__es p {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink);
}

/* Manifesto — long-form statement */
.manifesto { padding-block: clamp(4rem, 10vh, 7rem); }
.manifesto__body {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.8;
  max-width: 70ch;
  margin-inline: auto;
  color: var(--ink);
}
.manifesto__body p { margin: 0 0 1.5em; }
.manifesto__body p:last-child { margin: 0; }

/* Manifesto sub-section headings — break the wall of text into
   named sections. Display font, accent red, with breathing room. */
.manifesto__heading {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: 2.5rem 0 1.25rem;
  color: var(--accent);
}
.manifesto__heading:first-child { margin-top: 0; }

/* Bilingual pull-quote — a Spanish phrase set in display font, with
   the English translation beneath in small italics. */
.manifesto__quote {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}
.manifesto__quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.manifesto__quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Inline callout labels — small accent tags embedded in body text */
.tag {
  display: inline;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-style: italic;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  padding: 0;
  white-space: nowrap;
}

/* ============================================================
   ALERT BANNER — full-width expandable breaking-news bar
   ============================================================ */
.alert-banner {
  background: var(--accent);
  color: #fff;
}
.alert-banner__trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.alert-banner__label {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  padding: 0.15rem 0.6rem;
  line-height: 1.4;
}
.alert-banner__headline {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  letter-spacing: 0.03em;
}
.alert-banner__indicator {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.4rem;
  transition: transform 0.2s ease;
  line-height: 1;
}
/* CSS-only rotation: driven by the trigger's aria-expanded attribute,
   so JS only has to flip the attribute. */
.alert-banner__trigger[aria-expanded="true"] .alert-banner__indicator {
  transform: rotate(45deg);
}
.alert-banner__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.alert-banner.is-open .alert-banner__body {
  grid-template-rows: 1fr;
}
.alert-banner__inner {
  overflow: hidden;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.alert-banner__inner p {
  margin: 0 0 1em;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.7;
  opacity: 0.9;
  max-width: 65ch;
}
.alert-banner__inner p:last-child { margin-bottom: 1.5rem; }
.alert-banner__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.alert-banner__link:hover { opacity: 0.8; }

/* ============================================================
   FULL-WIDTH PHOTO BANNER
   ============================================================ */
.banner {
  margin: 0;
  min-height: clamp(280px, 50vh, 560px);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.banner__caption {
  color: #fff;
  background: rgba(0,0,0,0.55);
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  margin: 1rem;
}

/* ============================================================
   SIGN-ON FORM
   Small section that gives the hero "Sign our statement" CTA
   a real destination. Three inputs (name, email, organization)
   post to Formspree (or whatever you wire up). The note under
   the form sets the privacy expectation up front.
   ============================================================ */
.signon {
  padding-block: clamp(4rem, 10vh, 7rem);
  background: var(--offwhite);
}
.signon__inner {
  max-width: 60ch;
  margin-inline: auto;
}
.signon__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}
.signon__form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--ink);
  font: inherit;
  background: var(--bg);
}
.signon__form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.signon__form .btn { justify-self: start; }
.signon__note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ============================================================
   CTA / REGISTER (dark section)
   ============================================================ */
.cta { background: var(--black); color: #fff; padding-block: clamp(4rem, 12vh, 8rem); text-align: center; }
.cta__title { font-size: clamp(2.5rem, 8vw, 6rem); margin-bottom: 1rem; }
.cta__lead { max-width: 40ch; margin: 0 auto 2rem; color: rgba(255,255,255,0.8); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding-block: clamp(4rem, 10vh, 7rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.contact__line { margin: 0.25rem 0; }
.contact__formtitle { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; margin-bottom: 1rem; }
.signup { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.signup input {
  flex: 1 1 220px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  font: inherit;
  background: var(--bg);
}
.signup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.signup__note { color: var(--muted); font-size: 0.85rem; margin-top: 0.75rem; line-height: 1.5; }

/* ============================================================
   PRINCIPLES PAGE (Points of Unity / Demands)
   ============================================================ */
.principles-block { padding-block: clamp(4rem, 10vh, 7rem); }
.principles-block__intro {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 3rem;
}
.principles-list { display: grid; gap: 0; }
.principle {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle__title {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}
.principle__num { color: var(--accent); font-weight: 500; }
.principle--demand .principle__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
}
.principle--demand .principle__num {
  color: var(--accent);
  font-weight: 400;
  font-family: inherit;
}
/* Renamed from .principle__body to .principle__content so the
   class name doesn't lie when the element is a <ul>. */
.principle__content {
  color: var(--muted);
  max-width: 65ch;
  margin: 0;
  line-height: 1.7;
}
.principle__content ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.principle__content li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
  list-style: none;
}
.principle__content li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.notfound { padding-block: clamp(6rem, 16vh, 10rem); text-align: center; }
.notfound__title { font-size: clamp(2.5rem, 8vw, 5.5rem); margin-bottom: 1.5rem; }
.notfound__lead { max-width: 50ch; margin: 0 auto 2.5rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.notfound__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--offwhite); border-top: 1px solid var(--line); }
.site-footer__inner {
  padding-block: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer__brand { font-family: var(--font-display); text-transform: uppercase; margin: 0; }
.site-footer__nav { display: flex; gap: 1.5rem; }
.site-footer__nav a { text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__nav a.active { color: var(--accent); }
.site-footer__legal { color: var(--muted); font-size: 0.8rem; margin: 0; width: 100%; }

/* ============================================================
   RESPONSIVE  (mobile)
   ============================================================ */
@media (max-width: 760px) {
  .nav-toggle { display: block; }

  /* Collapse the nav into a dropdown panel under the header */
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }

  .contact { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   Honor the user's OS-level preference. Disables transitions
   and smooth scroll for visitors who have requested it.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
}
