/* ============================================================
   Residual Payments Partners — site stylesheet
   Palette matches the investor presentation (navy + orange)
   ============================================================ */

:root {
  --navy-900: #0e1f42;
  --navy-800: #142c5c;
  --navy-700: #1c3a73;
  --navy-100: #e9edf5;
  --orange-500: #f2751f;
  --orange-600: #d9611a;
  --orange-700: #b45309; /* WCAG AA-safe orange (>=4.5:1 on white) for text/button use */
  --orange-800: #92400e; /* darker step for hover states / gradient depth */
  --gray-50: #f6f7fb;
  --gray-100: #eef0f5;
  --gray-300: #d3d8e2;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --ink: #101828;
  --white: #ffffff;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 4px 12px rgba(14, 31, 66, 0.10);
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: inherit;
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--gray-700); }

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-700);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--orange-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--orange-800); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }

.btn-sm {
  padding: 9px 16px;
  font-size: 0.82rem;
  border-color: var(--gray-300);
  color: var(--navy-700);
}
.btn-sm:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text-full { display: inline; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 10px 14px;
  border-radius: 6px;
}
.primary-nav a:hover { background: var(--navy-100); text-decoration: none; }
.primary-nav a.active { color: var(--orange-700); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 88px 0 96px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p.lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-art {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 28px;
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px;
}
.hero-stat .num { font-size: 1.6rem; font-weight: 800; color: var(--orange-500); }
.hero-stat .label { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-gray { background: var(--gray-50); }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.82); }

/* ---------- Cards / Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--navy-100);
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--gray-700);
}
.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--orange-500);
  font-weight: 800;
}

/* ---------- Team ---------- */
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.team-card .avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
  overflow: hidden;
}
.team-card .avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.team-card .role {
  color: var(--orange-700);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-100); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--gray-100); }
th { background: var(--navy-900); color: var(--white); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--gray-50); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  min-height: 40px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: 0.88rem; color: var(--navy-900); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(28, 58, 115, 0.15);
}
.form-note { font-size: 0.85rem; color: var(--gray-500); margin-top: 10px; }

/* ---------- Callout / banner ---------- */
.callout {
  border-radius: 16px;
  padding: 48px;
  text-align: center;
}
.callout.orange {
  background: linear-gradient(135deg, var(--orange-700), var(--orange-800));
  color: var(--white);
}
.callout.orange h2 { color: var(--white); }
.callout.orange p { color: rgba(255,255,255,0.92); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-100);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.badge.orange { background: rgba(242, 117, 31, 0.12); color: var(--orange-600); }

.disclaimer-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-grid h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid a { color: rgba(255, 255, 255, 0.75); display: block; margin-bottom: 10px; font-size: 0.94rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; margin-bottom: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .primary-nav, .nav-cta .btn-outline-navy, .nav-cta .btn-sm { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .primary-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
  }
  .brand-text-full { display: inline; font-size: 0.95rem; }
}
