/* =====================================================================
   Save Longcroft Sixth Form — Editorial Campaign Site
   Protest Poster × Newspaper Front Page
   ===================================================================== */

/* ── Custom Properties ── */
:root {
  --ink:           #14100a;
  --ink-soft:      #2a2318;
  --green:         #1a5c35;
  --cream:         #f5efe3;
  --cream-dark:    #ede6d6;
  --red:           #c41e1e;
  --amber:         #c87d0a;
  --amber-light:   #f5a623;
  --white:         #ffffff;
  --text:          #1e1810;
  --text-soft:     #4a3f32;

  --font-display:   'Anton', Impact, sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-body:      'Outfit', system-ui, sans-serif;

  --max-w:   1140px;
  --gap:     clamp(4rem, 8vw, 6.5rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }

/* ── Grain ── */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--green); color: var(--white);
  padding: 0.5rem 1rem; border-radius: 2px;
  font-family: var(--font-condensed); font-weight: 700;
  text-decoration: none; z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--amber-light); outline-offset: 3px; }

/* ── Container ── */
.container { width: min(var(--max-w), 100% - 2.5rem); margin-inline: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-condensed); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: none; border-radius: 2px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-amber {
  background: var(--amber-light); color: var(--ink);
  box-shadow: 4px 4px 0 var(--amber);
}
.btn-amber:hover { background: var(--amber); color: var(--white); box-shadow: 6px 6px 0 var(--ink-soft); }

.btn-ink {
  background: var(--ink); color: var(--white);
  box-shadow: 4px 4px 0 var(--amber);
}
.btn-ink:hover { background: var(--ink-soft); box-shadow: 6px 6px 0 rgba(0,0,0,0.4); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Load animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-1 { animation: fadeUp 0.7s ease 0.2s both; }
.animate-2 { animation: fadeUp 0.7s ease 0.45s both; }
.animate-3 { animation: fadeUp 0.7s ease 0.65s both; }
.animate-4 { animation: fadeUp 0.7s ease 0.85s both; }


/* ── Section dividers ── */
.divider { line-height: 0; overflow: hidden; display: block; }
.divider svg { width: 100%; height: 56px; display: block; }

/* ── Shared section header ── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}
.section-header--light { border-bottom-color: rgba(255,255,255,0.2); }
.section-header--light h2 { color: var(--white); }

.section-eyebrow {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green); /* var(--amber) fails WCAG AA on cream backgrounds */
  margin-bottom: 0.4rem;
}
.section-header--light .section-eyebrow { color: var(--amber-light); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.section-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.08;
  flex-shrink: 0;
  user-select: none;
  letter-spacing: -0.02em;
}
.section-num--light { color: var(--white); opacity: 0.1; }

/* ══════════════════════════════════════════════
   ABOVE FOLD + HERO
══════════════════════════════════════════════ */
.above-fold {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  background: var(--ink);
  color: var(--white);
  padding-bottom: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem 1rem; padding: 0.6rem 1.5rem;
  background: var(--green);
  font-family: var(--font-condensed); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.85);
}
.masthead .dot { opacity: 0.4; }

.hero-rule { height: 3px; background: linear-gradient(to right, var(--red), var(--amber-light), var(--green)); }

.hero-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 3rem;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-badge-col { display: flex; justify-content: center; align-items: center; }
.hero-badge {
  width: clamp(200px, 28vw, 360px); height: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.55));
  animation: fadeUp 0.9s ease 0.1s both;
  border-radius: 50%;
}

.hero-text-col { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-eyebrow {
  font-family: var(--font-condensed); font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--amber-light);
  border-left: 3px solid var(--red); padding-left: 0.75rem; line-height: 1.4;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase;
}
.h1-line { display: block; }
.h1-line--accent { color: var(--amber-light); }

.hero-sub {
  font-family: var(--font-body); font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,0.7); font-style: italic; max-width: 46ch; line-height: 1.65;
}

/* ── Alert Banner ── */
.alert-banner { background: var(--red); color: var(--white); padding: 0.85rem 0; }
.alert-inner { display: flex; align-items: flex-start; gap: 0.7rem; }
.alert-icon { flex-shrink: 0; margin-top: 0.2rem; }
.alert-banner p {
  font-family: var(--font-condensed); font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 600; line-height: 1.45;
}

/* ══════════════════════════════════════════════
   STATEMENT
══════════════════════════════════════════════ */
.statement {
  background: var(--cream);
  padding: var(--gap) 0 0;
}

.statement-inner {
  position: relative;
  max-width: 72ch;
  margin-inline: auto;
  padding: 3rem 3rem 2.5rem 5.5rem;
  border-left: 5px solid var(--green);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--cream-dark);
}

.statement-mark {
  position: absolute; top: 0.5rem; left: 1rem;
  font-family: var(--font-display); font-size: 8rem; line-height: 1;
  color: var(--green); opacity: 0.13; pointer-events: none; user-select: none;
}

blockquote {
  font-family: var(--font-body); font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-soft); line-height: 1.8;
}

.statement-rule {
  display: flex; align-items: center; gap: 6px;
  margin-top: 1.75rem;
}
.statement-rule span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  opacity: 0.4;
}
.statement-rule span:first-child { width: 40px; height: 3px; border-radius: 2px; opacity: 0.3; }

/* ══════════════════════════════════════════════
   WHY IT MATTERS
══════════════════════════════════════════════ */
.why-matters {
  background: var(--ink);
  padding: var(--gap) 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Grid lines via borders on cells */
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
}

.pillar {
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.22s;
}
.pillar:hover { background: rgba(255,255,255,0.05); }

/* Faded background number — consistent with Impact section */
.pillar-bg-num {
  position: absolute; bottom: -1.5rem; right: -0.5rem;
  font-family: var(--font-display); font-size: 10rem; line-height: 1;
  color: var(--white); opacity: 0.05;
  pointer-events: none; user-select: none; letter-spacing: -0.02em;
}

.pillar-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(245,166,35,0.15);
  border: 2px solid rgba(245,166,35,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pillar-icon svg { width: 32px; height: 32px; stroke: var(--amber-light); }

.pillar-text h3 {
  font-family: var(--font-condensed); font-size: 1.3rem; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--white);
  margin-bottom: 0.5rem;
}
.pillar-text p { font-size: 0.975rem; color: rgba(255,255,255,0.68); line-height: 1.72; }

/* ══════════════════════════════════════════════
   IMPACT
══════════════════════════════════════════════ */
.impact {
  background: var(--green);
  color: var(--white);
  padding: var(--gap) 0 calc(var(--gap) + 2rem);
}
.impact h2 { color: var(--white); }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.impact-col {
  background: rgba(0,0,0,0.18);
  padding: 2.25rem 1.75rem 2.25rem;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--amber-light);
  transition: background 0.2s;
}
.impact-col:hover { background: rgba(0,0,0,0.26); }

/* Large decorative background number */
.impact-bg-num {
  position: absolute; bottom: -1.5rem; right: -0.75rem;
  font-family: var(--font-display); font-size: 10rem; line-height: 1;
  color: var(--white); opacity: 0.04;
  pointer-events: none; user-select: none; letter-spacing: -0.02em;
}

.impact-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(245,166,35,0.15);
  border: 2px solid rgba(245,166,35,0.35);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.impact-icon svg { width: 26px; height: 26px; stroke: var(--amber-light); }

.impact-col h3 {
  font-family: var(--font-condensed); font-size: 1.15rem; font-weight: 800;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--amber-light);
  margin-bottom: 1rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.impact-list { display: flex; flex-direction: column; gap: 0.7rem; }
.impact-list li {
  padding-left: 1.1rem; position: relative;
  font-size: 0.975rem; color: rgba(255,255,255,0.82); line-height: 1.55;
}
.impact-list li::before {
  content: '';
  position: absolute; left: 0; top: 0.6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--amber-light);
}

/* ══════════════════════════════════════════════
   HOW YOU CAN HELP
══════════════════════════════════════════════ */
.help {
  background: var(--cream);
  padding: var(--gap) 0 calc(var(--gap) + 2rem);
}

/* Asymmetric grid: left (2 stacked) / right (1 featured) */
.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.actions-left {
  display: flex; flex-direction: column; gap: 1.5rem;
}

/* Base action card */
.action-card {
  background: var(--white);
  padding: 2rem;
  position: relative;
  border-top: 4px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.22s, box-shadow 0.22s;
}
.action-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20,16,10,0.1); }

.action-step-badge {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-family: var(--font-display); font-size: 2.25rem; line-height: 1;
  color: var(--ink); opacity: 0.1;
  user-select: none;
}

.action-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.action-icon svg { width: 26px; height: 26px; stroke: var(--green); }

.action-body h3 {
  font-family: var(--font-condensed); font-size: 1.2rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 0.4rem;
}
.action-body p { font-size: 0.975rem; color: var(--text-soft); line-height: 1.7; }
.action-body strong { color: var(--text); }

/* Featured card (step 3 — mailing list) */
.action-card--featured {
  background: var(--amber-light);
  border-top-color: var(--amber);
  justify-content: center;
  padding: 2.5rem 2.25rem;
  overflow: hidden;
}
.action-card--featured:hover { box-shadow: 0 12px 36px rgba(200,125,10,0.3); }

.action-step-badge--light {
  color: var(--ink); opacity: 0.12;
  font-size: 3rem;
}

.action-featured-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(20,16,10,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.action-featured-icon svg { width: 38px; height: 38px; stroke: var(--ink); }

.action-card--featured .action-body h3 {
  color: var(--ink); font-size: 1.4rem;
}
.action-card--featured .action-body .btn { margin-top: 0.75rem; }

.action-card--featured .action-body p {
  color: rgba(20,16,10,0.75);
}

/* Decorative background word */
.action-featured-bg {
  position: absolute; bottom: -1.5rem; right: -0.5rem;
  font-family: var(--font-display); font-size: 7rem; line-height: 1;
  color: var(--ink); opacity: 0.06;
  pointer-events: none; user-select: none; letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════
   STAY INFORMED CTA
══════════════════════════════════════════════ */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: var(--gap) 0;
  position: relative;
}
.cta-band::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--red), var(--amber-light), var(--green));
}

.cta-inner {
  display: flex; align-items: center; gap: 4rem; flex-wrap: wrap;
}
.cta-text {
  flex: 1 1 400px; display: flex; flex-direction: column; gap: 1.25rem;
}
.cta-text h2 { color: var(--white); }
.cta-text p { color: rgba(255,255,255,0.65); font-style: italic; font-size: clamp(1rem, 1.5vw, 1.1rem); max-width: 52ch; line-height: 1.75; }
.cta-logo { flex-shrink: 0; }
.cta-logo img { width: clamp(80px, 12vw, 150px); height: auto; opacity: 0.9; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: #0a0805; color: rgba(255,255,255,0.4);
  padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-logo { opacity: 0.45; width: 34px; height: auto; }
.site-footer p {
  font-family: var(--font-condensed); font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .impact-grid { grid-template-columns: 1fr; }

  .actions-grid {
    grid-template-columns: 1fr;
  }
  .action-card--featured { min-height: 280px; }
}

@media (max-width: 760px) {
  .hero-body {
    grid-template-columns: 1fr;
    text-align: center; gap: 2rem;
    padding-top: 2.5rem;
  }
  .hero-eyebrow { border-left: none; border-top: 3px solid var(--red); padding-left: 0; padding-top: 0.5rem; }
  .hero-sub { margin-inline: auto; }
  .hero-text-col .btn { align-self: center; }
  .hero-badge { width: clamp(160px, 45vw, 260px); }

  .section-header { flex-wrap: wrap; }

  .pillars { grid-template-columns: 1fr; border-left: none; }
  .pillar { border-right: none; }

  .statement-inner { padding: 2rem 1.5rem 2rem 3.5rem; }
  .statement-mark { font-size: 5rem; }

  .cta-inner { gap: 2.5rem; flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .masthead { font-size: 0.7rem; gap: 0.2rem 0.5rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ── High contrast ── */
@media (forced-colors: active) {
  .pillar, .impact-col, .action-card { border: 2px solid ButtonText; }
  .grain { display: none; }
}

/* ── Print ── */
@media print {
  .grain, .hero-rule, .divider { display: none; }
  .btn::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  .reveal { opacity: 1; transform: none; }
}
