/* ============================================================
   Mind Movement Therapy & Wellness
   Official identity (MMTW_VisualIdentity.pdf)
   Dark green + off-white, dusty rose accent
   Libre Caslon Display/Text · Be Vietnam Pro
   ============================================================ */

:root {
  --ink: #343b2c;        /* brand dark green #343B2C */
  --pine: #343b2c;
  --pine-deep: #2a3024;  /* darker shade of brand green for footer/hero depth */
  --moss: #5c6852;       /* mid green derived from brand greens — labels, links */
  --sage: #a0af9b;       /* brand sage #A0AF9B */
  --mist: #e8ece7;       /* brand pale mint #E8ECE7 — alternating sections */
  --blush: #f0e9e6;      /* brand blush #F0E9E6 — soft panels, form sections */
  --cream: #f8f7f5;      /* brand off-white #F8F7F5 — page base, text on dark */
  --paper: #fdfcfa;      /* raised cards, one step above the base */
  --rose: #c39687;       /* brand dusty rose #C39687 — the one accent (on dark) */
  --rose-deep: #a5715f;  /* rose darkened for accent text on light backgrounds */
  --line: rgba(52, 59, 44, 0.14);

  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --font-text: "Libre Caslon Text", Georgia, serif;
  --font-body: "Be Vietnam Pro", "Helvetica Neue", sans-serif;

  --container: 1160px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(52, 59, 44, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.002em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.65rem); }
h3 { font-size: 1.35rem; font-family: var(--font-text); }

h1 em, h2 em {
  /* Libre Caslon Display has no italic — true italics come from the text face */
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
  color: var(--rose-deep);
}

::selection {
  background: var(--rose);
  color: var(--cream);
}

p { margin: 0 0 1.1em; }

a { color: inherit; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.center { text-align: center; }

/* ---------------- eyebrow / small labels ---------------- */
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}
.eyebrow.light { color: var(--sage); }

.lede {
  font-size: 1.2rem;
  max-width: 42em;
  color: rgba(52, 59, 44, 0.8);
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-solid { background: var(--pine); color: var(--cream); }
.btn-solid:hover { background: var(--pine-deep); }

.btn-light { background: var(--cream); color: var(--pine); }
.btn-light:hover { background: #fff; }

.btn-outline { border-color: rgba(248, 247, 245, 0.6); color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--pine); }

.btn-ghost { border-color: rgba(248, 247, 245, 0.55); color: var(--cream); }
.btn-ghost:hover { background: rgba(248, 247, 245, 0.14); }

.btn-ghost-dark { border-color: rgba(52, 59, 44, 0.4); color: var(--pine); }
.btn-ghost-dark:hover { background: rgba(52, 59, 44, 0.07); }

.text-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--moss);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.text-link:hover { border-color: var(--moss); }

/* ---------------- header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pine);
  color: var(--cream);
}

.header-inner {
  width: min(1280px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.brand { text-decoration: none; display: block; position: relative; z-index: 45; }
.brand img {
  display: block;
  height: 46px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(248, 247, 245, 0.88);
  padding: 0.3rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:not(.btn):hover { color: #fff; }
.site-nav a.is-active { color: #fff; border-bottom-color: var(--sage); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 45;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 0;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0;
}
.nav-toggle-box {
  position: relative;
  width: 26px;
  height: 14px;
  display: inline-block;
}
.nav-toggle-line,
.nav-toggle-box::before,
.nav-toggle-box::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle-box::before { top: 0; }
.nav-toggle-line { top: 6px; }
.nav-toggle-box::after { top: 12px; }

body.nav-open .nav-toggle-box::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle-line { opacity: 0; }
body.nav-open .nav-toggle-box::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  background: var(--pine-deep);
  overflow: hidden;
}
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(200deg, rgba(42, 48, 36, 0.06) 30%, rgba(42, 48, 36, 0.72) 100%),
    linear-gradient(90deg, rgba(42, 48, 36, 0.45), rgba(42, 48, 36, 0) 60%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  color: var(--cream);
  padding: 7rem 0 9rem;
}
.hero-content h1 {
  max-width: 15.5em;
  text-shadow: 0 2px 30px rgba(52, 59, 44, 0.45);
}
/* over photography the full rose washes out — use a light rose tint */
.hero-content h1 em { color: #eed9cf; }
.hero-content .eyebrow { color: var(--mist); opacity: 0.85; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}
.hero-curve svg { width: 100%; height: clamp(36px, 6vw, 90px); }

/* ---------------- sections ---------------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

.section-mist { background: var(--mist); }

.page-head {
  background: var(--pine);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.page-head .eyebrow { color: var(--sage); }
.page-head h1 { max-width: 18em; }
.page-head h1 em { color: var(--rose); }
.page-head .lede { color: rgba(248, 247, 245, 0.82); }
.page-head.tall { min-height: 55vh; display: flex; align-items: center; }

/* ---------------- split layout ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split-media img.arch {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  border-radius: 500px 500px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.split-sticky { align-items: start; }
.split-sticky .split-media { position: sticky; top: 6rem; }

.intro .split-media img.arch { aspect-ratio: 4 / 4.4; }

/* ---------------- cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.card-grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
/* true 3-column cap — for card counts that would orphan under auto-fit (e.g. 5) */
.card-grid.max-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .card-grid.max-three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.7rem;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
a.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: rgba(52, 59, 44, 0.78); font-size: 0.99rem; }
.card-meta {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0;
}

.center-note { text-align: center; margin-top: 3.2rem; }
.center-note p { color: rgba(52, 59, 44, 0.72); }

/* ---------------- faq ---------------- */
.container.narrow { width: min(780px, 100% - 3rem); }
.faq { margin-top: 2.4rem; }
.faq h3 { margin-bottom: 0.5rem; }
.faq h3 + p { margin-bottom: 0; }
.faq p { color: rgba(52, 59, 44, 0.78); }
.faq p + h3 { margin-top: 2.1rem; padding-top: 2.1rem; border-top: 1px solid var(--line); }
.hero-actions.center { justify-content: center; }

/* ---------------- team ---------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.8rem;
}
.team-card { text-decoration: none; text-align: center; }
.team-card img.arch {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 500px 500px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
}
.team-card:hover img.arch { transform: translateY(-6px); }
.team-card h3 { margin: 1.2rem 0 0.2rem; }
.team-creds {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
}

.team-rows { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.team-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  text-decoration: none;
  padding: 1.5rem;
  margin: -1.5rem;
  border-radius: var(--radius);
  transition: background-color 0.3s;
}
.team-row:hover { background: rgba(160, 175, 155, 0.14); }
.team-row img.arch {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 500px 500px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.team-row-copy h2 { margin-bottom: 0.2rem; }
.team-row-copy p { color: rgba(52, 59, 44, 0.8); }

/* ---------------- bio pages ---------------- */
.bio .split-copy h1 { margin-bottom: 0.1em; }
.bio-sub {
  font-size: 1.3rem;
  margin-top: 2.2rem;
}
.bio-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.bio-actions .btn { text-align: center; }

.chips {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.chips li {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pine);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.55rem;
}
.checklist li { padding-left: 1.7rem; position: relative; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.85em;
  height: 0.45em;
  border-left: 2px solid var(--moss);
  border-bottom: 2px solid var(--moss);
  transform: rotate(-45deg);
}

/* ---------------- banners ---------------- */
.banner-icbc, .banner-cta {
  background: var(--pine);
  color: var(--cream);
}
.banner-icbc h2 em, .banner-cta h2 em { color: var(--rose); }
.banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.banner-inner > div { max-width: 620px; }
.banner-inner p { color: rgba(248, 247, 245, 0.85); margin-bottom: 0; }
.banner-inner h2 { margin-bottom: 0.4em; }

.callout {
  background: var(--mist);
  border-left: 4px solid var(--moss);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.4rem 0;
}
.callout p { margin: 0; }

/* ---------------- contact form ---------------- */
.contact-split { grid-template-columns: 1.25fr 1fr; align-items: start; }

.contact-form .field { margin-bottom: 1.2rem; }
.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.contact-form .opt { font-weight: 400; color: rgba(52, 59, 44, 0.55); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(195, 150, 135, 0.28);
}
.contact-form textarea { resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-note {
  font-size: 0.85rem;
  color: rgba(52, 59, 44, 0.62);
}
.hp { position: absolute; left: -9999px; }

/* ---------------- landing page inquiry form ---------------- */
.ask-section { background: var(--blush); }
.ask-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.ask-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.ask-form .btn { width: 100%; text-align: center; }

.contact-aside {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-aside .bio-sub:first-child { margin-top: 0; }
.contact-aside .bio-sub { margin-top: 1.8rem; margin-bottom: 0.6rem; }
.contact-aside p { font-size: 0.98rem; }

/* ---------------- footer ---------------- */
.site-footer {
  background: var(--pine-deep);
  color: rgba(248, 247, 245, 0.85);
}
.footer-inner {
  width: min(1280px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 3rem;
}
.footer-logo-img {
  width: 176px;
  height: auto;
  margin-bottom: 1.2rem;
}
.footer-tagline { max-width: 26em; font-size: 0.98rem; margin-bottom: 1.6rem; }
.pt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(160, 175, 155, 0.45);
  border-radius: 999px;
  color: var(--sage);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.pt-badge:hover { border-color: var(--sage); color: var(--cream); }
.pt-badge svg { width: 1.15rem; height: 1.15rem; flex: none; }
.pt-badge strong { font-weight: 700; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.footer-col p { font-size: 0.98rem; line-height: 1.9; }
.footer-col a { color: rgba(248, 247, 245, 0.85); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  border-top: 1px solid rgba(248, 247, 245, 0.14);
  padding: 1.4rem 0;
}
.footer-base p {
  width: min(1280px, 100% - 3rem);
  margin-inline: auto;
  font-size: 0.85rem;
  color: rgba(248, 247, 245, 0.55);
  margin-block: 0;
}

/* ---------------- reveal animations ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .split, .contact-split, .ask-grid { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-sticky .split-media { position: static; }
  .split-media img.arch { max-width: 420px; margin-inline: auto; }
  .bio-actions { max-width: 420px; margin-inline: auto; width: 100%; }
  .team-row { grid-template-columns: 1fr; text-align: center; }
  .team-row img.arch { max-width: 300px; margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    padding-top: 6rem;
    background: var(--pine-deep);
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: -1;
  }
  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    z-index: 40;
  }
  .site-nav a:not(.btn) { font-size: 1.3rem; }
  body.nav-open { overflow: hidden; }
  .hero-content { padding: 5rem 0 7rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.2rem; }
}
