/* ==========================================================================
   Sally Viollier Therapy
   --------------------------------------------------------------------------
   All colours, fonts and spacing come from CSS custom properties defined in
   the page <head>, which are generated from src/_data/theme.json.
   To retheme the site, edit that file (or the Theme section in Pages CMS).
   There are deliberately no hard-coded colours below.
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--colour-bg);
  color: var(--colour-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-weight: 400;
}

/* ---------- layout ---------- */

.wrap      { max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 900px; }

main > section { padding: var(--section-spacing) 0; }
section.tint      { background: var(--colour-section-tint); }
section.warm-tint { background: var(--colour-section-warm); }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  letter-spacing: var(--font-heading-tracking);
  color: var(--colour-accent-dark);
}

h1 { font-size: clamp(33px, 5.6vw, 46px); line-height: 1.14; margin: 0 0 18px; }
h2 { font-size: clamp(24px, 3.8vw, 30px); line-height: 1.24; margin: 0 0 16px; }
h3 { font-size: 19px; line-height: 1.35; margin: 0 0 8px; letter-spacing: -0.012em; color: var(--colour-text); }

p { margin: 0 0 18px; }

a {
  color: var(--colour-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--colour-accent-dark); }

:focus-visible {
  outline: 2.5px solid var(--colour-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Draft-placeholder highlighting has been retired — no bracketed copy remains.
   Italics now render normally. */

/* ---------- navigation ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--colour-bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--colour-border);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: var(--font-heading-weight);
  letter-spacing: -0.015em;
  color: var(--colour-accent-dark);
  text-decoration: none;
  white-space: nowrap;
}

nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
}
nav a:not(.brand) { color: var(--colour-text-muted); text-decoration: none; }
nav a:not(.brand):hover { color: var(--colour-accent); }

@media (max-width: 640px) { nav ul { display: none; } }

/* ---------- hero ---------- */

.hero { padding: 74px 0 70px; }

.hero-grid { display: grid; gap: 30px; justify-items: start; }
.hero-text { min-width: 0; }

.hero-portrait {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--colour-border);
  display: block;
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr auto;
    gap: 46px;
    align-items: center;
  }
  .hero-text { grid-column: 1; grid-row: 1; }
  .hero-portrait { grid-column: 2; grid-row: 1; width: 216px; height: 216px; }
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--colour-text-muted);
  margin: 0 0 18px;
  font-weight: 600;
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--colour-text-muted);
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  background: var(--colour-accent);
  color: var(--colour-panel);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  font-family: var(--font-body);
  border: 0;
  cursor: pointer;
  transition: background 0.18s;
}
.btn:hover { background: var(--colour-accent-dark); color: var(--colour-panel); }

.btn-note { font-size: 14.5px; color: var(--colour-text-muted); margin-top: 14px; }

.availability {
  margin-top: 34px;
  padding: 15px 18px;
  background: var(--colour-section-tint);
  border: 1px solid var(--colour-border);
  border-radius: calc(var(--radius) - 2px);
  font-size: 16px;
  color: var(--colour-text-muted);
}
.availability strong { color: var(--colour-accent-dark); }
.availability p { margin: 0; }

/* ---------- reason list ---------- */

.reasons { list-style: none; margin: 0 0 20px; padding: 0; }

.reasons li {
  padding: 12px 0 12px 30px;
  position: relative;
  border-bottom: 1px solid var(--colour-border);
}
.reasons li:last-child { border-bottom: 0; }

.reasons li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--colour-accent);
  opacity: 0.55;
}

/* ---------- cards ---------- */

.cards { display: grid; gap: 18px; margin: 26px 0 6px; }
@media (min-width: 640px) { .cards.two { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--colour-panel);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card p:last-child { margin-bottom: 0; }

/* ---------- fact tables ---------- */

.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 16.5px;
}

.facts th,
.facts td {
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid var(--colour-border);
  vertical-align: top;
}
.facts th { font-weight: 600; width: 38%; padding-right: 18px; }
.facts tr:last-child th,
.facts tr:last-child td { border-bottom: 0; }

/* ---------- FAQs ---------- */

details { border-bottom: 1px solid var(--colour-border); padding: 4px 0; }

summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--colour-accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
details[open] summary::after { content: "–"; }
details .answer { color: var(--colour-text-muted); }
details .answer p:last-child { margin-bottom: 18px; }

/* ---------- portrait ---------- */

.portrait {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 0 26px;
  border: 1px solid var(--colour-border);
}

.portrait-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--colour-section-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12.5px;
  color: var(--colour-text-muted);
  padding: 16px;
  margin: 0 0 26px;
  line-height: 1.4;
  border: 1px solid var(--colour-border);
}

/* ---------- form ---------- */

form { margin-top: 24px; }

.field { margin-bottom: 18px; }

label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }

.hint {
  font-weight: 400;
  color: var(--colour-text-muted);
  font-size: 14px;
  display: block;
  margin-top: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--colour-border);
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--colour-panel);
  color: var(--colour-text);
}

textarea { min-height: 130px; resize: vertical; }

.radios { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 6px; }
.radios label {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--colour-accent);
  width: 17px;
  height: 17px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--colour-text-muted);
  font-weight: 400;
}

/* ---------- crisis notice ---------- */

.crisis {
  background: var(--colour-panel);
  border: 1px solid var(--colour-border);
  border-left: 4px solid var(--colour-alert);
  border-radius: calc(var(--radius) - 2px);
  padding: 18px 20px;
  margin: 28px 0 0;
  font-size: 15.5px;
  color: var(--colour-text-muted);
}
.crisis strong { color: var(--colour-text); }
.crisis p:last-child { margin-bottom: 0; }

/* ---------- long-form pages ---------- */

.page { padding: 60px 0 var(--section-spacing); }
.page h2 { font-size: 24px; margin-top: 38px; }
.page h3 { margin-top: 26px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 16px; }
.page th, .page td {
  text-align: left;
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--colour-border);
  vertical-align: top;
}
.page th { font-weight: 600; }
.updated { color: var(--colour-text-muted); font-size: 15px; }

/* ---------- urgent help page ---------- */

.lede-prose p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--colour-text-muted);
}
.lede-prose { margin-bottom: 6px; }

.notice {
  background: var(--colour-panel);
  border: 1px solid var(--colour-border);
  border-left: 4px solid var(--colour-alert);
  border-radius: calc(var(--radius) - 2px);
  padding: 20px 22px;
  margin: 0 0 26px;
}
.notice-heading {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  letter-spacing: var(--font-heading-tracking);
  font-size: 19px;
  color: var(--colour-alert);
  margin: 0 0 8px;
}
.notice p:last-child { margin-bottom: 0; }

.section-note p { color: var(--colour-text-muted); font-size: 16px; margin-bottom: 10px; }

.page ul.services {
  list-style: none;
  margin: 14px 0 30px;
  padding-left: 0;
}

.page ul.services li {
  padding: 16px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--colour-border);
}
.page ul.services li:last-child { border-bottom: 0; }

.service-name {
  font-weight: 600;
  margin: 0 0 3px;
  color: var(--colour-text);
}

.service-contact {
  margin: 0 0 5px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--colour-accent);
}
.service-contact a { text-decoration: none; }
.service-contact a:hover { text-decoration: underline; }

.service-detail {
  margin: 0;
  color: var(--colour-text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.closing-note {
  margin-top: 34px;
  padding: 18px 20px;
  background: var(--colour-section-warm);
  border-radius: calc(var(--radius) - 2px);
}
.closing-note p:last-child { margin-bottom: 0; }

.crisis .crisis-link { display: block; margin-top: 4px; }

/* ---------- footer ---------- */

footer {
  background: var(--colour-accent-dark);
  color: color-mix(in srgb, var(--colour-panel) 82%, var(--colour-accent-dark));
  padding: 52px 0 44px;
  font-size: 14.5px;
  line-height: 1.7;
}
footer a { color: var(--colour-panel); }
footer h4 {
  color: var(--colour-panel);
  font-size: 17px;
  margin: 0 0 10px;
}

.footer-cols { display: grid; gap: 26px; }
@media (min-width: 640px) { .footer-cols { grid-template-columns: 1.3fr 1fr; } }

.legal {
  border-top: 1px solid color-mix(in srgb, var(--colour-panel) 16%, transparent);
  margin-top: 30px;
  padding-top: 20px;
  font-size: 13px;
  color: color-mix(in srgb, var(--colour-panel) 66%, var(--colour-accent-dark));
}

/* ---------- print ---------- */

@media print {
  nav, .crisis, form, .btn { display: none; }
  body { background: #fff; color: #000; }
  .services li { break-inside: avoid; }
  .services { margin-bottom: 18px; }
  .page { padding: 0; }
}

/* ---------- holding page ---------- */

body.holding-mode nav ul { display: none; }
.hero.holding { padding: 90px 0 100px; }
.hero.holding .lede { margin-bottom: 30px; }
.hero.holding .crisis { margin-top: 44px; }
