/* ============================
   MedBridge Health — Design System
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0B3D5C;
  --navy-deep: #082B41;
  --teal: #1B8A8A;
  --teal-light: #E4F3F3;
  --amber: #F0A83A;
  --amber-deep: #D98F1F;
  --bg: #F8FAFB;
  --white: #FFFFFF;
  --ink: #1F2937;
  --ink-soft: #5B6B7A;
  --border: #E1E8ED;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(11, 61, 92, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 61, 92, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1180px;
  margin: 0 auto;
}

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

.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-deep);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s ease;
}

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

.nav-links a.active { color: var(--navy); font-weight: 600; }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover { background: var(--teal); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle svg { width: 26px; height: 26px; color: var(--navy-deep); }

/* ============================
   Buttons
   ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--amber-deep); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

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

.hero {
  padding: 76px 0 40px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 34px;
}

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

.hero-stats {
  display: flex;
  gap: 36px;
}

.hero-stats div strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--navy);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

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

.hero-photo-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  background: linear-gradient(135deg, var(--teal-light), var(--white));
}

.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.floating-card.fc-1 { top: 8%; left: -6%; }
.floating-card.fc-2 { bottom: 10%; right: -4%; }

.floating-card .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
}

/* ============================
   Wave divider — bridge-arc motif
   ============================ */

.wave-divider {
  width: 100%;
  height: 90px;
  display: block;
  margin-top: -2px;
}

.wave-divider path { fill: var(--white); }
.wave-divider.to-navy path { fill: var(--navy); }
.wave-divider.to-bg path { fill: var(--bg); }
.wave-divider.to-teal-light path { fill: var(--teal-light); }

/* ============================
   Section basics
   ============================ */

section { padding: 84px 0; }

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

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-white { background: var(--white); }
.section-teal-light { background: var(--teal-light); }

/* ============================
   Why choose us — feature strip
   ============================ */

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 26px; height: 26px; color: var(--white); }

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ============================
   How it works — steps
   ============================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
  color: var(--teal);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.05rem;
}

.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 0.93rem; }

.step-connector {
  position: absolute;
  top: 23px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 8px, transparent 8px 16px);
  z-index: 0;
}

/* ============================
   Services teaser cards
   ============================ */

.services-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.service-chip:hover { border-color: var(--teal); transform: translateY(-2px); }

.service-chip .ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-chip .ic svg { width: 22px; height: 22px; color: var(--teal); }
.service-chip span { font-weight: 600; font-size: 0.95rem; }

/* ============================
   CTA band
   ============================ */

.cta-band {
  background: var(--navy);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

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

.cta-band-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================
   Footer
   ============================ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand .logo-lockup { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: 0.9rem; max-width: 260px; }

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

.footer-col a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================
   Page header (inner pages)
   ============================ */

.page-header {
  padding: 56px 0 70px;
  text-align: center;
}

.page-header h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.page-header p { color: var(--ink-soft); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .hero-photo-frame { max-width: 300px; }
  .feature-strip, .services-teaser { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step-connector { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .container { padding: 0 20px; }
  .nav-wrap { padding: 16px 20px; }
  .hero { padding: 44px 0 20px; }
  section { padding: 60px 0; }
  .cta-band { padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================
   Scroll reveal
   ============================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-animate {
  animation: fadeInUp 0.8s cubic-bezier(.16,.84,.44,1) both;
}
.hero-animate.delay-1 { animation-delay: 0.12s; }
.hero-animate.delay-2 { animation-delay: 0.24s; }
