/* === SITE HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-brand .logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.header-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-6) var(--space-6);
  margin-top: var(--space-16);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-inner a {
  color: var(--color-text-faint);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--color-primary);
}

/* === LAYOUT === */
.container {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--wide {
  max-width: var(--content-wide);
}

.section {
  padding: clamp(var(--space-8), 6vw, var(--space-24)) 0;
}

/* === LANDING HERO === */
.hero {
  text-align: center;
  padding: clamp(var(--space-12), 8vw, var(--space-32)) var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 820px;
  margin: 0 auto var(--space-6);
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-primary:active {
  background: var(--color-primary-active);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-highlight);
}

.btn-secondary {
  background: var(--color-surface-offset);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-border);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* === PROGRESS BAR === */
.progress-container {
  padding: var(--space-4) var(--space-6);
  max-width: var(--content-default);
  margin: 0 auto;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.progress-bar {
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-steps {
  display: flex;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  transition: background var(--transition-interactive);
}

.progress-dot.active {
  background: var(--color-primary);
}

.progress-dot.completed {
  background: var(--color-success);
}

.progress-step-label {
  font-size: 0.65rem;
  color: var(--color-text-faint);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.progress-step-label.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* === CONTEXT FORM === */
.context-section {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.context-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.context-section .section-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.form-select, .form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--color-text);
  appearance: none;
  -webkit-appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237a7974' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

/* === ASSESSMENT QUESTIONS === */
.assessment-section {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6) var(--space-8);
}

.dimension-header {
  margin-bottom: var(--space-8);
}

.dimension-number {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.dimension-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.dimension-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.question-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.question-number {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.question-text {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.answer-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-interactive);
  text-align: left;
  background: var(--color-bg);
  width: 100%;
}

.answer-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.answer-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}

.answer-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-interactive);
}

.answer-option.selected .answer-radio {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.answer-option.selected .answer-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-text-inverse);
  border-radius: var(--radius-full);
}

.answer-label {
  font-size: var(--text-sm);
  line-height: 1.45;
  flex: 1;
}

.answer-score {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Navigation buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  max-width: var(--content-default);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-6);
}

/* === EMAIL CAPTURE === */
.email-section {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.email-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.email-section .section-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-8);
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}

.email-form .btn {
  width: 100%;
  margin-top: var(--space-2);
}

.email-skip {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
}

.email-skip:hover {
  color: var(--color-text-muted);
}

/* === RESULTS === */
.results-section {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

/* Overall Score */
.overall-score-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-10);
}

.score-circle-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-6);
}

.score-circle {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.score-circle-bg {
  fill: none;
  stroke: var(--color-surface-offset);
  stroke-width: 10;
}

.score-circle-fill {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.score-level-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.score-level-desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 480px;
  margin: 0 auto;
}

/* Radar Chart */
.radar-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

.radar-container h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-align: center;
}

.radar-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

/* Traffic Light Cards */
.dimension-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.dim-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dim-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dim-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}

.dim-card-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
}

.dim-card-bar {
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dim-card-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.dim-card-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  width: fit-content;
}

.status-green {
  background: color-mix(in srgb, var(--color-success) 15%, transparent);
  color: var(--color-success);
}

.status-yellow {
  background: color-mix(in srgb, var(--color-warning) 15%, transparent);
  color: var(--color-warning);
}

.status-red {
  background: color-mix(in srgb, var(--color-error) 15%, transparent);
  color: var(--color-error);
}

.dim-card-bar-fill.bar-green { background: var(--color-success); }
.dim-card-bar-fill.bar-yellow { background: var(--color-warning); }
.dim-card-bar-fill.bar-red { background: var(--color-error); }

.dim-card-score.score-green { color: var(--color-success); }
.dim-card-score.score-yellow { color: var(--color-warning); }
.dim-card-score.score-red { color: var(--color-error); }

/* Gap Analysis */
.gap-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-10);
}

.gap-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.gap-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
}

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

.gap-rank {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-xl);
  color: var(--color-text-faint);
  width: 40px;
  flex-shrink: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.gap-info {
  flex: 1;
}

.gap-name {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.gap-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.gap-score-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

/* Roadmap */
.roadmap-section {
  margin-bottom: var(--space-10);
}

.roadmap-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.roadmap-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.roadmap-phase {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: var(--space-3);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}

.phase-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.phase-timeline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.phase-items {
  list-style: none;
  padding: 0;
}

.phase-items li {
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.phase-items li:last-child { border-bottom: none; }

.phase-items li::before {
  content: '→';
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* Canadian Programs */
.programs-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-10);
}

.programs-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.programs-intro {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.program-item {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
}

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

.program-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.program-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Foundations */
.foundations-section {
  margin-bottom: var(--space-10);
}

.foundations-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.foundation-refs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.foundation-ref {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-primary-highlight);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
}

.cta-section h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.cta-section p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Score animation */
@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(1.75rem, 1rem + 3vw, 2.5rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  .nav-buttons {
    padding: 0 var(--space-4);
  }

  .dimension-cards {
    grid-template-columns: 1fr;
  }

  .roadmap-phases {
    grid-template-columns: 1fr;
  }

  .gap-item {
    flex-wrap: wrap;
  }

  .progress-step-label {
    display: none;
  }

  .question-card {
    padding: var(--space-4);
  }

  .answer-option {
    padding: var(--space-3);
  }

  .results-section {
    padding: var(--space-4) var(--space-4);
  }

  .radar-wrapper {
    margin: 0 calc(-1 * var(--space-2));
  }

  .radar-container {
    padding: var(--space-4) var(--space-2);
  }

  .gap-section, .programs-section {
    padding: var(--space-5);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}


/* ===== Paterson Consulting Brand ===== */
.brand-mark {
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.brand-name {
  font-family: 'Cabinet Grotesk', var(--font-display, sans-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text, #28251d);
}
.brand-sub {
  font-family: 'Satoshi', var(--font-body, sans-serif);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b08a2e;
}
[data-theme="dark"] .brand-sub {
  color: #d4a94e;
}
