:root {
  --navy: #0a1428;
  --deep: #0f1f3d;
  --green: #39ff8e;
  --green-dark: #00cc66;
  --text: #f0f4f8;
  --muted: #a3b8cc;
  --line: #1e2e4a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3,
.section-title,
.logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.container {
  width: min(1200px, calc(100% - 4rem));
  margin-inline: auto;
}

/* =========================
   Header
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.logo {
  color: var(--text);
  font-size: 2.15rem;
  line-height: 1.05;
  font-weight: 800;
  text-decoration: none;
}

.logo span {
  color: var(--green);
}

.subtitle {
  margin-left: 3px;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--green);
}

/* Donate button */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nav .btn {
  padding: 10px 26px;
  font-size: 1.05rem;
  white-space: nowrap;
}

.btn-primary {
  color: var(--navy) !important;
  background: var(--green);
}

.btn-primary:hover {
  color: var(--navy) !important;
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* Mobile menu button */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--deep);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

/* Screen-reader-only text */

.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;
}

/* =========================
   Hero
   ========================= */

.hero {
  padding: 160px 0 100px;
  text-align: center;
  background:
    linear-gradient(
      rgba(10, 20, 40, 0.85),
      rgba(10, 20, 40, 0.9)
    ),
    url("Derek4NHBackground.png") center / cover no-repeat;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: 4.5rem;
  line-height: 1.05;
}

/* =========================
   Sections
   ========================= */

.section {
  padding: 5rem 0;
}

.section-title {
  margin-bottom: 3rem;
  color: var(--green);
  font-size: 2.75rem;
  text-align: center;
}

.section-title a {
  color: inherit;
  text-decoration: none;
}

.section-title a:hover {
  color: var(--green-dark);
}

/* =========================
   Cards
   ========================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(320px, 1fr)
  );
  gap: 2rem;
}

.card {
  padding: 2.25rem;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card h3 {
  margin: 1.25rem 0 1rem;
  color: var(--green);
  font-size: 1.35rem;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  padding: 4rem 0 2rem;
  text-align: center;
  background: var(--deep);
  border-top: 1px solid var(--line);
}

.site-footer .logo {
  font-size: 1.75rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--green);
}

.copyright,
.disclaimer {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* =========================
   Mailchimp
   ========================= */

#mc_embed_signup {
  background-color: transparent !important;
}

#mc-embedded-subscribe-form input.button {
  color: var(--navy) !important;
  background: var(--green);
}

#mc-embedded-subscribe-form input.button:hover {
  color: var(--navy) !important;
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 768px) {
  .container {
    width: min(100% - 2rem, 1200px);
  }

  .header-inner {
    min-height: 72px;
    padding: 1rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 0.75rem;

    background: var(--deep);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

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

  .nav a {
    padding: 0.8rem;
    font-size: 1.05rem;
    text-align: center;
  }

  .nav .btn {
    align-self: stretch;
  }

  .logo-container {
    align-items: flex-start;
  }

  .logo {
    font-size: 1.95rem;
  }

  .subtitle {
    margin-left: 0;
    font-size: 0.68rem;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2.25rem;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* =========================
   Small phones
   ========================= */

@media (max-width: 480px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .logo {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 0.62rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* =========================
   Reduced motion
   ========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
