/* aiimplementation.online — shared styles
   Palette matches the Storify / Ken Leatherman brand system used across
   the strategy doc, the forms packet, and the LITT split workflow. */

:root {
  --navy: #1f2d4e;
  --navy-dark: #14203a;
  --gold: #b8862b;
  --gold-light: #f4eee1;
  --grey-light: #f2f2f2;
  --grey-dark: #444444;
  --ink: #222222;
  --white: #ffffff;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

a { color: var(--navy); }
a:hover { color: var(--gold); }

p { margin: 0 0 1.1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
header.site-header {
  border-bottom: 1px solid #e6e2d8;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand span { color: var(--gold); }
nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  text-decoration: none;
  color: var(--grey-dark);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
nav.main-nav a.current { color: var(--gold); }
nav.main-nav a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 3px;
  text-transform: none !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold); color: var(--white) !important; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  nav.main-nav { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--navy);
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 0.85rem;
    color: var(--navy);
  }
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid #e6e2d8;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 56px;
}
.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.3rem;
  max-width: 780px;
}
.hero p.lede {
  max-width: 680px;
  font-size: 1.08rem;
  color: #dbe0eb;
}
.hero .hero-cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--gold);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
}
.hero .hero-cta:hover { background: #a3781f; }

/* ---------- Section cards (home) ---------- */
.section-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 0;
}
@media (max-width: 820px) {
  .section-cards { grid-template-columns: 1fr; }
}
.card {
  border: 1px solid #e6e2d8;
  border-top: 4px solid var(--gold);
  border-radius: 4px;
  padding: 28px 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.card .eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--grey-dark); font-size: 0.96rem; flex-grow: 1; }
.card a.enter {
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  margin-top: 14px;
}
.card a.enter:hover { color: var(--gold); }

/* ---------- Generic content sections ---------- */
section.block { padding: 48px 0; }
section.block.shaded { background: var(--grey-light); }
.block h2 { font-size: 1.6rem; border-bottom: 1px solid var(--gold); padding-bottom: 10px; margin-bottom: 20px; }

/* ---------- Post teaser + archive list ---------- */
.post-teaser {
  border: 1px solid #e6e2d8;
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 22px 24px;
  margin-bottom: 8px;
}
.post-teaser h3 { margin-bottom: 8px; font-size: 1.3rem; }
.post-teaser h3 a { text-decoration: none; }
.post-teaser h3 a:hover { color: var(--gold); }
.post-teaser p { color: #333; }
.post-teaser .post-meta { margin-bottom: 8px; }

ul.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e6e2d8;
}
ul.archive-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 2px;
  border-bottom: 1px solid #e6e2d8;
}
ul.archive-list a { text-decoration: none; font-weight: 600; }
ul.archive-list a:hover { color: var(--gold); }
ul.archive-list .archive-date { color: #888; font-size: 0.86rem; white-space: nowrap; margin-left: 16px; }

/* ---------- Article / post ---------- */
article.post { padding: 8px 0 0; }
article.post .post-meta {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-bottom: 20px;
}
article.post h1.post-title { font-size: 1.9rem; margin-bottom: 6px; }
article.post p { font-size: 1.02rem; color: #222; }

.callout {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  color: #5a4a1e;
  font-size: 0.97rem;
}
.cta-box {
  background: var(--grey-light);
  border-left: 4px solid var(--navy);
  padding: 18px 22px;
  margin: 26px 0 8px;
  font-weight: 700;
  color: var(--navy);
}
.cta-box a { color: var(--navy); text-decoration: underline; }

/* ---------- Resource / product cards ---------- */
.resource-card {
  border: 1px solid #e6e2d8;
  border-radius: 4px;
  padding: 22px;
  background: var(--white);
  margin-bottom: 18px;
}
.resource-card h4 { margin-bottom: 6px; font-size: 1.05rem; }
.resource-card p { font-size: 0.94rem; color: var(--grey-dark); margin-bottom: 10px; }
.resource-card a.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 700;
}
.resource-card a.btn:hover { background: var(--gold); }
.resource-card a.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid var(--navy);
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-left: 10px;
}
.resource-card a.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Quiz (insurance coverage self-check) ---------- */
.quiz-box {
  border: 1px solid #e6e2d8;
  border-top: 4px solid var(--navy);
  border-radius: 4px;
  padding: 28px;
  background: var(--white);
}
.quiz-question { display: none; }
.quiz-question.active { display: block; }
.quiz-question p.q-text { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.quiz-options { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.quiz-options button {
  background: var(--white);
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}
.quiz-options button:hover { background: var(--navy); color: var(--white); }
.quiz-progress { font-size: 0.82rem; color: #888; margin-bottom: 18px; }
.quiz-result { display: none; }
.quiz-result.active { display: block; }
.quiz-result .risk-line {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.email-draft {
  background: var(--grey-light);
  border: 1px dashed #b8b2a2;
  padding: 18px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  white-space: pre-wrap;
  margin: 14px 0;
  border-radius: 3px;
}
.copy-btn {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}
.copy-btn:hover { background: #a3781f; }
.restart-link { display: inline-block; margin-left: 14px; font-size: 0.88rem; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-dark);
  color: #c9cedb;
  padding: 40px 0 30px;
  margin-top: 40px;
  font-size: 0.88rem;
}
footer.site-footer a { color: #dbe0eb; }
footer.site-footer .foot-links { margin-bottom: 14px; }
footer.site-footer .foot-links a { margin-right: 18px; text-decoration: none; }
footer.site-footer .foot-links a:hover { text-decoration: underline; }
footer.site-footer .disclosure { color: #8f97ab; font-size: 0.82rem; max-width: 680px; }

.breadcrumb { font-size: 0.85rem; margin: 22px 0 0; color: #888; }
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
