/*
Theme Name: NorthGatePay
*/

:root {
  --bg:        #EEF4F2;
  --paper:     #F7FAF9;
  --surface:   #FFFFFF;
  --ink:       #0C2B2E;
  --ink-soft:  #234A4D;
  --muted:     #5C7570;
  --teal:      #0E6E63;
  --teal-deep: #0B3B3C;
  --teal-200:  #CFE6E0;
  --gold:      #E2A93F;
  --gold-soft: #F4D89A;
  --line:      #D8E4E0;
  --ok:        #1E8E5A;
  --err:       #C2452F;

  --shadow-sm: 0 1px 2px rgba(11,59,60,.06), 0 2px 6px rgba(11,59,60,.05);
  --shadow-md: 0 8px 24px rgba(11,59,60,.10), 0 2px 6px rgba(11,59,60,.06);
  --shadow-lg: 0 24px 60px rgba(11,59,60,.18), 0 8px 20px rgba(11,59,60,.08);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 .9rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  --b: var(--teal);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  border-radius: 12px;
  padding: 14px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #138a7c, var(--teal));
  color: #fff;
  box-shadow: 0 8px 20px rgba(14,110,99,.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(14,110,99,.40); text-decoration: none; }
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,250,249,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand svg { height: 44px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0; padding: 0;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .98rem;
  padding: 6px 2px;
  position: relative;
}
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: var(--gold);
}
.nav-cta { margin-left: 6px; }

.nav-cta a {
  color: #fff;
}

.nav-cta a:hover {
  color: #fff;
}

.nav-cta a:after {
  display: none;
}

/* Burger — hidden on desktop */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(226,169,63,.16), transparent 60%),
    radial-gradient(800px 520px at -5% 8%, rgba(14,110,99,.10), transparent 55%),
    linear-gradient(180deg, var(--paper), var(--bg));
}
.hero-arches {
  position: absolute;
  right: -350px; top: -40px;
  width: 620px; height: auto;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 84px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  margin-bottom: .35em;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--teal);
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-trust {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-trust svg { color: var(--teal); flex: none; }

/* ---------- Form card ---------- */
.track-card {
  position: relative;
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 30px 30px 28px;
  z-index: 1;
}
.track-card::before {
  /* brass arch crown over the form = "the gate" */
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 6px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-soft));
}
.track-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.track-head h2 { font-size: 1.45rem; margin: 0; }
.track-badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-200);
  padding: 5px 10px;
  border-radius: 999px;
}
.track-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

.field { margin-bottom: 16px; }
.field > label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .opt { color: var(--muted); font-weight: 400; }

.control {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.control::placeholder { color: #97aaa6; }
.control:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14,110,99,.14);
}
select.control:focus {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C7570' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat #fff;
  background-position: right 12px center;
}
.mono { font-family: var(--font-mono); letter-spacing: .02em; }

/* amount + currency combined */
.amount-row { display: grid; grid-template-columns: 1fr 116px; gap: 10px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

select.control { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C7570' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

/* validation */
.error-msg {
  display: none;
  color: var(--err);
  font-size: .82rem;
  margin-top: 6px;
  align-items: center;
  gap: 6px;
}
.field.invalid .control { border-color: var(--err); background: #fff7f5; box-shadow: 0 0 0 4px rgba(194,69,47,.10); }
.field.invalid select.control {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C7570' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat #fff7f5;
  background-position: right 12px center;
}
.field.invalid .error-msg { display: flex; }
.field.valid .control { border-color: #8cd0ba; }

.form-foot {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  color: var(--muted);
}
.form-foot svg { color: var(--teal); flex: none; }

/* success / result panel */
.result {
  display: none;
  margin-top: 18px;
  border: 1px solid var(--teal-200);
  background: linear-gradient(180deg, #f1faf7, #fff);
  border-radius: 14px;
  padding: 18px 18px 20px;
}
.result.show { display: block; animation: rise .4s ease; }
.result h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.result h3 svg { color: var(--ok); }
.result .ref {
  font-family: var(--font-mono);
  background: #fff;
  border: 1px dashed var(--teal-200);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 10px 0 14px;
  font-size: .9rem;
  word-break: break-all;
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 16px 28px;
  color: var(--ink-soft);
  font-size: .92rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px rgba(14,110,99,.16);
}
.timeline li:last-child::before {
  background: none;
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 9px; top: 16px; bottom: 2px;
  width: 2px; background: var(--teal-200);
}
.timeline strong { color: var(--ink); display: block; font-weight: 600; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Generic section ---------- */
.section { padding: 76px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.alt { background: var(--paper); border-block: 1px solid var(--line); }

/* steps (a real sequence → numbered) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step .num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: .1em;
}
.step h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.step .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--teal-200); color: var(--teal-deep);
  display: grid; place-items: center; margin-bottom: 14px;
}

/* feature/trust grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature .icon { color: var(--teal); flex: none; margin-top: 2px; }
.feature h3 { font-size: 1.08rem; margin: 0 0 4px; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); color: var(--teal);
  font-size: 1.3rem; line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 0 0 16px; }

/* support CTA band */
.band {
  background: linear-gradient(135deg, var(--teal-deep), #0f5650);
  color: #eafaf6;
  border-radius: 22px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.band h2 { color: #fff; font-size: 1.7rem; margin: 0 0 6px; }
.band p { color: #bfe3dc; margin: 0; max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-deep);
  color: #cfe3df;
  padding: 56px 0 26px;
  margin-top: 10px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand svg { height: 40px; }
.footer-brand p { color: #9cc0ba; font-size: .92rem; max-width: 34ch; margin-top: 14px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft); margin: 4px 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cfe3df; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .85rem; color: #9cc0ba;
}

/* ---------- Privacy page ---------- */
.page-hero {
  background:
    radial-gradient(700px 320px at 85% -20%, rgba(226,169,63,.14), transparent 60%),
    linear-gradient(180deg, var(--paper), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 60px 0 48px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: .2em; }
.page-hero .updated { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.doc {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 56px 0 80px;
  align-items: start;
}
.toc {
  position: sticky; top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.toc h4 {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal); margin: 0 0 12px;
}
.toc ol { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--ink-soft); font-size: .92rem; }
.doc-body h2 {
  font-size: 1.5rem; margin-top: 38px; padding-top: 10px;
  scroll-margin-top: 96px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 1.1rem; margin-top: 22px; }
.doc-body p, .doc-body li { color: var(--ink-soft); }
.doc-body ul { padding-left: 1.2em; }
.doc-body li { margin-bottom: 8px; }
.callout {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: .95rem;
}

/* ---------- Mobile menu + responsive ---------- */
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 22px 18px;
    transform: translateY(-130%);
    transition: transform .3s cubic-bezier(.22,1,.36,1);
    z-index: 49;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav-links a.active::after, .nav-links a:hover::after { display: none; }
  .nav-links .nav-cta { display: block; margin: 14px 0 4px; }
  .nav-cta .btn { width: auto; display: inline-block; }

  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 56px; padding-inline: 22px; }
  .hero-arches { width: 360px; right: -90px; opacity: .35; }
  .steps, .features, .footer-grid { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 26px; }
  .toc { position: static; }
  .band { padding: 30px 26px; }
}

@media (max-width: 460px) {
  .row-2 { grid-template-columns: 1fr; }
  .amount-row { grid-template-columns: 1fr 104px; }
  .track-card { padding: 24px 20px 22px; }
  .section { padding: 56px 0; }
}

/* Accessibility */
:focus-visible { outline: 3px solid rgba(14,110,99,.5); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
