:root {
  color-scheme: light;
  --ink: #111916;
  --muted: #5a665f;
  --paper: #f7f4ec;
  --paper-strong: #fffdf7;
  --line: rgba(17, 25, 22, 0.14);
  --forest: #163d35;
  --teal: #0f776d;
  --amber: #c78b2b;
  --rust: #a94f35;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(12, 18, 16, 0.18);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 247, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: currentColor;
  opacity: 0.72;
  font-size: 11px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  opacity: 0.82;
}

.nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 112px clamp(18px, 5vw, 72px) 56px;
  color: var(--white);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("./assets/hero-rehab.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 15, 13, 0.86) 0%, rgba(9, 15, 13, 0.62) 42%, rgba(9, 15, 13, 0.18) 78%),
    linear-gradient(0deg, rgba(9, 15, 13, 0.62) 0%, rgba(9, 15, 13, 0) 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--amber);
  color: #17110a;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--white);
}

.button.full {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(620px, 100%);
  margin: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  overflow: hidden;
}

.hero-metrics div {
  min-height: 92px;
  padding: 18px;
  background: rgba(9, 15, 13, 0.44);
  backdrop-filter: blur(8px);
}

.hero-metrics dt {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.section,
.section-band {
  padding: clamp(66px, 9vw, 116px) 0;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  background: var(--forest);
  color: var(--white);
}

.intro-grid,
.proof-grid,
.split-layout,
.visit-layout,
.safety-box {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.intro p:last-child,
.proof-copy p,
.split-copy p,
.visit-layout p,
.safety-box p {
  color: color-mix(in srgb, currentColor 74%, transparent);
  font-size: 18px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.method-card {
  min-height: 282px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 1px 0 rgba(17, 25, 22, 0.04);
}

.method-card p {
  color: var(--muted);
}

.card-index {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--rust);
  font-weight: 900;
}

.split-section {
  background: #ebe7db;
}

.focus-list {
  display: grid;
  gap: 12px;
}

.focus-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 76px;
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  background: var(--paper-strong);
}

.focus-list strong {
  font-size: 18px;
}

.focus-list span {
  color: var(--muted);
}

.proof-section {
  background: var(--ink);
  color: var(--white);
}

.proof-copy {
  display: grid;
  gap: 18px;
}

.proof-copy p {
  margin: 0;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.timeline {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-weight: 900;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.safety-section {
  padding-top: 0;
}

.safety-box {
  padding: clamp(26px, 5vw, 44px);
  border-radius: 8px;
  background: #f1dfc2;
  border: 1px solid rgba(169, 79, 53, 0.2);
}

.visit-section {
  padding: clamp(70px, 9vw, 118px) 0;
  background: var(--forest);
  color: var(--white);
}

.visit-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.visit-panel strong,
.visit-panel span {
  display: block;
}

.visit-panel strong {
  margin-bottom: 8px;
  font-size: 24px;
}

.visit-panel span {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
}

.contact-list div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-list dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.contact-list dd {
  margin: 0;
  color: var(--white);
  font-size: 19px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 28px 0;
  background: #0b100e;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    height: 66px;
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 86svh;
    padding-top: 96px;
  }

  .hero-bg {
    background-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 15, 13, 0.88) 0%, rgba(9, 15, 13, 0.62) 58%, rgba(9, 15, 13, 0.32) 100%),
      linear-gradient(0deg, rgba(9, 15, 13, 0.7) 0%, rgba(9, 15, 13, 0) 46%);
  }

  .hero-metrics,
  .method-grid,
  .intro-grid,
  .proof-grid,
  .split-layout,
  .visit-layout,
  .safety-box {
    grid-template-columns: 1fr;
  }

  .method-card {
    min-height: 230px;
  }

  .card-index {
    margin-bottom: 32px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0 14px;
  }

  .nav a:nth-child(2),
  .nav a:nth-child(3) {
    display: none;
  }

  .hero {
    min-height: 84svh;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-height: 72px;
  }

  .focus-list div,
  .timeline li {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
