:root {
  --navy: #0b1f3b;
  --navy-2: #12355f;
  --gold: #c9a227;
  --gold-dark: #9f7c12;
  --ink: #1c1c1c;
  --muted: #5a6573;
  --line: #dce3ec;
  --light: #f5f7fa;
  --white: #ffffff;
  --teal: #1f7a74;
  --shadow: 0 18px 45px rgba(11, 31, 59, 0.12);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
  text-decoration-color: rgba(201, 162, 39, 0.8);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-dark);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-family: Montserrat, Poppins, Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.65rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-family: Montserrat, Poppins, Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.78rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--light);
}

.site-nav a.nav-cta {
  color: var(--white);
  background: var(--navy);
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta[aria-current="page"] {
  color: var(--navy);
  background: var(--gold);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(760px, 78vh);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 31, 59, 0.96) 0%, rgba(11, 31, 59, 0.85) 38%, rgba(11, 31, 59, 0.3) 72%),
    url("../img/hero-community-media.jpg") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.hero-inner {
  position: relative;
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  padding: 5.5rem 0 6rem;
}

.hero h1,
.hero p {
  color: var(--white);
}

.hero p {
  max-width: 680px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  color: var(--gold);
  font-family: Montserrat, Poppins, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.12rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  color: var(--navy);
  background: var(--gold);
}

.button-primary:hover {
  color: var(--navy);
  background: #d9b648;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

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

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

.button-dark:hover {
  color: var(--navy);
  background: var(--gold);
}

.section {
  padding: 5rem 0;
}

.section-light {
  background: var(--light);
}

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

.section-navy h2,
.section-navy h3,
.section-navy p,
.section-navy li {
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading p,
.lead {
  max-width: 850px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-navy .section-heading p,
.section-navy .lead {
  color: rgba(255, 255, 255, 0.82);
}

.grid {
  display: grid;
  gap: 1.1rem;
}

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

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

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

.card,
.status-panel,
.form-panel,
.media-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 25px rgba(11, 31, 59, 0.06);
}

.card {
  padding: 1.45rem;
}

.card-topline {
  width: 46px;
  height: 4px;
  margin-bottom: 1.1rem;
  background: var(--gold);
}

.card p,
.media-panel p {
  color: var(--muted);
}

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

.stat {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  color: var(--gold);
  font-family: Montserrat, Poppins, Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.1;
}

.stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.65rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(201, 162, 39, 0.2);
  border-radius: 999px;
}

details {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

details + details {
  margin-top: 0.75rem;
}

summary {
  color: var(--navy);
  font-family: Montserrat, Poppins, Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.list-clean {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  position: relative;
  padding-left: 1.65rem;
  margin: 0.55rem 0;
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.status-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  padding: 2rem;
}

.status-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  padding: 0.95rem 1rem;
  border-left: 4px solid var(--gold);
  background: var(--light);
}

.timeline {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.timeline strong {
  color: var(--navy);
  font-family: Montserrat, Poppins, Arial, sans-serif;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--navy);
  font-family: Montserrat, Poppins, Arial, sans-serif;
  background: var(--light);
}

tr:last-child td {
  border-bottom: 0;
}

.signup-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

label {
  color: var(--navy);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.85rem;
  color: var(--ink);
  font: inherit;
  border: 1px solid #b9c4d1;
  border-radius: var(--radius);
  background: var(--white);
}

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

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(201, 162, 39, 0.5);
  outline-offset: 3px;
}

.form-panel {
  padding: 2rem;
}

.check-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 0.25rem 0 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 0.15rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.35rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-weight: 800;
}

.form-status[data-status="success"] {
  color: #146c43;
}

.form-status[data-status="error"] {
  color: #9f1c1c;
}

.page-hero {
  padding: 5rem 0 4rem;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(11, 31, 59, 0.98), rgba(18, 53, 95, 0.95)),
    var(--navy);
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero p {
  max-width: 760px;
  font-size: 1.15rem;
}

.content-block {
  max-width: 900px;
}

.content-block h2 {
  margin-top: 2.3rem;
}

.media-panel {
  overflow: hidden;
}

.media-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.media-panel-content {
  padding: 1.35rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.contact-details {
  padding: 1.6rem;
  border-left: 5px solid var(--gold);
  background: var(--light);
}

.notice {
  padding: 1.25rem;
  border-left: 5px solid var(--gold);
  background: var(--light);
}

.packet {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.packet-cover {
  padding: 2rem;
  color: var(--white);
  border-radius: var(--radius);
  background: var(--navy);
}

.packet-cover h1,
.packet-cover p {
  color: var(--white);
}

.packet-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  padding: 3.2rem 0;
  color: rgba(255, 255, 255, 0.84);
  background: #07172d;
}

.footer-inner {
  display: grid;
  gap: 1.7rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: Montserrat, Poppins, Arial, sans-serif;
  font-weight: 800;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.footer-details {
  display: grid;
  gap: 0.25rem;
}

.footer-details p {
  margin: 0;
}

.footer-links a,
.site-footer a {
  color: var(--white);
}

.footer-small {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    justify-content: center;
  }

  .grid-3,
  .grid-2,
  .grid-4,
  .stat-grid,
  .status-panel,
  .signup-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(90deg, rgba(11, 31, 59, 0.96), rgba(11, 31, 59, 0.82)),
      url("../img/hero-community-media.jpg") center / cover no-repeat;
  }

  .hero-inner {
    padding: 4.5rem 0 5rem;
  }

  h1 {
    max-width: 14ch;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15.5px;
  }

  .nav-wrap,
  .section-inner,
  .footer-inner,
  .hero-inner {
    width: min(calc(100% - 24px), var(--max));
  }

  .section {
    padding: 3.6rem 0;
  }

  .page-hero {
    padding: 3.6rem 0 3rem;
  }

  .form-row,
  .hero-actions,
  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .status-panel,
  .signup-band,
  .form-panel {
    padding: 1.25rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .actions {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .packet {
    max-width: none;
    padding: 0;
  }

  .packet-cover {
    color: #000;
    border: 2px solid #000;
    background: #fff;
  }

  .packet-cover h1,
  .packet-cover p {
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
