/* The Heart of Healing — shared stylesheet
   Recreated from design_handoff_heart_of_healing_site (design spec, not production code).
   Design tokens: see README.md in the handoff folder. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #E9E5DC;
  color: #000;
  font-family: 'Mulish', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.page {
  font-family: 'Mulish', sans-serif;
  color: #000;
}

h1, h2, h3, p { margin: 0; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.hoh-stagger > .reveal:nth-child(2) { transition-delay: .09s; }
.hoh-stagger > .reveal:nth-child(3) { transition-delay: .18s; }
.hoh-stagger > .reveal:nth-child(4) { transition-delay: .27s; }
.hoh-stagger > .reveal:nth-child(5) { transition-delay: .36s; }
.hoh-stagger > .reveal:nth-child(6) { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track { animation: none !important; }
}

/* ---------- Marquee ---------- */
@keyframes hoh-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { animation: hoh-marquee 46s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 22px;
  border: 1px solid #000;
  transition: background .25s ease, color .25s ease, transform .25s ease;
  cursor: pointer;
}
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #2a2a2a; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #000; }
.btn-outline:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-light { background: #F9F7F4; color: #000; border-color: #F9F7F4; }
.btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-light-onDark { background: #F9F7F4; color: #222; }
.btn-light-onDark:hover { background: #fff; transform: translateY(-2px); }

.link-fade { transition: opacity .2s ease; text-decoration: none; }
.link-fade:hover { opacity: 0.55; }

.link-underline { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Card hover (hard offset shadow) ---------- */
.card-lift { transition: transform .28s ease, box-shadow .28s ease; }
.card-lift:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 #000; }

.step-card { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s cubic-bezier(.2,.7,.2,1); }
.step-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -28px rgba(0,0,0,0.3); }

.modality-row { transition: background .45s cubic-bezier(.2,.7,.2,1); }
.modality-row:hover { background: #E4E8B0; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 14px -8px rgba(0,0,0,0.22);
  font-family: 'Mulish', sans-serif;
}
.nav-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 64px;
  max-width: 1440px;
  margin: 0 auto;
}
.nav-logo { text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.nav-logo .wordmark { font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1; color: #000; white-space: nowrap; }
.nav-logo .subword { font-family: 'Mulish', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 4px; color: #000; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-desktop a { color: #000; text-decoration: none; font-size: 15px; white-space: nowrap; padding-bottom: 2px; font-weight: 400; transition: opacity .2s ease; }
.nav-desktop a:hover { opacity: 0.55; }
.nav-desktop a.active { font-weight: 600; border-bottom: 1px solid #000; }
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: 1px solid #000;
  border-radius: 10px; cursor: pointer; align-items: center;
}
.nav-burger span { display: block; width: 18px; height: 1.5px; background: #000; }
.nav-mobile { display: none; border-top: 1px solid #000; background: #fff; padding: 8px 24px 20px; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.1); color: #000; text-decoration: none; font-size: 16px; }
.nav-mobile .btn { margin-top: 16px; }

@media (max-width: 960px) {
  .nav-desktop { display: none !important; }
  .nav-burger { display: flex !important; }
  .nav-grid { padding: 0 24px !important; }
}

/* ---------- Footer ---------- */
.footer { width: 100%; font-family: 'Mulish', sans-serif; color: #000; background: #F9F7F4; }
.foot-top { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; background: #F9F7F4; padding: 0 64px; }
.foot-top img { width: 100%; max-width: 440px; height: auto; }
.foot-top p { margin: 0; padding-right: 48px; font-size: 13px; line-height: 1.7; }
.foot-mid { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid #000; border-bottom: 1px solid #000; background: #F9F7F4; }
.foot-col { padding: 56px 64px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; justify-content: center; border-right: 1px solid #000; }
.foot-col:last-child { border-right: none; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px 26px; }
.foot-links a { color: #000; text-decoration: none; font-size: 13px; text-underline-offset: 3px; transition: opacity .2s ease; }
.foot-links a:hover { opacity: 0.55; text-decoration: underline; }
.foot-logo { align-items: center; text-align: center; }
.foot-logo a { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.foot-logo .wordmark { font-family: 'Instrument Serif', serif; font-size: 34px; line-height: 1; color: #000; white-space: nowrap; }
.foot-logo .subword { font-size: 11px; font-weight: 500; letter-spacing: 5px; color: #000; }
.foot-contact { gap: 6px; font-size: 13px; line-height: 1.6; }
.foot-contact .label { font-weight: 600; }
.foot-ack { padding: 28px 64px; background: #F9F7F4; }
.foot-ack p { margin: 0; font-size: 12px; line-height: 1.6; }

@media (max-width: 860px) {
  .foot-top { grid-template-columns: 1fr !important; gap: 20px !important; padding: 24px !important; }
  .foot-mid { grid-template-columns: 1fr !important; }
  .foot-col { border-right: none !important; border-bottom: 1px solid #000 !important; align-items: center !important; text-align: center !important; padding: 40px 28px !important; }
  .foot-col:last-child { border-bottom: none !important; }
  .foot-links { justify-content: center !important; }
  .foot-ack { padding: 28px !important; }
}

/* ---------- Layout helpers used across pages ---------- */
.split { display: flex; border-bottom: 1px solid #000; }
.split-rev { flex-direction: row-reverse; }
.split-img { flex: 1 1 50%; border-left: 1px solid #000; min-height: 480px; background-color: #F1EEE6; background-size: cover; background-repeat: no-repeat; }
.col-pad { flex: 1 1 50%; background: #F9F7F4; display: flex; flex-direction: column; justify-content: center; padding: 120px 72px; }
.col-pad.align-end { align-items: flex-end; }
.col-pad.align-start { align-items: flex-start; }
.sec-pad { padding: 120px 64px; }
.panel-outer { background: #F9F7F4; border-bottom: 1px solid #000; padding: 120px 70px; }
.panel-inner { max-width: 1300px; margin: 0 auto; border-radius: 24px; padding: 92px 64px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #000; }
.placeholder-photo {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #F1EEE6, #F1EEE6 11px, #F6F3EC 11px, #F6F3EC 22px);
}
.placeholder-photo span {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 1px; color: #555;
  background: #fff; padding: 8px 12px; border: 1px solid #000;
}

@media (max-width: 900px) {
  .split, .split-rev { flex-direction: column !important; }
  .split-img { min-height: 320px !important; border-left: 1px solid #000 !important; border-top: 1px solid #000 !important; }
  .col-pad { padding: 56px 28px !important; align-items: flex-start !important; }
  .sec-pad { padding: 56px 24px !important; }
  .panel-outer { padding: 22px !important; }
  .panel-inner { padding: 44px 26px !important; }
}

/* ---------- Article (blog post) type ---------- */
.article p { margin: 0 0 24px; font-size: 18px; line-height: 1.75; color: #000; }
.article h2 { margin: 40px 0 16px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; color: #000; }
.article h3 { margin: 34px 0 10px; font-family: 'Mulish', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; color: #000; }
@media (max-width: 900px) {
  .article { padding: 56px 24px !important; }
}
