/* ==========================================================================
   CareHub — design system
   Original styles for carehubaus.com
   ========================================================================== */

:root {
  --ink:        #0d2231;   /* primary text / deep navy */
  --ink-soft:   #3a4a55;
  --muted:      #5d6b74;
  --brand:      #0e9384;   /* care teal */
  --brand-dark: #0b7567;
  --brand-soft: #e7f4f2;
  --accent:     #f59e0b;   /* warm amber, used sparingly */
  --bg:         #ffffff;
  --bg-soft:    #f4f9f8;
  --bg-deep:    #08303a;   /* dark sections */
  --line:       #e3ecec;
  --line-soft:  #eef4f4;
  --white:      #ffffff;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(13,34,49,.06), 0 1px 3px rgba(13,34,49,.05);
  --shadow:     0 10px 30px -12px rgba(13,34,49,.18);
  --shadow-lg:  0 30px 60px -20px rgba(13,34,49,.28);
  --maxw:       1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: #d7e6e6; }
.section--deep h1, .section--deep h2, .section--deep h3 { color: #fff; }
.section--deep p { color: #b9cdcd; }

.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
}
.section--deep .eyebrow { color: #5fd6c8; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(14,147,132,.6); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f0f7f6; color: var(--brand-dark); }
.btn--lg { padding: 16px 30px; font-size: 1.06rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--brand-dark); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions a.text-link { font-weight: 700; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 500px at 75% -10%, var(--brand-soft), transparent 60%),
              linear-gradient(180deg, #fbfdfd, #fff);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--brand-dark); }
.hero .lead { margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--brand); flex: none; }
.hero-visual {
  background: linear-gradient(160deg, #0e9384, #08303a);
  border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg);
  color: #fff;
}
.hero-visual .mock {
  background: #fff; border-radius: 12px; padding: 18px; color: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.4);
}
.mock-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.mock-row:last-child { border-bottom: 0; }
.mock-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; flex: none; }
.mock-line { height: 9px; border-radius: 5px; background: #e8eeee; }
.mock-pill { margin-left: auto; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.mock-pill.amber { background: #fef3c7; color: #b45309; }

/* ---------- Logo strip ---------- */
.logos { padding: 40px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.logos p { text-align: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 22px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; }
.logos-row .logo-item { font-weight: 800; font-size: 1.15rem; color: #94a3a3; letter-spacing: -0.01em; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d2e6e3; }
.card .icon {
  width: 50px; height: 50px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .98rem; }

/* ---------- Split feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 88px; }
.feature-row.reverse .feature-text { order: 2; }
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; }
.feature-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink-soft); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b7567' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.panel {
  background: linear-gradient(160deg, #f4f9f8, #fff);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
}
.stat-row { display: flex; gap: 14px; }
.stat { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; color: var(--brand-dark); }
.stat span { font-size: .82rem; color: var(--muted); }

/* ---------- How it works ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.step { position: relative; padding-top: 12px; }
.step .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}

/* ---------- Testimonial ---------- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote { font-size: 1.5rem; line-height: 1.45; font-weight: 600; color: #fff; margin: 0 0 22px; letter-spacing: -0.01em; }
.quote .cite { color: #9fc6c0; font-weight: 600; }
.quote .cite b { color: #fff; }

/* ---------- Stats band ---------- */
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.metrics .m b { display: block; font-size: 2.6rem; font-weight: 800; color: var(--brand-dark); letter-spacing: -0.03em; }
.metrics .m span { color: var(--muted); font-weight: 600; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.price-card.featured::after {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase;
}
.price-card h3 { font-size: 1.25rem; }
.price-card .price { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 6px 0 2px; }
.price-card .price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-card .per { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; }
.price-card li { padding-left: 28px; position: relative; margin-bottom: 11px; color: var(--ink-soft); font-size: .96rem; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b7567' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 540px; margin: 0 auto 26px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: #b9cdcd; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #9fb6b6; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-about { font-size: .95rem; color: #91a8a8; max-width: 300px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: #7e9696; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 64px 0 36px; background: radial-gradient(700px 360px at 80% -20%, var(--brand-soft), transparent 60%), #fbfdfd; }
.page-hero .lead { margin-left: auto; margin-right: auto; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.flash { padding: 14px 16px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; margin-bottom: 18px; display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .feature-row, .feature-row.reverse .feature-text { grid-template-columns: 1fr; order: 0; }
  .hero-visual { order: -1; }
  .grid-3, .steps, .price-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  /* Collapsing mobile menu: brand + hamburger on top row, links/actions wrap below when open */
  .nav { flex-wrap: wrap; height: auto; min-height: 72px; }
  .nav-toggle { display: block; order: 2; }
  .nav-links { display: none; order: 3; }
  .nav-actions { display: none; order: 4; }
  .nav.open { padding-bottom: 18px; }
  .nav.open .nav-links,
  .nav.open .nav-actions {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; gap: 14px;
  }
  .nav.open .nav-links {
    border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 6px;
  }
  .nav.open .nav-links a { font-size: 1.05rem; }
  .nav.open .nav-actions .btn,
  .nav.open .nav-actions .text-link {
    width: 100%; text-align: center; justify-content: center;
  }
  .grid-2, .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid, .metrics { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
