/* ==========================================================================
   Alliant Capital, Inc. — styles.css
   Mobile-first. Tokens on :root. No framework.
   ========================================================================== */

:root {
  /* Palette */
  --navy:        #0f1f33;
  --navy-2:      #16294a;
  --navy-3:      #1f3559;
  --charcoal:    #2b2f36;
  --ink:         #1b2230;
  --muted:       #545c69;   /* 6.6:1 on --paper */
  --paper:       #f7f4ee;
  --paper-2:     #efe9de;
  --white:       #ffffff;
  --gold:        #b08d57;
  --gold-soft:   #c9a96e;
  --gold-text:   #8a6a35;   /* gold for text on light bg — 4.9:1 on --paper */
  --line:        rgba(15, 31, 51, .12);
  --line-light:  rgba(255, 255, 255, .14);
  --on-navy:     #e9e4da;
  --on-navy-mut: #b7bfcc;   /* 8.1:1 on --navy */

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-xs:   .8125rem;
  --fs-sm:   .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   1.1875rem;
  --fs-h3:   1.3rem;
  --fs-h2:   clamp(1.9rem, 1.4rem + 2.2vw, 2.85rem);
  --fs-h1:   clamp(2.35rem, 1.5rem + 4vw, 4.4rem);

  /* Space & layout */
  --gutter: 1.25rem;
  --max:    1180px;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius: 2px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
a { color: inherit; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: .6rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 2rem; } }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-soft); }

.section-title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -.01em;
  max-width: 22ch;
}
.section-intro { font-size: var(--fs-lg); color: var(--muted); max-width: 60ch; margin-top: 1.25rem; }
.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-title,
.section-head--center .section-intro { margin-inline: auto; }

.lead { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); line-height: 1.4; color: var(--ink); }
.prose p { color: var(--muted); }
.prose .lead { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.6rem;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--gold { background: var(--gold-soft); color: var(--navy); border-color: var(--gold-soft); }
.btn--gold:hover { background: #d8bb84; border-color: #d8bb84; }
.btn--ghost { color: var(--on-navy); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--gold-soft); color: var(--white); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled,
.site-header.nav-open { background: rgba(15, 31, 51, .97); box-shadow: 0 1px 0 var(--line-light); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(15, 31, 51, .88); backdrop-filter: blur(10px); }
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--white); }
.brand-mark { width: 34px; height: 34px; color: var(--white); flex: none; }
.brand-text { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: .01em; }
.brand-sub { color: var(--on-navy-mut); }

.nav-toggle {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-light); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 1.5px; background: var(--white); position: relative;
  transition: transform .25s var(--ease), background-color .25s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--navy);
  border-top: 1px solid var(--line-light);
  padding: 1rem var(--gutter) 2rem;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.site-nav ul { list-style: none; }
.site-nav a {
  display: block; padding: .95rem 0; text-decoration: none;
  font-size: 1.05rem; color: var(--on-navy);
  border-bottom: 1px solid var(--line-light);
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--gold-soft); }
.site-nav .nav-cta { color: var(--gold-soft); border-bottom: 0; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; visibility: visible; opacity: 1; transform: none;
    background: none; border: 0; padding: 0;
  }
  .site-nav ul { display: flex; align-items: center; gap: 2.1rem; }
  .site-nav a {
    padding: .35rem 0; border: 0; font-size: var(--fs-sm); font-weight: 500;
    position: relative;
  }
  .site-nav a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: var(--gold-soft); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav .nav-cta {
    padding: .6rem 1.15rem; border: 1px solid rgba(201,169,110,.6); border-radius: var(--radius);
  }
  .site-nav .nav-cta:hover { background: var(--gold-soft); color: var(--navy); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 40%, var(--navy-3) 0%, var(--navy) 60%);
  color: var(--white);
  padding: calc(var(--header-h) + clamp(3.5rem, 2rem + 8vw, 8rem)) 0 clamp(3.5rem, 2.5rem + 5vw, 6rem);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg svg { width: 100%; height: 100%; opacity: .55; }
@media (min-width: 900px) { .hero-bg svg { opacity: 1; } }
.hero-inner { position: relative; }
.hero-title {
  font-family: var(--serif); font-size: var(--fs-h1); font-weight: 400;
  letter-spacing: -.015em; line-height: 1.08; max-width: 17ch;
}
.hero-lede { font-size: var(--fs-lg); color: var(--on-navy); max-width: 54ch; margin-top: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.5rem; }
.hero-facts {
  margin: clamp(3rem, 2rem + 4vw, 5rem) 0 0; padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  max-width: 760px;
}
@media (min-width: 600px) { .hero-facts { gap: 1.5rem; } }
.eyebrow-loc { display: none; }
@media (min-width: 480px) { .eyebrow-loc { display: inline; } }

.hero-facts dt { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-mut); margin-bottom: .35rem; }
.hero-facts dd { margin: 0; font-family: var(--serif); font-size: clamp(1.1rem, .8rem + 1.6vw, 1.6rem); line-height: 1.2; color: var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--navy  { background: var(--navy); color: var(--white); }
.section--navy .section-intro { color: var(--on-navy-mut); }

/* About split */
.split { display: grid; gap: 2rem; margin-bottom: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .split-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.subhead {
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 1rem; margin-bottom: 0; border-bottom: 1px solid var(--line);
}
.provide-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .provide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .provide-grid { grid-template-columns: repeat(3, 1fr); } }
.provide-item {
  padding: 2rem 1.5rem 2rem 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease);
}
@media (min-width: 640px) {
  .provide-item { padding: 2.25rem 2rem; border-right: 1px solid var(--line); }
  .provide-item:nth-child(2n) { border-right: 0; }
}
@media (min-width: 1000px) {
  .provide-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .provide-item:nth-child(3n) { border-right: 0; }
  .provide-item:nth-child(3n+1) { padding-left: 0; }
}
.provide-item:hover { background: var(--paper-2); }
.provide-num { display: block; font-family: var(--serif); font-size: 1rem; color: var(--gold-text); margin-bottom: 1rem; }
.provide-item h4 { font-family: var(--serif); font-size: var(--fs-h3); margin-bottom: .6rem; }
.provide-item p { color: var(--muted); font-size: var(--fs-sm); }

/* Value pillars */
.pillars {
  list-style: none; display: grid; gap: 1px;
  background: var(--line-light); border: 1px solid var(--line-light);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(5, 1fr); } }
.pillar {
  background: var(--navy); padding: 2.25rem 1.75rem 2.5rem;
  transition: background-color .25s var(--ease);
}
.pillar:hover { background: var(--navy-2); }
@media (min-width: 640px) and (max-width: 1099px) {
  .pillar:last-child { grid-column: 1 / -1; }
}
.pillar-num {
  display: inline-block; font-family: var(--serif); font-size: 1.05rem; color: var(--gold-soft);
  padding-bottom: .9rem; margin-bottom: 1.4rem; border-bottom: 1px solid rgba(201,169,110,.5); min-width: 2.25rem;
}
.pillar h3 { font-family: var(--serif); font-size: var(--fs-h3); margin-bottom: .75rem; }
.pillar p { color: var(--on-navy-mut); font-size: var(--fs-sm); }

/* Criteria */
.criteria-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px)  { .criteria-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .criteria-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.criteria-card {
  background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold);
  padding: 2rem 1.75rem;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.criteria-card:hover { box-shadow: 0 14px 34px -18px rgba(15,31,51,.28); transform: translateY(-2px); }
.criteria-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.criteria-icon {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--navy);
}
.criteria-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.criteria-head h3 { font-family: var(--serif); font-size: var(--fs-h3); }

.criteria-figures {
  margin: 0 0 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  padding-bottom: 1.4rem; border-bottom: 1px solid var(--line);
}
.criteria-figures dt { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.criteria-figures dd { margin: 0; font-family: var(--serif); font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.criteria-figures dd span { display: block; font-family: var(--sans); font-size: var(--fs-xs); color: var(--muted); margin-top: .3rem; }

.criteria-list { list-style: none; }
.criteria-list li {
  position: relative; padding-left: 1.25rem; font-size: var(--fs-sm); color: var(--charcoal);
  margin-bottom: .7rem;
}
.criteria-list li:last-child { margin-bottom: 0; }
.criteria-list li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--gold);
}
.criteria-note { font-size: var(--fs-sm); color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.tag-list li {
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .02em;
  padding: .4rem .7rem; background: var(--paper); border: 1px solid var(--line); color: var(--charcoal);
}

/* Approach */
.strategy-quote {
  margin: 0 0 clamp(3rem, 2rem + 4vw, 5rem);
  padding: 0 0 0 1.5rem; border-left: 2px solid var(--gold);
  max-width: 900px;
}
@media (min-width: 768px) { .strategy-quote { padding-left: 2.5rem; } }
.strategy-quote blockquote { margin: 0; }
.strategy-quote p {
  font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.35; font-weight: 400; color: var(--navy); font-style: italic;
}
.approach-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 860px) { .approach-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.approach-step { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.approach-label {
  display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: .9rem;
}
.approach-step h3 { font-family: var(--serif); font-size: 1.45rem; margin-bottom: .75rem; color: var(--navy); }
.approach-step p { color: var(--muted); }

/* Contact */
.contact { background: linear-gradient(180deg, var(--navy) 0%, #0c192a 100%); }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 5rem; align-items: start; } }
.contact-address {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-light);
  color: var(--on-navy); line-height: 1.75;
}
.contact-label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .5rem; }

.contact-form {
  background: rgba(255,255,255,.035); border: 1px solid var(--line-light);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.form-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy); margin-bottom: .45rem; }
.field label span { color: var(--gold-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .75rem .9rem;
  background: rgba(255,255,255,.06); color: var(--white);
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-soft) 50%), linear-gradient(135deg, var(--gold-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field select option { color: var(--ink); background: var(--white); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-soft); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(201,169,110,.25); }
.field [aria-invalid="true"] { border-color: #f0a39b; }
.field-error { display: block; font-size: var(--fs-xs); color: #f5b8b0; margin-top: .4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-required { font-size: var(--fs-xs); color: var(--on-navy-mut); margin-bottom: 1.25rem; }
.form-required span { color: var(--gold-soft); }
.form-status { margin-top: 1rem; font-size: var(--fs-sm); color: var(--on-navy); min-height: 1.5em; }
.form-status.is-success { color: #b9dcc4; }
.form-status.is-error { color: #f5b8b0; }

/* Footer */
.site-footer { background: #0a1522; color: var(--on-navy-mut); padding: 3rem 0; font-size: var(--fs-sm); }
.footer-inner { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } .footer-copy { grid-column: 1 / -1; } }
.footer-brand { display: flex; flex-direction: column; gap: .25rem; }
.footer-name { font-family: var(--serif); font-size: 1.25rem; color: var(--white); }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-copy { padding-top: 1.5rem; border-top: 1px solid var(--line-light); font-size: var(--fs-xs); margin: 0; }

/* Subtle reveal (JS adds .js to <html>; no-JS shows everything) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  .site-header, .hero-bg, .contact-form, .nav-toggle { display: none !important; }
  .section--navy, .hero, .site-footer { background: #fff !important; color: #000 !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
