/* Soul Intact — shared styles */

:root {
  --ink: #2b2140;
  --plum: #4a2f6b;
  --plum-deep: #2f1d47;
  --purple: #8a5cc2;
  --purple-soft: #b08ee0;
  --periwinkle: #6f7fe0;
  --lilac: #efe6f8;
  --lilac-pale: #f8f3fc;
  --cream: #fbf8f4;
  --sun: #e9925a;
  --sun-soft: #fbe3cf;
  --muted: #655d75;
  --line: #e6dcef;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 22px;
  --shadow: 0 24px 60px -28px rgba(74, 47, 107, 0.45);
  --shadow-soft: 0 12px 34px -20px rgba(74, 47, 107, 0.35);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--purple);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--plum-deep);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--periwinkle);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--plum);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 200;
}

.skip-link:focus {
  left: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--purple) 0%, var(--periwinkle) 100%);
  color: var(--white);
  box-shadow: 0 14px 30px -14px rgba(111, 95, 210, 0.9);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -14px rgba(111, 95, 210, 0.95);
}

.btn-ghost {
  border-color: rgba(74, 47, 107, 0.3);
  color: var(--plum);
  background: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  border-color: var(--plum);
  background: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--plum);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.5);
}

/* ---------- Top bar + header ---------- */

.topbar {
  background: var(--plum-deep);
  color: #e9defa;
  font-size: 14.5px;
  letter-spacing: 0.03em;
}

.topbar .wrap {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.topbar a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar a:hover {
  color: var(--white);
}

.topbar svg {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(74, 47, 107, 0.6);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand img {
  width: 172px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav ul {
  display: flex;
  gap: 34px;
}

.nav li a {
  position: relative;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 0;
}

.nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--periwinkle));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav li a:hover::after,
.nav li a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav li a[aria-current="page"] {
  color: var(--purple);
}

.nav .btn {
  padding: 12px 24px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--plum);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.nav-toggle span {
  top: 21px;
}

.nav-toggle span::before {
  left: 0;
  top: -7px;
}

.nav-toggle span::after {
  left: 0;
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 70% at 76% 30%, rgba(255, 196, 140, 0.5) 0%, rgba(255, 196, 140, 0) 70%),
    radial-gradient(50% 60% at 8% 100%, rgba(176, 142, 224, 0.28) 0%, rgba(176, 142, 224, 0) 70%),
    linear-gradient(115deg, #fbf8f4 0%, #f6eefb 52%, #fdf0e2 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 96px;
}

.hero-copy {
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin-bottom: 0.28em;
}

.hero h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  font-style: italic;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 1.3em;
}

.hero-rule {
  width: 84px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--sun), var(--purple));
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-art {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  height: 100%;
  aspect-ratio: 1024 / 940;
  max-width: 62vw;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  /* cover.png sits on white — multiply lets the hero gradient show through */
  mix-blend-mode: multiply;
}

.hero-art img {
  width: 100%;
  height: auto;
}

/* ---------- Page banner (inner pages) ---------- */

.page-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(45% 80% at 85% 0%, rgba(255, 196, 140, 0.45) 0%, rgba(255, 196, 140, 0) 70%),
    radial-gradient(45% 90% at 10% 100%, rgba(176, 142, 224, 0.35) 0%, rgba(176, 142, 224, 0) 70%),
    linear-gradient(115deg, #fbf8f4 0%, #f3e9fb 60%, #fdf0e2 100%);
}

.page-banner h1 {
  font-size: clamp(44px, 6vw, 76px);
  margin-bottom: 0.2em;
}

.crumbs {
  display: inline-flex;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs a {
  color: var(--purple);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

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

.section--lilac {
  background: var(--lilac-pale);
}

.section-title {
  font-size: clamp(36px, 4.4vw, 56px);
  margin-bottom: 0.55em;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--sun), var(--purple));
}

.center {
  text-align: center;
}

.center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.split--wide-text {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.photo {
  position: relative;
  border-radius: var(--radius);
}

.photo img {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.photo::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--lilac) 0%, var(--sun-soft) 100%);
}

.photo--left::before {
  inset: 22px 22px -22px -22px;
}

/* Founder letter */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.founder-lead {
  position: sticky;
  top: 130px;
}

.founder-lead p {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  color: var(--plum-deep);
  margin: 0;
}

.founder-lead strong {
  font-weight: 600;
  color: var(--purple);
}

.founder-body p {
  color: var(--muted);
}

.pull {
  position: relative;
  margin: 1.6em 0;
  padding: 26px 30px 26px 34px;
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: 3px solid var(--sun);
  background: linear-gradient(100deg, var(--lilac-pale), rgba(251, 227, 207, 0.45));
}

.founder-body .pull strong {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 31px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--plum-deep);
}

.prose p {
  color: var(--muted);
}

.prose b,
.prose strong {
  color: var(--plum-deep);
  font-weight: 600;
}

/* Talk to us band */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #efe6f8;
  padding: clamp(64px, 8vw, 104px) 0;
  background:
    radial-gradient(50% 120% at 90% 0%, rgba(233, 146, 90, 0.4) 0%, rgba(233, 146, 90, 0) 65%),
    radial-gradient(50% 120% at 5% 100%, rgba(111, 127, 224, 0.45) 0%, rgba(111, 127, 224, 0) 65%),
    linear-gradient(120deg, var(--plum-deep), var(--plum));
}

.cta h2 {
  color: var(--white);
  font-size: clamp(38px, 4.6vw, 60px);
}

.cta p {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 20px;
}

/* ---------- Services ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--purple);
  margin-bottom: 1.4em;
}

.ticks li {
  position: relative;
  padding: 11px 0 11px 36px;
  border-bottom: 1px dashed var(--line);
  font-size: 18.5px;
  color: var(--ink);
}

.ticks li:last-child {
  border-bottom: 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5cc2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.ticks--cols {
  columns: 2;
  column-gap: 36px;
}

.ticks--cols li {
  break-inside: avoid;
}

.stack {
  display: grid;
  gap: 28px;
}

.duo {
  position: relative;
  padding: 0 0 70px 0;
}

.duo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.duo img:first-child {
  width: 82%;
}

.duo img:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  border: 8px solid var(--cream);
}

.unique {
  color: #efe6f8;
  background:
    radial-gradient(45% 110% at 100% 0%, rgba(233, 146, 90, 0.35) 0%, rgba(233, 146, 90, 0) 65%),
    linear-gradient(120deg, var(--plum-deep), var(--plum));
}

.unique .section-title {
  color: var(--white);
}

.unique-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  counter-reset: unique;
}

.unique-grid li {
  counter-increment: unique;
  padding: 34px 30px 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  transition: transform 0.3s ease, background 0.3s ease;
}

.unique-grid li:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.11);
}

.unique-grid li::before {
  content: counter(unique, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 50px;
  line-height: 1;
  color: #f4b98d;
  margin-bottom: 20px;
}

.unique-grid h4 {
  color: var(--white);
  font-size: 27px;
  line-height: 1.22;
  margin: 0;
}

.therapies li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.therapies li:first-child {
  padding-top: 0;
}

.therapies li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.therapies h3 {
  font-size: 28px;
  margin-bottom: 0.2em;
}

.therapies p {
  color: var(--muted);
}

/* ---------- Special programs ---------- */

.programs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.dash {
  font-size: 19px;
  line-height: 2;
  color: var(--ink);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.lead {
  font-size: 21px;
  color: var(--muted);
}

.info {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.info li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.info .icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lilac), var(--sun-soft));
  color: var(--purple);
}

.info .icon svg {
  width: 24px;
  height: 24px;
}

.info h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--purple);
  margin-bottom: 0.5em;
}

.info p {
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.info a {
  color: var(--ink);
}

.info a:hover {
  color: var(--purple);
}

.follow {
  margin-top: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.follow h4 {
  font-size: 24px;
  margin: 0;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--plum);
  background: var(--white);
  border: 1px solid var(--line);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.social a:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-3px);
}

.social svg {
  width: 18px;
  height: 18px;
}

.map {
  position: sticky;
  top: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid var(--white);
  background: var(--lilac);
}

.map iframe {
  display: block;
  width: 100%;
  height: clamp(380px, 62vh, 620px);
  border: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  text-align: center;
}

.site-footer .brand img {
  width: 210px;
  margin: 0 auto 22px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-bottom: 30px;
}

.footer-nav a {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.footer-nav a:hover {
  color: var(--purple);
}

.copyright {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Floating buttons ---------- */

.float {
  position: fixed;
  right: 22px;
  z-index: 90;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, opacity 0.3s ease, visibility 0.3s;
}

.float:hover {
  transform: translateY(-3px);
}

.float svg {
  width: 26px;
  height: 26px;
}

.float--wa {
  bottom: 22px;
  background: #25d366;
  color: var(--white);
}

.float--top {
  bottom: 88px;
  background: var(--white);
  color: var(--plum);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
}

.float--top.is-visible {
  opacity: 1;
  visibility: visible;
}

.float--top svg {
  width: 20px;
  height: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  body {
    font-size: 17px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px var(--gutter) 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(74, 47, 107, 0.5);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav li a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
  }

  .nav li a::after {
    display: none;
  }

  .nav .btn {
    justify-content: center;
    padding: 15px 24px;
  }

  .split,
  .split--wide-text,
  .founder,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .founder-lead,
  .map {
    position: static;
  }

  .split .photo {
    order: -1;
    margin-right: 18px;
  }

  .split .photo--left {
    margin-right: 0;
    margin-left: 18px;
  }

  .photo::before {
    inset: 16px -16px -16px 16px;
  }

  .photo--left::before {
    inset: 16px 16px -16px -16px;
  }

  .unique-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Hero stacks: copy first, figure underneath */
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-art {
    order: 2;
  }

  .hero .wrap {
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 8px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-art {
    position: relative;
    height: auto;
    max-width: none;
    width: 128%;
    margin-left: -26%;
    margin-top: -6%;
  }
}

@media (max-width: 640px) {
  .topbar .wrap {
    justify-content: center;
    gap: 6px 20px;
  }

  .brand img {
    width: 140px;
  }

  .site-header .wrap {
    min-height: 72px;
  }

  .programs {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticks--cols {
    columns: 1;
  }

  .info li {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .info .icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
