/* ==========================================================================
   J.A. Software — style.css
   Charcoal-and-brass palette lifted from the company mark; a serif carries
   the same classical weight as the wordmark, set against a quieter sans
   for working copy.
   ========================================================================== */

:root {
  --bg: #1b1d22;
  --bg-panel: #212328;
  --bg-panel-raised: #26282e;
  --line: #35373d;
  --line-soft: #2b2d33;
  --text: #ece8dd;
  --text-muted: #9a9ca3;
  --text-faint: #6d6f76;
  --gold: #c6a24d;
  --gold-bright: #e7c877;
  --gold-dim: #8a7238;
  --serif: "Spectral", "Iowan Old Style", "Georgia", serif;
  --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* -------------------------------------------------- headings & type -- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0; }

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.7;
}

.muted { color: var(--text-muted); }

/* -------------------------------------------------------------- nav -- */

.site-nav {
  border-bottom: 1px solid var(--line-soft);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-name b { color: var(--gold-bright); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-bright); }

.nav-cta {
  border: 1px solid var(--gold-dim);
  padding: 9px 18px;
  border-radius: 3px;
  color: var(--gold-bright) !important;
}

.nav-cta:hover { background: rgba(198, 162, 77, 0.08); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ------------------------------------------------------------- hero -- */

.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(198,162,77,0.10) 0%, rgba(198,162,77,0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 34px; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: #1b1a14;
  font-weight: 600;
}

.btn-primary:hover { background: var(--gold-bright); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold-bright); }

.hero-figure {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.hero-figure img { width: 100%; height: auto; }

.hero-meta {
  margin-top: 22px;
  display: flex;
  gap: 28px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------- pillars -- */

.pillars {
  padding: 76px 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.pillar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .pillar-row { grid-template-columns: 1fr; }
}

.pillar {
  padding: 34px 30px 34px 0;
  border-right: 1px solid var(--line);
  position: relative;
}

.pillar:last-child { border-right: none; }

.pillar:first-child { padding-left: 0; }
.pillar:not(:first-child) { padding-left: 30px; }

@media (max-width: 860px) {
  .pillar, .pillar:first-child, .pillar:not(:first-child) {
    padding: 30px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .pillar:last-child { border-bottom: none; }
}

.pillar-node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  margin-bottom: 18px;
  box-shadow: 0 0 0 3px rgba(198, 162, 77, 0.14);
}

.pillar h3 { margin-bottom: 10px; }

.pillar p.desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.pillar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.pillar ul li {
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
}

.pillar ul li:first-child { border-top: none; }

/* ------------------------------------------------------------- why --- */

.why {
  padding: 76px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}

@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-item {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.why-item:nth-child(1), .why-item:nth-child(2) { border-top: none; }

@media (max-width: 720px) {
  .why-item:nth-child(2) { border-top: 1px solid var(--line); }
}

.why-mark {
  font-family: var(--serif);
  color: var(--gold-dim);
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.why-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { color: var(--text-muted); font-size: 0.93rem; }

/* ------------------------------------------------------------ form --- */

.lead {
  padding: 84px 0;
}

.lead-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

@media (max-width: 860px) {
  .lead-grid { grid-template-columns: 1fr; }
}

.lead-intro h2 { margin-bottom: 16px; }
.lead-intro .lede { margin-bottom: 28px; }

.contact-card {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 8px;
}

.contact-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  font-size: 0.92rem;
}

.contact-card dt { color: var(--text-faint); }
.contact-card dd { margin: 0; color: var(--text); }
.contact-card dd a { color: var(--gold-bright); text-decoration: none; }
.contact-card dd a:hover { text-decoration: underline; }

form.lead-form {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(198, 162, 77, 0.12);
}

.field textarea { resize: vertical; min-height: 96px; }

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-faint);
  margin-bottom: 24px;
}

.field-check input { width: auto; margin-top: 3px; accent-color: var(--gold); }

.form-note {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 14px;
}

.form-success {
  display: none;
  border: 1px solid var(--gold-dim);
  background: rgba(198, 162, 77, 0.08);
  border-radius: 4px;
  padding: 16px 18px;
  font-size: 0.9rem;
  color: var(--gold-bright);
  margin-bottom: 20px;
}

.form-success.visible { display: block; }

/* ----------------------------------------------------------- footer -- */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-grid a { color: var(--text-faint); text-decoration: none; }
.footer-grid a:hover { color: var(--gold-bright); }

/* --------------------------------------------------- lead page hero -- */

.lead-hero {
  padding: 72px 0 20px;
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.breadcrumb a { color: var(--text-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}