/* ============================================================
   Flourish & Thrive — Page components
   ============================================================ */

/* --- Hero --------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: stretch;
  min-height: min(84vh, 780px);
  background: var(--ivory);
}
.hero__inner {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 4vw, 4rem);
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  padding-right: clamp(1.25rem, 3vw, 3rem);
  max-width: 820px;
}
.hero__title {
  font-size: clamp(2.6rem, 4.5vw, 4.15rem);
  text-wrap: pretty;
  margin-bottom: var(--s-5);
}
.hero__title em {
  font-style: italic;
  color: var(--sage-700);
}
.hero__lede { max-width: 46ch; margin-bottom: var(--s-7); }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5);
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid var(--rule-soft);
  font-size: var(--text-xs); color: var(--text-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.45em; }
.hero__meta svg { width: 13px; height: 13px; color: var(--sage-400); }

.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ivory) 0%, rgba(250,246,240,0) 24%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__inner { padding-inline: var(--gutter); padding-block: var(--s-9) var(--s-7); max-width: none; }
  .hero__media { height: 46vw; min-height: 240px; max-height: 380px; }
  .hero__media::after { background: linear-gradient(180deg, var(--ivory) 0%, rgba(250,246,240,0) 22%); }
}

/* --- Page header (interior pages) --------------------------- */
.page-head {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--ivory-2);
  border-bottom: 1px solid var(--rule-soft);
}
.page-head h1 { font-size: var(--text-3xl); margin-bottom: var(--s-4); }
.page-head .lede { max-width: 58ch; }

/* --- Page header with photo (about, etc.) ------------------- */
.page-head--with-photo .wrap {
  display: grid;
  gap: clamp(var(--s-6), 5vw, var(--s-10));
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .page-head--with-photo .wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  }
}
.page-head__photo {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ivory-3);
}
.page-head__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Value / pillar grid ------------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-6);
}
.pillar__num {
  font-family: var(--font-display);
  font-size: 1.05rem; color: var(--terracotta);
  letter-spacing: 0.08em;
  display: block; margin-bottom: var(--s-3);
}
.pillar h3 { font-size: 1.45rem; margin-bottom: var(--s-3); }
.pillar p { font-size: var(--text-sm); color: var(--text-soft); }

/* --- Split feature ------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%; border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5; object-fit: cover;
}
.split__media--arch img { border-radius: var(--radius-arch); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 5 / 4; }
}

/* --- Service cards ------------------------------------------ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.service-card { display: flex; flex-direction: column; gap: var(--s-3); }
.service-card__icon {
  width: 42px; height: 42px; color: var(--sage-700);
  margin-bottom: var(--s-2);
}
.service-card h3 { font-size: 1.5rem; }
.service-card p { font-size: var(--text-sm); color: var(--text-soft); flex: 1; }
.service-card .tag-row { margin-top: var(--s-2); }

/* --- Modality list ------------------------------------------ */
.modality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-5);
}
.modality {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-4);
}
.modality__abbr {
  font-family: var(--font-display);
  font-size: 1.35rem; color: var(--sage-800);
  display: block; margin-bottom: var(--s-1);
}
.modality h3 {
  font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: 600; color: var(--text); margin-bottom: var(--s-2);
  letter-spacing: 0;
}
.modality p { font-size: var(--text-sm); color: var(--text-soft); }

/* --- Team --------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-8) var(--s-6);
}
.member__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-arch);
  overflow: hidden;
  margin-bottom: var(--s-5);
  background: linear-gradient(165deg, var(--ivory-3), var(--sage-50));
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member__portrait { display: block; width: 100%; height: 100%; }
.member__portrait img { transition: transform 600ms var(--ease); }
.member:hover .member__portrait img { transform: scale(1.02); }
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s-3);
  border: 1px solid var(--taupe-200);
  border-radius: inherit;
  color: var(--taupe-600);
  text-align: center; padding: var(--s-5);
}
.photo-placeholder__initials {
  font-family: var(--font-display);
  font-size: 2.6rem; color: var(--sage-600); line-height: 1;
}
.photo-placeholder__label {
  font-size: var(--text-2xs); letter-spacing: 0.2em; text-transform: uppercase;
}
.photo-placeholder svg { width: 30px; height: 30px; color: var(--taupe-400); }

.member__name { font-size: 1.75rem; margin-bottom: 2px; }
.member__role {
  font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: var(--s-4);
}
.member__bio { font-size: var(--text-sm); color: var(--text-soft); }
.member__bio p + p { margin-top: var(--s-3); }
.member__quote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; line-height: 1.5; color: var(--sage-800);
  border-left: 2px solid var(--terracotta-soft);
  padding-left: var(--s-4);
  margin-block: var(--s-5);
}
.member__meta {
  margin-top: var(--s-5); padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
  display: grid; gap: var(--s-3);
}
.member__meta dt {
  font-size: var(--text-2xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--taupe-600); margin-bottom: 4px;
}
.member__meta dd { margin: 0; font-size: var(--text-sm); color: var(--text-soft); }

/* --- Steps / timeline --------------------------------------- */
.steps { display: grid; gap: var(--s-6); counter-reset: step; }
.step {
  display: grid; grid-template-columns: 62px 1fr; gap: var(--s-5);
  align-items: start;
}
.step__num {
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid var(--taupe-200);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.4rem; color: var(--sage-700);
  background: var(--ivory);
}
.section--deep .step__num {
  border-color: rgba(244,237,227,0.28); background: transparent; color: var(--ivory);
}
.step h3 { font-size: 1.4rem; margin-bottom: var(--s-2); }
.step p { font-size: var(--text-sm); }
@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: var(--s-3); }
  .step__num { width: 48px; height: 48px; font-size: 1.15rem; }
}

/* --- Accordion / FAQ ---------------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: var(--s-5) var(--s-8) var(--s-5) 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.35rem; line-height: 1.35; color: var(--sage-900);
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px; margin-top: -7px;
  border-right: 1.5px solid var(--taupe-600);
  border-bottom: 1.5px solid var(--taupe-600);
  transform: rotate(45deg);
  transition: transform 0.28s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq__body { padding-bottom: var(--s-6); max-width: 68ch; }
.faq__body p { font-size: var(--text-sm); color: var(--text-soft); }
.faq__body p + p { margin-top: var(--s-3); }
.faq__body ul { font-size: var(--text-sm); color: var(--text-soft); padding-left: 1.15em; margin-top: var(--s-3); }
.faq__body li + li { margin-top: 0.35rem; }

/* --- Insurance chips ---------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  font-size: var(--text-sm);
  padding: 0.55rem 1rem;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--sage-100);
  color: var(--sage-800);
}
.section--deep .chip {
  background: rgba(250,246,240,0.08);
  border-color: rgba(250,246,240,0.2);
  color: var(--ivory-2);
}

/* --- Quote band --------------------------------------------- */
.quote-band {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--sage-800);
  overflow: hidden;
}
.quote-band__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.16; filter: saturate(0.8);
}
.quote-band__inner { position: relative; text-align: center; }
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.65rem);
  line-height: 1.28; color: var(--ivory);
  max-width: 20ch; margin-inline: auto;
  text-wrap: balance;
}
.quote-band blockquote em { font-style: italic; color: var(--terracotta-soft); }
.quote-band cite {
  display: block; margin-top: var(--s-5);
  font-family: var(--font-body); font-style: normal;
  font-size: var(--text-2xs); letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244,237,227,0.62);
}

/* --- CTA band ----------------------------------------------- */
.cta-band {
  background: var(--ivory-2);
  border-top: 1px solid var(--rule-soft);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}
.cta-band h2 { margin-bottom: var(--s-4); }
.cta-band .lede { margin-inline: auto; margin-bottom: var(--s-7); }
.cta-band .btn-row { justify-content: center; }
.cta-band__note { margin-top: var(--s-5); font-size: var(--text-xs); color: var(--text-mute); }

/* --- Form --------------------------------------------------- */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 940px) { .form-layout { grid-template-columns: 1fr; } }

.aside-card {
  background: #fff; border: 1px solid var(--rule-soft);
  border-radius: var(--radius); padding: var(--s-6);
  position: sticky; top: 104px;
}
@media (max-width: 940px) { .aside-card { position: static; } }
.aside-card h3 { font-size: 1.3rem; margin-bottom: var(--s-4); }
.aside-card dl { display: grid; gap: var(--s-4); }
.aside-card dt {
  font-size: var(--text-2xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--taupe-600); margin-bottom: 3px;
}
.aside-card dd { margin: 0; font-size: var(--text-sm); color: var(--text-soft); }
.aside-card dd a { color: var(--sage-800); }

.form { display: grid; gap: var(--s-7); }
.fieldset {
  border: 0; padding: 0; margin: 0;
  display: grid; gap: var(--s-5);
}
.fieldset > legend {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--sage-900);
  padding: 0 0 var(--s-2);
  margin-bottom: var(--s-2);
  border-bottom: 1px solid var(--rule);
  width: 100%;
}
.field { display: grid; gap: 0.4rem; }
.field--half { }
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5);
}
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.field label, .field .label {
  font-size: var(--text-sm); font-weight: 500; color: var(--text);
}
.field .hint { font-size: var(--text-xs); color: var(--text-mute); }
.req { color: var(--terracotta); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--taupe-200);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: var(--text-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238a7d6d' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage-600);
  box-shadow: 0 0 0 3px rgba(95, 110, 83, 0.13);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: #b4553d;
  box-shadow: 0 0 0 3px rgba(180, 85, 61, 0.12);
}
.field .error {
  font-size: var(--text-xs); color: #a8452f; display: none;
}
.field .error.is-shown { display: block; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s-3);
}
.choice {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--taupe-200);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1.45;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.choice:hover { border-color: var(--sage-400); }
.choice input { margin: 0.2rem 0 0; accent-color: var(--sage-700); flex: none; width: 16px; height: 16px; }
.choice:has(input:checked) { border-color: var(--sage-700); background: var(--sage-50); }
.choice span small { display: block; color: var(--text-mute); font-size: var(--text-xs); margin-top: 2px; }

.conditional { display: none; }
.conditional.is-open { display: grid; gap: var(--s-5); }
.conditional-inner {
  border-left: 2px solid var(--sage-200);
  padding-left: var(--s-5);
  display: grid; gap: var(--s-5);
}

.form-note {
  font-size: var(--text-xs); color: var(--text-mute);
  line-height: 1.6; max-width: 62ch;
}
.form-submit { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

.form-status {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  display: none;
}
.form-status.is-shown { display: block; }
.form-status--ok { background: var(--sage-50); border: 1px solid var(--sage-200); color: var(--sage-800); }
.form-status--err { background: #fbeee9; border: 1px solid #eccdc0; color: #97402b; }

.alert-privacy {
  display: flex; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs); line-height: 1.6; color: var(--sage-800);
}
.alert-privacy svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--sage-600); }

/* --- Misc content ------------------------------------------- */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-6); margin-top: var(--s-8);
  padding-top: var(--s-6); border-top: 1px solid var(--rule);
}
.stat__value {
  font-family: var(--font-display); font-size: 2.4rem;
  color: var(--sage-800); line-height: 1; display: block; margin-bottom: var(--s-2);
}
.stat__label { font-size: var(--text-xs); color: var(--text-mute); letter-spacing: 0.05em; }

.notice {
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--taupe-200);
  border-left: 3px solid var(--terracotta);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: var(--text-sm); color: var(--text-soft);
}
.notice strong { color: var(--sage-900); }

.legal h2 { font-size: var(--text-xl); margin-top: var(--s-8); margin-bottom: var(--s-3); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: var(--text-sm); color: var(--text-soft); }
.legal ul { padding-left: 1.15em; margin-top: var(--s-3); }
.legal li + li { margin-top: 0.35rem; }
.legal p + p { margin-top: var(--s-4); }

/* ---- Contact page: intake card + client portal ---- */
.intake-card {
  background: var(--ivory);
  border: 1px solid var(--taupe-200);
  border-radius: 20px;
  padding: var(--s-10) var(--s-8);
  box-shadow: 0 1px 2px rgba(46, 43, 38, 0.02);
}
@media (max-width: 720px) {
  .intake-card { padding: var(--s-8) var(--s-5); border-radius: 16px; }
}
.intake-card__head { margin-bottom: var(--s-8); }
.intake-card__head .eyebrow { color: var(--terracotta); }
.intake-card__head h2 {
  margin: var(--s-3) 0 var(--s-3);
  font-size: var(--text-2xl);
  color: var(--sage-900);
  line-height: 1.15;
}
.intake-card__head p {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--text-base);
}

.intake-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-8);
  display: grid;
  gap: var(--s-5);
}
.intake-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--taupe-200);
}
.intake-steps li:first-child { border-top: 0; padding-top: 0; }
.intake-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 100px;
  background: rgba(196, 106, 61, 0.08);
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  font-feature-settings: "lnum";
}
.intake-steps h3 {
  margin: 0 0 var(--s-1);
  font-size: var(--text-base);
  color: var(--sage-900);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}
.intake-steps p {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.intake-cta {
  padding-top: var(--s-6);
  border-top: 1px solid var(--taupe-200);
  text-align: center;
}
.intake-cta .spwidget-button-wrapper { margin: 0 0 var(--s-4); }
.intake-cta__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  color: var(--text-soft);
  font-size: var(--text-xs);
  line-height: 1.4;
}
.intake-cta__meta svg {
  width: 14px; height: 14px;
  color: var(--sage-700);
  flex-shrink: 0;
}

.btn--lg, a.btn--lg { padding: 1.15rem 2.25rem; font-size: var(--text-base); }

.sp-existing {
  margin-top: var(--s-8);
  padding: var(--s-6) var(--s-6);
  background: transparent;
  border: 1px dashed var(--taupe-200);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.sp-existing > div { flex: 1 1 260px; min-width: 0; }
.sp-existing h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--sage-900);
  margin: 0 0 var(--s-1);
  letter-spacing: 0;
}
.sp-existing p {
  color: var(--text-soft);
  margin: 0;
  font-size: var(--text-sm);
}
.sp-existing .btn { flex-shrink: 0; }
