/* ===== Sticky Navigation ===== */
.site-nav {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.85rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--accent);
}

@media (max-width: 520px) {
  .nav-container {
    gap: 1rem;
  }
  .site-nav a {
    font-size: 0.78rem;
  }
}

/* ===== Custom Properties ===== */
:root {
  --bg: #f9f7f4;
  --bg-elevated: #ffffff;
  --bg-subtle: #f0ece7;
  --accent: #1a6b6a;
  --accent-hover: #14524f;
  --accent-light: rgba(26, 107, 106, 0.3);
  --text-primary: #1a1a1a;
  --text-body: #3d3d3d;
  --text-muted: #5c5c5c;
  --text-subtle: #7a7a7a;
  --text-faint: #999999;
  --border: #e4dfd8;
  --border-light: #eeebe6;
  --section-teal: #d6edeb;
  --section-amber: #fdf6e3;
  --section-teal-border: #c8e3e1;
  --section-amber-border: #e8dcc4;
  --answer-partial: #c4882f;
  --answer-no: #b5544b;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  transition: color 0.2s, border-color 0.2s;
}

a:hover {
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ===== Layout ===== */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}

.wide-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.hero-headshot {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero-layout {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-headshot {
    width: 110px;
    height: 110px;
  }
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
}

.hero .intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.8;
}

/* ===== Sections ===== */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

/* ===== Stats Banner ===== */
.stats-banner {
  padding: 3rem 0;
  background-color: var(--section-teal);
  border-bottom: 1px solid var(--section-teal-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.stat-item .stat-label {
  font-size: 0.73rem;
  color: var(--text-subtle);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-source {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.stats-source a {
  color: var(--text-faint);
  border-bottom-color: rgba(153, 153, 153, 0.4);
}

.stats-source a:hover {
  color: var(--accent);
}

/* ===== About Layout ===== */
.about-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-photo {
  flex-shrink: 0;
}

.headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-audience {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===== About CTA ===== */
.about-cta {
  margin-top: 0.5rem;
}

.about-cta a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: none;
}

.about-cta a:hover {
  border-bottom: 1px solid var(--accent);
}

/* ===== Stats Hook ===== */
.stats-hook {
  text-align: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* ===== Core Question ===== */
.core-question {
  color: var(--text-primary);
  background-color: var(--section-teal);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
}

/* ===== Focus Areas ===== */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.focus-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.4rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.focus-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 2px 8px rgba(26, 107, 106, 0.08);
}

.focus-card h3 {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.focus-card p {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===== Writing Section ===== */
main section.writing-section {
  background-color: var(--bg);
}

.writing-section h3.subsection-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin: 1.8rem 0 0.6rem;
}

.writing-section h3.subsection-label:first-of-type {
  margin-top: 0.4rem;
}

/* ===== Resources ===== */
.focus-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

button.focus-card {
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

button.focus-card.active {
  border-color: var(--accent);
  background: var(--section-teal);
}

.resource-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s, opacity 0.3s, margin 0.3s;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 0;
}

.resource-detail.visible {
  max-height: 400px;
  opacity: 1;
  margin-top: 1rem;
}

.resource-list {
  list-style: none;
  padding: 1rem 1.4rem;
  margin: 0;
}

.resource-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-light);
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.resource-list a {
  color: var(--accent);
  border-bottom: none;
  font-weight: 500;
}

.resource-list a:hover {
  color: var(--accent-hover);
  border-bottom: 1px solid var(--accent);
}

.resource-list span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.2rem;
}

.section-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.resource-bio {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin: 0.3rem 0 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .focus-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== Writing ===== */
.writing-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-light);
}

.writing-item:last-child {
  border-bottom: none;
}

.writing-item h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.writing-meta {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.writing-meta a {
  color: var(--accent);
  border-bottom: none;
}

.writing-meta a:hover {
  border-bottom: 1px solid var(--accent);
}

.writing-desc {
  font-size: 0.88rem;
  color: var(--text-subtle);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===== Show more writing toggle ===== */
.show-more-writing {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.15s;
}

.show-more-writing:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.show-more-writing:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Risk Tags ===== */
.risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.risk-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

/* ===== Risk Details ===== */

.risk-tag:hover,
.risk-tag.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.risk-details {
  margin-top: 0;
}

.risk-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s, opacity 0.3s, margin 0.3s, padding 0.3s;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0 1.2rem;
  margin-top: 0;
}

.risk-detail.visible {
  max-height: 500px;
  opacity: 1;
  padding: 1.2rem;
  margin-top: 0.8rem;
}

.risk-detail p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.risk-detail p:last-child {
  margin-bottom: 0;
}

/* ===== 7 Questions ===== */
.questions-section {
  background-color: var(--bg);
}

.questions-intro {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.questions-instruction {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 2rem;
}

.questions-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.question-card {
  background: var(--section-teal);
  border: 1px solid var(--section-teal-border);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.question-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.3;
}

.question-card strong {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.question-full-width {
  grid-column: 1 / -1;
}

.question-card p {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 0.8rem;
  line-height: 1.6;
  padding-left: 2.1rem;
}

/* ===== Answer Buttons ===== */
.answer-buttons {
  display: flex;
  gap: 0;
  padding-left: 2.1rem;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  width: fit-content;
}

.answer-btn {
  padding: 0.4rem 0;
  min-width: 5.5rem;
  text-align: center;
  border: none;
  border-right: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-body);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}

.answer-btn:last-child {
  border-right: none;
}

.answer-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.answer-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.answer-btn.active[data-value="yes"] {
  background: var(--accent);
  color: #ffffff;
}

.answer-btn.active[data-value="partial"] {
  background: var(--answer-partial);
  color: #ffffff;
}

.answer-btn.active[data-value="no"] {
  background: var(--answer-no);
  color: #ffffff;
}

/* ===== Scorecard Result ===== */
.scorecard-result {
  margin-top: 0;
  padding: 0 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, max-height 0.3s;
  pointer-events: none;
}

.scorecard-result.visible {
  opacity: 1;
  max-height: 400px;
  transform: translateY(0);
  pointer-events: auto;
  padding: 2rem;
  margin-top: 1.5rem;
}

.score-box {
  margin-bottom: 1.2rem;
}

.score-label {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 0.2rem;
}

.score-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.score-message {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.btn-reset {
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-reset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Quiz CTA ===== */
.quiz-cta-section {
  background-color: var(--accent);
  border-bottom: none;
  padding: 5.5rem 0;
}

.quiz-cta .section-label {
  color: rgba(255, 255, 255, 0.7);
}

.quiz-cta-desc {
  color: #ffffff;
}

.quiz-cta .btn {
  background-color: #ffffff;
  color: var(--accent);
  font-weight: 700;
}

.quiz-cta .btn:hover {
  background-color: var(--bg);
  color: var(--accent-hover);
}

.quiz-cta {
  text-align: center;
}

.quiz-cta-title {
  font-size: 1.75rem;
  margin-bottom: 0.8rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.quiz-cta-desc {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 1.8rem;
}

/* ===== Quiz Page Header ===== */
.quiz-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.quiz-header h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--accent);
}

/* ===== Contact ===== */
.contact-section {
  text-align: center;
  padding: 2.5rem 0;
}

.contact-section p {
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-linkedin {
  background-color: #0A66C2;
}

.btn-linkedin:hover {
  background-color: #004182;
}

/* ===== Footer ===== */
footer {
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .questions-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .container, .wide-container {
    padding: 0 1.2rem;
  }

  section {
    padding: 2.5rem 0;
  }
}
