/* Anchorline Financial Group — deep navy + brass. Calm, established, human.
 * Contrast notes: body ink on paper 12.6:1; white on navy 16+:1;
 * brass #d9b44a used for large/emphasis text on navy (8.2:1);
 * body text on navy uses #f0ead8 (12+:1). Verified with contrast script. */

:root {
  --navy: #0a1c33;
  --navy-2: #102a4c;
  --navy-3: #16355e;
  --brass: #c9a227;
  --brass-bright: #e3c87e;
  --brass-deep: #755a0f;
  --paper: #faf6ec;
  --paper-2: #f3ecdb;
  --ink: #1c2b42;
  --muted: #5b6b84;
  --rope: #8a6d3b;
  --sea: #274b6b;
  --focus: #0b5fff;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-scale: 1;
}

* { box-sizing: border-box; }
html { font-size: calc(16px * var(--text-scale)); scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.65; }

body.rm { scroll-behavior: auto; }
body.rm *, body.rm *::before, body.rm *::after { animation: none !important; transition: none !important; }

body.hc { --paper: #ffffff; --paper-2: #ffffff; --ink: #000000; --muted: #1a1a1a; --navy: #000000; --navy-2: #0a0a0a; }
body.hc .btn { background: #000; color: #ffd700; border: 2px solid #000; }
body.hc .btn-ghost { background: transparent; color: #000; border: 2px solid #000; }
body.hc .hero { background: #000 !important; }
body.hc .card, body.hc .quote-band, body.hc .step { background: #fff !important; border: 2px solid #000 !important; }
body.hc .signalmap { background: #000 !important; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: #fff; color: #0a1c33; padding: 10px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 2px solid #0a1c33; }
.skip-link:focus { top: 12px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: #0e4a8f; }
a:hover { color: #0a1c33; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 14px; }
.section { padding: 72px 0; }
.lede-big { font-size: 1.25rem; color: var(--ink); max-width: 46rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); border-bottom: 3px solid var(--brass); position: sticky; top: 0; z-index: 900; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark { width: 40px; height: 40px; color: var(--brass-bright); flex: 0 0 auto; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; color: #fff; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brass-bright); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: #e8eef8; text-decoration: none; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brass-bright); }
.nav a.active { color: var(--brass-bright); border-bottom-color: var(--brass); font-weight: 600; }
.nav-cta { background: var(--brass); color: #0a1c33 !important; font-weight: 700; padding: 9px 20px !important; border-radius: 999px; border: none !important; }
.nav-cta:hover { background: var(--brass-bright); color: #0a1c33 !important; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; background: var(--navy); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,28,51,.92) 20%, rgba(10,28,51,.55) 60%, rgba(10,28,51,.25)); }
.hero-inner { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 90px 24px; width: 100%; }
.hero .kicker { color: var(--brass-bright); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.9rem); margin: 0 0 .35em; max-width: 15em; }
.hero h1 .gold { color: var(--brass-bright); }
.hero .lede { color: #f0ead8; font-size: 1.25rem; max-width: 34em; margin-bottom: 1.8em; }
.hero-credit { position: absolute; right: 14px; bottom: 10px; z-index: 2; font-size: .72rem; color: rgba(240,234,216,.7); }
.hero-credit a { color: rgba(240,234,216,.85); }

.btn { display: inline-block; background: var(--brass); color: #0a1c33; font-weight: 700; padding: 14px 30px; border-radius: 999px; text-decoration: none; font-size: 1.02rem; margin: 6px 10px 6px 0; border: 2px solid var(--brass); }
.btn:hover { background: var(--brass-bright); border-color: var(--brass-bright); color: #0a1c33; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(227,200,126,.85); }
.btn-ghost:hover { background: rgba(227,200,126,.14); color: #fff; border-color: var(--brass-bright); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 70px 0 60px; border-bottom: 4px solid var(--brass); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; opacity: .10;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='10' r='5' fill='none' stroke='%23e3c87e' stroke-width='3.5'/%3E%3Cpath d='M32 15v36' stroke='%23e3c87e' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M18 26h28' stroke='%23e3c87e' stroke-width='3.5' stroke-linecap='round'/%3E%3Cpath d='M14 40c0 10 8 16 18 16s18-6 18-16' fill='none' stroke='%23e3c87e' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain; }
.page-hero h1 { color: #fff; margin: 0 0 .3em; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero .lede { color: #f0ead8; font-size: 1.18rem; max-width: 38em; margin-bottom: 0; }
.page-hero .kicker { color: var(--brass-bright); }

/* ---------- Signal map ---------- */
.signalmap { background: var(--navy); padding: 64px 0; }
.signalmap .sm-kicker { display: block; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brass-bright); margin-bottom: 14px; }
.signalmap .sm-note { text-align: center; color: #c8d2e4; max-width: 44rem; margin: 18px auto 0; font-size: .98rem; }
.signalmap svg { display: block; width: 100%; height: auto; max-width: 1060px; margin: 0 auto; }
.signalmap .sm-core { animation: smpulse 3.4s ease-in-out infinite; }
@keyframes smpulse { 0%,100% { opacity: .72; } 50% { opacity: 1; } }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 30px; }
.card { background: #fff; border: 1px solid #e3dcc8; border-top: 4px solid var(--brass); border-radius: 12px; padding: 28px 26px; box-shadow: 0 4px 16px rgba(10,28,51,.07); }
.card h3 { margin: 0 0 .5em; font-size: 1.28rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; margin-bottom: 14px; color: var(--brass-deep); }
.rope-divider { height: 6px; margin: 0; border: 0;
  background: repeating-linear-gradient(90deg, var(--rope) 0 14px, transparent 14px 22px);
  opacity: .55; }

/* ---------- Dark band / quote ---------- */
.quote-band { background: var(--navy-2); border-top: 3px solid var(--brass); border-bottom: 3px solid var(--brass); padding: 64px 0; }
.quote-band .kicker { color: var(--brass-bright); }
.quote-band blockquote { font-family: var(--serif); font-size: 1.55rem; color: #fff; max-width: 42rem; margin: 0 0 .6em; line-height: 1.45; }
.quote-band cite { color: var(--brass-bright); font-style: normal; font-size: .95rem; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--paper-2); border-top: 1px solid #e3dcc8; border-bottom: 1px solid #e3dcc8; padding: 56px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.stat { text-align: center; padding: 0 12px; }
.stat .num { font-family: var(--serif); font-size: 2.6rem; color: var(--navy); display: block; }
.stat .cap { color: var(--muted); font-size: .95rem; max-width: 20rem; margin: 0 auto; }
.stat .src { font-size: .8rem; display: block; margin-top: 6px; }

/* ---------- Steps (process) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 32px; counter-reset: step; }
.step { background: #fff; border: 1px solid #e3dcc8; border-radius: 12px; padding: 30px 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--brass-bright); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; border: 2px solid var(--brass); }
.step h3 { margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 28px auto 0; }
.faq-list details { background: #fff; border: 1px solid #e3dcc8; border-radius: 10px; margin-bottom: 12px; padding: 4px 22px; }
.faq-list summary { cursor: pointer; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--navy); padding: 16px 0; list-style: none; position: relative; padding-right: 34px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--brass-deep); font-family: var(--sans); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { color: var(--muted); }

/* ---------- Forms ---------- */
.intake-form { max-width: 640px; background: #fff; border: 1px solid #e3dcc8; border-radius: 14px; padding: 34px 30px; box-shadow: 0 6px 20px rgba(10,28,51,.08); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; font-size: 1rem; border: 1.5px solid #b9c2d4; border-radius: 8px; font-family: var(--sans); background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-note { font-size: .9rem; color: var(--muted); max-width: 640px; }

/* ---------- Two-column (about) ---------- */
.cols { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: start; }
.founder-frame { border: 3px solid var(--brass); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 28px rgba(10,28,51,.18); background: var(--navy); }
.founder-frame img { display: block; width: 100%; height: auto; }
.founder-cap { font-size: .85rem; color: #c8d2e4; padding: 10px 14px; background: var(--navy); margin: 0; }

/* ---------- Transparency promise ---------- */
.tpromise { list-style: none; padding: 0; margin: 26px 0 0; }
.tpromise li { padding: 10px 0 10px 40px; position: relative; font-size: 1.05rem; line-height: 1.6; }
.tpromise li::before { content: "\2713"; position: absolute; left: 2px; top: 10px; color: var(--brass-deep); font-weight: 700; font-size: 1.3rem; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #d8e0ef; margin-top: 0; border-top: 4px solid var(--brass); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 52px 24px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
footer h4 { color: var(--brass-bright); font-family: var(--serif); margin: 0 0 .7em; font-size: 1.05rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; font-size: .93rem; }
footer a { color: #e8eef8; }
footer a:hover { color: var(--brass-bright); }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 18px 24px 8px; border-top: 1px solid rgba(227,200,126,.25); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #aebad2; }
.footer-legal { max-width: 1180px; margin: 0 auto; padding: 0 24px 26px; font-size: .8rem; color: #93a0ba; line-height: 1.6; }
.footer-legal strong { color: #d8e0ef; }
.nl-block { max-width: 1180px; margin: 0 auto; padding: 0 24px 30px; }
.nl-block h4 { margin-bottom: .4em; }
.transparency-line { margin-top: 16px; font-size: .85rem; }

/* ---------- Floating accessibility toolbar ---------- */
.a11y-bar { position: fixed; left: 14px; bottom: 14px; z-index: 9980; display: flex; gap: 8px; background: var(--navy); border: 2px solid var(--brass); border-radius: 999px; padding: 8px 10px; box-shadow: 0 6px 22px rgba(0,0,0,.35); }
.a11y-bar button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(227,200,126,.6); background: transparent; color: var(--brass-bright); font-size: .95rem; font-weight: 700; cursor: pointer; line-height: 1; }
.a11y-bar button:hover, .a11y-bar button[aria-pressed="true"] { background: var(--brass); color: #0a1c33; }
.a11y-bar button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Affiliates grid ---------- */
.aff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin: 32px 0; }
.aff-card { border: 1px solid #e3dcc8; border-radius: 14px; padding: 26px 22px; text-align: center; background: #fff; box-shadow: 0 4px 14px rgba(10,28,51,.06); position: relative; }
.aff-mono { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 1.65rem; font-weight: 700; font-family: var(--serif); background: var(--navy); color: var(--brass-bright); border: 2px solid var(--brass); }
.aff-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.aff-card p { color: var(--muted); font-size: .94rem; margin: 0 0 12px; }
.aff-card a.aff-link { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--brass); color: var(--navy); }
.aff-card a.aff-link:hover { color: var(--brass-deep); }
.aff-here { position: absolute; top: 10px; right: 12px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #0a1c33; background: var(--brass-bright); border-radius: 999px; padding: 3px 10px; }

/* ---------- Misc ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 70px 24px; border-top: 4px solid var(--brass); }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: #f0ead8; max-width: 36rem; margin: 0 auto 1.6em; font-size: 1.12rem; }
.service-anchor { max-width: 900px; margin: 0 auto 40px; background: #fff; border: 1px solid #e3dcc8; border-radius: 12px; padding: 30px 30px 22px; border-left: 6px solid var(--brass); }
.service-anchor h2 { margin-top: 0; }
.service-anchor p { color: var(--muted); }
.service-anchor ul { color: var(--muted); }
.disclaimer-box { background: var(--paper-2); border: 1px solid #d9cfae; border-radius: 10px; padding: 18px 22px; font-size: .92rem; color: var(--muted); margin: 26px 0; }
.disclaimer-box strong { color: var(--ink); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 6px 0 6px 34px; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 4px; color: var(--brass-deep); font-weight: 700; }

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
  .hero-inner { padding: 70px 20px; }
  .section { padding: 52px 0; }
  .topbar-inner { justify-content: center; text-align: center; }
  .nav { justify-content: center; }
  .a11y-bar { left: 10px; bottom: 10px; }
  .a11y-bar button { width: 36px; height: 36px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signalmap .sm-core { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* Tree of Life quote + donation match (site-wide footer) */
.tree-of-life{text-align:center;padding:20px 22px 8px;max-width:780px;margin:0 auto}
.tree-quote{font-style:italic;font-size:1.06rem;line-height:1.55;margin:0 0 6px}
.tree-match{font-size:.92rem;opacity:.85;margin:0;line-height:1.5}
