/* Spectrum Arch Inc — calm, low-sensory stylesheet.
   Design goals: high contrast text, soft backgrounds, no flashing or
   auto-playing motion, large tap targets, readable line lengths. */

:root {
  --bg:        #f7f6f2;
  --bg-alt:    #eef2f5;
  --surface:   #ffffff;
  --text:      #1f2a37;
  --muted:     #4b5a6b;
  --heading:   #14202e;
  --brand:     #2f6f8f;
  --brand-ink: #ffffff;
  --brand-2:   #5a8f6e;
  --accent:    #c98a3a;
  --border:    #d9dfe5;
  --focus:     #b35c00;
  --radius:    12px;
  --shadow:    0 2px 10px rgba(20, 32, 46, 0.06);
  --max:       1080px;
  --measure:   68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #12181f;
    --bg-alt:    #18212b;
    --surface:   #1c2631;
    --text:      #dbe3ea;
    --muted:     #a6b3c0;
    --heading:   #f1f5f8;
    --brand:     #7bb6d3;
    --brand-ink: #0d1a22;
    --brand-2:   #8cc3a0;
    --accent:    #e2ad66;
    --border:    #2c3a48;
    --focus:     #ffb86b;
    --shadow:    none;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

h1, h2, h3 { color: var(--heading); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--surface); color: var(--heading);
  padding: .6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ----- Header / nav ----- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; padding-top: .9rem; padding-bottom: .9rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--heading); text-decoration: none; font-weight: 700; font-size: 1.15rem;
}
.brand img { width: 40px; height: 40px; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  color: var(--heading); font: inherit; padding: .45rem .8rem; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--text); text-decoration: none;
}
.site-nav a:hover { background: var(--bg-alt); }
.site-nav a[aria-current="page"] { background: var(--bg-alt); color: var(--heading); font-weight: 700; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .75rem .8rem; }
}

/* ----- Sections ----- */
main { display: block; }
.section { padding: 3.5rem 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: .5rem;
}
.lead { font-size: 1.2rem; color: var(--muted); }

.hero { padding: 4.5rem 0 3.5rem; }
.hero .container { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr; align-items: center; }
.hero-art { justify-self: center; width: min(320px, 80%); }
@media (max-width: 760px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: 180px; }
}

.page-head { padding: 3rem 0 1.5rem; }

/* ----- Buttons ----- */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--brand);
  min-height: 48px;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--bg-alt); }

/* ----- Cards / grids ----- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--brand); margin-bottom: .9rem;
}
.card .icon svg { width: 24px; height: 24px; }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.list-plain li:last-child { border-bottom: 0; }

.check-list { padding-left: 1.2rem; }
.check-list li { margin-bottom: .4rem; }

.callout {
  align-self: start;
  border-left: 4px solid var(--accent); background: var(--surface);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0;
}

.resource-group { margin-bottom: 2.25rem; }
.resource-group h2 { font-size: 1.35rem; }
.resource-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.resource-item:last-child { border-bottom: 0; }
.resource-item h3 { margin-bottom: .2rem; font-size: 1.05rem; }
.resource-item p { margin: 0; color: var(--muted); }

/* ----- Footer ----- */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem; font-size: .95rem; color: var(--muted);
}
.site-footer .container { display: grid; gap: 1.5rem; grid-template-columns: 2fr 1fr 1fr; }
.site-footer h2 { font-size: 1rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 1rem; font-size: .85rem; }
@media (max-width: 760px) { .site-footer .container { grid-template-columns: 1fr; } }
.callout-spaced { margin-bottom: 2rem; }
.stat { font-size: 1.7rem; font-weight: 700; color: var(--brand); margin: 0 0 .2rem; line-height: 1.2; }
.timeline { padding-left: 1.4rem; margin: 0; }
.timeline li { margin-bottom: .7rem; max-width: var(--measure); }

/* ----- Support Brokerage pages ----- */
.mt-2 { margin-top: 1.25rem; }

.card-link { display: block; color: inherit; text-decoration: none; }
.card-link h3 { color: var(--brand); }
.card-link:hover { border-color: var(--brand); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.1rem 4rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.05rem;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink); font-weight: 700;
}
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; }

.glossary { margin: 0; }
.glossary dt { font-weight: 700; color: var(--heading); margin-top: .9rem; }
.glossary dd { margin: .15rem 0 0; color: var(--muted); }

.faq-list { display: grid; gap: .75rem; max-width: 820px; }
.faq {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 1.25rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--heading); padding: 1rem 0; min-height: 48px;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding-bottom: 1rem; margin: 0; }
