/* ============================================================
   Capital Advisors — Resource Center
   Uses Capital Advisors palette + Source Serif 4 / Inter
   ============================================================ */

:root {
  --terracotta: #c45d2e;
  --terracotta-dark: #a14a23;
  --terracotta-soft: #e8a888;
  --navy: #2a3441;
  --ivory: #fcfaf5;
  --cream: #f5f0e6;
  --ink: #1f1a14;
  --ink-soft: #544a3e;
  --ink-light: #857a6b;
  --border: #dcd5c5;
  --shadow: rgba(46, 38, 28, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Back to Capital Advisors bar */
.back-bar {
  background: var(--navy);
  padding: 10px 6vw;
  text-align: center;
}
.back-bar a {
  color: var(--ivory);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-family: 'Inter', sans-serif;
}
.back-bar a:hover { color: var(--terracotta-soft); text-decoration: none; }

/* Header / Nav */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 16px 6vw;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
header a { color: var(--ink); }
.nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}
.logo a {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.navlinks {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
}
.navlinks a {
  color: var(--ink-soft);
  font-weight: 500;
}
.navlinks a:hover { color: var(--terracotta); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 6vw;
}
.eyebrow {
  color: var(--terracotta);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border-left: 3px solid var(--terracotta);
  padding-left: 10px;
}
.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 22ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}
.hero p {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 28px;
}
.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff !important;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background 0.2s;
}
.btn:hover { background: var(--terracotta-dark); text-decoration: none !important; }
.btn.secondary {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--border);
}
.btn.secondary:hover { background: #fff; border-color: var(--terracotta); color: var(--terracotta) !important; }

/* Main content sections */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 6vw;
}
.section p,
.section ul, .section ol { max-width: none; }
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }
.section h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 36ch;
}
.section h2 em {
  font-style: italic;
  color: var(--terracotta);
}
.section h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 8px;
}
.section p {
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: 70ch;
}
.section p.lead {
  font-size: 17px;
  color: var(--ink);
}
.section ul, .section ol {
  color: var(--ink-soft);
  margin: 0 0 18px 20px;
  max-width: 70ch;
}
.section li { margin-bottom: 8px; }

/* Callouts */
.callout {
  background: var(--cream);
  border-left: 3px solid var(--terracotta);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  color: var(--ink);
  max-width: 80ch;
}
.callout strong { color: var(--ink); }

/* Card grids */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--terracotta);
  border-radius: 4px;
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--shadow);
}
.card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.card a {
  color: var(--terracotta);
  font-size: 14px;
  font-weight: 500;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}
table th, table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table thead th {
  background: var(--navy);
  color: var(--ivory);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 13px;
  text-transform: uppercase;
}

/* FAQ details/summary */
details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
details summary {
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 0;
  color: var(--terracotta);
  font-size: 20px;
  font-weight: 400;
}
details[open] summary::after { content: '−'; }
details p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* End CTA box */
.endcta {
  background: var(--navy);
  color: var(--ivory);
  padding: 36px 32px;
  border-radius: 4px;
  margin: 40px 0 24px;
  text-align: center;
  border-top: 3px solid var(--terracotta);
}
.endcta h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ivory);
  margin: 0 0 8px;
}
.endcta p {
  color: rgba(252, 250, 245, 0.85);
  max-width: 60ch;
  margin: 0 auto 20px;
}
.endcta .btn {
  background: var(--terracotta);
  color: #fff !important;
}
.endcta .btn:hover { background: var(--terracotta-dark); }

/* Footer */
footer {
  background: var(--navy);
  color: var(--ivory);
  padding: 48px 6vw 32px;
  margin-top: 40px;
}
.foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 700px) {
  .foot-inner { grid-template-columns: 1fr; gap: 28px; }
}
footer h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ivory);
  margin: 0 0 14px;
}
footer p {
  color: rgba(252, 250, 245, 0.75);
  font-size: 14px;
  margin: 0 0 10px;
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer li { margin-bottom: 8px; }
footer a {
  color: rgba(252, 250, 245, 0.85);
  font-size: 14px;
}
footer a:hover { color: var(--terracotta-soft); text-decoration: none; }
.disclaimer {
  font-size: 12px;
  color: rgba(252, 250, 245, 0.5);
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(252, 250, 245, 0.1);
  text-align: center;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
