﻿/* America Advances — calm professional (not staged fintech) */

:root {
  --bg: #f4f2ec;
  --bg-2: #ebe7de;
  --surface: #ffffff;
  --ink: #1c2430;
  --muted: #5c6b7a;
  --line: #d7d2c6;
  --accent: #1f5f8b;
  --accent-2: #2f7aad;
  --accent-soft: #e7f1f8;
  --ok: #1f6b45;
  --danger: #a33b3b;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(28, 36, 48, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --max: 1040px;
}

*, *::before, *::after { 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.65;
  font-size: 1.05rem;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.page-bg { display: none; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 242, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img {
  height: 40px; width: auto;
  /* logo is lime/blue on black — keep readable on light UI */
  background: #0a0a0a;
  padding: .45rem .7rem;
  border-radius: 8px;
}

.nav-links {
  display: flex; align-items: center; gap: 1.35rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--muted); font-weight: 600; text-decoration: none; font-size: .98rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: .5rem .75rem; cursor: pointer; color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; padding: .8rem 1.2rem; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Hero — quiet, one composition */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, #f7f5f0 0%, var(--bg) 100%);
}
.hero-media { display: none; }

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--ink);
  max-width: 14ch;
}
.hero-brand .lime,
.hero-brand .blue { color: inherit; display: inline; font-size: inherit; letter-spacing: normal; }
.hero-brand .blue::before { content: " "; }

.hero-line {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 .75rem;
  max-width: 32ch;
  color: var(--ink);
}
.hero-sub {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 1.6rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-legal {
  margin-top: 1.75rem;
  font-size: .88rem;
  color: var(--muted);
  max-width: 56ch;
}

/* Sections */
section { padding: 3.75rem 0; }
.section-kicker {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 .5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 .7rem;
  line-height: 1.2;
  max-width: 20ch;
}
.section-lead {
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 1.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.steps { display: grid; gap: .9rem; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: 1;
  transform: none;
  animation: none;
}
.step-num {
  width: 2rem; height: 2rem;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
}
.step h3 {
  margin: 0 0 .2rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.step p { margin: 0; color: var(--muted); font-size: .98rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  min-height: auto;
  transition: none;
}
.product:hover { border-color: var(--line); transform: none; }
.product h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
}
.product p { margin: 0; color: var(--muted); font-size: .95rem; }

.band {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .25rem;
}
.stat span { color: var(--muted); font-size: .95rem; }

/* Forms */
.form-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.35rem;
}
.form-shell h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 .35rem;
  font-weight: 600;
}
.form-shell .form-intro {
  color: var(--muted);
  margin: 0 0 1.1rem;
  font-size: .95rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full { grid-column: 1 / -1; }
label { font-size: .88rem; font-weight: 700; }
.req { color: var(--accent); }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: .75rem .85rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(31, 95, 139, 0.25);
  border-color: var(--accent);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .65rem;
  align-items: start;
  margin: .75rem 0 1rem;
  padding: .85rem;
  background: #f7f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.consent input {
  width: 1.05rem; height: 1.05rem; margin-top: .15rem;
  accent-color: var(--accent);
}
.consent label {
  font-weight: 500;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}

.form-note { font-size: .78rem; color: var(--muted); margin: .7rem 0 0; }
.form-status { display: none; margin-top: .9rem; padding: .75rem .9rem; border-radius: 8px; font-size: .95rem; }
.form-status.show { display: block; }
.form-status.ok { background: #e8f6ee; color: var(--ok); border: 1px solid #b7dfc6; }
.form-status.err { background: #fbeaea; color: var(--danger); border: 1px solid #e3b6b6; }

/* Interior pages */
.page-hero { padding: 3rem 0 1.25rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 .4rem;
  font-weight: 600;
}
.page-hero p { margin: 0; color: var(--muted); max-width: 50ch; }

.prose { max-width: 720px; padding-bottom: 3.5rem; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.75rem 0 .6rem;
  font-weight: 600;
}
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.15rem; }
.prose strong { color: var(--ink); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #ebe7de;
  padding: 2.5rem 0 1.75rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}
.site-footer h3 {
  margin: 0 0 .75rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img {
  height: 34px;
  background: #0a0a0a;
  padding: .4rem .6rem;
  border-radius: 8px;
  margin-bottom: .75rem;
}
.footer-legal { color: var(--muted); font-size: .9rem; max-width: 38ch; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  justify-content: space-between;
  color: var(--muted); font-size: .82rem;
}

@media (max-width: 900px) {
  .split, .product-grid, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .75rem 1.2rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .55rem 0; }
  .nav-links .btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
}
