/* Fair Squared Federal — shared styles */

:root {
  --navy-950: #0a1322;
  --navy-900: #0f1a2e;
  --navy-800: #16243f;
  --navy-700: #22355c;
  --navy-600: #34497a;
  --slate: #6b7fa8;
  --gold: #c5a55a;
  --gold-light: #e3cc8a;
  --gold-ink: #7a5d1f;      /* gold for text on light backgrounds */
  --ivory: #f7f4ec;
  --paper: #fdfcf8;
  --ink: #1a2236;
  --ink-muted: #4a5468;
  --on-dark: #e9ecf3;
  --on-dark-muted: #aab4c8;
  --rule-light: #e4dccb;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .005em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy-900);
  padding: .5em 1em; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */

.site-header {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(197, 165, 90, .25);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  color: var(--on-dark); text-decoration: none;
  font-family: var(--serif); font-size: 1.15rem; letter-spacing: .04em;
  line-height: 1.15;
}
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; }
.brand small {
  display: block; font-family: var(--sans); font-size: .62rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1.75rem;
}
.site-nav a {
  color: var(--on-dark-muted); text-decoration: none;
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .4rem 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }

@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header .wrap { padding-top: .75rem; padding-bottom: .5rem; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; gap: .25rem 1rem; }
  .site-nav a { font-size: .74rem; letter-spacing: .12em; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: .85rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: .95em 1.7em; border-radius: var(--radius);
  border: 1px solid var(--gold);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--gold-light); }
.btn-ghost:hover { background: rgba(197, 165, 90, .12); color: #fff; }
.btn-navy { background: var(--navy-900); color: var(--gold-light); border-color: var(--navy-900); }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- Dark bands (hero, CTA) ---------- */

.dark {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 75% 30%, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: var(--on-dark);
}
.dark h1, .dark h2 { color: #fff; }
.dark p { color: var(--on-dark-muted); }
.dark a:not(.btn) { color: var(--gold-light); }

/* faint concentric rings: the subtle esoteric layer */
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 82% 38%, rgba(227, 204, 138, .10) 0, transparent 22%),
    repeating-radial-gradient(circle at 82% 38%, transparent 0 89px, rgba(197, 165, 90, .07) 90px 91px);
}

.hero { padding: clamp(4rem, 10vw, 7.5rem) 0; }
.hero .wrap {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.hero-mark { justify-self: center; width: min(340px, 100%); filter: drop-shadow(0 0 40px rgba(197, 165, 90, .18)); }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 36em; }

.page-hero { padding: clamp(3.25rem, 8vw, 5.5rem) 0 clamp(3rem, 7vw, 4.5rem); }
.page-hero .lede { font-size: 1.2rem; max-width: 40em; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { order: -1; width: 180px; }
}

.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 1.1rem;
}
.dark .eyebrow { color: var(--gold); }
.eyebrow::before {
  content: ""; width: 7px; height: 7px; flex: none;
  background: currentColor; transform: rotate(45deg);
}

/* ---------- Content sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-ivory { background: var(--ivory); border-top: 1px solid var(--rule-light); border-bottom: 1px solid var(--rule-light); }
.section-head { max-width: 46em; margin-bottom: 2.75rem; }
.section-head p { color: var(--ink-muted); font-size: 1.1rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }

.card {
  background: #fff; border: 1px solid var(--rule-light);
  border-top: 2px solid var(--gold);
  padding: 1.9rem 1.75rem; border-radius: var(--radius);
}
.card h3 { margin-bottom: .5em; }
.card p, .card li { color: var(--ink-muted); }
.card ul { margin: .75rem 0 0; padding-left: 1.1rem; }
.card li { margin-bottom: .35rem; }
.card li::marker { color: var(--gold); }

.numeral {
  display: block; font-family: var(--serif); font-size: .95rem;
  letter-spacing: .2em; color: var(--gold-ink); margin-bottom: .65rem;
}

/* certification badges */
.cert {
  display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.1rem; align-items: start;
}
.cert .tag {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  border: 1px solid var(--gold); outline: 1px solid rgba(197, 165, 90, .4); outline-offset: 3px;
  font-family: var(--serif); font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  color: var(--navy-700); background: var(--paper);
}
.cert h3 { margin: .35rem 0 .2rem; font-size: 1.15rem; }

/* process steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem;
  padding: 1.6rem 0; border-top: 1px solid var(--rule-light);
}
.steps li:last-child { border-bottom: 1px solid var(--rule-light); }
.steps li::before {
  content: counter(step, upper-roman);
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold-ink);
  line-height: 1.2; text-align: center;
  border-right: 1px solid var(--rule-light);
}
.steps h3 { margin-bottom: .3em; font-size: 1.2rem; }
.steps p { color: var(--ink-muted); }

@media (max-width: 520px) {
  .steps li { grid-template-columns: 2.6rem 1fr; gap: 1rem; }
  .steps li::before { font-size: 1.15rem; }
}

/* service detail blocks */
.service {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem 3rem;
  padding: 2.75rem 0; border-top: 1px solid var(--rule-light);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.service ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--ink-muted); }
.service li { margin-bottom: .4rem; }
.service li::marker { color: var(--gold); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

/* mission statement */
.mission {
  position: relative; margin: 0;
  padding: clamp(2rem, 5vw, 3.25rem);
  background: #fff; border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--gold) inset, 0 -1px 0 var(--gold) inset;
}
.mission p {
  font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.75; color: var(--ink);
}
.mission::before, .mission::after {
  content: ""; position: absolute; left: 50%; width: 10px; height: 10px;
  background: var(--gold); transform: translateX(-50%) rotate(45deg);
}
.mission::before { top: -5px; }
.mission::after { bottom: -5px; }

/* divider ornament */
.ornament {
  display: flex; align-items: center; gap: 1rem; margin: 3rem auto; max-width: 260px;
  color: var(--gold);
}
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.ornament span { width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }

.pillars { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.pillars h3 { font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; }
.pillars h3::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; }
.pillars p { color: var(--ink-muted); }

.split { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* contact */
.contact-card {
  background: var(--navy-900); color: var(--on-dark);
  border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 2.75rem);
  border: 1px solid rgba(197, 165, 90, .35);
}
.contact-card .label {
  font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  margin-bottom: .4rem;
}
.contact-card .email {
  display: inline-block; font-family: var(--serif);
  font-size: clamp(1.1rem, 3.6vw, 1.55rem);
  color: #fff; text-decoration: none; word-break: break-word;
  border-bottom: 1px solid var(--gold); padding-bottom: .1em;
}
.contact-card .email:hover { color: var(--gold-light); }
.contact-card p { color: var(--on-dark-muted); }
.contact-card hr { border: 0; border-top: 1px solid rgba(197, 165, 90, .25); margin: 1.75rem 0; }

.checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.checklist li {
  position: relative; padding-left: 1.6rem; margin-bottom: .8rem; color: var(--ink-muted);
}
.checklist li::before {
  content: ""; position: absolute; left: .2rem; top: .62em;
  width: 7px; height: 7px; border: 1px solid var(--gold-ink); transform: rotate(45deg);
}
.checklist strong { color: var(--ink); font-weight: 600; }

/* CTA band */
.cta { padding: clamp(3.5rem, 8vw, 5rem) 0; text-align: center; }
.cta .wrap { max-width: 760px; }
.cta .actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950); color: var(--on-dark-muted);
  padding: 3rem 0 2rem; font-size: .92rem;
  border-top: 1px solid rgba(197, 165, 90, .25);
}
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-footer .brand { font-size: 1.05rem; }
.site-footer .brand img { width: 38px; height: 38px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-meta { padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .82rem; }
.footer-meta p { margin: 0; }
