/* =====================================================================
   Public Safety Forum — theme
   Palette mirrors the VOID brand tokens plus a truer flag palette drawn
   from the event flyers (navy / red / white, stars, diagonal banner).
   Keep all color here so a future year can re-skin in one place.
   ===================================================================== */

:root {
  /* VOID brand tokens (carried over from voidok.org for consistency) */
  --void-light-blue: #0073bd;
  --void-dark-blue: #03499a;
  --void-coral: #ef474f;
  --void-black: #231f20;
  --void-tan: #f1b680;
  --void-cream: #f4f1ec;

  /* Flag palette from the flyers */
  --flag-navy: #0a2350;
  --flag-navy-2: #103a7d;
  --flag-red: #c8102e;
  --flag-red-dark: #9c0c22;

  --font-head: "Syne", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

/* ----------------------------- Base ----------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--void-black);
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
}

a {
  color: var(--void-dark-blue);
}

.bg-flag-navy {
  background-color: var(--flag-navy);
}

/* --------------------------- Sections --------------------------- */
.section {
  padding: 4rem 0;
}

.section--topics {
  background-color: var(--void-cream);
}

.section--watch {
  background-color: #fff;
}

.section--candidates {
  background: linear-gradient(180deg, var(--flag-navy) 0%, var(--flag-navy-2) 100%);
  color: #fff;
}

.section--sponsors {
  background-color: var(--void-cream);
}

.section__title {
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
  position: relative;
}

.section__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, var(--flag-red) 0 50%, var(--void-dark-blue) 50% 100%);
  border-radius: 2px;
}

.section--candidates .section__title { color: #fff; }

.section__lead {
  max-width: 640px;
  margin: 0 auto;
  color: inherit;
  opacity: 0.9;
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, var(--flag-navy-2) 0%, var(--flag-navy) 60%, #061738 100%);
  color: #fff;
  padding: 5rem 0 4.5rem;
  border-bottom: 6px solid var(--flag-red);
}

.hero__stars {
  position: absolute;
  inset: 0;
  background-image: url("/styles/stars.svg");
  background-size: 180px 180px;
  opacity: 0.9;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  color: var(--void-tan);
  margin-bottom: 1.25rem;
}

.hero__banner {
  display: inline-block;
  background: var(--flag-red);
  transform: skew(-4deg);
  padding: 0.5rem 1.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border-top: 3px solid rgba(255, 255, 255, 0.55);
  border-bottom: 3px solid rgba(255, 255, 255, 0.55);
}

.hero__title {
  transform: skew(4deg);
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  font-size: clamp(2.1rem, 6.5vw, 4.25rem);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  margin: 2rem 0 0;
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 600;
}

.hero__meta-item i {
  color: var(--void-tan);
}

.hero__tagline {
  margin: 1.5rem auto 2rem;
  max-width: 620px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--flag-red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-hero:hover {
  background: var(--flag-red-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------------------------- Topics ---------------------------- */
.topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  background: #fff;
  border-radius: 0.75rem;
  border-top: 4px solid var(--flag-red);
  padding: 1.5rem 1rem;
  box-shadow: 0 6px 18px rgba(10, 35, 80, 0.08);
  height: 100%;
}

.topic-card__icon {
  font-size: 1.75rem;
  color: var(--void-dark-blue);
}

.topic-card__label {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--flag-navy);
  line-height: 1.2;
}

/* --------------------------- Livestream -------------------------- */
.livestream-frame {
  max-width: 960px;
  margin-inline: auto;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(10, 35, 80, 0.2);
}

.livestream-frame iframe {
  border: 0;
}

.livestream-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, var(--flag-navy-2), var(--flag-navy));
  color: #fff;
  border: 3px dashed rgba(255, 255, 255, 0.4);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.livestream-placeholder i { color: var(--void-tan); }

.livestream-placeholder__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

.livestream-placeholder__sub {
  color: rgba(255, 255, 255, 0.8);
}

.livestream-note {
  max-width: 640px;
  margin-inline: auto;
  font-size: 0.95rem;
  opacity: 0.85;
}

.livestream-note i { color: var(--flag-navy); }

/* --------------------------- Candidates -------------------------- */
.candidate {
  max-width: 420px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.candidate__photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--void-cream);
  border: 5px solid #fff;
  box-shadow: 0 0 0 5px var(--flag-red), 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Fixed-width banner with the name stacked first-over-last. Both candidates
   get an identical-size banner — no visual implication of preference. */
.candidate__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20rem;
  max-width: 100%;
  margin: 1.75rem auto 1rem;
  background: var(--flag-red);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  line-height: 1.1;
  padding: 0.6rem 1rem;
  border-radius: 0.9rem;
  text-align: center;
}

.candidate__name-line {
  display: block;
}

.candidate__bio {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.candidate__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--flag-red);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.candidate__link:hover {
  color: var(--void-tan);
  border-color: var(--void-tan);
}

/* ---------------------------- Sponsors --------------------------- */
/* Responsive grid: items grow to fill the row, capped at 4 per row.
   Fewer than 4 stretch to fill the width; a 5th wraps to the next row. */
.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.sponsor-col {
  flex: 1 1 100%; /* mobile: 1 per row */
}

@media (min-width: 576px) {
  .sponsor-col { flex-basis: calc(50% - 0.75rem); } /* up to 2 per row */
}

@media (min-width: 992px) {
  .sponsor-col { flex-basis: calc(25% - 1.125rem); } /* up to 4 per row */
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.75rem 1.25rem;
  box-shadow: 0 6px 18px rgba(10, 35, 80, 0.08);
}

.sponsor-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  margin-bottom: 1rem;
}

.sponsor-card__logo {
  max-height: 90px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.sponsor-card__blurb {
  font-size: 0.9rem;
  color: var(--void-black);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.sponsor-card__link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--void-dark-blue);
}

.sponsor-card__link:hover { color: var(--flag-red); }

/* ----------------------------- Footer ---------------------------- */
.site-footer {
  background: #fff;
}

.footer-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-nav a:hover {
  color: var(--void-tan) !important;
}

.site-footer .copyright {
  color: var(--flag-red);
}

/* -------------------------- Responsive --------------------------- */
@media (max-width: 575.98px) {
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .candidate__photo { width: 180px; height: 180px; }
}
