/* premiumrehabs.com */
:root {
  --ivory: #FAF8F3;
  --paper: #F2EEE5;
  --ink: #0E0E0D;
  --ink-2: #2B2A27;
  --muted: #6F6A61;
  --hair: rgba(14, 14, 13, .14);
  --hair-ink: rgba(250, 248, 243, .18);
  --display: "Playfair Display", "Bodoni Moda", Didot, Georgia, serif;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 1.25vw, 21px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
::selection { background: var(--ink); color: var(--ivory); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--ink); color: var(--ivory); padding: 8px 14px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4em;
}

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1;
  white-space: nowrap;
}
.wm-p { font-family: var(--display); font-weight: 900; letter-spacing: -.025em; }
.wm-r { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -.01em; margin-left: .02em; }
.wm-c { font-family: var(--serif); font-weight: 500; font-size: 1.08em; }
.wordmark-sm { font-size: 30px; }

/* ---------- Masthead ---------- */
.topline { border-bottom: 1px solid var(--hair); }
.topline-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 40px;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.topline-inner a { text-decoration: none; color: var(--ink); }
.topline-inner a:hover { text-decoration: underline; }
.mast-inner { display: flex; justify-content: center; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(22px, 3vw, 36px); }
.mainnav { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.mainnav-inner {
  display: flex; justify-content: center; gap: clamp(20px, 4vw, 56px);
  min-height: 52px; align-items: center;
  overflow-x: auto; scrollbar-width: none;
}
.mainnav-inner::-webkit-scrollbar { display: none; }
.mainnav a {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent;
}
.mainnav a:hover, .mainnav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 100px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0;
}
.display em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.01em; font-size: 1.08em;
}
.display-sm { font-size: clamp(40px, 5.6vw, 76px); }
.lede {
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  margin: 1.4em 0 0;
}
h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4em; }
.actions-center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.btn-solid { background: var(--ink); color: var(--ivory); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn-ivory { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-ivory:hover { background: transparent; color: var(--ivory); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 128px) 0 clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: end; }
.hero-index { border-top: 1px solid var(--ink); padding-top: 22px; }
.hero-index ol { list-style: none; margin: 0; padding: 0; }
.hero-index li { border-bottom: 1px solid var(--hair); }
.hero-index a { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; text-decoration: none; }
.hero-index .num { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.hero-index .lbl { font-family: var(--serif); font-style: italic; font-size: 22px; }
.hero-index a:hover .lbl { text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- Statement ---------- */
.statement { border-top: 1px solid var(--hair); padding: clamp(64px, 9vw, 128px) 0; text-align: center; }
.statement .rule { display: block; width: 1px; height: 56px; background: var(--ink); margin: 0 auto 36px; }
.statement p {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(26px, 3.1vw, 42px); line-height: 1.32;
  max-width: 24em; margin: 0 auto; color: var(--ink);
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--hair); }
.section-tight { padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--hair); }
.section-alt { background: var(--paper); }
.section-head {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-num { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--muted); padding-top: 1.1em; }
.section-head h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; margin: 0 0 .4em; }
.section-head p { max-width: 36em; margin: 0; color: var(--ink-2); font-size: 1.08em; }

.standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.standard { padding: 36px 36px 40px 0; border-bottom: 1px solid var(--hair); }
.standard:not(:nth-child(3n+1)) { padding-left: 36px; border-left: 1px solid var(--hair); }
.numeral { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--muted); }
.standard h3 { font-size: 26px; line-height: 1.2; margin: 18px 0 12px; }
.standard p { margin: 0; color: var(--ink-2); }

.centers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.center-media {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #E9E4D8 0%, #DCD5C6 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; position: relative;
}
.center-media::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(14, 14, 13, .12); }
.center-media span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(40px, 4vw, 60px); color: rgba(14, 14, 13, .38); }
.center-card .tag {
  display: inline-block; font-family: var(--sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  border: 1px dashed var(--muted); color: var(--muted); padding: 5px 9px; margin: 0 0 14px;
}
.center-card h3 { font-size: 28px; margin: 0 0 4px; }
.center-meta { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.center-card p:last-child { margin: 0; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--ivory); padding: clamp(80px, 11vw, 150px) 0; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta .section-num { padding: 0; margin-bottom: 24px; color: rgba(250, 248, 243, .5); }
.cta .eyebrow { color: rgba(250, 248, 243, .6); }
.cta h2 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.05; margin: 0 0 .5em; }
.cta p:not(.eyebrow) { color: rgba(250, 248, 243, .78); max-width: 30em; margin: 0 0 2.4em; font-size: 1.1em; }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.page-hero-center { text-align: center; }
.page-hero-center .lede { margin-left: auto; margin-right: auto; }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.prose { max-width: 38em; }
.prose-narrow { margin: 0 auto; }
.prose h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; margin: 1.8em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; color: var(--ink-2); }
.prose .updated { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.4em; }
.prose .note { border-top: 1px solid var(--hair); padding-top: 1.2em; margin-top: 2em; font-size: .95em; }

.aside-card { border-top: 1px solid var(--ink); padding-top: 24px; justify-self: end; width: 100%; max-width: 380px; }
.aside-card dl { margin: 0 0 32px; }
.aside-card dt { font-family: var(--sans); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.aside-card dd { margin: 4px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--hair); font-size: 1.1em; }

/* ---------- Form ---------- */
.inquiry { border-top: 1px solid var(--ink); padding-top: 28px; }
.inquiry .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: block; margin-bottom: 26px; }
.field span { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field small { letter-spacing: .08em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 19px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(14, 14, 13, .35); border-radius: 0;
  padding: 8px 0 10px; outline: none; transition: border-color .2s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; border: 1px solid rgba(14, 14, 13, .35); padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 1em; margin: 18px 0 0; min-height: 1.6em; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); }
.crisis { background: var(--paper); padding: clamp(48px, 6vw, 72px) 0; }
.crisis h2 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 28px; }
.crisis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.crisis-grid > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.crisis h3 { font-size: 21px; margin: 0 0 8px; }
.crisis p { margin: 0; color: var(--ink-2); }
.crisis a { font-weight: 600; }
a[href^="tel:"], .foot-legal, .updated { font-variant-numeric: lining-nums; }
.foot-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.foot-brand p { color: var(--muted); max-width: 22em; margin: 18px 0 0; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-nav a { display: block; text-decoration: none; padding: 4px 0; }
.foot-nav a:hover { text-decoration: underline; }
.foot-legal { border-top: 1px solid var(--hair); padding-top: 24px; padding-bottom: 40px; }
.foot-legal p { font-family: var(--sans); font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 70em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-index { max-width: 420px; }
  .standards { grid-template-columns: 1fr 1fr; }
  .standard:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .standard:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--hair); }
  .centers { grid-template-columns: 1fr 1fr; }
  .prose-grid { grid-template-columns: 1fr; }
  .aside-card { justify-self: start; }
  .foot-main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topline-inner span { display: none; }
  .topline-inner { justify-content: center; }
  .mainnav-inner { justify-content: flex-start; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .section-num { padding-top: 0; }
  .standards, .centers, .crisis-grid { grid-template-columns: 1fr; }
  .standard:nth-child(n) { padding: 28px 0 32px; border-left: 0; }
  .inquiry .row { grid-template-columns: 1fr; gap: 0; }
  .foot-nav { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .wordmark-sm { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
