:root {
  --red: #c8102e;
  --navy: #14235c;
  --navy-2: #0e1a45;
  --sky: #2a7fbf;
  --green: #2e7d32;
  --sand: #f5efe2;
  --paper: #ffffff;
  --ink: #1a1f2b;
  --muted: #5a6473;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
h1, h2, h3, .nav__brand { font-family: "Oswald", Impact, sans-serif; line-height: 1.1; letter-spacing: 0.01em; }
img { max-width: 100%; display: block; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  background: var(--navy); color: #fff;
  padding: 0.8rem 1.4rem;
}
.nav__brand { color: #fff; text-decoration: none; font-size: 1.35rem; font-weight: 700; }
.nav__brand span { color: #ffd34d; }
.nav__links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.nav__links a { color: #dbe4f5; text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav__links a:hover { color: #fff; }

/* ---------- HERO ---------- */
.hero { background: linear-gradient(160deg, #fbfaf6 0%, #eef2f8 100%); border-bottom: 5px solid var(--red); }
.hero__inner {
  max-width: 1100px; margin: 0 auto; padding: clamp(2.2rem, 6vw, 4.5rem) 1.4rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center;
}
.kicker { text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; font-size: 0.8rem; color: var(--red); margin-bottom: 0.9rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 700; color: var(--navy); margin-bottom: 1.1rem; }
.hero .lede { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: #3a4152; max-width: 52ch; }
.hero .lede strong { color: var(--red); }
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__art img { filter: drop-shadow(0 14px 30px rgba(20,35,92,0.18)); }

/* ---------- BUTTONS ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 0.85rem 1.5rem; border-radius: 8px; transition: transform 0.12s ease, box-shadow 0.12s ease; font-family: "Oswald", sans-serif; letter-spacing: 0.02em; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(200,16,46,0.3); }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn small { display: block; font-family: "Source Sans 3", sans-serif; font-weight: 400; font-size: 0.72rem; opacity: 0.85; letter-spacing: 0; }

/* placeholder links get a dashed hint */
[data-placeholder] { outline: 2px dashed rgba(255,255,255,0.35); outline-offset: 2px; }
.band [data-placeholder] { color: var(--red); }

/* ---------- BANDS ---------- */
.band { padding: clamp(3rem, 7vw, 5rem) 1.4rem; }
.band--navy { background: var(--navy); color: #eaf0fb; }
.band--sand { background: var(--sand); }
.wrap { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: inherit; margin-bottom: 0.6rem; }
.band:not(.band--navy) .section-title { color: var(--navy); }
.section-lede { font-size: 1.08rem; max-width: 62ch; margin-bottom: 2rem; opacity: 0.95; }
.note { margin-top: 1.6rem; font-size: 0.92rem; color: var(--muted); background: #fff6d6; border-left: 4px solid #e6b800; padding: 0.7rem 1rem; border-radius: 6px; }

/* ---------- ISSUE GRID ---------- */
.issue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.issue { background: #fff; border: 1px solid #e7e9ef; border-top: 4px solid var(--red); border-radius: 12px; padding: 1.5rem; box-shadow: 0 6px 16px rgba(20,35,92,0.05); }
.issue__icon { font-size: 2rem; margin-bottom: 0.5rem; }
.issue h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.4rem; }
.issue em { color: var(--muted); }

/* ---------- BIGGER PICTURE (steps) ---------- */
.steps { display: grid; gap: 1.2rem; }
.step { background: #fff; border: 1px solid #e7e9ef; border-left: 5px solid var(--red); border-radius: 12px; padding: 1.5rem 1.7rem; box-shadow: 0 6px 16px rgba(20,35,92,0.05); }
.step__tag { display: inline-block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 700; color: var(--red); margin-bottom: 0.5rem; }
.step h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 0.5rem; }
.step p { margin: 0; }

/* ---------- LESSONS (cards) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem; }
.card { background: #fff; border: 1px solid #e7e9ef; border-top: 4px solid var(--navy); border-radius: 12px; padding: 1.5rem; box-shadow: 0 6px 16px rgba(20,35,92,0.05); }
.card h3 { font-size: 1.2rem; color: var(--red); margin-bottom: 0.5rem; }
.card p { font-size: 0.97rem; margin-bottom: 0.5rem; }
.card .learning { font-weight: 700; color: var(--navy); }
.cite { font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }
.cite a { color: var(--red); font-weight: 600; text-decoration: none; }
.cite a:hover { text-decoration: underline; }

/* ---------- ACTION GRID ---------- */
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.3rem; }
.action-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 1.6rem; position: relative; }
.action-card__step { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--red); color: #fff; font-family: "Oswald"; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.8rem; }
.action-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.4rem; }
.action-card p { color: #c7d2ea; font-size: 0.97rem; margin-bottom: 1.1rem; }

/* ---------- GALLERY ---------- */
.cat-title { font-size: 1.4rem; color: var(--navy); margin: 2rem 0 1rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--red); display: inline-block; }
.cat-title small { font-weight: 400; color: var(--muted); font-size: 0.75em; }
.cat-note { color: var(--muted); font-size: 0.98rem; margin: -0.4rem 0 1.2rem; max-width: 60ch; }
.tile--pdf .tile__cap { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tile--pdf .tile__cap em { font-style: normal; font-family: "Oswald", sans-serif; font-size: 0.82rem; color: #fff; background: var(--red); padding: 0.15rem 0.55rem; border-radius: 5px; white-space: nowrap; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.3rem; }
.tile { position: relative; display: block; background: #fff; border: 1px solid #e2ddcd; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--navy); box-shadow: 0 6px 16px rgba(20,35,92,0.06); transition: transform 0.14s ease, box-shadow 0.14s ease; }
.ai-badge { position: absolute; top: 0.55rem; left: 0.55rem; z-index: 2; background: rgba(20,35,92,0.92); color: #fff; font-family: "Oswald", sans-serif; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.22rem 0.5rem; border-radius: 5px; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,35,92,0.14); }
.tile img { width: 100%; height: 220px; object-fit: contain; background: #fff; padding: 0.8rem; }
.tile--tall img { height: 320px; }
.gallery--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tile--wide img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; padding: 0; }
.gallery--maps { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile--map img { height: auto; aspect-ratio: 3 / 2; object-fit: cover; padding: 0; }
.gallery--towers { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.tile--tower { background: var(--navy); border-color: var(--navy-2); }
.tile--tower img { height: 300px; object-fit: contain; background: radial-gradient(circle at 50% 40%, #24356f, var(--navy) 70%); padding: 0.6rem; }
.tile--tower .tile__cap { background: var(--navy-2); color: #fff; border-top-color: rgba(255,255,255,0.12); }
.tile__cap small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.tile--tower .tile__cap small { color: #aebbd8; }
.cat-note .src { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; font-style: italic; }
.cat-note a { color: var(--red); font-weight: 600; }
.tile__cap { display: block; padding: 0.7rem 0.9rem; font-weight: 700; font-size: 0.95rem; border-top: 1px solid #eee7d6; background: #fbf8f0; }

/* ---------- RESOURCES ---------- */
.res-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.8rem; }
.res-group h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.8rem; padding-bottom: 0.35rem; border-bottom: 2px solid #e7e9ef; }
.res-list { list-style: none; }
.res-list li { padding: 0.7rem 0; border-bottom: 1px solid #f0f0f4; }
.res-list a { color: var(--red); font-weight: 700; text-decoration: none; }
.res-list a:hover { text-decoration: underline; }
.res-list span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.15rem; }
.res-list code { background: #f1f1f5; padding: 0.05rem 0.35rem; border-radius: 4px; font-size: 0.85em; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-2); color: #b9c5e0; text-align: center; padding: 3rem 1.4rem; }
.footer__logo { width: 180px; margin: 0 auto 1rem; }
.footer__tag { font-family: "Oswald"; font-size: 1.3rem; color: #fff; letter-spacing: 0.03em; margin-bottom: 0.8rem; }
.footer__fine { font-size: 0.85rem; max-width: 64ch; margin: 0 auto; opacity: 0.7; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 780px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__art { order: -1; max-width: 380px; margin: 0 auto; }
  .nav { justify-content: center; }
}
