:root {
  --navy: #00345f;
  --navy-2: #003b70;
  --teal: #007f93;
  --teal-soft: #0699bc;
  --sun: #f8b51d;
  --paper: #fffdf8;
  --band: #fbf7ef;
  --line: #ddd8ca;
  --muted: #5a6974;
  --white: #ffffff;
  --footer: #002b52;
  --container: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  overscroll-behavior-y: none;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--footer);
  color: var(--navy);
  font-family: var(--font);
  line-height: 1.55;
  overscroll-behavior-y: none;
}

main {
  flex: 1 0 auto;
  background: var(--paper);
}

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

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

a:hover {
  color: var(--teal);
}

:focus-visible {
  outline: 3px solid rgba(248, 181, 29, 0.78);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

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

.header-inner {
  width: min(1240px, calc(100% - 80px));
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  width: 162px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
  font-weight: 800;
}

.main-nav a:not(.button) {
  position: relative;
  white-space: nowrap;
}

.main-nav a.is-active::after,
.main-nav a:not(.button):hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 3px;
  background: var(--teal-soft);
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
  font-weight: 800;
}

.legal-nav a:not(.button) {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  background: var(--sun);
  color: #061b2d;
  white-space: nowrap;
  transition: transform 170ms ease, background 170ms ease;
}

.main-nav .button {
  padding-inline: 18px;
}

.button:hover {
  background: #ffc42a;
  color: #061b2d;
  transform: translateY(-1px);
}

.button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.is-unavailable {
  background: var(--sun);
}

.text-link {
  color: var(--navy);
}

.text-link span {
  color: var(--teal);
  font-size: 1.35em;
  line-height: 1;
}

.hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.92fr);
  gap: 72px;
  align-items: start;
  padding-block: 70px;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3.75rem, 6.2vw, 4.65rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero h1 span {
  color: var(--sun);
}

.hero p {
  max-width: 540px;
  margin: 28px 0 34px;
  color: var(--teal);
  font-size: 1.08rem;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.hero-mark {
  display: grid;
  align-self: start;
  justify-items: center;
}

.hero-mark img {
  width: min(100%, 500px);
}

.section-split,
.section-block,
.section-pair {
  border-bottom: 1px solid var(--line);
  background: var(--band);
}

.section-block,
.section-pair {
  padding-block: 54px;
}

.split-grid,
.pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
}

.section-split {
  padding-block: 48px;
}

.section-label {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.section-label::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 14px;
  background: var(--teal-soft);
}

.section-copy h2 {
  margin: 0 0 22px;
  max-width: 440px;
  color: #071d32;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.35;
}

.section-copy p {
  max-width: 460px;
  margin: 0;
  color: #263543;
}

.mission-lines {
  display: grid;
  align-content: start;
}

.mission-lines article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.mission-lines article:last-child {
  border-bottom: 0;
}

.mission-lines svg,
.action-grid svg,
.contact-grid svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission-lines span {
  color: var(--navy);
  font-weight: 750;
  line-height: 1.3;
}

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

.action-grid article {
  min-height: 168px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  padding: 8px 34px 0;
  text-align: center;
  border-right: 1px solid var(--line);
}

.action-grid article:last-child {
  border-right: 0;
}

.action-grid h3,
.contact-grid h3 {
  margin: 0;
  color: #071d32;
  font-size: 0.98rem;
  font-weight: 950;
  text-transform: uppercase;
}

.action-grid p,
.contact-grid p,
.join-association p {
  margin: 0;
  color: #263543;
}

.section-pair .pair-grid > div + div {
  border-left: 1px solid var(--line);
  padding-left: 72px;
}

.method-list,
.values-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list {
  counter-reset: method;
  position: relative;
  padding-left: 76px;
}

.method-list::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 18px;
  width: 1px;
  border-left: 1px dashed var(--teal);
}

.method-list li {
  position: relative;
  counter-increment: method;
}

.method-list li::before {
  content: counter(method);
  position: absolute;
  left: -76px;
  top: -2px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--band);
  color: var(--teal);
  font-weight: 900;
}

.method-list strong,
.values-list strong {
  display: block;
  margin-bottom: 3px;
  color: #071d32;
  font-size: 0.98rem;
  text-transform: uppercase;
}

.method-list span,
.values-list span {
  color: #263543;
}

.values-list li {
  position: relative;
  padding-left: 32px;
}

.values-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
}

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

.agenda-table {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.agenda-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(180px, 0.3fr) 32px;
  gap: 28px;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
}

.agenda-row time {
  color: var(--teal);
  font-weight: 950;
  text-transform: uppercase;
}

.agenda-row h3 {
  margin: 0;
  color: #253241;
  font-size: 0.98rem;
  font-weight: 700;
}

.agenda-meta {
  color: #5a6974;
}

.agenda-arrow {
  color: var(--teal);
  font-size: 1.4rem;
  text-align: right;
}

.empty-state {
  margin: 24px 0 0;
  color: var(--muted);
}

.join-association p {
  max-width: 430px;
  margin-bottom: 18px;
}

.membership-price {
  color: var(--navy);
  font-weight: 850;
}

.office-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin-top: 20px;
}

.office-compact div {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.office-compact strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.office-compact span {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.contact-grid article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 22px;
  align-items: start;
  border-right: 1px solid var(--line);
  padding-right: 36px;
}

.contact-grid article:last-child {
  border-right: 0;
}

.contact-grid svg {
  grid-row: span 3;
}

.contact-grid a {
  color: var(--navy);
  font-weight: 850;
}

.legal-main {
  width: 100%;
  margin: 0;
  padding: 72px max(40px, calc((100% - 840px) / 2));
  background: var(--paper);
}

.legal-main h1 {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
}

.legal-main section {
  padding-block: 30px;
  border-top: 1px solid var(--line);
}

.legal-main h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.15rem;
}

.legal-main p,
.legal-main li {
  color: #263543;
}

.legal-main a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--teal-soft);
  text-underline-offset: 4px;
}

.todo-note {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--sun);
  background: var(--band);
}

.site-footer {
  flex-shrink: 0;
  background: var(--footer);
  color: var(--white);
  padding-block: 42px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 1fr 1fr;
  gap: 52px;
}

.footer-inner {
  width: min(var(--container), calc(100% - 40px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  margin-inline: auto;
}

.footer-brand img {
  width: 170px;
  padding: 10px;
  background: var(--white);
}

.footer-inner img {
  width: 170px;
  padding: 10px;
  background: var(--white);
}

.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a + a {
  margin-top: 5px;
}

.site-footer p {
  margin-top: 14px;
}

.footer-credit {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

@media (max-width: 1020px) {
  .container {
    width: min(var(--container), calc(100% - 40px));
  }

  .main-nav {
    gap: 16px;
    font-size: 0.86rem;
  }

  .hero-grid,
  .split-grid,
  .pair-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 30px;
    min-height: auto;
  }

  .hero-mark {
    justify-items: start;
  }

  .hero-mark img {
    width: 320px;
  }

  .section-pair .pair-grid > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 38px;
  }

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

  .action-grid article:nth-child(2n),
  .contact-grid article:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  html.menu-open,
  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.menu-open {
    position: fixed;
    right: 0;
    left: 0;
    width: 100%;
  }

  body.menu-open .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
  }

  .header-inner {
    min-height: 72px;
    width: min(1240px, calc(100% - 40px));
  }

  .brand img {
    width: 135px;
  }

  .legal-nav {
    justify-content: flex-end;
    gap: 10px 14px;
    font-size: 0.8rem;
  }

  .legal-nav .button {
    width: auto;
    min-height: 40px;
    padding-inline: 14px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transition: color 170ms ease;
  }

  .menu-toggle:hover {
    color: var(--teal);
  }

  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    width: 26px;
    height: 3px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transition: transform 170ms ease, background 170ms ease;
  }

  .menu-toggle-lines {
    position: relative;
  }

  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    position: absolute;
    left: 0;
  }

  .menu-toggle-lines::before {
    top: -8px;
  }

  .menu-toggle-lines::after {
    top: 8px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    inset: 72px 0 auto;
    display: none;
    grid-template-columns: 1fr;
    align-content: start;
    align-items: stretch;
    gap: 0;
    height: calc(100dvh - 72px);
    padding: 16px 20px 24px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 30;
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a.is-active::after,
  .main-nav a:not(.button):hover::after {
    display: none;
  }

  .main-nav .button {
    margin-top: 16px;
    border-bottom: 0;
  }

  .hero-grid {
    padding-block: 54px 46px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14vw, 4.4rem);
  }

  .hero p {
    color: var(--muted);
  }

  .hero-mark {
    display: none;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .text-link {
    justify-content: flex-start;
  }

  .action-grid,
  .contact-grid,
  .office-compact {
    grid-template-columns: 1fr;
  }

  .action-grid article,
  .contact-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }

  .agenda-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-block: 18px;
  }

  .agenda-arrow {
    text-align: left;
  }

  .section-row {
    display: grid;
  }

  .legal-main {
    padding: 48px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
