/*
Theme Name: Poznanovich Health
Theme URI: https://poznanovich.health
Author: Poznanovich.Health
Author URI: https://poznanovich.health
Description: Custom theme for Poznanovich.Health — Behavioral Health Strategy & Advisory
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
License: Proprietary
Text Domain: poznanovich-health
*/

/* ─── Delta System Impact Calculator - Custom Styles ─────────────────────── */

:root {
  /* ─── Poznanovich.Health Brand Palette ─── */
  --delta-navy: #1A3A5C;
  --delta-blue: #14A0AC;         /* Teal — primary accent */
  --delta-blue-light: #14A0AC;
  --delta-accent: #E8A838;       /* Gold — highlights, .Health */
  --delta-accent-light: #F0BD5E;
  --delta-deep-teal: #0D7377;    /* Deep Teal — Access zone */
  --delta-amber: #E8A838;        /* Gold — Engagement zone */
  --delta-red: #C0392B;          /* Leakage / warning */
  --delta-purple: #0D7377;       /* Deep Teal (replaces purple) */
  --delta-ice-blue: #D6EAF8;    /* Light backgrounds */
  --delta-gray-50: #F7F9FB;
  --delta-gray-100: #EEF2F6;
  --delta-gray-200: #DDE3EA;
  --delta-gray-300: #BCC5D0;
  --delta-gray-400: #8D99A8;
  --delta-gray-500: #6B7A8D;     /* Body text */
  --delta-gray-700: #334155;
  --delta-gray-900: #1A3A5C;     /* Matches Navy */
}

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

body {
  font-family: 'Aptos', 'Segoe UI', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--delta-gray-900);
  background: var(--delta-gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
}

/* ─── Typography ─────────────────────────────────────────────────── */

h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; }
h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
}

/* ─── Layout ─────────────────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  background: var(--delta-navy);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo span {
  color: var(--delta-accent);
}

.header-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-nav a {
  color: var(--delta-gray-300);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: white;
}

/* ─── Mobile Nav Toggle ──────────────────────────────────────────── */

.header-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: white;
}

.header-nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .header-nav-toggle {
    display: block;
  }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--delta-navy);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 99;
  }
  .header-nav.open {
    display: flex;
  }
  .header-nav a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .header-nav a:last-child {
    border-bottom: none;
  }
  .header .container {
    position: relative;
  }
}

/* ─── Skip to Content (Accessibility) ────────────────────────────── */

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--delta-accent);
  color: var(--delta-navy);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 200;
  text-decoration: none;
}

.skip-to-content:focus {
  left: 0;
}

.footer {
  background: var(--delta-navy);
  color: var(--delta-gray-400);
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.875rem;
  text-align: center;
}

/* ─── Cards ──────────────────────────────────────────────────────── */

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
}

.card-header {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--delta-gray-500);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--delta-gray-200);
}

/* ─── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.2;
}

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

.btn-primary {
  background: var(--delta-blue);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #0D7377;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 160, 172, 0.3);
}

.btn-accent {
  background: var(--delta-accent);
  color: white;
}

.btn-accent:hover:not(:disabled) {
  background: #D09430;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 168, 56, 0.3);
}

.btn-secondary {
  background: var(--delta-gray-100);
  color: var(--delta-gray-700);
  border: 1px solid var(--delta-gray-200);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--delta-gray-200);
}

.btn-ghost {
  background: transparent;
  color: var(--delta-blue);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--delta-gray-100);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* ─── Form Elements ──────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--delta-gray-700);
  margin-bottom: 0.5rem;
}

.form-sublabel {
  font-weight: 400;
  color: var(--delta-gray-400);
  font-size: 0.8125rem;
  margin-left: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--delta-gray-200);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--delta-blue);
  box-shadow: 0 0 0 3px rgba(20, 160, 172, 0.15);
}

.form-input.error {
  border-color: var(--delta-red);
}

.form-error {
  color: var(--delta-red);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* ─── Range Sliders ──────────────────────────────────────────────── */

.slider-container {
  margin-bottom: 1.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.slider-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--delta-blue);
  font-variant-numeric: tabular-nums;
}

.slider-track {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: var(--delta-gray-200);
  outline: none;
  cursor: pointer;
}

.slider-track::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--delta-blue);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}

.slider-track::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-track::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--delta-blue);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--delta-gray-400);
  margin-top: 0.25rem;
}

/* ─── Dual Slider (Current vs Goal) ─────────────────────────────── */

.dual-slider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 640px) {
  .dual-slider {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .dual-slider-arrow { display: none; }
}

.dual-slider-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  color: var(--delta-gray-400);
  font-size: 1.5rem;
}

.dual-slider-panel {
  text-align: center;
}

.dual-slider-panel .form-label {
  text-align: center;
}

.dual-slider-delta {
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--delta-gray-100);
  border-radius: 8px;
  font-weight: 600;
  color: var(--delta-blue);
}

/* ─── Progress Steps ─────────────────────────────────────────────── */

.progress-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 2rem 0;
  padding: 0 1rem;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--delta-gray-400);
  position: relative;
}

.progress-step.active {
  color: var(--delta-blue);
}

.progress-step.completed {
  color: var(--delta-accent);
}

.progress-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  background: var(--delta-gray-200);
  color: var(--delta-gray-500);
  flex-shrink: 0;
}

.progress-step.active .progress-step-dot {
  background: var(--delta-blue);
  color: white;
}

.progress-step.completed .progress-step-dot {
  background: var(--delta-accent);
  color: white;
}

.progress-connector {
  width: 3rem;
  height: 2px;
  background: var(--delta-gray-200);
  margin: 0 0.5rem;
  align-self: center;
  flex-shrink: 0;
}

.progress-connector.completed {
  background: var(--delta-accent);
}

@media (max-width: 640px) {
  .progress-step span { display: none; }
  .progress-connector { width: 2rem; }
}

/* ─── Results Dashboard ──────────────────────────────────────────── */

.impact-counter {
  text-align: center;
  padding: 2.5rem 1rem;
}

.impact-counter-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--delta-red);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

@media (max-width: 768px) {
  .impact-counter-value { font-size: 2.5rem; }
}

.impact-counter-label {
  font-size: 1rem;
  color: var(--delta-gray-500);
  margin-top: 0.5rem;
  font-weight: 500;
}

.results-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; }
}

.zone-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .zone-cards { grid-template-columns: 1fr; }
}

.zone-card {
  padding: 1.25rem;
  border-radius: 10px;
  border-left: 4px solid;
}

.zone-card.access { border-color: var(--delta-deep-teal); background: #E8F6F7; }
.zone-card.engagement { border-color: var(--delta-accent); background: #FEF7E8; }
.zone-card.sustainability { border-color: var(--delta-navy); background: var(--delta-ice-blue); }

.zone-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--delta-gray-500);
  margin-bottom: 0.5rem;
}

.zone-card-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.zone-card.access .zone-card-value { color: var(--delta-deep-teal); }
.zone-card.engagement .zone-card-value { color: var(--delta-accent); }
.zone-card.sustainability .zone-card-value { color: var(--delta-navy); }

.zone-card-detail {
  font-size: 0.8125rem;
  color: var(--delta-gray-500);
  margin-top: 0.25rem;
}

/* ─── SEI Gauge ──────────────────────────────────────────────────── */

.sei-gauge-container {
  text-align: center;
  padding: 1rem;
}

.sei-gauge-canvas {
  max-width: 280px;
  margin: 0 auto;
}

.sei-score-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ─── Friction Warnings ──────────────────────────────────────────── */

.friction-warning {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.friction-warning.warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.friction-warning.info {
  background: var(--delta-ice-blue);
  border: 1px solid #B0D4ED;
  color: var(--delta-navy);
}

.friction-warning-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.friction-warning-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ─── EBITDA Panel ───────────────────────────────────────────────── */

.ebitda-highlight {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--delta-gray-700);
}

.ebitda-highlight strong {
  color: var(--delta-red);
}

/* ─── Lead Capture Modal ─────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(10px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--delta-gray-400);
  padding: 0.25rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--delta-gray-700);
}

.modal h2 {
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--delta-gray-500);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

/* ─── Soft Gate Banner ───────────────────────────────────────────── */

.soft-gate {
  background: linear-gradient(135deg, var(--delta-navy) 0%, var(--delta-deep-teal) 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

.soft-gate h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.soft-gate p {
  opacity: 0.85;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.soft-gate .btn {
  background: white;
  color: var(--delta-blue);
  font-weight: 700;
}

.soft-gate .btn:hover {
  background: var(--delta-gray-100);
}

/* ─── Landing Page Hero ──────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 5rem 1rem 3rem;
  background: linear-gradient(180deg, var(--delta-navy) 0%, #142E4A 100%);
  color: white;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--delta-accent-light);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--delta-gray-300);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem 2rem; }
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.feature-card:nth-child(1) .feature-icon { background: #E8F6F7; }
.feature-card:nth-child(2) .feature-icon { background: var(--delta-ice-blue); }
.feature-card:nth-child(3) .feature-icon { background: #FEF7E8; }

/* ─── Admin ──────────────────────────────────────────────────────── */

.admin-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-top: 2rem;
  min-height: 70vh;
}

@media (max-width: 768px) {
  .admin-grid { grid-template-columns: 1fr; }
}

.admin-sidebar {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  height: fit-content;
}

.admin-nav-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--delta-gray-500);
  transition: all 0.15s;
  font-family: inherit;
}

.admin-nav-item:hover {
  background: var(--delta-gray-100);
  color: var(--delta-gray-700);
}

.admin-nav-item.active {
  background: var(--delta-blue);
  color: white;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--delta-gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--delta-gray-200);
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--delta-gray-100);
  vertical-align: middle;
}

.admin-table input {
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--delta-gray-200);
  border-radius: 6px;
  font-size: 0.875rem;
  width: 100%;
  font-family: inherit;
}

.admin-table input:focus {
  outline: none;
  border-color: var(--delta-blue-light);
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--delta-gray-300);
  border-radius: 12px;
  transition: background 0.2s;
}

.toggle input:checked + .toggle-track {
  background: var(--delta-accent);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.toggle input:checked ~ .toggle-thumb {
  transform: translateX(20px);
}

/* ─── Login ──────────────────────────────────────────────────────── */

.login-container {
  max-width: 400px;
  margin: 4rem auto;
  text-align: center;
}

/* ─── Badge ──────────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green { background: #D1FAE5; color: #065F46; }
.badge-yellow { background: #FEF9C4; color: #854D0E; }
.badge-orange { background: #FEF3C7; color: #92400E; }
.badge-red { background: #FEE2E2; color: #991B1B; }

/* ─── Utilities ──────────────────────────────────────────────────── */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Chart containers ───────────────────────────────────────────── */

.chart-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.gauge-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* ─── Budget vs Run Rate Comparison Table ────────────────────────── */

.compare-table {
  margin-bottom: 1rem;
}

.compare-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.compare-col-head {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--delta-blue);
  text-align: center;
  padding: 0.5rem 0.75rem;
  background: var(--delta-gray-100);
  border-radius: 6px;
}

.compare-label-col {
  /* spacer for label column */
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--delta-gray-100);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--delta-gray-700);
  padding-right: 0.5rem;
}

.compare-cell .form-input {
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .compare-header {
    grid-template-columns: 1fr 1fr;
  }
  .compare-label-col { display: none; }
  .compare-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }
  .compare-label {
    margin-bottom: 0.25rem;
  }
  .compare-cell {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .compare-cell::before {
    font-size: 0.6875rem;
    color: var(--delta-gray-400);
    font-weight: 500;
    white-space: nowrap;
    min-width: 3.5rem;
  }
  .compare-row .compare-cell:first-of-type::before {
    content: 'Budget';
  }
  .compare-row .compare-cell:last-of-type::before {
    content: 'Run Rate';
  }
}

/* ─── Benchmark Fallback Toggle ─────────────────────────────────── */

.benchmark-fallback {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--delta-gray-50);
  border: 1px dashed var(--delta-gray-300);
  border-radius: 8px;
}

.benchmark-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--delta-gray-500);
  cursor: pointer;
  font-weight: 500;
}

.benchmark-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--delta-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.compare-cell .form-input.benchmark-filled {
  background: var(--delta-gray-100);
  color: var(--delta-gray-400);
  border-style: dashed;
}

/* ─── Poznanovich.Health Branding ────────────────────────────────── */

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
}

.header-brand-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-brand-mark svg {
  width: 34px;
  height: 34px;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-brand-name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: Georgia, 'Times New Roman', serif;
}

.header-brand-name .brand-dot-health {
  color: var(--delta-accent);
}

.header-brand-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--delta-gray-400);
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .header-brand-sub { display: none; }
}

/* ─── About Section ─────────────────────────────────────────────── */

.about-section {
  padding: 4rem 0 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.about-section h2 {
  margin-bottom: 1rem;
}

.about-section p {
  color: var(--delta-gray-500);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about-section a {
  color: var(--delta-blue);
  font-weight: 600;
  text-decoration: none;
}

.about-section a:hover {
  text-decoration: underline;
}

/* ─── About Page ─────────────────────────────────────────────────── */

.about-hero {
  background: linear-gradient(180deg, var(--delta-navy) 0%, #142E4A 100%);
  color: white;
  padding: 4rem 1rem 3.5rem;
  text-align: center;
}

.about-hero-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--delta-accent);
  margin-bottom: 1rem;
}

.about-hero h1 {
  max-width: 700px;
  margin: 0 auto 1.25rem;
  font-size: 2.25rem;
  color: white;
}

.about-hero-lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--delta-gray-300);
  line-height: 1.6;
}

.about-content-block {
  max-width: 740px;
}

.about-content-block h2 {
  margin-bottom: 1rem;
}

.about-content-block p {
  color: var(--delta-gray-500);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.about-content-block strong {
  color: var(--delta-gray-700);
}

.about-callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #FEF7E8;
  border-left: 4px solid var(--delta-accent);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--delta-gray-700);
}

.about-callout-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--delta-accent);
  flex-shrink: 0;
  line-height: 1.4;
}

/* Three Axes Grid */
.about-axes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .about-axes-grid { grid-template-columns: 1fr; }
}

.about-axis-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  border-top: 4px solid;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.about-axis-card h3 {
  margin-bottom: 0.5rem;
}

.about-axis-card p {
  color: var(--delta-gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.about-axis-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.375rem;
}

.about-axis-access { border-color: var(--delta-deep-teal); }
.about-axis-access .about-axis-label { color: var(--delta-deep-teal); }
.about-axis-engagement { border-color: var(--delta-accent); }
.about-axis-engagement .about-axis-label { color: var(--delta-accent); }
.about-axis-sustainability { border-color: var(--delta-navy); }
.about-axis-sustainability .about-axis-label { color: var(--delta-navy); }

/* Model cards row */
.about-model-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .about-model-row { grid-template-columns: 1fr; }
}

.about-model-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.about-model-card h3 {
  margin-bottom: 0.75rem;
}

.about-model-card p {
  color: var(--delta-gray-500);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.about-formula {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--delta-gray-50);
  border-radius: 8px;
  font-size: 0.875rem;
}

.about-formula span {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--delta-navy);
}

.about-formula em {
  font-style: normal;
  color: var(--delta-gray-400);
  font-size: 0.8125rem;
  margin-right: 0.5rem;
}

/* SEI levels */
.about-sei-levels {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-sei-item {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
}

.about-sei-item strong {
  font-size: 0.8125rem;
  min-width: 5rem;
  flex-shrink: 0;
}

.about-sei-item span {
  color: var(--delta-gray-500);
}

.about-sei-stable { background: #E8F6F7; }
.about-sei-stable strong { color: var(--delta-deep-teal); }
.about-sei-strained { background: #FEF9C4; }
.about-sei-strained strong { color: #854D0E; }
.about-sei-atrisk { background: #FEF3C7; }
.about-sei-atrisk strong { color: #92400E; }
.about-sei-structural { background: #FEE2E2; }
.about-sei-structural strong { color: #991B1B; }

/* Founder */
.about-founder-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about-founder-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about-founder-contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.5rem;
}

/* ─── Services Page ─────────────────────────────────────────────── */

.services-flagship {
  margin-top: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  border-left: 4px solid var(--delta-blue);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

.services-flagship-header {
  font-weight: 700;
  font-size: 1rem;
  color: var(--delta-navy);
  margin-bottom: 1.25rem;
  font-family: Georgia, 'Times New Roman', serif;
}

.services-flagship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .services-flagship-grid { grid-template-columns: 1fr; }
}

.services-flagship-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.services-flagship-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #E8F6F7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--delta-deep-teal);
}

.services-flagship-item strong {
  display: block;
  font-size: 0.875rem;
  color: var(--delta-gray-700);
  margin-bottom: 0.125rem;
}

.services-flagship-item span {
  font-size: 0.8125rem;
  color: var(--delta-gray-500);
  line-height: 1.5;
}

.services-zone-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--delta-accent);
  margin-bottom: 0.5rem;
}

/* Axis bullet lists */
.services-axis-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.services-axis-list li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: var(--delta-gray-500);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.services-axis-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.services-list-access li::before { background: var(--delta-deep-teal); }
.services-list-engagement li::before { background: var(--delta-accent); }
.services-list-sustainability li::before { background: var(--delta-navy); }

/* Advisory grid */
.services-advisory-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .services-advisory-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.services-who-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-top: 4px solid var(--delta-blue);
}

.services-who-header {
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--delta-blue);
  margin-bottom: 1rem;
}

.services-who-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-who-list li {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--delta-gray-100);
}

.services-who-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.services-who-list li strong {
  display: block;
  font-size: 0.875rem;
  color: var(--delta-gray-700);
  margin-bottom: 0.125rem;
}

.services-who-list li span {
  font-size: 0.8125rem;
  color: var(--delta-gray-400);
}

/* Services CTA */
.services-cta {
  background: linear-gradient(135deg, var(--delta-navy) 0%, #0D2A44 100%);
  padding: 4rem 1rem;
  margin-top: 0;
}

.services-cta .btn:hover {
  transform: translateY(-1px);
}

/* ─── Connect Page ──────────────────────────────────────────────── */

.connect-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .connect-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.connect-booking-frame {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  overflow: hidden;
}

.connect-info-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.connect-info-header {
  font-weight: 700;
  font-size: 1rem;
  color: var(--delta-navy);
  margin-bottom: 1.25rem;
  font-family: Georgia, 'Times New Roman', serif;
}

.connect-info-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--delta-gray-100);
}

.connect-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.connect-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #E8F6F7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--delta-deep-teal);
}

.connect-info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--delta-gray-400);
  margin-bottom: 0.125rem;
}

.connect-info-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--delta-blue);
  text-decoration: none;
}

.connect-info-value:hover {
  text-decoration: underline;
}

.connect-message-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.connect-message-card textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

/* ─── Homepage ───────────────────────────────────────────────────── */

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-services-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.home-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--delta-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.home-stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

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

.home-stat-number {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--delta-navy);
  line-height: 1.1;
}

.home-stat-label {
  font-size: 0.8125rem;
  color: var(--delta-gray-500);
  margin-top: 0.375rem;
  max-width: 160px;
}

.home-whoweare {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.home-whoweare-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-top: 4px solid var(--delta-accent);
}

.home-whoweare-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.home-whoweare-list li {
  font-size: 0.875rem;
  color: var(--delta-gray-500);
  padding: 0.375rem 0;
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.home-whoweare-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--delta-accent);
}

.home-cta-dark {
  background: linear-gradient(180deg, var(--delta-navy) 0%, #142E4A 100%);
  padding: 3.5rem 0;
}

.home-cta-gold {
  background: #FEF7E8;
  padding: 3.5rem 0;
  border-top: 4px solid var(--delta-accent);
}

.home-insight-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-left: 4px solid var(--delta-deep-teal);
}

.home-insight-card h3 a:hover {
  color: var(--delta-blue);
}

@media (max-width: 768px) {
  .home-whoweare {
    grid-template-columns: 1fr;
  }
  .home-services-grid {
    grid-template-columns: 1fr;
  }
  .home-services-grid-4 {
    grid-template-columns: 1fr;
  }
  .home-stats-row {
    gap: 2rem;
  }
  .home-stat-number {
    font-size: 2rem;
  }
  .home-insight-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── Insights & Media Page ──────────────────────────────────────── */

.insights-featured {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-left: 4px solid var(--delta-accent);
  position: relative;
}

.insights-featured-tag {
  display: inline-block;
  background: var(--delta-accent);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.insights-featured-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.insights-link {
  color: var(--delta-navy);
  text-decoration: none;
  font-size: 1.375rem;
}

.insights-link:hover {
  color: var(--delta-blue);
}

.insights-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--delta-gray-400);
  margin-top: 0.375rem;
}

.insights-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.625rem;
  border-radius: 4px;
}

.insights-badge-article {
  background: rgba(13, 115, 119, 0.1);
  color: var(--delta-deep-teal);
}

.insights-badge-podcast {
  background: rgba(232, 168, 56, 0.12);
  color: #b5831e;
}

.insights-badge-press {
  background: rgba(26, 58, 92, 0.1);
  color: var(--delta-navy);
}

.insights-badge-speaking {
  background: rgba(20, 160, 172, 0.1);
  color: var(--delta-teal);
}

.insights-badge-video {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.insights-badge-book {
  background: rgba(26, 58, 92, 0.08);
  color: var(--delta-navy);
}

/* Card Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.insights-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.insights-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.insights-card-static {
  cursor: default;
}

.insights-card-static:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.insights-card h3 {
  font-size: 1.0625rem;
  margin: 0.625rem 0 0.375rem;
  color: var(--delta-navy);
  line-height: 1.35;
}

.insights-card p {
  font-size: 0.875rem;
  color: var(--delta-gray-500);
  line-height: 1.6;
  flex: 1;
}

.insights-card-meta {
  font-size: 0.75rem;
  color: var(--delta-gray-400);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--delta-gray-100);
}

/* List Layout (Press & Announcements) */
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.insights-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
  background: white;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-bottom: 1px solid var(--delta-gray-100);
}

.insights-list-item:first-child {
  border-radius: 12px 12px 0 0;
}

.insights-list-item:last-child {
  border-radius: 0 0 12px 12px;
  border-bottom: none;
}

.insights-list-item:only-child {
  border-radius: 12px;
}

.insights-list-item:hover {
  background: var(--delta-gray-50);
}

.insights-list-item h3 {
  font-size: 1rem;
  color: var(--delta-navy);
  margin: 0.375rem 0 0.25rem;
  line-height: 1.35;
}

.insights-list-item p {
  font-size: 0.875rem;
  color: var(--delta-gray-500);
  line-height: 1.5;
}

.insights-list-date {
  font-size: 0.8125rem;
  color: var(--delta-gray-400);
  white-space: nowrap;
  padding-top: 0.375rem;
}

/* Book Card */
.insights-book-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-left: 4px solid var(--delta-navy);
}

.insights-book-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(26, 58, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--delta-navy);
}

/* Responsive */
@media (max-width: 900px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .insights-featured-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .insights-list-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  .insights-book-card {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ─── PDF Hidden Render Area ─────────────────────────────────────── */

#pdf-render-area {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 816px;
}
