/* ==========================================================================
   leahbadach.com — shared stylesheet (site.css)
   Used by: pillars, blog, calculators, rewritten state pages
   Design tokens match existing index.html (dark navy + gold)
   ========================================================================== */

:root {
  --bg: #0C1220;
  --bg-elevated: #12192B;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --gold: #C9A96E;
  --gold-bright: #D4B87E;
  --gold-soft: rgba(201, 169, 110, 0.12);
  --gold-line: rgba(201, 169, 110, 0.3);
  --white: #FFFFFF;
  --text: rgba(255, 255, 255, 0.88);
  --text-mid: rgba(255, 255, 255, 0.6);
  --text-dim: rgba(255, 255, 255, 0.4);
  --text-faint: rgba(255, 255, 255, 0.2);
  --danger: #E5484D;
  --success: #30A46C;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-w: 820px;
  --max-w-narrow: 680px;
  --max-w-wide: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(201, 169, 110, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 100% 40%, rgba(201, 169, 110, 0.02) 0%, transparent 60%);
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: normal;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-top: 3rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--gold); }
h4 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--gold-bright); }

p { margin-bottom: 1rem; color: var(--text); }

a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-line); transition: all 0.2s; }
a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }

strong { color: var(--white); font-weight: 600; }

ul, ol { margin: 0 0 1.25rem 1.5rem; color: var(--text); }
li { margin-bottom: 0.5rem; }

hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-mid);
  font-style: italic;
}

code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.9em;
  color: var(--gold-bright);
}

/* Layout primitives =========================================== */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 3rem 1.5rem; }
.container-wide  { max-width: var(--max-w-wide);   margin: 0 auto; padding: 3rem 1.5rem; }

.eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 2rem;
}

/* Top navigation =========================================== */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 18, 32, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topnav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.topnav-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--white);
  border: none;
  white-space: nowrap;
}
.topnav-brand:hover { color: var(--gold-bright); }
.topnav-brand .accent { color: var(--gold); }

.topnav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
  margin: 0;
}
.topnav-links a {
  color: var(--text-mid);
  font-size: 0.9rem;
  border: none;
  font-weight: 500;
}
.topnav-links a:hover { color: var(--white); }

.topnav-cta {
  background: var(--gold);
  color: var(--bg) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: none !important;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.topnav-cta:hover { background: var(--gold-bright); transform: translateY(-1px); }

@media (max-width: 720px) {
  .topnav-links { display: none; }
}

/* Buttons =========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 8px 24px -8px rgba(201, 169, 110, 0.5);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(201, 169, 110, 0.6);
  color: var(--bg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--white);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }

/* Cards =========================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.card-featured {
  border-color: var(--gold-line);
  box-shadow: 0 16px 64px -32px rgba(201, 169, 110, 0.35);
}

/* Hero =========================================== */

.hero {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero h1 { margin-bottom: 1.25rem; }

.hero .lede {
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Pillar / article content =========================================== */

.article {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.article h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1rem;
}

.article img { max-width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }

.article-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.toc-title {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}
.toc ul { margin: 0; list-style: none; padding: 0; }
.toc li { margin-bottom: 0.35rem; }
.toc a { color: var(--text-mid); border: none; font-size: 0.95rem; }
.toc a:hover { color: var(--white); }

.callout {
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout-title {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}
.callout p:last-child { margin-bottom: 0; }

.callout-warning {
  background: rgba(229, 72, 77, 0.08);
  border-left-color: var(--danger);
}
.callout-warning .callout-title { color: var(--danger); }

/* Stats / proof row =========================================== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat { text-align: center; padding: 1.25rem; background: var(--surface); border-radius: var(--radius); }
.stat-num { font-family: 'DM Serif Display', serif; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-mid); margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 1.5px; }

/* FAQ accordion =========================================== */

.faq {
  margin: 2rem 0;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--gold-line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p,
.faq details > ul { margin-top: 0.75rem; color: var(--text-mid); }

/* Forms =========================================== */

.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-elevated);
}
.form-row input::placeholder { color: var(--text-dim); }

/* Regional / footer navigation =========================================== */

.siteFooter {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
  max-width: var(--max-w-wide);
  margin: 4rem auto 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h5 {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  font-family: inherit;
}
.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: var(--text-mid);
  font-size: 0.9rem;
  border: none;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
}

/* Breadcrumbs =========================================== */

.breadcrumbs {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--text-mid); border: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 0.5rem; color: var(--text-faint); }

/* Sticky CTA bar (mobile) =========================================== */

.stickyCta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(12, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-line);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  transform: translateY(120%);
  transition: transform 0.3s ease;
}
.stickyCta.visible { transform: translateY(0); }
.stickyCta-text {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
.stickyCta-text small { display: block; color: var(--text-mid); font-weight: 400; font-size: 0.75rem; }
.stickyCta .btn { padding: 0.65rem 1rem; font-size: 0.85rem; }

/* Exit-intent popup =========================================== */

.exitModal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.exitModal-overlay.visible { display: flex; opacity: 1; }
.exitModal {
  background: var(--bg-elevated);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.exitModal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
}
.exitModal-close:hover { color: var(--white); }
.exitModal h3 { margin-top: 0; color: var(--gold); }
.exitModal p { color: var(--text-mid); margin-bottom: 1.5rem; }

/* Utilities =========================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

/* Tables =========================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--surface);
}
tbody tr:hover { background: var(--surface); }
