/* TA Advisory — tacfoadvisory.com
   Mobile-first, no external dependencies. System font stacks only. */

:root {
  --navy: #0a1a2f;
  --navy-2: #10263f;
  --navy-3: #0d2138;
  --gold: #c6a15b;
  --gold-soft: #e8d5ae;
  --gold-dark: #9a7a3c;
  --paper: #faf8f4;
  --paper-2: #f3efe6;
  --ink: #1c2330;
  --muted: #5b6472;
  --line: #e3ddcf;
  --white: #ffffff;
  --radius: 10px;
  --maxw: 1120px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--navy); margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.45em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 0; }
.section.tight { padding: 2.25rem 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.9rem;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(198,161,91,0.25);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border: 2px solid var(--gold); border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 1.05rem;
  flex: 0 0 auto;
}
.brand-name { color: var(--white); font-family: var(--serif); font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; color: var(--gold-soft); text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255,255,255,0.35); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--white); position: relative; transition: 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--navy-3); border-bottom: 1px solid rgba(198,161,91,0.25);
  padding: 0.5rem 1.25rem 1.25rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-nav li:last-child { border-bottom: 0; }
.site-nav a.nav-link {
  display: block; padding: 0.8rem 0.2rem; color: var(--white);
  text-decoration: none; font-weight: 600; font-size: 1rem;
}
.site-nav a.nav-link:hover, .site-nav a.nav-link[aria-current="page"] { color: var(--gold-soft); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; cursor: pointer;
  border-radius: 8px; padding: 0.85rem 1.6rem; font-size: 1rem; border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { border-color: var(--gold); color: var(--gold-soft); background: transparent; }
.btn-outline:hover { background: rgba(198,161,91,0.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.92rem; white-space: nowrap; }
.header-cta { display: inline-block; } /* stays visible on mobile per audit fix */
.header-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; position: static; background: none; border: 0; padding: 0; order: 2; margin-left: auto; }
  .header-actions { order: 3; margin-left: 1.75rem; }
  .brand { order: 1; }
  .site-nav ul { display: flex; align-items: center; gap: 0.25rem; }
  .site-nav li { border: 0; }
  .site-nav a.nav-link { padding: 0.5rem 0.8rem; }
  .header-inner { gap: 2rem; }
}

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: 4rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 320px at 85% 10%, rgba(198,161,91,0.16), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 16em; }
.hero .eyebrow { color: var(--gold-soft); }
.hero p.hero-sub { color: #c9d2dd; font-size: 1.2rem; max-width: 40rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.9rem; color: #9fb0c3; }

/* ---------- Stats band ---------- */
.stats { background: var(--navy-2); color: var(--white); padding: 2.5rem 0; border-top: 1px solid rgba(198,161,91,0.25); }
.stats-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; text-align: left; }
.stat-num { font-family: var(--serif); font-size: 2.1rem; color: var(--gold); font-weight: 700; line-height: 1.1; }
.stat-label { color: #c9d2dd; font-size: 0.95rem; margin-top: 0.25rem; }
@media (min-width: 700px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.cols-4 { grid-template-columns: repeat(4, 1fr); } .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: 0 2px 10px rgba(10,26,47,0.05);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 2rem; color: var(--gold); font-weight: 700; display: block; margin-bottom: 0.5rem;
}

/* ---------- FAQ accordion ---------- */
.faq-list { margin-top: 1.5rem; display: grid; gap: 0.9rem; }
details.faq {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
details.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.08rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-size: 1.5rem; color: var(--gold-dark); flex: 0 0 auto; line-height: 1;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-a { margin-top: 0.8rem; color: var(--ink); }
details.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); padding: 3.5rem 0; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #c9d2dd; max-width: 38rem; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Two-col / bio ---------- */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 320px 1fr; } }
.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.5rem;
  color: var(--gold-soft); text-align: center; padding: 1.5rem;
}
.photo-placeholder .initials { font-family: var(--serif); font-size: 3.5rem; color: var(--gold); }
.photo-placeholder small { font-size: 0.8rem; color: #9fb0c3; }
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.timeline li { position: relative; padding: 0 0 1.4rem 1.8rem; border-left: 2px solid var(--line); margin: 0 0 0 0.4rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--gold);
}
.timeline strong { display: block; color: var(--navy); }
.timeline span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Lists: check / cross ---------- */
ul.checks { list-style: none; padding: 0; }
ul.checks li { padding-left: 1.8rem; position: relative; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: #2e7d4f; font-weight: 700; }
ul.nos { list-style: none; padding: 0; }
ul.nos li { padding-left: 1.8rem; position: relative; color: var(--muted); }
ul.nos li::before { content: "×"; position: absolute; left: 0.25rem; color: #a33; font-weight: 700; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
@media (min-width: 800px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.post-card h3 { margin-bottom: 0.5rem; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-dark); }
.post-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; }
.post-card p.excerpt { flex: 1; }
.article { max-width: 46rem; }
.article h2 { margin-top: 2.2rem; }
.article .post-meta { margin-bottom: 1.5rem; }
.byline { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.8rem; padding: 1rem 1.2rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.byline .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; flex: 0 0 auto; }
.byline strong { display: block; color: var(--navy); }
.byline small { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.contact-row { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-row:last-child { margin-bottom: 0; }
.contact-row strong { display: block; color: var(--navy); font-size: 0.95rem; }
.calendly-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); min-height: 680px; }
.calendly-inline-widget { min-height: 680px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d2dd; padding: 3rem 0 1.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { color: #c9d2dd; text-decoration: none; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; font-size: 0.85rem; color: #9fb0c3; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- Misc ---------- */
.callout { background: var(--paper-2); border-left: 4px solid var(--gold); padding: 1.2rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.75rem 0; }
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table.compare { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.98rem; }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 0.8rem 1rem; text-align: left; vertical-align: top; }
table.compare th { background: var(--navy); color: var(--white); font-family: var(--serif); }
table.compare td:first-child { font-weight: 700; color: var(--navy); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: 0.6rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 0; }
