/* Nash Payment Solutions — site styles.
   Layout: Direction B "Ascension" — navy phoenix hero, gradient seam, alternating ivory/white/navy bands, single scroll.
   Deliberately single-look: the page is the brand, so colors are fixed regardless of OS light/dark theme. */
/* Self-hosted web fonts (SIL OFL 1.1; licenses in assets/fonts/). Google Fonts woff2 builds,
   variable weight, split into latin + latin-ext so browsers only fetch the subset they need. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-italic-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-italic-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
:root {
  --navy: #162f53;
  --navy-2: #1e3a63;
  --gold: #e0b566;
  --gold-ink: #8a6a2b;
  --slate: #6b6b6b;
  --ivory: #fbf9f4;
  --white: #ffffff;
  --ink-2: #3a475a;
  --line: #e7e1d3;
  --on-navy: #c9d2df;
  --ascend: linear-gradient(63deg, var(--navy) 0%, var(--gold) 100%);
  --display: "Montserrat", Arial, sans-serif;
  --body: "Source Sans 3", Arial, sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --x: 19px; /* logo unit: cap height of NASH */
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
.sprite {
  position: absolute;
} /* SVG symbol + gradient defs; must stay rendered (not display:none) for gradients to resolve */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
  margin: 0;
  line-height: 1.15;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.in {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gut);
}
.band {
  padding-block: clamp(56px, 9vw, 112px);
}
.eb {
  font: 600 12px var(--display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.on-navy .eb {
  color: var(--gold);
}
.h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  margin-top: 12px;
}
.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 56ch;
}

/* logo lockup — built to guide p.7 proportions */
.lockup {
  display: flex;
  align-items: center;
  gap: calc(var(--x) * 0.45);
  text-decoration: none;
}
.lockup svg {
  height: calc(var(--x) * 3.4);
  width: auto;
  flex: none;
}
.lockup .wm {
  display: flex;
  flex-direction: column;
  line-height: 1;
  transform: translateY(calc(var(--x) * 0.44));
}
.lockup .nash {
  font: 700 calc(var(--x)/0.7)/1 var(--display);
  color: var(--white);
}
.lockup .desc {
  font: 600 calc(var(--x) * 0.3/0.7)/1 var(--display);
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-top: calc(var(--x) * 0.38);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 15px var(--display);
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: 6px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn.gold {
  background: var(--gold);
  color: var(--navy);
}
.btn.navy {
  background: var(--navy);
  color: var(--white);
}
.btn.ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn:hover {
  filter: brightness(1.06);
}

/* ===== header + hero ===== */
.top {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--navy);
  transition: box-shadow 0.25s;
}
.site-head.scrolled {
  box-shadow: 0 8px 24px -12px rgba(5, 12, 25, 0.6);
}
.site-head .lockup {
  transition: font-size 0.25s;
}
.head-in {
  position: relative;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
  transition: padding 0.25s;
}
.site-head.scrolled .nav {
  padding-block: 10px;
}
.nav ul a[aria-current="true"] {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.nav ul a {
  padding-block: 6px;
}
.menu-btn {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  color: var(--white);
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before {
  top: -6px;
}
.menu-btn span::after {
  top: 6px;
}
.menu-btn[aria-expanded="true"] span {
  background: transparent;
}
.menu-btn[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
section[id] {
  scroll-margin-top: 84px;
}
.nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font: 500 15px var(--display);
}
.nav ul .m-cta {
  display: none;
}
.nav ul a {
  text-decoration: none;
  color: #e9edf3;
}
.nav ul a:hover {
  color: var(--gold);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 40px;
  align-items: center;
  padding-block: clamp(40px, 7vw, 96px) 0;
}
.hero h1 {
  font-size: clamp(42px, 6.6vw, 88px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero .lede {
  color: var(--on-navy);
  margin-top: 24px;
}
.ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero .copy {
  padding-bottom: clamp(48px, 7vw, 96px);
}
.stacked {
  --sx: clamp(34px, 3.6vw, 50px);
  justify-self: end;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sx);
  margin-bottom: clamp(48px, 7vw, 96px);
} /* 1x clear space all round, off the seam */
.stacked svg {
  height: calc(var(--sx) * 4);
  width: auto;
  display: block;
}
.stacked .nash {
  font: 700 calc(var(--sx)/0.7)/1 var(--display);
  color: var(--white);
  margin-top: calc(var(--sx) * 0.55);
}
.stacked .desc {
  font: 600 calc(var(--sx) * 0.3/0.7)/1 var(--display);
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-top: calc(var(--sx) * 0.38);
  white-space: nowrap;
}
.seam {
  height: 4px;
  background: var(--ascend);
}
@media (max-width: 820px) {
  .menu-btn {
    display: inline-flex;
  }
  .nav-right .btn {
    display: none;
  }
  .nav ul {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gut) 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 30px -16px rgba(5, 12, 25, 0.7);
  }
  .nav ul.open {
    display: flex;
  }
  .nav ul li a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav ul a[aria-current="true"] {
    box-shadow: none;
  }
  .nav ul .m-cta {
    display: block;
    margin-top: 16px;
  }
  .nav ul .m-cta a {
    border: 0;
    text-align: center;
    justify-content: center;
    display: flex;
    color: var(--navy);
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero .copy {
    padding-bottom: 56px;
  }
}

/* ===== about you ===== */
.you {
  background: var(--ivory);
}
.you-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}
.you-head.flush {
  margin-bottom: 0;
}
.wants {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}
.wants div {
  border-top: 2px solid var(--navy);
  padding-top: 18px;
}
.wants h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.wants p {
  color: var(--ink-2);
  margin-top: 10px;
  font-size: 16px;
}
@media (max-width: 980px) {
  .wants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .you-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (max-width: 540px) {
  .wants {
    grid-template-columns: 1fr;
  }
}

/* ===== our story ===== */
.story .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.story .h2 + p {
  margin-top: 20px;
}
.story p + p {
  margin-top: 16px;
}
.story .copy p {
  color: var(--ink-2);
  max-width: 56ch;
}
.marks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.marks div {
  background: var(--white);
  padding: 24px 20px;
}
.marks b {
  display: block;
  font: 700 clamp(30px, 3.4vw, 42px)/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.marks div:last-child b {
  color: var(--gold-ink);
}
.marks span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.pull {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--gold);
  font: 500 clamp(19px, 1.8vw, 22px)/1.4 var(--display);
}
@media (max-width: 820px) {
  .story .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 460px) {
  .marks {
    grid-template-columns: 1fr;
  }
}
.side {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.founder {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}
.founder .photo {
  background: var(--white);
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-bottom: 3px solid transparent;
  border-image: var(--ascend) 1;
}
.founder picture {
  display: contents;
}
.founder img {
  display: block;
  width: min(100%, 340px);
  height: auto;
}
.founder figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  background: var(--ivory);
}
.founder figcaption b {
  font: 700 18px var(--display);
}
.founder figcaption span {
  font: 600 12px var(--display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* ===== mission + vision ===== */
.mv {
  background: var(--navy);
  color: var(--white);
}
.mv .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
}
.mv blockquote {
  margin: 14px 0 0;
  font: 600 clamp(22px, 2.5vw, 32px)/1.3 var(--display);
  text-wrap: pretty;
}
.mv blockquote .sub {
  display: block;
  font: 400 clamp(17px, 1.4vw, 19px)/1.6 var(--body);
  color: var(--on-navy);
  margin-top: 18px;
}
.mv .vision {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: clamp(24px, 3vw, 40px);
}
.mv .vision p {
  margin-top: 14px;
  font: 500 clamp(19px, 1.8vw, 23px)/1.4 var(--display);
  color: #ede8dc;
}
@media (max-width: 820px) {
  .mv .grid {
    grid-template-columns: 1fr;
  }
  .mv .vision {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 28px;
  }
}

/* ===== values ===== */
.values {
  background: var(--ivory);
}
.values ul {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
}
.values li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(16px, 4vw, 64px);
  padding-block: 26px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.values li:last-child {
  border-bottom: 1px solid var(--line);
}
.values h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.values h3::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
}
.values p {
  color: var(--ink-2);
}
@media (max-width: 720px) {
  .values li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ===== what we do ===== */
.do-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 44px;
}
.do-grid article {
  background: var(--white);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 10px;
  align-content: start;
}
.do-grid .tag {
  font: 600 11px var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.do-grid h3 {
  font-size: 21px;
  font-weight: 700;
}
.do-grid p {
  color: var(--ink-2);
  font-size: 16px;
}
.do-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .do-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .do-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== contact ===== */
.contact {
  background: var(--navy);
  color: var(--white);
}
.contact .grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
}
.contact .lede {
  color: var(--on-navy);
  margin-top: 18px;
}
.lines {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}
.lines div {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 14px;
}
.lines dt {
  font: 600 12px var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.lines dd {
  margin: 6px 0 0;
  font: 500 18px var(--display);
  user-select: all;
}
.lines dd.addr {
  user-select: text;
  font: 400 17px/1.5 var(--body);
  color: #e9edf3;
}
form {
  background: var(--white);
  color: var(--navy);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
form .full {
  grid-column: 1/-1;
}
label {
  display: grid;
  gap: 6px;
  font: 600 13px var(--display);
}
input,
select,
textarea {
  font: 400 16px var(--body);
  color: var(--navy);
  background: var(--ivory);
  border: 1px solid #d8d1c0;
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
}
.form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
/* Honeypot: off-screen rather than display:none, so naive bots still fill it in. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Turnstile "flexible" widget: 100% wide, min 300px, 65px tall. */
.turnstile:empty {
  display: none;
}
.form-msg {
  font: 400 15px var(--body);
  color: #a2342b;
  background: #fdf5f3;
  border: 1px solid #e6c4bd;
  border-radius: 6px;
  padding: 12px 14px;
}
.form-msg:empty {
  display: none;
}
.err {
  font: 400 13px var(--body);
  color: #a2342b;
  min-height: 0;
}
.err:empty {
  display: none;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #a2342b;
  background: #fdf5f3;
}
.thanks {
  background: var(--white);
  color: var(--navy);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.thanks svg {
  width: 56px;
  height: auto;
}
.thanks h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
}
.thanks p {
  color: var(--ink-2);
}
.thanks .btn {
  justify-self: start;
  margin-top: 6px;
}
.sent {
  grid-column: 1/-1;
  background: #eef3ea;
  border: 1px solid #cfe0c6;
  color: #2f5130;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15px;
}
@media (max-width: 820px) {
  .contact .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  form {
    grid-template-columns: 1fr;
  }
}
/* Keep room for the 300px-minimum Turnstile widget on the narrowest phones. */
@media (max-width: 400px) {
  form {
    padding: 16px;
  }
}

/* ===== footer ===== */
footer {
  background: #0f2340;
  color: #afbacb;
  font-size: 14px;
}
footer .in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 34px;
}
footer .lockup {
  --x: 19px;
} /* 64px min for horizontal lockup (guide p.8) */
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font: 500 14px var(--display);
}
footer nav a {
  text-decoration: none;
  color: #dce3ee;
}
.legal {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
}
/* ---- device polish (round 2) ---- */
@media (max-width: 820px) {
  .stacked {
    display: none;
  } /* one logo per screen on phones/tablet portrait (guide p.13) */
  .nav,
  .site-head.scrolled .nav {
    padding-block: 8px;
  }
  .nav {
    padding-block: 12px;
  }
}
@media (max-width: 820px) and (orientation: portrait) and (min-width: 600px) {
  .hero .copy {
    padding-bottom: 72px;
  }
}
@media (pointer: coarse) {
  .nav ul a {
    padding-block: 12px;
    display: inline-block;
    min-height: 44px; /* the font shorthand resets line-height, so padding alone gives 43px */
  } /* 44px touch targets on iPad */
  .btn {
    min-height: 48px;
  }
}
.lines dd a {
  display: inline-block;
  padding-block: 10px;
  margin-block: -10px;
  text-decoration: none;
}
