/* Best Exit Advisors -- shared stylesheet
   Forest green + mustard gold palette. Playfair Display + Inter.
   Intentionally distinct from topexitadvisors.com and Cordis brand. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F7F4;
  --ink: #1A1A1A;
  --ink-soft: #555;
  --primary: #2D4A36;       /* forest green */
  --primary-dim: #1F3526;
  --accent: #C9A752;        /* mustard gold */
  --warn: #B85A2E;          /* red-flag rust */
  --rule: #E8E5DC;
  --max: 720px;
  --max-wide: 1080px;
  --max-narrow: 640px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dim); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); }

/* HERO */
.hero {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}
.hero.hero-left { text-align: left; }
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 800px;
  margin: 0 auto 24px;
}
.hero.hero-left h1 { margin-left: 0; margin-right: 0; }
.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.hero.hero-left .hero-sub { margin-left: 0; margin-right: 0; }

/* CONTAINER */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* SECTION */
section {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}
section.section-tight { padding: 48px 0; }
section.section-alt { background: var(--bg-alt); }

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 32px;
}
section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: 32px 0 12px;
}
section h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 24px 0 8px;
}
section p {
  margin-bottom: 20px;
  color: var(--ink);
}
section p.intro {
  font-size: 19px;
  color: var(--ink-soft);
  font-weight: 400;
  margin-bottom: 32px;
  line-height: 1.6;
}
section ol, section ul {
  margin: 0 0 20px 24px;
  color: var(--ink);
}
section li { margin-bottom: 8px; }
section blockquote {
  border-left: 3px solid var(--primary);
  padding: 8px 0 8px 24px;
  margin: 24px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}
section blockquote cite {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* CRITERIA GRID */
.criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 16px;
}
.criterion {
  padding: 28px;
  background: var(--bg-alt);
  border-radius: 4px;
}
.criterion.on-alt { background: var(--bg); }
.criterion-num {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.criterion h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--ink);
  margin-top: 0;
}
.criterion p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* RED FLAGS */
.red-flags {
  background: #FBF4F0;
  padding: 32px;
  border-left: 3px solid var(--warn);
  margin: 32px 0;
}
.red-flags ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.red-flags li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(184, 90, 46, 0.15);
  padding-left: 24px;
  position: relative;
  margin: 0;
}
.red-flags li:last-child { border-bottom: none; }
.red-flags li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--warn);
  font-weight: 700;
}
.red-flags-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--warn);
  margin-bottom: 16px;
}

/* PERSPECTIVES */
.perspective {
  padding: 32px;
  background: var(--bg);
  border-radius: 4px;
  margin-bottom: 24px;
  border-left: 3px solid var(--primary);
}
.perspectives section-alt .perspective { background: var(--bg); }
.perspective-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 20px;
}
.perspective-attribution {
  font-size: 14px;
  color: var(--ink-soft);
}
.perspective-attribution strong {
  color: var(--ink);
  font-weight: 600;
}
.perspective-attribution a {
  color: var(--primary);
  text-decoration: none;
}
.perspective-attribution a:hover { text-decoration: underline; }

/* QUESTIONS */
.questions-list {
  list-style: none;
  counter-reset: q;
  padding: 0;
  margin: 0;
}
.questions-list li {
  counter-increment: q;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  padding-left: 56px;
  position: relative;
}
.questions-list li:last-child { border-bottom: none; }
.questions-list li::before {
  content: counter(q, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
}
.questions-list .q {
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 18px;
}
.questions-list .a {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* CHECKLIST */
.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.checklist li {
  padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: 16px;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--primary);
  border-radius: 3px;
}

/* INSIGHTS LIST */
.insight-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.insight-card:last-child { border-bottom: none; }
.insight-card .insight-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.insight-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 12px;
}
.insight-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.insight-card h3 a:hover { color: var(--primary); }
.insight-card p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.insight-card .insight-meta {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ARTICLE BODY */
.article-meta {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.article-body p {
  margin-bottom: 22px;
  font-size: 17px;
  line-height: 1.75;
}
.article-body h2 {
  font-size: 28px;
  margin: 56px 0 20px;
}
.article-body h3 {
  font-size: 21px;
  margin: 40px 0 12px;
}
.article-body ul, .article-body ol {
  margin: 20px 0 24px 24px;
}
.article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.article-body .citation {
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-top: 48px;
}
.article-body .citation a { color: var(--primary); }

/* CONTACT FORM */
.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.contact-form label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  background: var(--primary);
  color: #FFF;
  border: none;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: 3px;
  justify-self: start;
}
.contact-form button:hover { background: var(--primary-dim); }

/* CTA */
.cta {
  background: var(--bg-alt);
  text-align: center;
}
.cta-buttons {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 3px;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
}
.btn-primary {
  background: var(--primary);
  color: #FFF;
}
.btn-primary:hover { background: var(--primary-dim); color: #FFF; }
.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #FFF; }

/* TWO-COLUMN AUTHORITATIVE */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 24px;
}
.two-col .col-strong h4 { color: var(--primary); }
.two-col .col-weak h4 { color: var(--warn); }

/* FOOTER */
.footer {
  background: var(--ink);
  color: #B0B0B0;
  padding: 64px 24px 32px;
  margin-top: 80px;
}
.footer-content {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #FFF;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  max-width: 360px;
}
.footer h5 {
  color: #FFF;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer ul {
  list-style: none;
  padding: 0;
}
.footer li {
  padding: 6px 0;
  font-size: 14px;
}
.footer a {
  color: #B0B0B0;
  text-decoration: none;
}
.footer a:hover { color: #FFF; }
.footer-bottom {
  max-width: var(--max-wide);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #333;
  font-size: 12px;
  color: #666;
}

@media (max-width: 720px) {
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  section { padding: 48px 0; }
  section h2 { font-size: 28px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}
