/* =====================================================================
   Sandton Therapy — public site stylesheet
   Aesthetic: warm editorial calm. Cream paper, deep navy ink, teal
   wing-petals from the hummingbird mark. Fraunces (display) + Karla (body).
   ===================================================================== */

:root {
  --paper: #fbf8f2;
  --paper-deep: #f3eee4;
  --ink: #272252;
  --ink-soft: #4c4775;
  --ink-faint: #767198;
  --teal: #3fbdbd;
  --teal-deep: #2a9d9d;
  --teal-soft: #d9f1f1;
  --apricot: #e9a87c;
  --apricot-soft: #fbeadd;
  --line: #e4ddcd;
  --radius-lg: 1.75rem;
  --radius-md: 1rem;
  --shadow-soft: 0 18px 45px -18px rgba(39, 34, 82, 0.22);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* Grain overlay for warmth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }
p strong { color: var(--ink); }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 50rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand img { height: 128px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-name b { color: var(--teal-deep); font-weight: 640; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(42, 157, 157, 0.7);
}
.btn-primary:hover { background: var(--teal-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.08rem; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.75; cursor: progress; transform: none; }
.btn-spinner {
  display: inline-block; width: 1em; height: 1em; margin-right: 0.55em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  vertical-align: -0.15em; animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 6rem;
}
.hero-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.hero h1 { color: #fdfcf9; }
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}
.hero p.lede {
  color: #c6c2dd;
  font-size: 1.15rem;
  max-width: 34rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-ctas .btn-ghost { color: #fdfcf9; border-color: rgba(253, 252, 249, 0.5); }
.hero-ctas .btn-ghost:hover { background: rgba(253, 252, 249, 0.12); color: #fff; }
.hero-note { margin-top: 1.4rem; font-size: 0.9rem; color: #8d88b3; }

/* wing petals — echo of the hummingbird mark */
.petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.petal {
  position: absolute;
  border-radius: 100% 0 100% 0;
  opacity: 0.35;
  filter: blur(0.5px);
}
.petal-1 { width: 420px; height: 420px; right: -120px; top: -140px; background: var(--teal); transform: rotate(18deg); opacity: 0.25; }
.petal-2 { width: 280px; height: 280px; right: 160px; top: -60px; background: var(--teal-deep); transform: rotate(40deg); opacity: 0.18; }
.petal-3 { width: 200px; height: 200px; right: -40px; bottom: -90px; background: var(--apricot); transform: rotate(-15deg); opacity: 0.16; }

.hero-card {
  position: relative;
  background: rgba(253, 252, 249, 0.06);
  border: 1px solid rgba(253, 252, 249, 0.14);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(6px);
}
.hero-card img {
  border-radius: var(--radius-md);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 4.6;
}
.hero-card figcaption { margin-top: 1rem; font-size: 0.95rem; color: #c6c2dd; }
.hero-card figcaption b { color: #fdfcf9; display: block; font-size: 1.05rem; }

/* staggered reveal on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.65, 0.3, 1) both; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.24s; }
.rise-4 { animation-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .rise, .rise-2, .rise-3, .rise-4 { animation: none; }
}

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section-deep { background: var(--paper-deep); }
.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.8rem;
}

/* services grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.tcard {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.tcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--teal);
  color: inherit;
}
.tcard h3 { margin: 0; }
.tcard p { margin: 0; font-size: 0.98rem; }
.tcard .more { color: var(--teal-deep); font-weight: 700; font-size: 0.9rem; margin-top: auto; padding-top: 0.8rem; }
.tcard-mark {
  width: 42px; height: 42px;
  border-radius: 100% 0 100% 0;
  background: var(--teal-soft);
  margin-bottom: 0.7rem;
}
.tcard:nth-child(2n) .tcard-mark { background: var(--apricot-soft); transform: rotate(90deg); }

/* split layout (about teaser etc.) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.split-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.split-img { position: relative; }
.split-img::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 60%;
  left: -1.2rem;
  bottom: -1.2rem;
  border-radius: 100% 0 100% 0;
  background: var(--teal-soft);
  z-index: -1;
}

/* checklist */
.checks { list-style: none; padding: 0; margin: 1.4rem 0; }
.checks li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 100% 0 100% 0;
  background: var(--teal);
}

/* steps band */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.4rem;
  margin-top: 2.4rem;
  counter-reset: step;
}
.step {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 { font-size: 1.15rem; }
.step p { font-size: 0.97rem; margin: 0; }

/* faq */
.faq-list { margin-top: 2rem; }
.faq-list details {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.8rem;
}
.faq-list details[open] { border-color: var(--teal); }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--teal-deep);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0.8rem 0 0.2rem; }

/* area chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chip {
  background: #fffdf9;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.chip:hover { border-color: var(--teal); color: var(--ink); transform: translateY(-2px); }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 3.2rem 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}
.cta-band h2 { color: #fdfcf9; margin: 0; }
.cta-band p { color: #c6c2dd; margin: 0.4rem 0 0; }
.cta-band .petal { opacity: 0.18; }

/* prose pages (privacy, service detail) */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose li { color: var(--ink-soft); margin-bottom: 0.45rem; }

/* contact panel */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; margin-top: 2rem; }
.info-card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.info-card dt { font-weight: 700; color: var(--ink); margin-top: 1.1rem; font-size: 0.88rem; letter-spacing: 0.12em; text-transform: uppercase; }
.info-card dt:first-child { margin-top: 0; }
.info-card dd { margin: 0.25rem 0 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c6c2dd;
  margin-top: 4.5rem;
  padding: 3.5rem 0 2.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: #dcd9ec; }
.site-footer a:hover { color: var(--teal); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
}
.footer-grid h4 { color: #fdfcf9; font-size: 1rem; margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-legal {
  border-top: 1px solid rgba(253, 252, 249, 0.14);
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8d88b3;
}
/* Platform credit (every practice site runs on Practix). */
.footer-legal .powered-by { opacity: .75; }
.footer-legal .powered-by a { font-weight: 600; }


/* ---------- cookie notice ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--ink, #2a2356);
  color: #fdfcf9;
  border-radius: 0.9rem;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1; min-width: 14rem; font-size: 0.86rem; line-height: 1.5; color: #e9e7f5; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner-btn {
  background: #fff;
  color: #2a2356;
  border: none;
  border-radius: 0.6rem;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner-btn:hover { background: #efeef7; }

/* ---------- responsive ---------- */
@media (max-width: 56rem) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 3.5rem; padding-bottom: 4rem; }
  .hero-card { max-width: 24rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1.2rem 1.5rem;
    align-items: flex-start;
    gap: 1rem;
  }
  .site-nav.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1.5px solid var(--line);
    border-radius: 0.6rem;
    padding: 0.45rem 0.7rem;
    font-size: 1.1rem;
    color: var(--ink);
    cursor: pointer;
  }
}

/* Onboarding form rows collapse to a single column on small phones so fixed
   tracks (e.g. the 8rem Title column) don't crush the name/scheme fields. */
@media (max-width: 32rem) {
  .of-grid { grid-template-columns: 1fr !important; }
}
