:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --paper-2: #fffdf8;
  --ink: #172321;
  --muted: #65706d;
  --line: #ddd4c6;
  --teal: #0d5a55;
  --teal-dark: #083936;
  --gold: #c69b42;
  --rose: #b8626b;
  --clay: #84604f;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(18, 31, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 10;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  padding: 12px 32px;
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid rgba(221, 212, 198, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  min-height: 40px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: #ebe3d6;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  align-items: center;
  gap: 52px;
  min-height: 86vh;
  padding: 68px 7vw 56px;
  background:
    linear-gradient(90deg, rgba(247, 244, 238, 0.95), rgba(247, 244, 238, 0.82)),
    url("/assets/images/rn-miami-recovery-profile.jpg") center right / auto 120% no-repeat;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.9rem;
  line-height: 0.98;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.55rem;
  line-height: 1.1;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: #2a3835;
  font-size: 1.28rem;
}

.actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
  color: var(--ink);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 34px 0 0;
}

.quick-facts div {
  min-height: 92px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 8px 0 0;
  font-weight: 850;
}

.hero-media {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  justify-items: center;
}

.brand-mark {
  width: min(520px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid rgba(255, 253, 248, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-panel {
  position: absolute;
  right: 0;
  bottom: 20px;
  width: min(340px, 88%);
  padding: 18px;
  background: var(--teal-dark);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(8, 57, 54, 0.28);
}

.status-panel p {
  margin-bottom: 8px;
  color: #d6e5df;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.status-panel strong {
  margin-bottom: 4px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.status-panel span {
  color: #f1d890;
}

.band {
  padding: 72px 7vw;
}

.intro-band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1040px;
}

.two-column p,
.contact-panel p {
  color: #394845;
  font-size: 1.05rem;
}

.service-band {
  background: #ece5da;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
}

.service-card {
  min-height: 258px;
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.card-number {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--gold);
  font-weight: 900;
}

.proof-band {
  background: var(--teal-dark);
  color: var(--white);
}

.proof-band .eyebrow,
.proof-band .record-list span {
  color: #f1d890;
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 42px;
  align-items: start;
}

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

.record-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.record-list span {
  font-weight: 800;
}

.record-list strong {
  font-size: 1.03rem;
}

.contact-band {
  background: var(--paper-2);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  max-width: 1120px;
  padding: 34px;
  background: #f1e8db;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-panel h2 {
  margin-bottom: 10px;
}

.contact-panel p {
  margin-bottom: 0;
}

.resource-band,
.page-band {
  background: var(--paper-2);
}

.resource-grid,
.page-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
}

.resource-card,
.page-card,
.article-card {
  display: block;
  min-height: 170px;
  padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.resource-card {
  background: #f1e8db;
}

.resource-card span,
.page-card span,
.article-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-card strong,
.page-card strong,
.article-card strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.3;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: 44px;
  align-items: end;
  padding: 66px 7vw 58px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(2.85rem, 4.9vw, 3.65rem);
  line-height: 1.04;
}

.page-hero .lead {
  max-width: 760px;
}

.page-hero-aside {
  padding: 24px;
  background: var(--teal-dark);
  color: var(--white);
  border-radius: 8px;
}

.page-hero-aside p {
  margin-bottom: 0;
  color: #d6e5df;
}

.breadcrumb {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.45fr);
  gap: 40px;
  max-width: 1180px;
}

.content-main,
.article-body {
  max-width: 820px;
}

.content-main p,
.article-body p,
.article-body li {
  color: #394845;
  font-size: 1.05rem;
}

.side-panel,
.note-box {
  padding: 24px;
  background: #f1e8db;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.side-panel h2,
.note-box h2 {
  font-size: 1.55rem;
}

.stack-list,
.check-list,
.faq-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-list li,
.check-list li,
.faq-list details {
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-list strong,
.stack-list strong {
  display: block;
  margin-bottom: 6px;
}

.stack-list strong + span,
.check-list strong + span {
  display: block;
  color: var(--muted);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.article-body h2 {
  margin-top: 36px;
  font-size: 2rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.source-note {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.source-note a {
  color: var(--teal);
  font-weight: 850;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 7vw;
  background: var(--ink);
  color: #e4e0d8;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #f1d890;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 24px 52px;
    background: var(--paper);
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .lead {
    font-size: 1.12rem;
  }

  .hero-media {
    min-height: 420px;
  }

  .quick-facts,
  .two-column,
  .service-grid,
  .proof-layout,
  .contact-panel,
  .resource-grid,
  .page-grid,
  .article-grid,
  .page-hero,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 48px 24px 52px;
  }

  .page-hero h1 {
    font-size: 3.15rem;
  }

  .contact-panel {
    padding: 26px;
  }
}

@media (max-width: 620px) {
  .brand span {
    white-space: normal;
  }

  .nav a {
    padding-inline: 9px;
    font-size: 0.86rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .band {
    padding: 52px 22px;
  }

  .page-hero h1 {
    font-size: 2.55rem;
  }

  .hero-media {
    min-height: auto;
    padding-bottom: 120px;
  }

  .status-panel {
    left: 12px;
    right: 12px;
    bottom: 0;
    width: auto;
  }

  .record-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .button {
    width: 100%;
  }
}
