/* ===================================================================
   Altered Paths Wellness — Design System
   Palette + type pulled directly from the client brand kit:
   Slate Blue #33507F · Sage #5AA74E · Light Plum #B26FC0
   Ink #3B4350 · Stone #8A8578 · Paper #F4F2EC · Cream #FFFDF8
   Display: Quicksand 600/700 · Body: Jost 300/400/500
=================================================================== */

:root {
  --cream: #FFFDF8;
  --paper: #F4F2EC;
  --slate: #33507F;
  --slate-deep: #263c60;
  --sage: #5AA74E;
  --sage-deep: #487f3f;
  --plum: #B26FC0;
  --ink: #3B4350;
  --stone: #8A8578;
  --stone-light: #DDD8CA;

  --font-display: "Quicksand", sans-serif;
  --font-body: "Jost", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;

  --max-width: 1120px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 2.75rem;
  --space-5: 4.5rem;
  --space-6: 7rem;

  --shadow-soft: 0 20px 60px -25px rgba(59, 67, 80, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--plum); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate);
  margin: 0 0 var(--space-2);
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 var(--space-2); max-width: 42em; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--sage);
  display: inline-block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--paper { background: var(--paper); }

.lede { font-size: 1.15rem; color: var(--ink); max-width: 38em; }
.subtle { color: var(--stone); font-size: 0.95rem; }

/* Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }

.btn--primary { background: var(--sage); color: var(--cream); }
.btn--primary:hover { background: var(--sage-deep); transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.btn--ghost { background: transparent; border-color: var(--slate); color: var(--slate); }
.btn--ghost:hover { background: var(--slate); color: var(--cream); }

.btn--plum { background: var(--plum); color: var(--cream); }
.btn--plum:hover { background: #9b57a8; transform: translateY(-1px); }

/* Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--stone-light);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--space-3);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--slate);
}
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brand-word small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--sage);
  transition: right 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--slate); }

.nav-cta { display: flex; align-items: center; gap: var(--space-2); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-2) var(--space-3) var(--space-3);
    gap: var(--space-2);
    border-bottom: 1px solid var(--stone-light);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn--ghost { display: none; }
}

/* Path motif (signature element) ----------------------------------
   A single winding line echoing the logo's river/path mark.
   Used once per page, near the hero, never repeated as decoration. */
.path-motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.path-motif path {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 6 14;
  opacity: 0.55;
}

/* Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-6) 0 var(--space-5);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-4);
  align-items: center;
}
.hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--paper), var(--stone-light));
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art img { width: 62%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16/10; }
}

/* Cards -------------------------------------------------------------- */
.grid { display: grid; gap: var(--space-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--cream);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--sage-deep);
}

.team-card { text-align: left; }
.team-photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  background: var(--paper);
  margin-bottom: var(--space-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--stone);
  font-family: var(--font-display);
  font-size: 0.85rem;
}
.team-card .role { color: var(--sage-deep); font-size: 0.85rem; font-weight: 500; margin-bottom: 0.5em; }

/* Steps (numbered — used only where order is real, e.g. new patient flow) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: var(--space-3);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--slate);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Forms ---------------------------------------------------------------- */
.form { max-width: 34em; }
.field { margin-bottom: var(--space-2); }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 0.4em;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 1em;
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(90, 167, 78, 0.18);
}
.field-consent { display: flex; align-items: flex-start; gap: 0.6em; }
.field-consent input { width: auto; margin-top: 0.3em; }
.field-consent label { margin: 0; font-weight: 400; color: var(--ink); font-size: 0.92rem; }

.form-note { font-size: 0.85rem; color: var(--stone); margin-top: var(--space-2); }
.form-status { display: none; margin-top: var(--space-2); font-weight: 500; }
.form-status.visible { display: block; }
.form-status.success { color: var(--sage-deep); }
.form-status.error { color: #a14646; }

/* Booking embed panel --------------------------------------------------- */
.booking-panel {
  border: 1px dashed var(--stone);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: var(--paper);
  text-align: center;
}
.booking-panel .icon-lg { font-size: 2rem; margin-bottom: var(--space-2); }

/* Callout / banner ------------------------------------------------------ */
.callout {
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--slate), var(--slate-deep));
  color: var(--cream);
}
.callout h2, .callout h3 { color: var(--cream); }
.callout .btn--primary { background: var(--cream); color: var(--slate); }
.callout .btn--primary:hover { background: var(--paper); }

.callout--plum { background: linear-gradient(135deg, var(--plum), #8f4d9c); }

/* Divider dot row -------------------------------------------------------- */
.divider {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--stone);
  margin: var(--space-4) 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--stone-light); }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--stone-light);
  padding: var(--space-5) 0 var(--space-3);
  color: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-body);
  color: var(--slate);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.6em; font-size: 0.95rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--stone);
  border-top: 1px solid var(--stone-light);
  padding-top: var(--space-3);
}
.crisis-note {
  font-size: 0.82rem;
  color: var(--stone);
  max-width: 60em;
  margin-top: var(--space-2);
}

/* Utilities ------------------------------------------------------------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.flex-gap { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sage-deep);
  background: rgba(90, 167, 78, 0.12);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  margin: 0 0.4em 0.4em 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
