@import url("https://fonts.googleapis.com/css2?family=Inter:opsz@14..32&display=swap");

:root {
  --navy: #0f3b5e;
  --navy-2: #153f63;
  --navy-3: #0b2f4c;
  --gold: #c9a227;
  --gold-2: #b48f1c;
  --bg: #f6f8fb;
  --text: #101828;
  --muted: #475467;
  --card: #ffffff;
  --border: rgba(16, 24, 40, 0.08);
  --shadow: 0 22px 70px rgba(16, 24, 40, 0.18);
  --radius-lg: 28px;
  --radius-md: 18px;
  --nav-offset: 110px;
}

* {
  font-family: "Inter", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

section,
header {
  scroll-margin-top: var(--nav-offset);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  background: #fff;
}

.section--alt {
  background: #f3f6fb;
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
  color: var(--navy);
}

.section__lead {
  margin: 0 0 48px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
  min-height: 44px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--block {
  width: 100%;
}

.btn--gold {
  background: var(--gold);
  color: #1a1a1a;
}

.btn--gold:hover {
  background: var(--gold-2);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(16, 24, 40, 0.06);
}

.card__body {
  padding: 22px;
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: #fff;
  outline: none;
  font-size: 14px;
}

.input:focus {
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.18);
}

.label {
  display: block;
  font-size: 12px;
  color: rgba(16, 24, 40, 0.72);
  font-weight: 600;
  margin: 0 0 6px 0;
}

.helper {
  margin: 10px 0 0 0;
  font-size: 12px;
  color: rgba(16, 24, 40, 0.6);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(201, 162, 39, 0.12);
  color: #5b4a10;
  border: 1px solid rgba(201, 162, 39, 0.25);
}

/* ---------------- HERO ---------------- */
.topnav {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 50;
}

.topnav__inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 22px 60px rgba(7, 23, 39, 0.18);
  border-radius: 999px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 59, 94, 0.15), rgba(15, 59, 94, 0.06));
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.brand__img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  -o-object-fit: contain;
     object-fit: contain;
  display: none;
  background: #fff;
}

.brand__text {
  line-height: 1.1;
}

.brand__name {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-size: 18px;
}

.brand__sub {
  font-size: 13px;
  color: rgba(16, 24, 40, 0.5);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 26px;
  font-size: 16px;
  color: rgba(16, 24, 40, 0.68);
  font-weight: 700;
}

.navlinks a {
  position: relative;
}

.navlinks a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.16s ease;
}

.navlinks a:hover {
  color: rgba(16, 24, 40, 0.95);
}

.navlinks a:hover::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: #fff;
  cursor: pointer;
}

.menu-btn__icon {
  width: 18px;
  height: 12px;
  position: relative;
}

.menu-btn__icon::before,
.menu-btn__icon::after,
.menu-btn__icon span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(16, 24, 40, 0.72);
  border-radius: 99px;
}

.menu-btn__icon::before {
  top: 0;
}

.menu-btn__icon span {
  top: 5px;
}

.menu-btn__icon::after {
  bottom: 0;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  backdrop-filter: blur(2px);
}

.mobile-menu__panel {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.22);
  overflow: hidden;
}

.mobile-menu__header {
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

.mobile-menu__title {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.menu-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.mobile-menu__links {
  display: grid;
  padding: 10px;
  gap: 8px;
}

.mobile-menu__links a {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: #fff;
  font-weight: 800;
  color: rgba(16, 24, 40, 0.82);
}

.mobile-menu__links a:active {
  transform: translateY(1px);
}

body.menu-open {
  overflow: hidden;
}

/* Hero with aleatory background image */
.hero-simple {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 156px 0 86px;
  background: var(--navy);
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-simple__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(960px 540px at 18% 42%, rgba(201, 162, 39, 0.16), transparent 60%),
    linear-gradient(90deg, rgba(10, 33, 53, 0.88) 0%, rgba(10, 33, 53, 0.68) 44%, rgba(10, 33, 53, 0.48) 100%);
}

.hero-simple__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

#hero-fade {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-simple__content {
  padding: 34px 0 22px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.hero__headline {
  margin: 20px 0 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  text-wrap: balance;
}

.hero__headline strong {
  color: var(--gold);
}

.hero__copy {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.hero__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1.55;
  max-width: 34ch;
  text-wrap: pretty;
  margin-left: auto;
  margin-right: auto;
}

.hero__lead--secondary {
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.7;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__cta .btn {
  min-height: 58px;
  padding: 0 28px;
  font-size: 17px;
}

.hero-form {
  margin-top: 22px;
  max-width: 520px;
}

.hero-form .card__body {
  padding: 18px;
}

.hero-form__title {
  margin: 0 0 14px 0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: rgba(16, 24, 40, 0.9);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid .form-span-2 {
  grid-column: span 2;
}

.join-wrap {
  display: flex;
  justify-content: center;
}

.join-wrap .hero-form {
  margin-top: 0;
  max-width: 720px;
  width: 100%;
}

/* -------------- Content blocks -------------- */
.hero-simple--home {
  --hero-bg: url("https://picsum.photos/1600/900?random=11");
}

.copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.copy--quote {
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.copy--spaced {
  margin-top: 14px;
}

.copy--compact {
  line-height: 1.6;
}

.copy--light {
  color: rgba(255, 255, 255, 0.9);
}

.list-clean {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.9;
}

.list-light {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.9;
}

.card__title {
  margin: 0 0 10px;
  color: var(--navy);
}

.card--glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.action-row {
  margin: 12px 0 0;
}

.pillars .card__body h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: var(--navy);
}

.pillars .card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.icon-check::before {
  content: "✓";
  display: inline-block;
  width: 1.25rem;
  margin-left: -0.25rem;
  margin-right: 0.5rem;
  font-weight: 900;
  color: var(--gold);
}

.image-section {
  color: #fff;
  background: linear-gradient(110deg, rgba(15, 59, 94, 0.98) 0%, rgba(15, 59, 94, 0.72) 100%),
    var(--bg-image, none);
  background-size: cover;
  background-position: center;
}

.image-section--impact {
  --bg-image: url("https://picsum.photos/1600/900?random=12");
}

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

.image-section .section__lead {
  color: rgba(255, 255, 255, 0.84);
}

.footer {
  padding: 44px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
}

.footer a {
  color: rgba(255, 255, 255, 0.86);
}

.footer a:hover {
  color: #fff;
}

.footer__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 34rem;
}

.footer__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 10px;
}

.footer__title {
  font-weight: 900;
  color: #fff;
}

.footer__copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

/* ---------------- Tables (admin) ---------------- */
.table-wrap {
  margin-top: 10px;
  border-radius: 14px;
  overflow: auto;
  border: 1px solid var(--border);
  background: #fff;
}

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

.table th,
.table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.table thead th {
  position: sticky;
  top: 0;
  background: #f6f8fb;
  color: rgba(16, 24, 40, 0.78);
  font-weight: 800;
}

.table tbody tr:nth-child(2n) td {
  background: rgba(16, 24, 40, 0.015);
}

.table a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(15, 59, 94, 0.25);
}

.table a:hover {
  text-decoration-color: rgba(15, 59, 94, 0.65);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  color: rgba(16, 24, 40, 0.75);
  white-space: nowrap;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  :root {
    --nav-offset: 96px;
  }

  .navlinks {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .topnav {
    top: 14px;
  }

  .topnav__inner {
    width: min(1100px, calc(100% - 24px));
    padding: 10px 12px;
  }

  .topnav__inner > .btn {
    padding: 10px 18px;
    min-height: 46px;
  }

  .section {
    padding: 72px 0;
  }

  .hero-simple {
    padding: 132px 0 68px;
  }

  .hero__headline {
    font-size: clamp(38px, 7vw, 58px);
  }

  .hero__lead {
    font-size: 19px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 56px 0;
  }

  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .hero-simple {
    padding: 110px 0 52px;
  }

  .hero-simple__content {
    padding: 20px 0 0;
  }

  .hero__eyebrow {
    font-size: 11px;
    min-height: 34px;
    padding: 7px 12px;
  }

  .hero__headline {
    margin-top: 16px;
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero__copy {
    margin-top: 22px;
    gap: 12px;
  }

  .hero__lead {
    font-size: 17px;
    max-width: 100%;
  }

  .hero__lead--secondary {
    font-size: 16px;
    max-width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }

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

  .form-grid .form-span-2 {
    grid-column: auto;
  }

  .footer__row,
  .footer__links {
    justify-content: flex-start;
  }

  .footer__copy {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand__name {
    font-size: 16px;
  }

  .brand__sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-up {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.fade-up.appear {
  opacity: 1;
  transform: translateY(0);
}
