/* Cosmic Consciousness: mobile-first stylesheet.
   Same newsprint spirit as the Broadsheet system (Source Serif 4, paper ground,
   left-aligned, hairline rules), rebuilt for small screens first. */

:root {
  --bg: #f3f2f2;
  --paper: #faf9f8;
  --ink: #201e1d;
  --muted: #5c5755;            /* 6:1 on the ground */
  --rule: color-mix(in srgb, #201e1d 16%, transparent);
  --green: #2f7a3e;            /* buttons: white text passes 5:1 */
  --green-deep: #245f30;
  --green-soft: #e4efe5;
  --magenta: #aa0b56;          /* the rarer second spot colour */
  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --gutter: 20px;
  --measure: 62ch;
  --radius: 3px;
  --tap: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));   /* room for the mobile action bar */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 8.4vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 5.6vw, 2.15rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .3em; }
figure { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.eyebrow { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6em; }
.lede { font-size: 1.1875rem; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.crumb { font-size: .875rem; color: var(--muted); margin: 0 0 1.25em; }
.crumb a { color: inherit; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { font-size: 1.1875rem; font-weight: 600; text-decoration: none; color: var(--ink); letter-spacing: -.005em; }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  min-height: 44px; padding: 0 14px; font: inherit; font-size: .9375rem; font-weight: 600;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius); cursor: pointer;
}
.nav-list { display: none; list-style: none; margin: 0; padding: 0 0 14px; }
.nav-list.open { display: block; }
.nav-list li { margin: 0; }
.nav-list a {
  display: flex; align-items: center; min-height: var(--tap); text-decoration: none; color: var(--ink);
  border-top: 1px solid var(--rule); font-size: 1.125rem;
}
.nav-list a[aria-current="page"] { color: var(--green-deep); font-weight: 600; }
.nav-list a:hover { color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap);
  padding: 0 22px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--green); border-radius: var(--radius); background: var(--green); color: #fff;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-deep); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-deep); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-row .btn { flex: 1 1 200px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.link-arrow::after { content: "→"; margin-left: .4em; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { padding: 28px 0 40px; display: grid; gap: 28px; }
.hero-logo { width: 104px; }
.hero h1 { margin-bottom: .35em; }
.hero .tagline { font-style: italic; color: var(--magenta); font-size: 1.125rem; margin-bottom: .9em; }
.stats { display: flex; flex-wrap: wrap; gap: 20px 28px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.stat b { display: block; font-size: 1.75rem; line-height: 1.1; font-weight: 600; }
.stat span { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; max-width: 14ch; }

/* ---------- layout helpers ---------- */
.stack > * + * { margin-top: 20px; }
.cols { display: grid; gap: 24px; }
.cards { display: grid; gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.card h3 { margin-bottom: .25em; }
.card .kicker { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--magenta); margin: 0; }
.card p { margin-bottom: .8em; }
.card .link-arrow { margin-top: auto; }

/* swipe rows on phones, grids from tablet up */
.snap {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px;
  scroll-padding-left: var(--gutter); scrollbar-width: thin;
}
.snap > * { scroll-snap-align: start; }

/* ---------- read more ---------- */
details.more { margin-top: 4px; }
details.more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--green-deep);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; margin-left: .5em; font-size: 1.25em; line-height: 1; }
details.more[open] > summary::after { content: "−"; }
details.more > summary .less { display: none; }
details.more[open] > summary .more-label { display: none; }
details.more[open] > summary .less { display: inline; }
details.more > .more-body { padding-top: 6px; }

/* accordion rows (courses, craniosacral, care notes) */
.acc { border-top: 1px solid var(--rule); }
.acc:last-child { border-bottom: 1px solid var(--rule); }
.acc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 0;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary img.thumb { width: 52px; height: 52px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }
.acc > summary .title { font-size: 1.125rem; font-weight: 600; line-height: 1.25; flex: 1; }
.acc > summary .chev { margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--green-deep); transition: transform .2s; }
.acc[open] > summary .chev { transform: rotate(45deg); }
.acc-body { padding: 4px 0 24px; display: grid; gap: 16px; }
.acc-body img.photo { width: 100%; max-width: 360px; border-radius: var(--radius); }
.tag { display: inline-block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--rule); color: var(--muted); margin-top: 4px; }
.tag-accent { background: var(--green-soft); border-color: transparent; color: var(--green-deep); }
.tag-accent-2 { background: #f9e3ec; border-color: transparent; color: var(--magenta); }

/* ---------- people ---------- */
.person { display: grid; gap: 14px; padding: 4px 0 28px; }
.person-head { display: flex; align-items: center; gap: 16px; }
.person-head h3 { margin-bottom: .15em; }
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--green-soft); }
.avatar-lg { width: 88px; height: 88px; }
.avatar-md { width: 72px; height: 72px; }
.avatar-fallback { display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--green-deep); font-size: 1.5rem; }
.role { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.mantra { font-style: italic; color: var(--magenta); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 8px; }
.person-card { text-align: left; }

/* ---------- quotes ---------- */
.quote { font-style: italic; font-size: 1.1875rem; line-height: 1.5; color: var(--magenta); margin: 0 0 14px; max-width: none; }
.quote-by { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.quote-by b { display: block; font-weight: 600; line-height: 1.2; }
.quote-by span { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery figure { display: flex; flex-direction: column; gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--green-soft); }
.gallery figcaption { font-size: .875rem; color: var(--muted); line-height: 1.35; }

/* ---------- courses strip ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 38%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; }
.strip img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--radius); scroll-snap-align: start; }

/* ---------- lists ---------- */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chips li { margin: 0; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 99px; background: var(--paper); font-size: .9375rem; }
.callout { background: var(--green-soft); border-radius: var(--radius); padding: 20px; }
.callout h3 { margin-bottom: .3em; }
.callout p { margin-bottom: .9em; }

/* ---------- cst ---------- */
.cst-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.cst-photo figcaption { font-size: .8125rem; color: var(--muted); margin-top: 6px; }

/* ---------- contact + form ---------- */
.contact-actions { display: grid; gap: 12px; margin: 8px 0 24px; }
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); background: var(--green-soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9375rem; font-weight: 600; }
.input {
  font: inherit; font-size: 1rem; /* 16px stops iOS zooming in on focus */ min-height: var(--tap); width: 100%;
  padding: 10px 12px; background: var(--paper); color: var(--ink); border: 1px solid #8f8a87; border-radius: var(--radius);
}
textarea.input { min-height: 140px; resize: vertical; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--ink); margin-top: 24px; padding: 36px 0 24px; }
.foot { display: grid; gap: 28px; }
.foot h6 { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6em; font-weight: 600; }
.foot p { margin-bottom: .2em; }
.foot a { display: inline-flex; min-height: 36px; align-items: center; }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); display: grid; gap: 6px; font-size: .875rem; color: var(--muted); }

/* ---------- sticky call / WhatsApp bar (phones) ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--rule);
}
.action-bar .btn { min-height: 48px; }

/* ---------- tablet ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 1.125rem; }
  .section { padding: 56px 0; }
  .cards.c2, .cards.c3 { grid-template-columns: repeat(2, 1fr); }
  .snap { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; }
  .snap.t3 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .strip { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; }
  .cols.two { grid-template-columns: 1fr 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-actions { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .avatar-lg { width: 112px; height: 112px; }
}

/* ---------- desktop ---------- */
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .menu-toggle { display: none; }
  .bar { min-height: 68px; }
  .nav-list, .nav-list.open { display: flex; gap: 22px; padding: 0; }
  .site-header .bar { gap: 28px; }
  .nav-wrap { display: flex; align-items: center; gap: 22px; margin-left: auto; }
  .nav-list a { min-height: 44px; border-top: 0; font-size: 1rem; position: relative; }
  .nav-list a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--green); }
  .hero { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; padding: 56px 0 64px; }
  .hero-logo { width: 100%; max-width: 300px; margin: 0 auto; order: 2; }
  .cards.c3 { grid-template-columns: repeat(3, 1fr); }
  .snap.t3 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .btn-row .btn { flex: 0 0 auto; }
  .cst { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
  .acc-body { grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
  .acc-body.no-photo { grid-template-columns: 1fr; }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
