/* ==========================================================================
   BMH Consulting — bmhmindandbody.com
   Original stylesheet, hand-authored. No third-party CSS frameworks.
   Brand: PT Sans (self-hosted) · Purple #643387 · Accent #a527a0
   ========================================================================== */

/* ---- Self-hosted fonts ---- */
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/pt-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/pt-sans-700.woff2") format("woff2");
}

/* ---- Design tokens ---- */
:root {
  --purple:      #643387;
  --purple-dark: #4a2566;
  --magenta:     #a527a0;
  --ink:         #2b2230;
  --muted:       #6f6779;
  --cream:       #f6f4fa;
  --lilac:       #efedf4;
  --line:        #e6e2ee;
  --white:       #ffffff;

  --font: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 40px -18px rgba(74, 37, 102, 0.45);
  --shadow-sm: 0 6px 18px -10px rgba(74, 37, 102, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--magenta); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--purple); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- Layout helpers ---- */
.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }
.section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--cream); }
.section--brand { background: var(--purple); color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); }
.eyebrow {
  display: inline-block; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 0.78rem; color: var(--magenta); margin-bottom: 0.9rem;
}
.section--brand .eyebrow { color: #e9c9ff; }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--magenta); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #8f1d8b; color: #fff; }
.btn--solid { background: var(--purple); color: #fff; }
.btn--solid:hover { background: var(--purple-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: #fff; color: var(--purple); }
.btn--outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn--outline:hover { background: var(--purple); color: #fff; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.topbar {
  background: var(--purple); color: #fff; font-size: 0.86rem;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: #f0d4ff; }
.topbar .tagline { font-style: italic; opacity: 0.92; }
.topbar .social { display: flex; gap: 0.35rem; }
.topbar .social a {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,0.12); transition: background 0.2s;
}
.topbar .social a:hover { background: var(--magenta); }
.topbar .social svg { width: 15px; height: 15px; fill: #fff; }

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 20px -14px rgba(0,0,0,0.35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.brand img { height: 64px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem;
  color: var(--purple);
}
.nav-toggle svg { width: 30px; height: 30px; }

.menu { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 0.6rem 0.85rem; font-weight: 700; color: var(--ink); border-radius: 8px;
  font-size: 0.98rem;
}
.menu > li > a:hover, .menu > li.current > a { color: var(--purple); background: var(--lilac); }
.menu .has-sub > a::after { content: "\25be"; font-size: 0.7em; margin-left: 0.35rem; opacity: 0.7; }

.submenu {
  list-style: none; margin: 0; padding: 0.5rem; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 288px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.menu .has-sub:hover .submenu,
.menu .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 0.6rem 0.75rem; border-radius: 7px; font-size: 0.95rem; color: var(--ink); }
.submenu a:hover { background: var(--lilac); color: var(--purple); }
.nav-cta { margin-left: 0.5rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: var(--purple); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(74,37,102,0.94) 0%, rgba(74,37,102,0.7) 42%, rgba(74,37,102,0.15) 100%);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; z-index: 2; padding: clamp(3.5rem, 9vw, 7rem) 0; max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero p { font-size: 1.2rem; color: #f0e6f7; margin-bottom: 1.6rem; }
.hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero--sub .hero__inner { padding: clamp(2.75rem, 6vw, 4.25rem) 0; max-width: 760px; }
.crumbs { font-size: 0.9rem; color: #e6d6f2; margin-bottom: 1rem; }
.crumbs a { color: #e6d6f2; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 0.4rem; }
.card__body h3 a { color: var(--ink); }
.card__body h3 a:hover { color: var(--purple); }
.card__body p { color: var(--muted); font-size: 0.98rem; }
.card__link {
  margin-top: auto; align-self: flex-start; font-weight: 700; color: var(--magenta);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.card__link::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.card__link:hover::after { transform: translateX(4px); }

/* ---- Split / media-text rows ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.split__body h2 { margin-bottom: 0.5em; }

/* ---- Prose (long-form pages) ---- */
.prose { max-width: 760px; }
.prose p { color: #443b4d; }
.prose h2, .prose h3 { color: var(--purple); margin-top: 1.6em; }

/* ---- Badges / certification row ---- */
.badge-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.badge {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.6rem 1.25rem; font-weight: 700; font-size: 0.9rem; color: var(--purple);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.badge svg { width: 18px; height: 18px; fill: var(--magenta); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: linear-gradient(120deg, var(--purple), var(--magenta)); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 640px; }
.cta-band .phone { font-size: 1.35rem; font-weight: 700; color: #fff; white-space: nowrap; }
.cta-band .phone:hover { color: #ffe3ff; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 0.85rem; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.35rem; font-weight: 700; color: var(--purple);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--magenta); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.35rem 1.2rem; color: #4a4152; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-card { text-align: center; }
.team-card img { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; box-shadow: var(--shadow-sm); }
.team-card .role { color: var(--magenta); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.team-card h3 { margin: 0.2rem 0 0.6rem; }

/* ==========================================================================
   Contact / forms
   ========================================================================== */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; }
.info-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-list .ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--lilac); display: grid; place-items: center; }
.info-list .ico svg { width: 20px; height: 20px; fill: var(--purple); }
.info-list strong { display: block; color: var(--ink); }
.info-list span, .info-list a { color: var(--muted); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.95rem; }
.field .req { color: var(--magenta); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fdfcff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(100,51,135,0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-weight: 700; display: none; }
.form-status.is-ok { display: block; background: #e8f6ec; color: #1f7a3f; }
.form-status.is-err { display: block; background: #fdeaea; color: #b02525; }

/* Off-screen honeypot (spam trap; never shown to real users) */
.hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* SMS consent checkbox */
.consent { margin-top: 0.5rem; }
.consent__box { display: flex; align-items: flex-start; gap: 0.65rem; cursor: pointer; font-weight: 400; }
.consent__box input[type="checkbox"] {
  flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--purple); cursor: pointer;
}
.consent__box span { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.consent__box a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #2a1838; color: #d9cfe4; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #d9cfe4; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.footer-brand img { height: 66px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: #b3a6c4; font-size: 0.95rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.footer-col p { font-size: 0.95rem; margin: 0 0 0.4rem; color: #c9bdd8; }
.footer-social { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.09); display: grid; place-items: center; }
.footer-social a:hover { background: var(--magenta); }
.footer-social svg { width: 17px; height: 17px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 1.4rem 0; font-size: 0.86rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #a99bbb;
}

/* ==========================================================================
   Utilities & reveal animation
   ========================================================================== */
/* ---- Service chips (more services row) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.5rem; }
.chip {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0.6rem 1.1rem; font-weight: 700; font-size: 0.92rem; color: var(--purple);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { background: var(--purple); color: #fff; border-color: var(--purple); transform: translateY(-2px); }

/* ---- Hours card (service sidebar) ---- */
.hours-card {
  background: var(--purple); color: #fff; border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow); align-self: start;
}
.hours-card h3 { color: #fff; }
.hours-card p { color: #eadff3; margin-bottom: 0.9rem; }
.hours-card strong { color: #fff; font-size: 1.05rem; }
.hours-card .btn { margin-top: 0.5rem; border-color: rgba(255,255,255,0.6); color: #fff; }
.hours-card .btn:hover { background: #fff; color: var(--purple); }

/* ---- Fact card (bio sidebar) ---- */
.fact-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin-top: 1.25rem;
}
.fact-card p { margin-bottom: 0.8rem; color: var(--muted); font-size: 0.95rem; }
.fact-card strong { color: var(--ink); }

.mt-0 { margin-top: 0; }
/* Reveal is progressive enhancement: content is visible by default, and only
   starts hidden (to animate in) when JS is present via the .js class on <html>. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta { display: none; }

  .nav-toggle { display: block; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 85vw);
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: #fff; padding: 5rem 1.25rem 2rem; box-shadow: -10px 0 40px -20px rgba(0,0,0,0.5);
    transform: translateX(100%); transition: transform 0.28s var(--ease); overflow-y: auto;
  }
  .menu.is-open { transform: translateX(0); }
  .menu > li > a { padding: 0.85rem 0.75rem; border-radius: 8px; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--lilac); border-radius: 0; margin: 0 0 0.4rem 0.75rem;
    padding: 0.1rem 0 0.1rem 0.35rem; display: none;
  }
  .menu .has-sub.open .submenu { display: block; }
  .menu .has-sub > a::after { float: right; }
  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(30,18,42,0.5); opacity: 0; visibility: hidden;
    transition: opacity 0.25s; z-index: 90;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .topbar .tagline { display: none; }
}
