/* The MEDIC Financial Framework™ — static site styles */
:root {
  --navy: #0b1f3a;
  --navy-light: #132d52;
  --gold: #c9a227;
  --gold-light: #e4c04a;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f5f7fa;
  --gray-200: #e8ecf1;
  --gray-600: #5c6b7a;
  --shadow: 0 12px 40px rgba(11, 31, 58, 0.12);
  --radius: 12px;
  --nav-height: 72px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 31, 58, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 4vw;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-secondary {
  background: var(--navy-light);
  color: var(--white);
  border-color: var(--navy-light);
}

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

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 50%, var(--navy-light) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.15;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--gold-light);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.hero .sub {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0 0 2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(201, 162, 39, 0.45);
  background: var(--black);
}

.hero-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
}

/* Sections */
section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.section-header p {
  margin: 0;
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--gray-200);
}

.mission-quote {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy-light);
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0 0;
}

/* Book */
.book-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.book-cover {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.theme-list li {
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
}

.book-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.book-links .btn-book {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.65rem;
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.btn-pending {
  background: var(--gray-200);
  color: var(--gray-600);
  border: 2px solid #d1d9e2;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
}

@media (max-width: 720px) {
  .book-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .book-links {
    grid-template-columns: 1fr;
  }
}

/* Framework */
.framework-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.framework-diagram {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  padding: 1rem;
}

.medic-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
  border-left: 4px solid var(--gold);
}

.pillar h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.pillar h3 span {
  color: var(--gold);
  font-weight: 800;
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.framework-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.badge {
  background: var(--navy);
  color: var(--white);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Speaking */
.speaking-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.speaking-card h2 {
  color: var(--white);
  margin-top: 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  text-align: center;
}

.audience-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.calendly-wrap {
  margin-top: 2rem;
  min-height: 600px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendly-wrap iframe {
  width: 100%;
  min-height: 600px;
  border: none;
}

/* Simulator teaser */
.simulator-teaser {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 100%);
  color: var(--navy);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.simulator-teaser h2 {
  color: var(--navy);
}

.simulator-teaser .sim-lead {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--gray-600);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
  text-align: left;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.06);
}

.category-card h3 {
  margin: 0 0 0.5rem;
  color: var(--navy-light);
  font-size: 1rem;
}

.category-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.author-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.35;
}

.about-bio p {
  margin: 0 0 1rem;
}

.reminder-date {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.calendly-setup {
  background: var(--gray-100);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.calendly-setup h3 {
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.calendly-setup ol {
  text-align: left;
  margin: 1rem auto;
  max-width: 420px;
  color: var(--gray-600);
}

.calendly-wrap.is-live {
  display: block;
}

.calendly-wrap:not(.is-live) {
  display: none;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  justify-content: flex-start;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s, transform 0.2s;
}

.social-icon-link:hover {
  background: rgba(201, 162, 39, 0.25);
  transform: translateY(-2px);
}

.social-icon-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-grid-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-grid-icons .social-icon-link {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
}

.social-grid-icons .social-icon-link img {
  width: 26px;
  height: 26px;
}

/* Reminders */
.reminders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.reminders-help {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: -1rem auto 2rem;
  max-width: 520px;
}

.reminder-card {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
  transition: opacity 0.2s, box-shadow 0.2s;
}

.reminder-card:has(.reminder-checkbox:not(:checked)) {
  opacity: 0.65;
}

.reminder-select {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
}

.reminder-checkbox {
  margin-top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.reminder-body {
  flex: 1;
  min-width: 0;
}

.reminder-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.reminder-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-status.is-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.form-status.is-error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.form-status.is-sending {
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

#contact-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.calendar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* Social */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-btn {
  min-width: 140px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info p {
  margin: 0 0 1rem;
}

/* Footer */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-explore {
  text-align: right;
}

.footer-explore .footer-social {
  justify-content: flex-end;
}

.footer h4 {
  color: var(--gold);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.counties {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-qr {
  width: 80px;
  margin-top: 0.5rem;
}

/* Simulator page */
.sim-page {
  padding-top: calc(var(--nav-height) + 2rem);
  min-height: 100vh;
  background: var(--gray-100);
}

.sim-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
}

.sim-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  align-self: start;
}

.sim-sidebar label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.sim-sidebar select {
  width: 100%;
  padding: 0.65rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-family: inherit;
}

.sim-main {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.sim-main h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.sim-main .sim-desc {
  color: var(--gray-600);
  margin: 0 0 2rem;
}

.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.calc-form .field {
  display: flex;
  flex-direction: column;
}

.calc-form label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.calc-form input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
}

.results-panel {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-stat {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.result-stat .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.result-stat .label {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.chart-wrap {
  position: relative;
  height: 320px;
  margin: 1.5rem 0;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-table th,
.results-table td {
  padding: 0.6rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--gray-200);
}

.results-table th {
  text-align: left;
  background: var(--navy);
  color: var(--white);
}

.results-table th:not(:first-child),
.results-table td {
  text-align: right;
}

.insight-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.insight-box strong {
  color: var(--gold-light);
}

.compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.compare-col {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
}

.compare-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .book-grid,
  .framework-layout,
  .contact-grid,
  .footer-grid,
  .sim-layout {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sim-sidebar {
    position: static;
  }

  .footer-explore {
    text-align: left;
  }

  .footer-explore .footer-social {
    justify-content: flex-start;
  }
}

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