/* ═══════════════════════════════════════════
   CareCast Marketing Site — styles.css
   Colors: Navy #144B84 | Light Blue #8CBCED | White #fff | Off-white #f8f9fa | Text #1a1a2e
═══════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ──────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ──────────────────────────── */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
p  { color: #444; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8CBCED;
  margin-bottom: 0.75rem;
}
.section-label.light { color: #8CBCED; }

.section-intro {
  font-size: 1.05rem;
  color: #555;
  max-width: 680px;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.section-intro.light { color: rgba(255,255,255,0.8); }

/* ── Buttons ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary  { background: #144B84; color: #fff; }
.btn-outline  { background: transparent; color: #144B84; border-color: #144B84; }
.btn-ghost    { background: transparent; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.4); }
.btn-white    { background: #fff; color: #144B84; border-color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }

/* ── Sections ──────────────────────────── */
.section { padding: 96px 0; }
.section-white { background: #fff; }
.section-light { background: #f8f9fa; }
.section-navy  { background: #144B84; }
.section-navy h2, .section-navy p { color: #fff; }
.section-navy .section-intro { color: rgba(255,255,255,0.82); }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  box-shadow: 0 1px 4px rgba(20,75,132,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { height: 36px; width: auto; }
.logo-link { flex-shrink: 0; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
}
.primary-nav a:hover { color: #144B84; background: #f0f5fb; }
.primary-nav .btn-outline { margin-left: 8px; padding: 8px 18px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #144B84;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #144B84 0%, #0d3460 100%);
  padding: 96px 0 80px;
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8CBCED;
  margin-bottom: 1rem;
}

.hero h1 { color: #fff; margin-bottom: 1.25rem; }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Frame mockup */
.hero-visual { display: flex; justify-content: center; }

.frame-mockup {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  padding: 20px;
  width: 100%;
  max-width: 300px;
  border: 3px solid #1a1a2e;
}

.frame-header { text-align: center; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.frame-day   { display: block; font-size: 1.3rem; font-weight: 700; color: #1a1a2e; }
.frame-date  { display: block; font-size: 0.8rem; color: #777; }

.frame-events { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.frame-event {
  font-size: 0.78rem;
  color: #333;
  padding: 4px 0;
}
.frame-event.highlight {
  background: #f0f5fb;
  border-radius: 5px;
  padding: 5px 8px;
  font-weight: 600;
  color: #144B84;
}
.frame-event.muted { color: #888; font-style: italic; font-size: 0.72rem; }

.frame-footer {
  text-align: center;
  font-size: 0.75rem;
  font-style: italic;
  color: #144B84;
  font-weight: 600;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

/* ═══════════════════════════════════════════
   STAT BAND
═══════════════════════════════════════════ */
.stat-band {
  background: #0d3460;
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   PROBLEM
═══════════════════════════════════════════ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.problem-card {
  background: #fff;
  border: 1px solid #e4ecf4;
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}
.problem-card:hover { box-shadow: 0 6px 24px rgba(20,75,132,0.1); }

.problem-icon {
  width: 44px;
  height: 44px;
  color: #144B84;
  margin-bottom: 16px;
}
.problem-icon svg { width: 100%; height: 100%; }

.problem-card h3 { color: #144B84; margin-bottom: 8px; }
.problem-card p  { font-size: 0.92rem; line-height: 1.65; }

/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
}

.how-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #144B84;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.step-content h3 { color: #144B84; margin-bottom: 8px; }
.step-content p  { font-size: 0.93rem; line-height: 1.65; }

/* ═══════════════════════════════════════════
   FOR COMMUNITIES
═══════════════════════════════════════════ */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.community-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 24px;
  transition: background 0.2s;
}
.community-card:hover { background: rgba(255,255,255,0.13); }
.community-card h3 { color: #fff; margin-bottom: 8px; font-size: 1rem; }
.community-card p  { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.65; }

/* ═══════════════════════════════════════════
   QUOTES / VALIDATION
═══════════════════════════════════════════ */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.quote-card {
  background: #fff;
  border: 1px solid #e4ecf4;
  border-left: 4px solid #144B84;
  border-radius: 0 10px 10px 0;
  padding: 24px;
}

.quote-card blockquote {
  font-size: 0.93rem;
  color: #333;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 12px;
}
.quote-card cite {
  font-size: 0.8rem;
  color: #777;
  font-style: normal;
  font-weight: 600;
}

.proof-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #e4ecf4;
  border-radius: 10px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.proof-icon {
  width: 22px;
  height: 22px;
  background: #144B84;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   MARKET
═══════════════════════════════════════════ */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.market-card {
  border: 1px solid #e4ecf4;
  border-radius: 10px;
  padding: 28px 24px;
  background: #fff;
}

.market-phase {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8CBCED;
  margin-bottom: 8px;
}

.market-card h3 { color: #144B84; margin-bottom: 10px; }
.market-card p  { font-size: 0.91rem; line-height: 1.65; }

/* ═══════════════════════════════════════════
   TEAM
═══════════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: #fff;
  border: 1px solid #e4ecf4;
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.team-card:hover { box-shadow: 0 6px 24px rgba(20,75,132,0.1); }

.team-avatar {
  width: 64px;
  height: 64px;
  background: #144B84;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 16px;
  letter-spacing: 0.05em;
}

.team-card h3 { color: #144B84; margin-bottom: 4px; }

.team-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8CBCED;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.team-card p { font-size: 0.9rem; line-height: 1.6; }

/* ═══════════════════════════════════════════
   CTA / CONTACT
═══════════════════════════════════════════ */
.cta-section { text-align: center; }

.cta-inner { max-width: 700px; margin: 0 auto; }

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-note {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}
.cta-note a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: #0d3460;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo { height: 28px; width: auto; margin-bottom: 6px; }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 12px;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; }

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤900px)
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .section { padding: 64px 0; }

  .hero-inner        { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual       { order: -1; }
  .hero              { text-align: center; padding: 72px 0 64px; }
  .hero-ctas         { justify-content: center; }

  .stats-grid        { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat-number       { font-size: 1.6rem; }

  .problem-grid      { grid-template-columns: 1fr; }
  .how-grid          { grid-template-columns: 1fr; gap: 28px; }
  .community-grid    { grid-template-columns: 1fr; }
  .quotes-grid       { grid-template-columns: 1fr; }
  .market-grid       { grid-template-columns: 1fr; }
  .team-grid         { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤640px)
═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .section { padding: 48px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e8edf2;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 4px;
    z-index: 99;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 14px; }
  .primary-nav .btn-outline { margin-left: 0; margin-top: 8px; text-align: center; justify-content: center; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .frame-mockup { max-width: 240px; }

  .cta-buttons { flex-direction: column; align-items: center; }

  .footer-inner { flex-direction: column; }

  .proof-band { gap: 12px; }
}
