/* ── Esperanza Health — Site Styles ── */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  --blue-500: #3478F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --green-500: #22C55E;
  --green-600: #16A34A;
  --navy-900: #0F1A2E;
  --navy-800: #162036;
  --warm-50: #FDFCFA;
  --warm-100: #F8F6F1;
  --warm-200: #EFECE4;
  --warm-300: #DDD8CC;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-muted: #8A8A8A;
  --font-display: 'DM Serif Text', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--warm-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo span {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 120, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--warm-100);
  border: 1px solid var(--warm-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 19px);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 36px;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.app-store-badge img {
  height: 48px;
}

.hero-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--navy-900);
  color: white;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-coming-soon .icon {
  font-size: 18px;
}

/* ── Features ── */

.features {
  padding: 80px 24px 100px;
  background: var(--warm-100);
  border-top: 1px solid var(--warm-200);
}

.features-inner {
  max-width: 960px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  color: var(--navy-900);
  margin-bottom: 12px;
}

.features-header p {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
  background: var(--warm-50);
  border: 1px solid var(--warm-200);
  border-radius: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--warm-300);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.feature-icon.blue    { background: rgba(52, 120, 246, 0.1); color: var(--blue-600); }
.feature-icon.green   { background: rgba(34, 197, 94, 0.1);  color: var(--green-600); }
.feature-icon.amber   { background: rgba(234, 179, 8, 0.1);  color: #B45309; }
.feature-icon.red     { background: rgba(239, 68, 68, 0.1);  color: #DC2626; }
.feature-icon.purple  { background: rgba(139, 92, 246, 0.1); color: #7C3AED; }
.feature-icon.cyan    { background: rgba(6, 182, 212, 0.1);  color: #0891B2; }

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 400;
}

/* ── CTA ── */

.cta {
  padding: 80px 24px;
  text-align: center;
}

.cta-inner {
  max-width: 540px;
  margin: 0 auto;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 32px);
  color: var(--navy-900);
  margin-bottom: 12px;
}

.cta p {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 28px;
}

/* ── Footer ── */

.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--warm-200);
  background: var(--warm-100);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* ── Legal Pages ── */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--navy-900);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-page p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul {
  margin: 8px 0 16px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.legal-page li {
  margin-bottom: 4px;
}

.legal-page a {
  color: var(--blue-600);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .nav-links {
    gap: 18px;
  }

  .hero {
    min-height: auto;
    padding: 130px 20px 60px;
  }

  .features {
    padding: 60px 20px 80px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
