/* TB Health — Home & Community Care */
:root {
  --ink: #16324f;
  --teal: #2a7f62;
  --teal-dark: #1f5f49;
  --paper: #faf8f4;
  --white: #ffffff;
  --amber: #e9b44c;
  --text: #2a2e33;
  --muted: #5c6670;
  --line: #e6e1d8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 50, 79, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, .brand-name {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
}
img { max-width: 100%; }
a { color: var(--teal-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.topbar {
  background: var(--ink);
  color: #dbe6f1;
  font-size: 14px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-size: 24px; letter-spacing: 0.2px; }
.brand-name span { color: var(--teal); }
.brand-tag { display: block; font-family: "Public Sans", sans-serif; font-size: 12px;
  color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; }

nav.main { display: flex; gap: 28px; align-items: center; }
nav.main a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a.active { border-bottom-color: var(--amber); }
.btn {
  display: inline-block; background: var(--teal); color: #fff !important;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 15.5px; border: none; cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--teal-dark); }
.btn.ghost { background: transparent; color: var(--ink) !important;
  border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff !important; }
#nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); }

/* hero */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px;
  padding-top: 72px; padding-bottom: 72px; align-items: center;
}
.hero h1 { font-size: 46px; margin-bottom: 18px; }
.hero p.lede { font-size: 19px; color: var(--muted); margin-bottom: 28px; max-width: 34em; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px;
}
.hero-card h3 { margin-bottom: 14px; font-size: 20px; }
.hero-card ul { list-style: none; }
.hero-card li { padding: 9px 0 9px 34px; position: relative; border-top: 1px solid var(--line); }
.hero-card li:first-child { border-top: 0; }
.hero-card li::before {
  content: "✓"; position: absolute; left: 4px; top: 8px;
  color: var(--teal); font-weight: 800;
}

/* trust bar */
.trustbar { background: var(--ink); color: #fff; }
.trustbar .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-top: 26px; padding-bottom: 26px; text-align: center;
}
.trustbar strong { display: block; font-size: 15.5px; }
.trustbar span { font-size: 13.5px; color: #b9c9da; }

/* sections */
section.block { padding: 72px 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.kicker {
  color: var(--teal); text-transform: uppercase; letter-spacing: 2px;
  font-size: 13px; font-weight: 800; margin-bottom: 10px;
}
section.block h2 { font-size: 34px; margin-bottom: 14px; }
.section-intro { color: var(--muted); max-width: 46em; margin-bottom: 40px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
section.block.alt .card { box-shadow: none; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: #e8f3ee;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--teal); font-size: 22px;
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--amber); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: "Fraunces", serif; font-size: 18px;
  border: 3px solid var(--paper);
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); }

/* coverage */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.coverage .badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.badge {
  background: #e8f3ee; color: var(--teal-dark); font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid #cfe6db;
}

/* CTA band */
.cta-band { background: var(--teal); color: #fff; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 28px; }
.cta-band p { color: #d7ece3; }
.cta-band .btn { background: var(--white); color: var(--ink) !important; }
.cta-band .btn:hover { background: var(--paper); }

/* page hero (inner pages) */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 48px; }
.page-hero h1 { font-size: 40px; margin-bottom: 10px; }
.page-hero p { color: var(--muted); max-width: 44em; }

/* service detail */
.service-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 18px;
}
.service-row .icon {
  width: 56px; height: 56px; border-radius: 14px; background: #e8f3ee;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 26px;
}
.service-row h3 { font-size: 21px; margin-bottom: 6px; }
.service-row p { color: var(--muted); font-size: 15.5px; }
.service-row .pill { display: inline-block; margin: 10px 6px 0 0; font-size: 13px;
  background: var(--paper); border: 1px solid var(--line); padding: 5px 12px;
  border-radius: 999px; color: var(--ink); font-weight: 600; }

/* values / about */
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
form.contact { background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
form.contact label { display: block; font-weight: 700; font-size: 14.5px;
  margin: 18px 0 6px; color: var(--ink); }
form.contact label:first-child { margin-top: 0; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font: inherit; background: var(--paper);
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus {
  outline: 2px solid var(--teal); border-color: var(--teal); background: #fff;
}
form.contact .btn { margin-top: 22px; width: 100%; }
.contact-info .item { display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--line); }
.contact-info .item .icon { color: var(--teal); font-size: 22px; width: 30px; }
.contact-info strong { display: block; color: var(--ink); }
.notice { font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* footer */
footer.site { background: var(--ink); color: #b9c9da; margin-top: 0; }
footer.site .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding-top: 56px; padding-bottom: 40px;
}
footer.site h4 { color: #fff; font-size: 15px; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 1.4px; }
footer.site a { color: #b9c9da; text-decoration: none; display: block; padding: 4px 0; }
footer.site a:hover { color: #fff; }
footer.site .fine {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 24px;
  font-size: 13px; text-align: center; color: #8ba1b8;
}
footer.site .brand-name { color: #fff; font-size: 22px; }

/* responsive */
@media (max-width: 900px) {
  .hero .wrap, .coverage, .contact-grid { grid-template-columns: 1fr; }
  .grid3, .steps, .value-list { grid-template-columns: 1fr; }
  .trustbar .wrap { grid-template-columns: repeat(2, 1fr); }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); padding: 10px 24px 20px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; width: 100%; }
  #nav-toggle { display: block; }
}
