:root {
  --pine: #075f47;
  --deep: #063c31;
  --mint: #e9f4ef;
  --paper: #fbfcfa;
  --ink: #12251f;
  --muted: #61716b;
  --line: #dfe8e3;
  --shadow: 0 14px 42px rgba(17, 56, 45, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 34px)); margin: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 45% 45%;
  color: #fff;
  background: var(--pine);
  padding: 8px;
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; font-size: 17px; font-weight: 850; line-height: 1; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a { font-size: 12px; font-weight: 750; }
.main-nav a:hover,
.main-nav a.active { color: var(--pine); }
.phone-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #bad1c7;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 10px;
}
.pill-icon { width: 15px; height: 15px; display: inline-grid; place-items: center; color: var(--pine); }
.pill-icon svg { width: 15px; height: 15px; }
.phone-pill strong { display: block; color: var(--pine); font-size: 12px; }
.menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 20px;
}

.hero {
  position: relative;
  min-height: 510px;
  display: grid;
  align-items: center;
  background: url("assets/images/recovery-hero.png") center / cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 250, 247, .98) 0%, rgba(247, 250, 247, .88) 35%, rgba(247, 250, 247, .08) 68%);
}
.hero-content { position: relative; z-index: 1; max-width: 570px; padding: 62px 0 112px; }
.eyebrow { color: var(--pine); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 12px 0 18px; font-size: clamp(45px, 5vw, 70px); font-weight: 520; line-height: .98; letter-spacing: 0; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 11px 20px;
  font: 800 12px/1 Inter, Arial;
  cursor: pointer;
}
.btn-primary { color: #fff; background: var(--pine); box-shadow: 0 10px 22px rgba(7, 95, 71, .2); }
.btn-secondary { color: var(--deep); background: #fff; border-color: #c5d8cf; }
.btn:hover { transform: translateY(-1px); }

.trust-bar { position: relative; z-index: 3; margin-top: -54px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 8px 18px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border: 0; }
.icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pine);
  background: var(--mint);
  padding: 11px;
}
.icon svg { width: 100%; height: 100%; }
.trust-item strong { display: block; font-size: 12px; }
.trust-item small { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }

.section { padding: 62px 0; }
.section.soft { background: #f2f7f4; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 26px; }
.section-head.center { display: block; max-width: 700px; margin: 0 auto 34px; text-align: center; }
.section h2,
.page-hero h1 { margin: 8px 0 10px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 520; letter-spacing: 0; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.7; }
.grid { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { grid-template-columns: 1.08fr .92fr; align-items: stretch; }
.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(23, 55, 46, .055);
}
.cards-3 > .card,
.cards-4 > .card,
.cards-5 > .card { display: flex; flex-direction: column; height: 100%; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.text-link { display: inline-block; margin-top: auto; padding-top: 15px; color: var(--pine); font-size: 12px; font-weight: 850; }
.crop {
  height: 170px;
  background-image: url("assets/images/care-atlas.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
}
.crop.facility { background-position: 0 0; }
.crop.room { background-position: 50% 0; }
.crop.counsel { background-position: 100% 0; }
.crop.group { background-position: 0 100%; }
.crop.family { background-position: 50% 100%; }
.crop.team { background-position: 100% 100%; }
.help-panel,
.assessment-card { padding: 28px; background: linear-gradient(145deg, #fff, #edf6f1); }
.assessment-card { display: flex; flex-direction: column; }
.help-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.chip {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.chip .icon { margin: 0 auto 8px; }
.chip strong { font-size: 11px; line-height: 1.35; }
.checks { padding: 0; margin: 18px 0; list-style: none; }
.checks li { margin: 10px 0; color: var(--muted); font-size: 13px; }
.checks li::before { content: "\2713"; margin-right: 9px; color: var(--pine); font-weight: 900; }

.support-band { padding: 28px 0; color: #fff; background: linear-gradient(110deg, var(--deep), #0c7960); }
.support-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.support-row h2 { margin: 0; font-size: 26px; }
.support-row p { margin: 7px 0 0; color: #cee3db; }
.support-row .btn-secondary { color: var(--pine); }

.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 22px; }
.stat b { display: block; font-size: 21px; }
.stat small { color: var(--muted); }
.quote { display: grid; grid-template-columns: 1fr 260px; align-items: center; overflow: hidden; }
.quote blockquote { margin: 0; padding: 34px; font-size: 20px; line-height: 1.5; }
.quote .crop { width: 100%; height: 220px; }

.page-hero { padding: 56px 0 40px; background: linear-gradient(135deg, #fff, #eff6f2); }
.breadcrumbs { color: var(--muted); font-size: 11px; }
.page-hero p { max-width: 650px; }
.steps { grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; align-items: start; gap: 16px; }
.steps::before { content: ""; position: absolute; top: 23px; left: 10%; right: 10%; height: 2px; background: #9bcbbd; }
.step { position: relative; text-align: center; }
.step-no {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 7px solid #e7f4ef;
  border-radius: 50%;
  color: #fff;
  background: #149478;
  font-weight: 900;
}
.step h3 { margin: 0 0 6px; font-size: 14px; line-height: 1.3; }
.step p { max-width: 170px; margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.55; }
.feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { display: flex; gap: 13px; padding: 16px; border-radius: 9px; background: #f5f9f7; }
.feature > span {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--pine);
}
.feature > span svg { width: 18px; height: 18px; }
.feature strong { font-size: 13px; }
.feature p { margin-top: 4px; font-size: 11px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0; }
.tab { padding: 9px 17px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.tab.active { color: #fff; background: var(--pine); }
.team-card .crop { height: 260px; }
.team-card:nth-child(2) .crop { background-position: 95% 100%; }
.team-card:nth-child(3) .crop { background-position: 100% 100%; }
.team-card:nth-child(4) .crop { background-position: 93% 100%; }

.form-card { padding: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
  outline: none;
}
.field:focus { border-color: var(--pine); box-shadow: 0 0 0 4px rgba(7, 95, 71, .08); }
textarea.field { min-height: 120px; resize: vertical; }
.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px;
  border-radius: 6px;
  color: var(--deep);
  background: var(--mint);
  font-size: 12px;
}
.form-status.show { display: block; }
.insurance-layout { grid-template-columns: 1fr 1fr; }
.shield { min-height: 100%; display: grid; place-items: center; padding: 40px; text-align: center; background: linear-gradient(145deg, #fff, #edf6f1); }
.shield-icon {
  width: 105px;
  height: 125px;
  display: grid;
  place-items: center;
  margin: auto;
  clip-path: polygon(50% 0, 90% 17%, 85% 72%, 50% 100%, 15% 72%, 10% 17%);
  color: #fff;
  background: var(--pine);
  padding: 32px;
}
.shield-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }

.resources .card { padding: 25px; }
.hotline { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
.hotline-copy { display: flex; flex-direction: column; justify-content: center; padding: 55px; }
.hotline-copy .number { margin: 16px 0; color: var(--pine); font-size: 43px; font-weight: 900; }
.hotline-image {
  background-image: linear-gradient(90deg, #fff0, rgba(255, 255, 255, .08)), url("assets/images/care-atlas.png");
  background-size: auto, 300% 200%;
  background-position: center, 100% 100%;
}
.faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--muted); line-height: 1.7; }

footer { padding: 55px 0 25px; background: #eef4f1; }
.footer-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
footer h4 { margin: 0 0 14px; }
footer p,
footer a { color: var(--muted); font-size: 12px; line-height: 1.9; }
.copyright { margin-top: 35px; padding-top: 20px; border-top: 1px solid #d5e1dc; color: var(--muted); font-size: 11px; }

/* Keep Tailwind CDN from overriding this template's container class after navigation/button clicks. */
body .container {
  width: min(1180px, calc(100% - 34px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 17px;
    right: 17px;
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px; }
  .phone-pill { display: none; }
  .menu { display: block; }
  .cards-4,
  .cards-5,
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3,
  .split,
  .insurance-layout,
  .hotline { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .hero { background-position: 62% center; }
  .hero::after { background: linear-gradient(90deg, rgba(247, 250, 247, .97), rgba(247, 250, 247, .73) 65%, rgba(247, 250, 247, .25)); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 24px, 1180px); }
  body .container { width: min(100% - 24px, 1180px) !important; }
  .hero { min-height: 560px; background-position: 70% center; }
  .hero-content { padding: 58px 0 112px; }
  .hero h1 { font-size: 44px; }
  .trust-bar { margin-top: -44px; }
  .trust-grid,
  .cards-3,
  .cards-4,
  .cards-5,
  .stats,
  .footer-grid,
  .feature-list,
  .form-grid,
  .steps { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 52px 0; }
  .section-head,
  .support-row { align-items: flex-start; flex-direction: column; }
  .quote { grid-template-columns: 1fr; }
  .quote .crop { width: 100%; }
  .hotline-copy { padding: 35px 24px; }
  .hotline-image { min-height: 310px; }
}
