:root {
  --navy: #061f4f;
  --navy-2: #002e6e;
  --red: #c70f16;
  --gold: #d7a840;
  --sky: #eef5ff;
  --ink: #101828;
  --muted: #607087;
  --white: #ffffff;
  --line: #d9e4f2;
  --shadow: 0 22px 60px rgba(6, 31, 79, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f6f9fe;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.high-contrast {
  --sky: #ffffff;
  --muted: #1f2937;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 86px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(6, 31, 79, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  color: var(--navy);
  text-transform: uppercase;
}

.brand-check {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid var(--navy);
  border-radius: 8px;
}

.brand-check::after {
  content: "";
  position: absolute;
  left: 10px;
  top: -2px;
  width: 18px;
  height: 34px;
  border-right: 6px solid var(--red);
  border-bottom: 6px solid var(--red);
  transform: rotate(42deg);
}

.brand-name strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.brand-name small,
.brand-seat small,
.brand-seat strong {
  display: block;
  font-weight: 900;
  line-height: 1;
}

.brand-name small {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.brand-seat {
  padding-left: 16px;
  border-left: 1px solid #b8c4d4;
}

.brand-seat strong {
  font-size: 1.2rem;
}

.brand-seat small {
  color: var(--red);
  font-size: 1.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 26px);
  color: #07132f;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  background: var(--red);
}

.nav-action {
  padding: 14px 20px !important;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(199, 15, 22, 0.24);
}

.nav-action::after {
  display: none;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: min(850px, calc(100vh - 2px));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px clamp(18px, 6vw, 92px) 160px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(246, 249, 254, 0.96) 0%, rgba(246, 249, 254, 0.84) 37%, rgba(246, 249, 254, 0.18) 70%),
    linear-gradient(0deg, rgba(6, 31, 79, 0.5), rgba(6, 31, 79, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.tag,
.kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  padding: 10px 18px;
  color: var(--white);
  background: var(--red);
  border-radius: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(3.6rem, 8.5vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h1::first-line {
  color: var(--navy);
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.14rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 660px;
  color: #1d2939;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 14px;
  margin-top: 30px;
  max-width: 880px;
}

.quick-actions a {
  display: grid;
  place-items: end center;
  min-height: 130px;
  padding: 18px 12px;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 1000;
  text-transform: uppercase;
}

.quick-actions .red {
  background: linear-gradient(180deg, #e01d28, #b70d14);
}

.quick-actions .light {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.94);
}

.priority-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  width: min(92%, 1420px);
  margin: -72px auto 0;
  overflow: hidden;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.priority-strip article {
  padding: 28px 24px;
  background: var(--navy);
}

.priority-strip strong,
.priority-strip span {
  display: block;
}

.priority-strip span {
  color: rgba(255, 255, 255, 0.74);
}

.section {
  padding: clamp(68px, 8vw, 118px) clamp(18px, 6vw, 86px);
}

.section-heading {
  max-width: 980px;
  margin-bottom: 34px;
}

.stats-grid,
.manifesto-grid,
.service-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stats-grid article,
.manifesto-grid article,
.service-grid article,
.cards article,
.dashboard-grid article,
.issue-feed article,
.portal-cards article,
.timeline article {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(6, 31, 79, 0.07);
}

.stats-grid strong {
  display: block;
  color: var(--red);
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.stats-grid span,
.manifesto-grid p,
.service-grid p,
.cards p,
.event-list p,
.dashboard-grid p,
.issue-feed p,
.issue-feed span,
.timeline p,
.portal-cards span,
.about-copy p,
.donate-section p,
.join-section p,
.site-footer span,
.site-footer p {
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
  background: var(--white);
}

.values {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.values span {
  padding: 14px 16px;
  color: var(--navy);
  background: var(--sky);
  border-left: 5px solid var(--red);
  border-radius: 6px;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline time {
  color: var(--red);
  font-weight: 1000;
  text-transform: uppercase;
}

.manifesto-section {
  background: linear-gradient(180deg, #f6f9fe, #eef5ff);
}

.manifesto-grid article {
  min-height: 164px;
}

.issues-section {
  background: var(--navy);
}

.issues-section h2,
.issues-section h3 {
  color: var(--white);
}

.issues-section p {
  color: rgba(255, 255, 255, 0.78);
}

.issue-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.status-row span {
  padding: 9px 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.issue-form,
.join-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

form button,
.donation-box button {
  min-height: 48px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 8px;
  font-weight: 1000;
  cursor: pointer;
}

.issue-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.issue-feed article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.issue-feed span {
  display: inline-flex;
  color: var(--gold);
  font-weight: 900;
}

.forum-section {
  background: var(--white);
}

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 22px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cards span {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-list article {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.event-list h3,
.portal-section h2,
.donate-section h2,
.join-section h2,
.site-footer h2 {
  color: var(--white);
}

.event-list time {
  color: var(--gold);
  font-size: 1.28rem;
  font-weight: 1000;
}

.event-list a {
  padding: 10px 12px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 1000;
}

.portal-section,
.join-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  color: var(--white);
  background: linear-gradient(115deg, var(--navy), var(--navy-2));
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.portal-cards article {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.portal-cards strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

.donate-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(68px, 8vw, 110px) clamp(18px, 6vw, 86px);
  color: var(--white);
  background: linear-gradient(115deg, #c70f16, #861016);
}

.donation-box {
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.progress {
  height: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--gold);
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.amounts button {
  color: var(--navy);
  background: var(--white);
}

.join-form button {
  grid-column: 1 / -1;
}

.dashboard-section {
  background: var(--sky);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 50px clamp(18px, 6vw, 86px);
  color: var(--white);
  background: #07132f;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.accessibility-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 12px 14px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 22px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 0;
  }

  .nav-action {
    text-align: center;
  }

  .quick-actions,
  .priority-strip,
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .manifesto-grid,
  .service-grid,
  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-columns,
  .about-section,
  .issue-panel,
  .portal-section,
  .donate-section,
  .join-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .brand-seat {
    display: none;
  }

  .hero {
    min-height: 790px;
    padding: 108px 18px 138px;
  }

  .hero-image {
    object-position: 64% top;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(246, 249, 254, 0.96), rgba(246, 249, 254, 0.56) 58%, rgba(246, 249, 254, 0.16)),
      linear-gradient(90deg, rgba(246, 249, 254, 0.98), rgba(246, 249, 254, 0.58));
  }

  h1 {
    font-size: 3.35rem;
  }

  .quick-actions,
  .priority-strip,
  .stats-grid,
  .manifesto-grid,
  .service-grid,
  .dashboard-grid,
  .cards,
  .issue-feed,
  .portal-cards,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .priority-strip {
    margin-top: -54px;
    border-radius: 14px;
  }

  .quick-actions a {
    min-height: 74px;
  }

  .issue-form,
  .join-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .event-list article {
    grid-template-columns: 1fr;
  }

  .event-list a {
    text-align: center;
  }

  .amounts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 430px) {
  .site-header {
    min-height: 78px;
  }

  .site-nav {
    top: 78px;
  }

  .brand-name strong {
    font-size: 1.5rem;
  }

  .brand-check {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 1.95rem;
  }
}
