/* ============================================================
   THE BREAKTHROUGH SPACE — shared design system
   ============================================================ */

:root {
  /* Color */
  --porcelain: #F8F4F6;
  --blush: #F0E4EE;
  --blush-deep: #E4D3E4;
  --plum: #8C75AF;
  --plum-hover: #7A63A0;
  --aubergine: #46375F;
  --aubergine-deep: #372B4B;
  --ink: #2B2530;
  --ink-soft: #5C5566;
  --brass: #AD8A54;
  --brass-text: #79603A;
  --brass-light: #D7BE93;
  --white: #FFFFFF;
  --line: rgba(43, 37, 48, 0.12);
  --plum-btn: #7E699D;
  --plum-btn-hover: #685589;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm */
  --container: 1140px;
  --radius: 6px;
  --section-pad: clamp(4rem, 8vw, 7.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: var(--plum); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--aubergine-deep);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 480; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

p { margin: 0 0 1.15rem; }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

em, .accent-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--plum);
}

.subtle { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--plum-btn);
  color: var(--white);
}
.btn-primary:hover { background: var(--plum-btn-hover); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--aubergine-deep);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--plum); color: var(--plum); }
.btn-on-dark {
  background: var(--brass);
  color: var(--ink);
}
.btn-on-dark:hover { background: var(--brass-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.btn-primary-label-short { display: none; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand img { height: 40px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--aubergine-deep);
  text-transform: uppercase;
  line-height: 1.15;
}
.brand-word span { display: block; font-size: 0.95rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  border-bottom-color: var(--plum);
  color: var(--plum);
}
.nav-cta { display: flex; align-items: center; gap: 1.2rem; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--porcelain); flex-direction: column; align-items: flex-start; gap: 0; padding: 0.5rem 1.75rem 1.5rem; border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary-label { display: none; }
  .nav-cta .btn-primary-label-short { display: inline; }
}

/* ---------- Ray motif ---------- */
.ray-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  opacity: 0.55;
}
.ray-divider svg { display: block; }

.hero-rays {
  position: absolute;
  top: 50%;
  left: -6vw;
  transform: translateY(-50%);
  width: min(52vw, 640px);
  opacity: 0.16;
  pointer-events: none;
}
.hero-rays img { width: 100%; }

.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.js-hidden {
    opacity: 0;
    transform: translateY(14px);
  }
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Sections ---------- */
section { padding: var(--section-pad) 0; }
.section-blush { background: var(--blush); }
.section-porcelain { background: var(--porcelain); }

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4.5rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero .lede { margin-bottom: 0; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--blush);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 700px; }

/* ---------- Grid / cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 2.2rem; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
}
.card .ray-mini { width: 30px; height: 30px; margin-bottom: 1.1rem; opacity: 0.85; }

.numbered-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}
@media (max-width: 900px) { .numbered-steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 0.2rem; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--plum);
  font-weight: 400;
  margin-bottom: 0.6rem;
  line-height: 1;
}

/* ---------- Photo placeholder ---------- */
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blush-deep);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--plum);
  margin: 1rem;
  border-radius: var(--radius);
  background: var(--white);
}

/* ---------- Credential strip ---------- */
.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.credential-strip .chip {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--aubergine);
  background: var(--blush);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* ---------- Quote ---------- */
.pull-quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--aubergine-deep);
  line-height: 1.4;
}
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  background: var(--aubergine-deep);
  color: var(--porcelain);
  border-radius: 0;
  text-align: center;
}
.cta-panel h2 { color: var(--white); }
.cta-panel .subtle { color: rgba(248,244,246,0.72); }
.cta-panel .hero-rays { opacity: 0.14; filter: brightness(3) saturate(0); left: auto; right: -6vw; }
.cta-panel .container { position: relative; z-index: 2; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}
.faq-item h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-group-title {
  margin-top: 3rem;
  margin-bottom: 0.5rem;
}
.faq-group-title:first-of-type { margin-top: 0; }

/* ---------- Crisis banner ---------- */
.crisis-banner {
  background: var(--blush-deep);
  border: 1px solid var(--plum);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.crisis-banner h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.crisis-banner p { margin-bottom: 0.4rem; font-size: 0.95rem; }

/* ---------- Tables ---------- */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
}
.rate-table th, .rate-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}
.rate-table th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--aubergine-deep);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rate-table td.price { font-family: var(--font-display); font-size: 1.15rem; color: var(--plum); }

.insurance-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2rem;
}
.insurance-list li {
  font-size: 0.95rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .insurance-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 2rem; }
.post-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.post-card .post-date {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-text);
  font-weight: 600;
  padding-top: 0.3rem;
}
.post-card h3 a { text-decoration: none; color: var(--aubergine-deep); }
.post-card h3 a:hover { color: var(--plum); }
.post-card.stub { opacity: 0.6; }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; gap: 0.4rem; } }

.post-body {
  max-width: 68ch;
}
.post-body h2 { margin-top: 2.5rem; }
.post-body p { font-size: 1.05rem; }
.post-body ul, .post-body ol { font-size: 1.05rem; padding-left: 1.3rem; }
.post-body li { margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--aubergine-deep);
  color: rgba(248,244,246,0.85);
  padding: 4rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(248,244,246,0.14);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand span {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-tagline { font-style: italic; font-family: var(--font-display); color: var(--brass-light); font-size: 1.05rem; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { text-decoration: none; color: rgba(248,244,246,0.85); font-size: 0.93rem; }
.footer-col a:hover { color: var(--brass-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(248,244,246,0.55);
}
.footer-bottom a { color: rgba(248,244,246,0.55); }

/* ---------- Forms ---------- */
.consult-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aubergine-deep);
  margin-bottom: 0.45rem;
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--porcelain);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(140, 117, 175, 0.18);
}
.field-required::after { content: " *"; color: var(--brass-text); }
.hidden-field { position: absolute; left: -9999px; }
.form-disclaimer {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
}
.thank-you-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: block;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--plum);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.checkbox-label input {
  width: auto;
  margin-top: 0.2rem;
}
