/* ==========================================================================
   Destiny Health Sentinel — Design System
   ========================================================================== */

:root {
  --navy: #070d19;
  --navy-2: #0d1830;
  --navy-3: #101d3d;
  --blue: #2f6fe0;
  --blue-light: #6fa8ff;
  --silver: #c9d2e3;
  --white: #ffffff;
  --text-dark: #131826;
  --text-body: #4a5266;
  --gray-bg: #f4f6fb;
  --border: #e4e8f2;
  --success: #1fa971;
  --radius: 14px;
  --shadow: 0 20px 45px -20px rgba(7, 13, 25, 0.25);
  --shadow-sm: 0 8px 20px -10px rgba(7, 13, 25, 0.18);
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 64px 0; }

.section--navy {
  background: var(--navy);
  color: var(--silver);
}

.section--navy h2, .section--navy h3 { color: var(--white); }

.section--gray { background: var(--gray-bg); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(47, 111, 224, 0.55); }

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

.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

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

.btn-dark:hover { background: var(--navy-2); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ==========================================================================
   Top utility bar
   ========================================================================== */

.topbar {
  background: var(--navy);
  color: var(--silver);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-contact { display: flex; gap: 22px; flex-wrap: wrap; }

.topbar a { color: var(--silver); }
.topbar a:hover { color: var(--white); }

.topbar-languages { color: rgba(201, 210, 227, 0.7); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 52px; width: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.brand-text span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover, .nav-links a.active { color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.btn-text-short { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 55%, #142752 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(111, 168, 255, 0.18), transparent 45%),
                     radial-gradient(circle at 85% 75%, rgba(47, 111, 224, 0.22), transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 90px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 22px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--blue-light); }

.hero p.lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-checks li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(31, 169, 113, 0.2);
  color: #4ede9c;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 40px 34px;
  backdrop-filter: blur(6px);
  width: 100%;
  max-width: 380px;
}

.hero-card img { margin: 0 auto 22px; height: 120px; width: auto; }

.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}

.hero-stat {
  text-align: center;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
}

.hero-stat span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.65); }

.trust-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.trust-strip .container {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  padding: 22px 24px;
  text-align: center;
}

.trust-item strong { display: block; color: var(--white); font-size: 1rem; }
.trust-item span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
}

.page-hero .eyebrow { color: var(--blue-light); }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { max-width: 620px; margin: 0 auto; color: rgba(255, 255, 255, 0.8); font-size: 1.05rem; }

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.breadcrumb a:hover { color: var(--white); }

/* ==========================================================================
   Services
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.service-card img { height: 210px; width: 100%; object-fit: cover; }

.service-media {
  height: 190px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #17306a 60%, var(--blue) 130%);
  overflow: hidden;
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12), transparent 40%),
                     radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08), transparent 45%);
}

.service-media svg { width: 74px; height: 74px; position: relative; z-index: 1; }

.about-visual {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--navy) 0%, #17306a 60%, var(--blue) 130%);
  padding: 54px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--white);
  text-align: center;
}

.about-visual svg { width: 90px; height: 90px; }

.about-visual-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.about-visual-stats div {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 14px 8px;
}

.about-visual-stats strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.4rem; }
.about-visual-stats span { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

.icon-inline { width: 20px; height: 20px; flex-shrink: 0; }

.service-card-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }

.service-card-body h3 { margin-bottom: 10px; }
.service-card-body p { margin-bottom: 16px; }

.service-card-body ul { margin-bottom: 22px; display: flex; flex-direction: column; gap: 8px; }

.service-card-body ul li {
  display: flex;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.service-card-body ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 8px;
  flex-shrink: 0;
}

.service-card-body .btn { margin-top: auto; align-self: flex-start; }

/* Stats band */
.stats-band {
  background: var(--navy);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 48px 0;
}

.stats-grid strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--blue-light);
}

.stats-grid span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }

/* About split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.split h2 { margin-bottom: 18px; }
.split p { margin-bottom: 16px; }

/* Why choose us */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; }

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 28px;
}

.step-card { position: relative; padding-left: 8px; }

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  color: var(--blue);
  opacity: 0.35;
  margin-bottom: 6px;
  display: block;
}

.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 0.95rem; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.stars { color: #f5a623; letter-spacing: 3px; margin-bottom: 14px; font-size: 0.95rem; }

.testimonial-card p.quote { font-size: 0.95rem; margin-bottom: 18px; color: var(--text-body); }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.avatar-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-author strong { display: block; font-size: 0.92rem; color: var(--text-dark); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-body); }

.testimonial-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-body);
  margin-top: 28px;
  opacity: 0.75;
}

/* Google rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.rating-badge .stars { margin: 0; }

/* States / coverage grid */
.states-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.states-region { margin-bottom: 22px; }
.states-region:last-child { margin-bottom: 0; }

.states-region h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  font-weight: 700;
}

.state-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.state-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--gray-bg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #16295a 100%);
  color: var(--white);
  text-align: center;
  border-radius: 24px;
  padding: 60px 40px;
  margin: 0 24px;
  max-width: calc(var(--max-width) - 48px);
  margin-inline: auto;
}

.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; color: rgba(255, 255, 255, 0.8); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.contact-method {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-method:last-child { border-bottom: none; }

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-method strong { display: block; color: var(--text-dark); margin-bottom: 2px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }

.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }

.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--gray-bg);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

.form-note { font-size: 0.8rem; color: var(--text-body); margin-top: 12px; text-align: center; }

.form-success {
  display: none;
  background: #eafaf1;
  border: 1px solid #b7ecd1;
  color: #146c43;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand strong { font-family: 'Playfair Display', serif; color: var(--white); font-size: 1.1rem; }

.footer-grid h4 {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 900px;
  margin-top: 18px;
  line-height: 1.6;
}

/* Legal pages */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content h2 { margin: 34px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { margin-bottom: 14px; color: var(--text-body); }
.legal-content ul { list-style: disc; padding-left: 22px; }
.legal-updated { color: var(--text-body); font-size: 0.9rem; margin-bottom: 30px; }

/* Sticky mobile CTA */
.mobile-cta-bar {
  display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-visual { order: -1; }
  .service-grid, .feature-grid, .steps-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split img { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-text-full { display: none; }
  .nav-cta .btn-text-short { display: inline; }
  .nav-cta .btn { padding: 12px 18px; }
  .topbar-languages { display: none; }
  .topbar-contact { gap: 14px; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; margin: 0 16px; }
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    box-shadow: var(--shadow);
    gap: 18px;
    border-top: 1px solid var(--border);
  }
}
