/* ==========================================================================
   Best RIA Compliance Consultants — 2026
   Design system: "Regulatory navy + brass benchmark"
   Layered over Bootstrap 5 (CDN). Custom tokens below.
   ========================================================================== */

:root {
  --navy: #0e2a47;
  --navy-800: #143a5e;
  --navy-700: #1c4a73;
  --slate: #3a5068;
  --brass: #b08432;
  --brass-soft: #c79a4a;
  --paper: #f5f7fa;
  --surface: #ffffff;
  --ink: #14202c;
  --muted: #5b6b7c;
  --line: #e4e9f0;
  --line-soft: #eef1f6;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow-sm:
    0 1px 2px rgba(14, 42, 71, 0.06), 0 1px 1px rgba(14, 42, 71, 0.04);
  --shadow-md: 0 18px 40px -22px rgba(14, 42, 71, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
.serif {
  font-family: var(--serif);
}

a {
  color: var(--navy-700);
  text-decoration: none;
}
a:hover {
  color: var(--brass);
}

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass);
}

/* ---------- Nav ---------------------------------------------------------- */
.site-nav {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-nav .navbar-brand {
  font-family: var(--serif);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--brass);
  color: var(--brass-soft);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--sans);
  letter-spacing: 0.02em;
}
.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: #fff;
}
.site-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}
.site-nav .navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(1.6);
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(
      120% 120% at 85% -10%,
      rgba(199, 154, 74, 0.18) 0%,
      rgba(199, 154, 74, 0) 45%
    ),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(90% 80% at 30% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.hero h1 .accent {
  color: var(--brass-soft);
  font-style: italic;
}
.hero-lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 40rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.4rem;
  margin-top: 2rem;
}
.hero-meta .stat .n {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.hero-meta .stat .l {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.35rem;
}

/* 2026 benchmark seal — the signature element */
.seal {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--brass-soft);
  background: radial-gradient(
    circle at 50% 42%,
    rgba(199, 154, 74, 0.14),
    transparent 62%
  );
  border: 1px solid rgba(199, 154, 74, 0.4);
  position: relative;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(199, 154, 74, 0.55);
}
.seal .seal-top {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(199, 154, 74, 0.85);
}
.seal .seal-year {
  font-family: var(--serif);
  font-size: 2.9rem;
  font-weight: 600;
  color: #fff;
  line-height: 0.9;
  margin: 0.2rem 0;
}
.seal .seal-bot {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Section shells ---------------------------------------------- */
.section {
  padding: 4.6rem 0;
}
.section-head {
  max-width: 46rem;
  margin-bottom: 2.4rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 0.75rem;
}
.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

.rule-brass {
  width: 44px;
  height: 3px;
  background: var(--brass);
  border-radius: 3px;
}

/* ---------- Firm cards --------------------------------------------------- */
.firm-grid {
  --gap: 1.5rem;
}

.firm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}
.firm-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--brass), var(--brass-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.34s ease;
}
.firm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d4dce8;
}
.firm-card:hover::before {
  transform: scaleX(1);
}

.firm-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.monogram {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--brass-soft);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.firm-name {
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.firm-loc {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.firm-loc svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.firm-desc {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 1.15rem 0 1.1rem;
  flex: 1 1 auto;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy-700);
  background: #eef3f9;
  border: 1px solid #dce6f1;
  padding: 0.28rem 0.6rem;
  border-radius: 100px;
}

.btn-visit {
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  padding: 0.55rem 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    gap 0.2s ease;
}
.btn-visit:hover {
  background: var(--navy);
  color: #fff;
  gap: 0.75rem;
}
.btn-visit svg {
  width: 14px;
  height: 14px;
}

/* ---------- Generic buttons --------------------------------------------- */
.btn-brass {
  background: var(--brass);
  border: none;
  color: #1a1204;
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.btn-brass:hover {
  background: var(--brass-soft);
  color: #1a1204;
  transform: translateY(-1px);
}
.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---------- FAQ ---------------------------------------------------------- */
.faq-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem 1.3rem;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.faq-q:hover {
  color: var(--navy-700);
}
.faq-q .chev {
  flex: 0 0 auto;
  transition: transform 0.25s ease;
  color: var(--brass);
  font-size: 1.3rem;
  line-height: 1;
}
.faq-item.open .chev {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
  color: var(--slate);
}
.faq-a-inner {
  padding: 0 1.3rem 1.25rem;
  font-size: 0.97rem;
}

/* ---------- Methodology page -------------------------------------------- */
.page-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: 3.4rem 0 3rem;
  position: relative;
}
.page-header h1 {
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}
.page-header p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 44rem;
  margin-top: 0.8rem;
}

.criteria-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.criteria-card .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brass);
}
.criteria-card h4 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0.35rem 0 0.5rem;
}
.criteria-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.elig-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.elig-item:last-child {
  border-bottom: none;
}
.elig-badge {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #eef3f9;
  border: 1px solid #dce6f1;
  color: var(--navy-700);
  display: grid;
  place-items: center;
}
.elig-item h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}
.elig-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.prose {
  max-width: 46rem;
}
.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.2rem 0 0.8rem;
}
.prose h4 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 1.6rem 0 0.5rem;
  color: var(--navy-800);
}
.prose p {
  color: var(--slate);
}
.prose ul {
  color: var(--slate);
}
.prose li {
  margin-bottom: 0.4rem;
}

.reg-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.93rem;
}
.reg-table th {
  text-align: left;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.reg-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--slate);
}
.reg-table tr:nth-child(even) td {
  background: #fafbfd;
}
.reg-table td strong {
  color: var(--ink);
}

.callout {
  background: #fbf6ec;
  border: 1px solid #ead9b7;
  border-left: 4px solid var(--brass);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  color: #5c4a24;
  font-size: 0.95rem;
}

.qlist {
  list-style: none;
  padding-left: 0;
}
.qlist li {
  padding: 0.85rem 0 0.85rem 1.9rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--slate);
}
.qlist li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-soft);
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-family: var(--sans);
}

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}
.site-footer h5 {
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}
.site-footer a:hover {
  color: var(--brass-soft);
}
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ---------- Reveal animation -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .firm-card,
  .btn-visit,
  .btn-brass {
    transition: none;
  }
}

/* ---------- Responsive tweaks ------------------------------------------- */
@media (max-width: 575.98px) {
  .section {
    padding: 3.2rem 0;
  }
  .seal {
    width: 132px;
    height: 132px;
  }
  .seal .seal-year {
    font-size: 2.2rem;
  }
}
