/* index.css — TrueCare landing page */
:root {
  --bg: #F0F4F8;
  --card: #fff;
  --text: #0F172A;
  --sub: #475569;
  --muted: #94A3B8;
  --border: #E2E8F0;
  --blue: #2563EB;
  --blue2: #1D4ED8;
  --radius: 14px;
  --shadow-card: 0 10px 30px rgba(15,23,42,.1);
  --shadow-card-soft: 0 4px 16px rgba(15,23,42,.06);
  --max: 1200px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), 92%); margin: 0 auto; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.2px; }
p { margin: 0; color: var(--sub); font-weight: 400; }

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__logo {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: contain;
}
.brand__name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--sub);
  padding: 8px 12px;
  border-radius: 10px;
  transition: background .12s, color .12s;
}
.nav__link:hover { color: var(--text); background: rgba(37,99,235,.06); }
.nav__link--login {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(37,99,235,.3);
}
.nav__link--login:hover { background: var(--blue2); color: #fff; }
.navToggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 16px;
  cursor: pointer;
}
.mobileNav {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.96);
  padding: 10px 0;
}
.mobileNav a {
  display: block;
  padding: 10px 4%;
  color: var(--sub);
  font-weight: 700;
  transition: color .12s, background .12s;
}
.mobileNav a:hover { color: var(--text); background: rgba(37,99,235,.06); }
@media (max-width: 860px) {
  .nav { display: none; }
  .navToggle { display: inline-flex; }
}

/* ── Hero ── */
.hero { position: relative; min-height: 580px; }
.hero__media {
  height: 580px;
  background-image:
    linear-gradient(90deg, rgba(10,20,40,.88) 0%, rgba(15,23,42,.55) 50%, rgba(15,23,42,.15) 100%),
    url("../src/hero.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero__copy { max-width: 640px; padding: 22px 0; }
.hero__eyebrow {
  display: inline-block;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(99,155,255,.3);
  color: #93C5FD;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 58px;
  line-height: 1.03;
  letter-spacing: -1.5px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero h1 span { color: #93C5FD; }
.hero p {
  margin-top: 16px;
  max-width: 520px;
  color: rgba(255,255,255,.88);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font);
  transition: background .15s, box-shadow .15s, transform .1s;
  cursor: pointer;
  border: none;
}
.btn-hero:active { transform: translateY(1px); }
.btn-hero--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,.45);
}
.btn-hero--primary:hover {
  background: var(--blue2);
  box-shadow: 0 6px 28px rgba(37,99,235,.55);
}
.btn-hero--ghost {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}
.btn-hero--ghost:hover { background: rgba(255,255,255,.2); }
.hero__highlights { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
@media (max-width: 900px) { .hero__media { height: 540px; } .hero h1 { font-size: 44px; } }
@media (max-width: 480px) {
  .hero__media { height: 520px; }
  .hero h1 { font-size: 34px; letter-spacing: -0.8px; }
  .hero p { font-size: 14px; }
  .chip { font-size: 12px; padding: 5px 10px; }
}

/* ── Stats bar ── */
.stats-bar {
  background: #1E293B;
  padding: 22px 0;
  border-bottom: 1px solid #334155;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat-item:last-child { border-right: none; }
.stat-item__value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.stat-item__label {
  font-size: 13px;
  font-weight: 600;
  color: #94A3B8;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
@media (max-width: 600px) {
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 12px; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* ── Feature strip ── */
.strip { padding: 28px 0 16px; }
.strip__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.stripCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-soft);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: box-shadow .15s;
}
.stripCard:hover { box-shadow: var(--shadow-card); }
.stripCard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #38BDF8);
}
.stripCard__icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(37,99,235,.06);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stripCard h3 { font-size: 15px; font-weight: 800; }
.stripCard p { margin-top: 4px; font-size: 13px; line-height: 1.55; }
@media (max-width: 900px) { .strip__grid { grid-template-columns: 1fr; } }

/* ── Sections ── */
.section { padding: 36px 0; }
.section--alt {
  background: rgba(255,255,255,.65);
  border-top: 1px solid rgba(226,232,240,.85);
  border-bottom: 1px solid rgba(226,232,240,.85);
}
.section__head { margin-bottom: 24px; }
.section__eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.section h2 { font-size: 30px; font-weight: 800; letter-spacing: -.4px; }
.section__head p { margin-top: 8px; font-size: 16px; }

/* ── Services grid ── */
.servicesGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.serviceCard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-soft);
  padding: 22px;
  transition: transform .12s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}
.serviceCard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #38BDF8);
}
.serviceCard:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.serviceCard__icon {
  width: 50px; height: 50px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(37,99,235,.07);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.serviceCard h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.serviceCard p { font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) { .servicesGrid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .servicesGrid { grid-template-columns: 1fr; } }

/* ── Health tips ── */
.tipsList { display: flex; flex-direction: column; gap: 14px; }
.tipItem {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-soft);
  padding: 14px;
  display: flex;
  gap: 16px;
  transition: box-shadow .15s;
}
.tipItem:hover { box-shadow: var(--shadow-card); }
.tipItem__img {
  width: 120px; min-width: 120px; height: 92px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(37,99,235,.12), rgba(37,99,235,0)),
    url("../src/tip1.jpg") center/cover no-repeat;
}
.tipItem__img--two {
  background:
    linear-gradient(180deg, rgba(37,99,235,.12), rgba(37,99,235,0)),
    url("../src/tip2.jpg") center/cover no-repeat;
}
.tipItem__img--three {
  background:
    linear-gradient(180deg, rgba(37,99,235,.12), rgba(37,99,235,0)),
    url("../src/tip3.avif") center/cover no-repeat;
}
.tipItem h3 { font-size: 17px; font-weight: 800; }
.meta {
  margin-top: 4px;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.desc { margin-top: 6px; font-size: 15px; line-height: 1.65; }
@media (max-width: 480px) {
  .tipItem { flex-direction: column; }
  .tipItem__img { width: 100%; min-width: unset; height: 160px; }
}

/* ── Footer ── */
.footer {
  background: #0F172A;
  padding: 40px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer .brand__name { color: #fff; }
.footer__tagline {
  font-size: 13px;
  color: #64748B;
  margin-top: 8px;
}
.footer__links { display: flex; gap: 48px; }
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 15px;
  font-weight: 500;
  color: #94A3B8;
  transition: color .12s;
}
.footer__col a:hover { color: #fff; }
.brand--footer { margin-bottom: 4px; }
.brand__logo--footer { border-color: rgba(255,255,255,.15); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}
@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__links { flex-wrap: wrap; gap: 24px; }
  .footer__bottom { justify-content: center; text-align: center; }
}
