/* ============================================================
   Polari Counseling — design tokens
   A private, coded language of care — never rainbow, always warm.
   ============================================================ */

:root {
  --ink:      #1c2e2b;   /* deep curtain teal-black, primary text */
  --paper:    #f4ede0;   /* warm cream page background */
  --paper-2:  #ece1cf;   /* slightly deeper cream for panels */
  --teal:     #2d5049;   /* theatre-curtain teal, primary brand */
  --teal-dk:  #1a2f2a;   /* deep teal for dark sections */
  --brass:    #b8894f;   /* brass accent — signage, rules, glossary */
  --brass-lt: #d9b881;
  --clay:     #bd6f52;   /* warm clay, sparing use — CTAs, emphasis */
  --charcoal: #2a2724;
  --line:     rgba(28, 46, 43, 0.14);
  --line-lt:  rgba(244, 237, 224, 0.22);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Public Sans", "Inter", -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --max: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.015em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 5.2vw, 3.9rem); line-height: 1.04; font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.4rem); line-height: 1.15; font-weight: 500; }
h3 { font-size: 1.3rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1em; }
body { font-feature-settings: "ss01" on; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* --- eyebrow / glossary labels --- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  margin-bottom: 0.9em;
}
.eyebrow .gloss {
  font-family: var(--display);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--teal);
  font-size: 0.95rem;
  cursor: help;
}

/* --- nav --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { font-family: var(--display); font-size: 1.35rem; font-weight: 600; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.brand em { color: var(--brass); font-style: italic; }
nav.primary { display: flex; align-items: center; gap: 30px; }
nav.primary a { text-decoration: none; font-size: 0.95rem; color: var(--ink); position: relative; }
nav.primary a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
nav.primary a:not(.btn):hover::after { transform: scaleX(1); }
nav.primary a.is-active { color: var(--teal); font-weight: 600; }
nav.primary a.btn { background: var(--brass-lt); border-color: var(--brass-lt); color: var(--teal-dk); }
nav.primary a.btn:hover { background: var(--brass); color: var(--teal-dk); }

.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--body); font-weight: 600; font-size: 0.92rem;
  padding: 12px 24px; border-radius: 3px;
  background: var(--teal); color: var(--paper);
  border: 1px solid var(--teal);
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.btn:hover { background: var(--teal-dk); transform: translateY(-1px); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--paper); }
.btn.on-dark { background: var(--brass); border-color: var(--brass); color: var(--teal-dk); }
.btn.on-dark:hover { background: var(--brass-lt); }

/* --- hero --- */
.hero { padding: 76px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 i { color: var(--teal); }
.hero p.lede { font-size: 1.15rem; max-width: 46ch; color: var(--ink); opacity: 0.86; }
.hero .cta-row { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-portrait { position: relative; }
.hero-portrait::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--brass); border-radius: 4px; z-index: 0;
}
.hero-portrait img {
  position: relative; z-index: 1; border-radius: 4px; width: 100%;
  aspect-ratio: 4/5; object-fit: cover; object-position: top center;
  filter: grayscale(0.15) sepia(0.06);
  box-shadow: 0 24px 48px -20px rgba(28,46,43,0.35);
}

/* --- lexicon strip (signature element) --- */
.lexicon {
  background: var(--teal-dk); color: var(--paper); padding: 22px 0;
  overflow: hidden; border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass);
}
.lexicon .track {
  display: flex; gap: 46px; white-space: nowrap; font-family: var(--mono);
  font-size: 0.85rem; letter-spacing: 0.03em; width: max-content;
  animation: scroll-left 32s linear infinite;
}
.lexicon .track span { color: var(--brass-lt); }
.lexicon .track b { color: var(--paper); font-weight: 500; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- sections --- */
section { padding: 78px 0; }
section.tint { background: var(--paper-2); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--ink); opacity: 0.82; font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 30px 28px;
}
.card .num { font-family: var(--mono); color: var(--brass); font-size: 0.8rem; letter-spacing: 0.1em; }
.card h3 { margin: 10px 0 12px; }
.card p { color: var(--ink); opacity: 0.82; font-size: 0.98rem; margin-bottom: 0; }

blockquote.pull {
  font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.4;
  color: var(--teal); border-left: 3px solid var(--brass); padding-left: 28px; margin: 0;
}
blockquote.pull cite { display: block; font-family: var(--mono); font-style: normal; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); margin-top: 16px; }

/* --- CTA band --- */
.cta-band { background: var(--teal-dk); color: var(--paper); text-align: center; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--paper); opacity: 0.78; max-width: 50ch; margin: 14px auto 30px; }

/* --- footer --- */
footer { background: var(--ink); color: var(--paper); padding: 54px 0 34px; }
footer .wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
footer .f-brand { font-family: var(--display); font-size: 1.2rem; margin-bottom: 10px; }
footer .f-col a { display: block; text-decoration: none; color: var(--paper); opacity: 0.75; font-size: 0.92rem; margin-bottom: 8px; }
footer .f-col a:hover { opacity: 1; color: var(--brass-lt); }
footer .f-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
footer .legal { border-top: 1px solid var(--line-lt); margin-top: 40px; padding-top: 22px; font-size: 0.82rem; opacity: 0.6; }

/* --- generic page header (non-home pages) --- */
.page-head { padding: 62px 0 20px; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head p.lede { max-width: 60ch; font-size: 1.08rem; color: var(--ink); opacity: 0.85; }

/* --- insurance / booking panels --- */
.state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.state-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.state-card .sc-head { background: var(--teal); color: var(--paper); padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; }
.state-card .sc-head h3 { color: var(--paper); margin: 0; }
.state-card .sc-head span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--brass-lt); text-transform: uppercase; }
.state-card .sc-body { padding: 26px 28px 28px; }
.state-card .ins-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.state-card .ins-list li {
  font-size: 0.86rem; font-family: var(--mono); background: var(--paper-2);
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 20px; color: var(--ink);
}
.oop-panel {
  margin-top: 34px; background: var(--paper-2); border: 1px dashed var(--brass);
  border-radius: 6px; padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.oop-panel p { margin: 0; color: var(--ink); opacity: 0.85; max-width: 48ch; }

/* --- steps list --- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--mono); color: var(--brass);
  font-size: 0.95rem; padding-top: 2px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink); opacity: 0.82; margin: 0; font-size: 0.98rem; }

/* --- responsive --- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 320px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .state-grid { grid-template-columns: 1fr; }
  nav.primary { gap: 16px; }
  nav.primary a:not(.btn) { display: none; }
  .oop-panel { flex-direction: column; align-items: flex-start; }
}
