/* ============================================================
   custom.css — Kevin Montiel, LCSW
   Loads after the engine's styles.css. Palette and fonts come from
   config.theme (never repeat them here as hex values where a token exists);
   the brand's accent colours below have no engine token, so they live here.
   ============================================================ */

:root {
  --plum: #5f4370;
  --rose: #a26585;
  --terracotta: #c66635;
  --gold: #cf953b;
  --sand: #cbbba5;
  --container: 1120px;
  --h1: clamp(2.4rem, 5.2vw, 3.8rem);
  --h2: clamp(1.9rem, 3.4vw, 2.6rem);
  --h3: 1.4rem;
}

body { -webkit-font-smoothing: antialiased; }
/* The engine's prototype rule boxes every main>section; this site's sections are full-bleed. */
main > section { margin: 0; border: 0; background: var(--bg); }
h1, h2, h3 { letter-spacing: 0; }
a { color: var(--primary); }
.eyebrow,
.hero-practice .hero-eyebrow {
  font-family: var(--font);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.text-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--primary-dark); }
.button { font-family: var(--font); font-weight: 500; letter-spacing: 0.02em; border-radius: 999px; }
.button-outline { color: var(--text); border-color: var(--text); }
.section-header p { color: var(--muted); max-width: 620px; margin: 0.5rem auto 0; }
.center { text-align: center; }

/* ── Crisis bar ───────────────────────────────────────────── */
.crisis-bar {
  background: var(--dark);
  color: var(--dark-text);
  font-size: var(--text-xs);
  text-align: center;
  padding: 0.45rem 1rem;
  letter-spacing: 0.02em;
}

/* ── Header + logo ────────────────────────────────────────── */
.site-header { box-shadow: none; border-bottom: 1px solid var(--border); }
.site-header .header-inner { display: flex; align-items: center; justify-content: space-between; }
.site-header .nav-toggle { width: 2.5rem; flex: 0 0 2.5rem; }
.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  gap: 0.65rem;
}
.site-header .logo { color: var(--text); }
.logo-img { height: 2.6rem; width: auto; display: block; }
.nav a { font-size: var(--text-sm); }
.nav .nav-book { color: var(--button-text); padding: 0.55rem 1.2rem; width: auto; margin: 0; display: inline-block; }
.nav .nav-book:hover { color: var(--button-text); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero-practice { background: var(--bg); padding: clamp(3rem, 7vw, 6rem) 0; border-bottom: 0; }
.hero-practice .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
.hero-practice h1 { color: var(--text); font-weight: 500; margin-bottom: 1.25rem; }
.hero-practice .hero-accent {
  display: block;
  font-style: italic;
  color: var(--plum);
}
.hero-practice .hero-desc { font-size: var(--text-lg); max-width: 540px; }
.hero-practice .cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-practice .cta-actions .button { width: auto; margin: 0; display: inline-block; }
.hero-art { display: flex; justify-content: center; }
.hero-mark { width: min(100%, 420px); height: auto; }

/* ── Pillars ──────────────────────────────────────────────── */
.pillars { background: var(--surface); padding: var(--section-pad-sm) 0; }
.pillars-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.pillar h3 {
  font-family: var(--font);
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0.75rem 0 0.4rem;
}
.pillar p { color: var(--muted); font-size: var(--text-sm); }

/* ── About intro + about page ─────────────────────────────── */
.about-intro, .about-detail { padding: var(--section-pad) 0; }
.about-intro-inner, .about-detail-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--gap-lg); align-items: start; }
.about-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--primary) 0%, var(--plum) 45%, var(--terracotta) 80%, var(--gold) 100%);
  display: flex; align-items: flex-end; justify-content: center;
  color: var(--dark-text); font-size: var(--text-sm); padding: 1.25rem; opacity: 0.9;
}
.about-copy p { margin-bottom: 1rem; color: var(--muted); }
.about-copy h2 { margin-bottom: 1rem; }
.pronouns { font-family: var(--font); font-size: var(--text-base); color: var(--muted); font-weight: 400; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin: 1.5rem 0; }
.facts dt { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary); }
.facts dd { font-size: var(--text-sm); }

/* ── Specialties ──────────────────────────────────────────── */
.specialties { background: var(--surface); padding: var(--section-pad) 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 860px; margin: 0 auto 1rem; }
.chips li { padding: 0.45rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); font-size: var(--text-sm); }
.chips-top li { border-color: var(--primary); color: var(--primary); font-weight: 500; }

/* ── Approach ─────────────────────────────────────────────── */
.approach { padding: var(--section-pad) 0; }
.approach-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg); }
.approach h2 { margin-bottom: 1rem; }
.approach p { color: var(--muted); margin-bottom: 1.25rem; }
.methods { list-style: none; columns: 2; column-gap: 1.5rem; font-size: var(--text-sm); }
.methods li { padding: 0.3rem 0 0.3rem 1rem; position: relative; break-inside: avoid; }
.methods li::before { content: ""; position: absolute; left: 0; top: 0.8rem; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.steps-heading { margin-bottom: 1rem; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; background: var(--surface); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--font-heading); font-size: 2rem; color: var(--terracotta); line-height: 1; }
.steps strong { font-weight: 500; }
.steps span { color: var(--muted); font-size: var(--text-sm); }

/* ── Booking ──────────────────────────────────────────────── */
.booking { background: var(--dark); color: var(--dark-text); padding: var(--section-pad) 0; }
.booking h2 { color: var(--dark-text); }
.booking .section-header p { color: var(--sand); }
.booking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: var(--gap-md); }
.booking-card { background: var(--dark-alt); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-lg); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; }
.booking-card h3 { color: var(--gold); font-size: 1.6rem; }
.booking-card p { color: var(--sand); font-size: var(--text-sm); flex: 1; }
.booking-card .button { margin: 0; }
.booking-card .button-primary { background: var(--gold); border-color: var(--gold); color: var(--dark); }
.booking-card .button-primary:hover { background: #e0a94f; border-color: #e0a94f; }
.badge { align-self: flex-start; font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--sand); color: var(--sand); padding: 0.35rem 0.8rem; border-radius: 999px; }
.booking-note { text-align: center; margin-top: 2rem; }
.booking .text-link { color: var(--dark-text); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-section { background: var(--bg); }
.faq-question { background: none; border: 0; width: 100%; text-align: left; font-family: var(--font); font-size: var(--text-md); padding: 0; }
.faq-answer { font-size: var(--text-base); }

/* ── Contact form ─────────────────────────────────────────── */
.contact-form fieldset { border: 0; display: grid; gap: 0.35rem; margin-bottom: 0.75rem; }
.contact-form label { font-size: var(--text-sm); font-weight: 500; margin-top: 0.5rem; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; padding: 0.75rem 0.9rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.contact-form button[type="submit"] { width: 100%; margin: 0.5rem 0 0; }
.contact-legal-disclaimer { font-size: var(--text-xs); color: var(--muted); margin-top: 0.9rem; }
.quote-form-card h3 { margin-bottom: 0.5rem; }

/* ── Interior pages ───────────────────────────────────────── */
.page-hero { background: var(--surface); padding: clamp(2.5rem, 6vw, 4.5rem) 0; text-align: center; }
.page-hero h1, .message-page h1 { color: var(--text); font-weight: 500; }
.page-lede { color: var(--muted); font-size: var(--text-lg); }
.prose { max-width: 680px; }
.prose h2 { font-size: 1.8rem; margin: 2rem 0 0.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1rem; color: var(--muted); }
.prose .button { width: auto; display: inline-block; margin-top: 1rem; }
.simple-page { padding: var(--section-pad) 0; }
.simple-page .prose { margin: 0 auto; }
.message-page { padding: clamp(4rem, 10vw, 8rem) 0; }
.message-page .prose { margin: 0 auto; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { color: var(--sand); }
.site-footer .logo { color: var(--dark-text); font-size: 1.1rem; }
.site-footer .logo-img { height: 2.2rem; }
.site-footer h4 { color: var(--dark-text); font-family: var(--font); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; font-size: var(--text-sm); }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--dark-text); }
.footer-tagline { font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: var(--dark-text); margin: 1rem 0; }
.footer-contact a { font-size: var(--text-sm); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-inner, .about-intro-inner, .about-detail-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; aspect-ratio: 1; }
}
@media (max-width: 768px) {
  .hero-practice .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-mark { width: 200px; }
  .booking-grid { grid-template-columns: 1fr; }
  .methods { columns: 1; }
  .logo { font-size: 1.05rem; }
  .logo-img { height: 2.1rem; }
  .nav .nav-book { margin-top: 0.5rem; }
}
@media (max-width: 480px) {
  .logo { font-size: 0.85rem; letter-spacing: 0.05em; gap: 0.45rem; }
  .logo-img { height: 1.8rem; }
  .site-header .header-inner { gap: 0.5rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
