/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F4F7F9;
  --bg-alt: #EAF1F5;
  --fg: #1A2E3B;
  --fg-muted: #4A6070;
  --teal: #2A7B7B;
  --teal-light: #C8E6E6;
  --teal-dark: #1D5C5C;
  --amber: #C9852A;
  --amber-light: #F5DFC0;
  --navy: #0F1E2B;
  --border: #CDD8E0;
  --warm-gray: #8A97A0;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

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

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.78rem;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 30, 43, 0.72) 0%,
    rgba(26, 46, 59, 0.55) 50%,
    rgba(42, 123, 123, 0.30) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 16px rgba(42, 123, 123, 0.35);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

/* === SHARED SECTION STYLES === */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
  color: var(--fg);
  font-weight: 800;
}

.section-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  margin-bottom: 3.5rem;
  max-width: 560px;
}

.section-header {
  max-width: 1100px;
  margin: 0 auto;
}

/* === SERVICES === */
.services {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--bg);
}

.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(42, 123, 123, 0.10);
  transform: translateY(-3px);
  border-color: var(--teal-light);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.service-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

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

/* === HOW IT WORKS === */
.how-it-works {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--teal);
}

.how-it-works-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how-it-works .section-title { color: #fff; }
.how-it-works .section-sub { color: rgba(255,255,255,0.65); }
.how-it-works .section-sub { margin-bottom: 3.5rem; }

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

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 2rem);
  right: calc(16.67% + 2rem);
  height: 2px;
  background: rgba(255,255,255,0.25);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* === WHY HEALTHBRIDGE === */
.why-healthbridge {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--bg-alt);
}

.why-healthbridge-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.reason-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  border-left: 4px solid var(--amber);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.reason-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.reason-text {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* === SOCIAL PROOF === */
.social-proof {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--bg);
}

.social-proof-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.4rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 2rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-quote::before {
  content: '"';
  font-size: 1.5em;
  color: var(--teal-light);
  font-style: normal;
  font-weight: 800;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.1em;
}

.testimonial-attribution {
  font-size: 0.82rem;
  color: var(--fg-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === INQUIRY FORM === */
.inquiry-form {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--navy);
}

.inquiry-form-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.inquiry-form .section-title { color: #fff; }

.inquiry-form .section-sub {
  color: rgba(255,255,255,0.55);
  margin-bottom: 0;
}

.form-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  line-height: 1.6;
}

.inquiry-form form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 123, 123, 0.15);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A6070' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-submit {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--teal);
  border: none;
  border-radius: 6px;
  padding: 1rem 2rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s ease, transform 0.1s ease;
  letter-spacing: 0.01em;
}

.form-submit:hover {
  background: var(--teal-dark);
}

.form-submit:active {
  transform: scale(0.98);
}

.form-success {
  display: none;
  background: rgba(42, 123, 123, 0.12);
  border: 1px solid rgba(42, 123, 123, 0.35);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

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

.form-success-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.form-success-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

/* === FOOTER === */
.footer {
  background: #0A1520;
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 0.6rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 260px;
}

.footer-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-contact-item {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-eyebrow { font-size: 0.72rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps::before { display: none; }
  .reasons-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .inquiry-form-inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { padding: 1.5rem 1rem; }
}

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

.fade-in {
  animation: fadeInUp 0.6s ease both;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.25s; }
.fade-in:nth-child(4) { animation-delay: 0.35s; }
