/* ===== Cadence Health Media — Global Styles ===== */
:root {
  --accent: #1a6b5a;
  --accent-dark: #155a4a;
  --accent-light: #e8f3f0;
  --ink: #0b1a2e;
  --paper: #f7f6f3;
  --border: #e2e0db;
  --muted: #6b7280;
  --white: #ffffff;
  --ink-light: #374151;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 246, 243, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.nav-logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--accent-dark) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-p {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.btn-primary:hover, .btn-p:hover { background: var(--accent-dark); }

.btn-secondary, .btn-s {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-secondary:hover, .btn-s:hover { background: var(--accent-light); }

/* ===== SECTION UTILITIES ===== */
.section-label, .s-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title, .s-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.section-subtitle, .s-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: 12px;
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 96px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 720px;
}

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

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-content { display: flex; flex-direction: column; }

.hero .btn-primary,
.hero .btn-secondary { margin-right: 12px; margin-bottom: 12px; }

/* ===== SERVICES ===== */
.services {
  padding: 96px 0;
  background: var(--paper);
}

.services .section-title { font-size: 2.5rem; margin-bottom: 8px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}

.service-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== RESULTS ===== */
.results {
  padding: 96px 0;
  background: var(--accent);
}

.results .section-label { color: rgba(255,255,255,0.7); }
.results .section-title { color: var(--white); font-size: 2.25rem; margin-bottom: 0; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.result-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 32px;
}

.result-stat {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.result-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.result-card p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
}

.results-note {
  margin-top: 32px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-style: italic;
}

/* ===== ABOUT ===== */
.about {
  padding: 96px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.about .section-title { font-size: 2.25rem; margin-bottom: 40px; }

.about-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 20px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.about-tags span {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(26,107,90,0.2);
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.highlight-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
}

.highlight-number {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.highlight-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}

/* ===== WHO IT'S FOR ===== */
.for-who {
  padding: 96px 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
}

.for-who .section-title { font-size: 2.25rem; margin-bottom: 0; }

.for-who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.for-who-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}

.for-who-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.for-who-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.for-who-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== APPROACH ===== */
.approach {
  padding: 96px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.approach .section-title { font-size: 2.25rem; margin-bottom: 8px; }

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
  position: relative;
}

.approach-step {
  padding: 0;
}

.step-number {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
}

.approach-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.approach-step p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== TOOLS PROMO ===== */
.tools-promo {
  padding: 96px 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
}

.tools-promo .section-title { font-size: 2.25rem; margin-bottom: 0; }

.tools-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.tools-promo-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.tools-feature-list {
  list-style: none;
  margin-bottom: 32px;
}

.tools-feature-list li {
  color: var(--ink-light);
  padding: 10px 0;
  padding-left: 22px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.925rem;
}

.tools-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.tools-promo-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.tools-promo-pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 4px 20px rgba(26, 107, 90, 0.1);
}

.pricing-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.pricing-tier {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.pricing-card--featured .pricing-tier { color: var(--accent); }

.pricing-amount {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-amount span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 96px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.faq-section .section-title { font-size: 2.25rem; margin-bottom: 0; }

.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }

.faq-a { display: none; padding-bottom: 20px; }
.faq-a.open { display: block; }

.faq-a p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-a a { color: var(--accent); text-decoration: underline; }

/* ===== EMAIL CAPTURE ===== */
#resources {
  padding: 96px 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
}

.email-capture {
  background: var(--accent);
  border-radius: 16px;
  padding: 56px 64px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.email-capture h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.email-capture p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.email-form input[name="name"],
.email-form input[name="company"] {
  flex: 1 1 calc(50% - 6px);
  min-width: 140px;
}

.email-form input {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.email-form input::placeholder { color: rgba(255,255,255,0.6); }
.email-form input:focus { border-color: rgba(255,255,255,0.7); }

.email-form button {
  background: var(--white);
  color: var(--accent);
  padding: 13px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.email-form button:hover { opacity: 0.9; }

.email-success {
  display: none;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-top: 16px;
}

.email-success.show { display: block; }

/* ===== FOOTER CTA ===== */
.footer-cta {
  padding: 96px 0;
  background: var(--ink);
  text-align: center;
}

.footer-cta .section-label { color: rgba(255,255,255,0.5); }

.footer-cta .section-title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-cta .section-subtitle {
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
}

.footer-cta .btn-primary {
  background: var(--accent);
}

.footer-cta .btn-primary:hover { background: var(--accent-dark); }

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0;
}

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

.footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-email { margin-top: 4px; }

.footer-email a {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}

.footer-email a:hover { color: rgba(255,255,255,0.8); }

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .mobile-toggle { display: block; }

  .hero { padding: 120px 0 64px; }
  .hero h1 { font-size: 2.5rem; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .for-who-grid { grid-template-columns: 1fr 1fr; }
  .approach-steps { grid-template-columns: 1fr 1fr; }
  .tools-promo-grid { grid-template-columns: 1fr; }

  .email-capture { padding: 36px 24px; }
  .email-form { flex-direction: column; }

  .footer .container { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .for-who-grid { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr 1fr; }
}
