/* =============================================================
   Corporate Reserve Bullion Group — shared stylesheet
   Token system: stone/cream surfaces, deep reserve green,
   antique brass accent, mono numerals for data/stats.
   ============================================================= */

:root {
  /* Color */
  --cream: #F5F2EC;
  --parchment: #ECE6D9;
  --white: #FFFFFF;
  --ink: #23241F;
  --slate: #5B584F;
  --slate-light: #86816F;
  --line: #DCD4C2;
  --line-strong: #C7BCA2;
  --green: #1E3B32;
  --green-deep: #142822;
  --green-tint: #E7EEEA;
  --brass: #8A6A32;
  --brass-deep: #6E5527;
  --brass-light: #C4A465;
  --brass-tint: #F3ECDC;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;

  /* Misc */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 18, 0.06);
  --shadow-md: 0 8px 30px rgba(20, 22, 18, 0.10);
  --container: 1180px;
  --transition: 180ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}

section { padding-block: var(--sp-6); }

@media (max-width: 720px) {
  section { padding-block: var(--sp-5); }
}

.section-alt { background: var(--parchment); }
.section-dark {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--white);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.section-dark .eyebrow { color: var(--brass-light); }
.eyebrow::before {
  content: "";
  width: 1.5em;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--slate);
  max-width: 46em;
}
.section-dark .lead { color: rgba(255,255,255,0.82); }

p + p { margin-top: 1em; }

.text-center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brass);
  color: var(--white);
}
.btn-primary:hover { background: var(--brass-deep); }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--brass); color: var(--brass-deep); }

.section-dark .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.section-dark .btn-outline:hover { border-color: var(--white); }

.btn-on-dark-primary {
  background: var(--brass-light);
  color: var(--green-deep);
}
.btn-on-dark-primary:hover { background: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
  gap: var(--sp-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand-mark { color: var(--brass); flex-shrink: 0; }
.brand-name { line-height: 1.1; }
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--slate-light);
  text-transform: uppercase;
  margin-top: 0.15em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav-links {
  display: flex;
  gap: var(--sp-3);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--slate);
  padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.5em 0.6em;
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-2) 0 var(--sp-3);
  border-top: 1px solid var(--line);
}
.nav-mobile-panel a {
  padding: 0.7em 0.2em;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-mobile-panel .btn { margin-top: var(--sp-2); align-self: flex-start; }

@media (max-width: 860px) {
  .nav-links, .header-inner .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .nav-mobile-panel { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: var(--sp-7) var(--sp-6);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-6);
  align-items: center;
}
.hero-copy > * + * { margin-top: var(--sp-2); }
.hero h1 { margin-top: var(--sp-2); }
.hero .btn-row { margin-top: var(--sp-4); }

.hero-mark {
  display: flex;
  justify-content: center;
}
.hero-mark svg { width: min(100%, 340px); height: auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-block: var(--sp-5); }
  .hero-mark { order: -1; }
  .hero-mark svg { width: min(60%, 220px); }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: var(--sp-6) var(--sp-5); }
.page-hero .lead { margin-top: var(--sp-2); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  text-align: center;
}
.stat-figure {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--brass-light);
}
.stat-label {
  margin-top: 0.4em;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.72);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-4); }
}

/* ---------- Cards & grids ---------- */
.grid {
  display: grid;
  gap: var(--sp-3);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  height: 100%;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brass-tint);
  color: var(--brass-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-2);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--slate); font-size: 0.975rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: var(--sp-2);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brass-deep);
}
.card-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.card-link:hover svg { transform: translateX(3px); }

.included-list { margin-top: var(--sp-2); }
.included-list li {
  display: flex;
  gap: 0.6em;
  padding-block: 0.4em;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--slate);
}
.included-list li:first-child { border-top: none; }
.included-list svg { width: 16px; height: 16px; color: var(--brass); flex-shrink: 0; margin-top: 0.2em; }

/* ---------- Section heading block ---------- */
.section-head {
  max-width: 40em;
  margin-bottom: var(--sp-5);
}
.section-head > * + * { margin-top: var(--sp-2); }
.section-head.centered { margin-inline: auto; text-align: center; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  counter-reset: step;
}
.step { position: relative; padding-top: var(--sp-4); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--brass);
  display: block;
  border-top: 2px solid var(--brass);
  padding-top: 0.6em;
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4em;
}
.step h3 { margin-bottom: 0.5em; }
.step p { color: var(--slate); font-size: 0.975rem; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ---------- Quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
.quote {
  background: var(--white);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--sp-4);
}
.quote p { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--ink); }
.quote cite {
  display: block;
  margin-top: var(--sp-2);
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--slate);
}
.quote cite strong { display: block; color: var(--ink); font-weight: 600; }

@media (max-width: 720px) {
  .quotes { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band .lead { color: rgba(255,255,255,0.82); }

/* ---------- Leadership ---------- */
.person-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.person-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}
.person-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.person-title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brass-deep); }
.person-bio { color: var(--slate); font-size: 0.95rem; }

/* ---------- Values ---------- */
.value-block { border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.value-block h3 { margin-bottom: 0.4em; }
.value-block p { color: var(--slate); font-size: 0.975rem; }

/* ---------- Insights / articles ---------- */
.article-block { padding-block: var(--sp-4); border-top: 1px solid var(--line); }
.article-block:first-of-type { border-top: none; }
.article-block h2 { margin-bottom: 0.3em; }
.article-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.6em;
  display: block;
}
.article-body { max-width: 44em; color: var(--ink); }
.article-body > * + * { margin-top: 1em; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
}
.toc a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brass-deep);
}
.toc a:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-3);
}
.field { display: flex; flex-direction: column; gap: 0.4em; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.8rem; color: var(--slate-light); font-weight: 400; }
.field input,
.field textarea {
  padding: 0.75em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.975rem;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--brass);
  outline: none;
  box-shadow: 0 0 0 3px var(--brass-tint);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--slate-light); margin-top: var(--sp-2); }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
}
.contact-card h3 { color: var(--white); margin-bottom: var(--sp-2); }
.contact-row { display: flex; gap: 0.8em; padding-block: 0.7em; border-top: 1px solid rgba(255,255,255,0.15); }
.contact-row:first-of-type { border-top: none; }
.contact-row svg { width: 18px; height: 18px; color: var(--brass-light); flex-shrink: 0; margin-top: 0.15em; }
.contact-row a, .contact-row span { color: rgba(255,255,255,0.9); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.85); }
.footer-top {
  padding-block: var(--sp-6) var(--sp-5);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-4);
}
.footer-brand .brand { color: var(--white); }
.footer-brand p { margin-top: var(--sp-2); color: rgba(255,255,255,0.65); font-size: 0.9rem; max-width: 26em; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-2);
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6em; }
.footer-col a { font-size: 0.925rem; color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: var(--brass-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--sp-3);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}

.disclaimer {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--sp-3);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  max-width: 76em;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--sp-6);
}
.error-figure {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--brass-light);
  line-height: 1;
}
.error-page h1 { margin-top: var(--sp-2); }
.error-page .lead { margin-inline: auto; margin-top: var(--sp-2); }
.error-page .btn-row { justify-content: center; margin-top: var(--sp-4); }

/* ---------- Divider mark ---------- */
.divider-mark {
  display: flex;
  justify-content: center;
  margin-block: var(--sp-2);
  opacity: 0.5;
}
.divider-mark svg { width: 64px; height: auto; }
