:root {
  --bg: #09141c;
  --bg-soft: #f4f1ea;
  --ink: #14202a;
  --muted: #5c6770;
  --white: #ffffff;
  --navy: #0e2538;
  --gold: #c8a24a;
  --red: #9c2f2f;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--white);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(9, 20, 28, 0.96);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.9rem;
}

nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

nav a:hover {
  color: var(--white);
}

.hero {
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 5vw, 4rem);
  background:
    linear-gradient(90deg, rgba(9, 20, 28, 0.95) 0%, rgba(9, 20, 28, 0.78) 42%, rgba(9, 20, 28, 0.28) 72%),
    url("../images/hero-brown-water-veterans.png") center / cover no-repeat;
  color: var(--white);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  max-width: 880px;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
}

.hero p,
.section p {
  font-size: 1.08rem;
}

.hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
}

.button {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.button.secondary.on-light {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.section {
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 820px;
}

.page-hero {
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem);
  background: var(--navy);
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
}

.video-section {
  background: var(--navy);
  color: var(--white);
}

.video-frame {
  position: relative;
  width: 100%;
  margin-top: 1.5rem;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-link {
  color: rgba(255, 255, 255, 0.75);
  overflow-wrap: anywhere;
}

.video-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(20, 32, 42, 0.14);
  border-radius: 8px;
  background: var(--white);
}

.thumbnail-link {
  display: block;
  aspect-ratio: 16 / 9;
  background: #101820;
}

.thumbnail-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-card div {
  padding: 1rem;
}

.video-card h3 {
  margin: 0.25rem 0 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.video-card h3 a {
  text-decoration: none;
}

.video-meta {
  margin: 0;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
}

.muted {
  background: var(--bg-soft);
}

.resource-list {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.2rem;
  font-size: 1.05rem;
}

.resource-list a {
  color: var(--navy);
  font-weight: 800;
}

.feature-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.card,
.resource-card,
.action-item {
  border: 1px solid rgba(20, 32, 42, 0.14);
  border-radius: 8px;
  padding: 1.2rem;
  background: var(--white);
}

.card h3,
.resource-card h2,
.action-item h2 {
  margin: 0;
  line-height: 1.16;
}

.card h3 {
  font-size: 1.18rem;
}

.card p,
.resource-card p,
.action-item p {
  color: var(--muted);
  font-size: 1rem;
}

.text-link {
  color: var(--red);
  font-weight: 800;
}

.action-list {
  display: grid;
  gap: 1rem;
}

.signup-form {
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  border: 1px solid rgba(20, 32, 42, 0.14);
  border-radius: 8px;
  background: var(--bg-soft);
}

.signup-form label {
  font-weight: 800;
}

.signup-form input,
.signup-form select {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(20, 32, 42, 0.22);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.form-button {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.25rem 0 0;
  color: var(--red);
  font-weight: 800;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem);
  background: #071018;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.gpt-widget {
  position: fixed;
  right: clamp(0.8rem, 3vw, 1.5rem);
  bottom: clamp(0.8rem, 3vw, 1.5rem);
  z-index: 30;
  font-family: Arial, Helvetica, sans-serif;
}

.gpt-widget-launcher,
.gpt-widget-primary,
.gpt-widget-secondary,
.gpt-widget-close {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.gpt-widget-launcher {
  padding: 0.8rem 1rem;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(7, 16, 24, 0.3);
}

.gpt-widget-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(92vw, 390px);
  max-height: min(78vh, 690px);
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(20, 32, 42, 0.18);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(7, 16, 24, 0.28);
}

.gpt-widget-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.gpt-widget-header h2 {
  font-size: 1.3rem;
}

.gpt-widget-close,
.gpt-widget-secondary {
  padding: 0.55rem 0.75rem;
  background: var(--bg-soft);
  color: var(--ink);
}

.gpt-widget-intro,
.gpt-widget-note,
.gpt-widget-status {
  margin: 0.7rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gpt-widget-options {
  display: grid;
  gap: 0.55rem;
  margin: 0.7rem 0;
  padding: 0;
  border: 0;
}

.gpt-widget-options legend,
.gpt-widget-label {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
}

.gpt-widget-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid rgba(20, 32, 42, 0.16);
  border-radius: 8px;
  cursor: pointer;
}

.gpt-widget-option small {
  display: block;
  color: var(--muted);
}

.gpt-widget-textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 0.75rem;
  border: 1px solid rgba(20, 32, 42, 0.22);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}

.gpt-widget-primary {
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.8rem 0.9rem;
  background: var(--navy);
  color: var(--white);
}

.gpt-widget-secondary {
  width: 100%;
  margin-top: 0.6rem;
}

.gpt-widget-open {
  display: block;
  margin-top: 0.65rem;
  color: var(--red);
  font-weight: 800;
}

.gpt-widget-status {
  min-height: 1.2rem;
  color: var(--red);
  font-weight: 800;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .feature-grid,
  .resource-grid,
  .video-card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 72vh;
    background:
      linear-gradient(180deg, rgba(9, 20, 28, 0.96) 0%, rgba(9, 20, 28, 0.8) 62%, rgba(9, 20, 28, 0.46) 100%),
      url("../images/hero-brown-water-veterans.png") center / cover no-repeat;
  }

  .site-footer {
    flex-direction: column;
  }

  .gpt-widget {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .gpt-widget-launcher {
    width: 100%;
  }

  .gpt-widget-panel {
    right: 0;
    left: 0;
    width: 100%;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  .feature-grid,
  .video-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
