/* ===========================================================
   Inside Out Therapy — Design Tokens (v2)
   Direction: editorial / literary rather than soft-wellness.
   Palette drawn from the Highcliffe cliffs themselves — chalk
   stone, gorse gold, and a deep slate ink, with a single clay
   ember used sparingly. Type pairs a classic Caslon revival
   for headings with a confident grotesk for reading, and an
   italic literary serif reserved for the one pull-quote.
   Signature device: a faint "settling line" watermark (tangle
   resolving into a calm wave) sits behind the hero, and a
   recurring roman-numeral index marks anything genuinely
   sequential — the three ways of working, the four steps.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Display&family=Newsreader:ital,wght@1,400;1,500&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  /* colour */
  --ink:        #17262B;   /* deep slate — headings, primary text */
  --ink-soft:   #46565A;   /* secondary text */
  --paper:      #EFEAE0;   /* chalk stone — main background */
  --mist:       #DEE3DA;   /* pale sage mist — alt section background */
  --mist-line:  #C7CFC4;   /* hairline on mist */
  --gold:       #B9832C;   /* gorse gold — primary accent, links, numerals */
  --gold-deep:  #8F6420;
  --clay:       #A15A3E;   /* ember clay — single sparing accent */
  --line:       #C9BC9E;   /* hairline on paper */
  --white:      #FFFFFF;

  /* type */
  --font-display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --font-italic:  "Newsreader", Georgia, serif;
  --font-body:    "Archivo", ui-sans-serif, system-ui, sans-serif;

  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 3.25rem);
}

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

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

img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { color: var(--clay); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.9em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section--mist { background: var(--mist); }

.lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 60ch; }

.dropcap::first-letter {
  font-family: var(--font-display);
  font-size: 3.6em;
  float: left;
  line-height: 0.78;
  padding: 0.05em 0.09em 0 0;
  color: var(--gold-deep);
}

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ---------- buttons (line-based, not filled pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.95em 1.6em;
  border-radius: 0;
  border: 1px solid var(--ink);
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn::after { content: "\2192"; transition: transform 0.2s ease; }
.btn:hover::after { transform: translateX(3px); }
.btn-primary { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white); }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-on-dark { border-color: rgba(239,234,224,0.55); color: var(--paper); }
.btn-on-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-on-gold { border-color: var(--ink); color: var(--ink); }
.btn-on-gold:hover { background: var(--ink); color: var(--paper); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); }
.brand img { height: 46px; width: 46px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-size: 1.22rem; }
.brand__sub {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: 0.25s; }

.main-nav ul { list-style: none; display: flex; gap: 2.1rem; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.05rem;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold-deep); }
.main-nav .btn { margin-left: 0.6rem; text-transform: uppercase; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 0.5rem var(--pad) 1.2rem; }
  .main-nav li { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--mist-line); }
  .main-nav .btn { margin: 1rem 0 0; }
}

/* ---------- hero: asymmetric, full-bleed media ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 78vh;
}
.hero__text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad);
  z-index: 2;
}
.hero__watermark {
  position: absolute;
  top: 50%; left: -6%;
  width: 130%;
  transform: translateY(-50%);
  opacity: 0.07;
  z-index: 1;
  pointer-events: none;
}
.hero__watermark path, .hero__watermark circle { stroke: var(--ink); }
.hero__eyebrow { position: relative; z-index: 2; }
.hero__title { position: relative; z-index: 2; max-width: 12ch; }
.hero__lede { position: relative; z-index: 2; }
.hero__actions { position: relative; z-index: 2; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__media { position: relative; overflow: hidden; min-height: 320px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.hero__media-tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 0.95rem;
  padding: 0.7em 1.1em;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { min-height: 300px; order: -1; }
  .hero__title { max-width: none; }
}

/* ---------- quote band ---------- */
.quote-band { background: var(--gold); padding: clamp(3rem, 7vw, 4.5rem) 0; }
.quote-band .container { max-width: 900px; }
.quote-band blockquote {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 1rem;
}
.quote-band cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #4A3410;
}

/* ---------- about split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--reverse { grid-template-columns: 0.85fr 1fr; }
.split--reverse .split__media { order: -1; }
@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
.split__media img { width: 100%; }

/* ---------- roman-numeral index list (modes of working) ---------- */
.index-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) { .index-list { grid-template-columns: 1fr; } }
.index-item {
  padding: 0 2.2rem;
  border-left: 1px solid var(--line);
}
.index-item:first-child { border-left: none; padding-left: 0; }
@media (max-width: 860px) {
  .index-item { border-left: none; border-top: 1px solid var(--line); padding: 2rem 0 0; margin-top: 2rem; }
  .index-item:first-child { border-top: none; margin-top: 0; padding-top: 0; }
}
.index-item__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}
.index-item h3 { margin-bottom: 0.5em; }
.index-item p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 0; }

/* ---------- CTA strip (ink, full width) ---------- */
.cta-strip { background: var(--ink); color: var(--paper); }
.cta-strip .container {
  padding-top: clamp(2.6rem, 6vw, 3.6rem);
  padding-bottom: clamp(2.6rem, 6vw, 3.6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-strip h2 { color: var(--paper); margin-bottom: 0.3em; }
.cta-strip p { color: #B9C6C2; margin-bottom: 0; max-width: 44ch; }

/* ---------- credentials row ---------- */
.credentials-row {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.credentials-row img { height: 58px; width: auto; }
.credentials-row p { font-size: 0.92rem; color: var(--ink-soft); max-width: 50ch; margin: 0; }

/* ---------- stat block ---------- */
.stat-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
}
@media (max-width: 620px) { .stat-block { grid-template-columns: 1fr; text-align: left; } }
.stat-block__num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 0.9;
  color: var(--gold-deep);
}
.stat-block p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { border-bottom: 1px solid var(--line); padding: clamp(2.8rem, 6vw, 4.2rem) 0 clamp(2.2rem, 5vw, 3.2rem); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 0.9rem; }

/* ---------- timeline (process steps) ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } .timeline::before { display: none; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }
.timeline-item { position: relative; padding-top: 2.1rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: 0.35rem; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
@media (max-width: 900px) { .timeline-item::before { display: none; } }
.timeline-item__num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.timeline-item p { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 0; }

/* ---------- pricing (editorial table, no card) ---------- */
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th {
  text-align: left;
  padding: 0 0 0.8rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.price-table td {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.price-table td.price { font-family: var(--font-display); font-size: 1.2rem; text-align: right; }
.price-table th.price { text-align: right; }
.price-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

/* ---------- FAQ index ---------- */
.faq-index-list { border-top: 1px solid var(--ink); }
.faq-row { border-bottom: 1px solid var(--line); }
.faq-row summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 2.6rem 1fr 1.4rem;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary .num {
  font-family: var(--font-display);
  color: var(--gold-deep);
  font-size: 0.98rem;
}
.faq-row summary .q { font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }
.faq-row summary .plus { position: relative; width: 18px; height: 18px; justify-self: end; }
.faq-row summary .plus::before, .faq-row summary .plus::after {
  content: ""; position: absolute; background: var(--ink);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-row summary .plus::before { width: 12px; height: 1.5px; }
.faq-row summary .plus::after { width: 1.5px; height: 12px; transition: transform 0.2s ease; }
.faq-row[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0.001); }
.faq-row .faq-body { display: grid; grid-template-columns: 2.6rem 1fr 1.4rem; padding-bottom: 1.6rem; }
.faq-row .faq-body p { grid-column: 2; color: var(--ink-soft); max-width: 66ch; margin: 0; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: flex-start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list dt {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold-deep); font-weight: 600; margin-top: 1.6rem;
}
.info-list dt:first-child { margin-top: 0; }
.info-list dd { margin: 0.3rem 0 0; font-size: 1.05rem; }

.crisis-note {
  margin-top: 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.crisis-note strong { color: var(--ink); font-family: var(--font-display); font-weight: 400; }
.crisis-note a { font-weight: 600; }

.form-field { margin-bottom: 1.6rem; }
.form-field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.55rem; color: var(--ink-soft);
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.6em 0.05em;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-bottom-color: var(--gold-deep);
}
.form-hp { position: absolute; left: -9999px; top: -9999px; }

.alert { padding: 1rem 1.3rem; font-size: 0.95rem; margin-bottom: 1.8rem; border-left: 3px solid; }
.alert-success { background: var(--mist); border-color: var(--gold-deep); color: #2E4A3E; }
.alert-error { background: #F3E6E0; border-color: var(--clay); color: #7A3A24; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #B9C6C2; padding-top: 3.5rem; margin-top: 4.5rem; }
.site-footer a { color: #DCE5E1; }
.site-footer a:hover { color: var(--paper); }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 2rem;
  padding-bottom: 2.6rem;
}
.footer-brand { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { height: 40px; width: 40px; border-radius: 50%; }
.footer-brand span { font-family: var(--font-display); font-size: 1.7rem; color: var(--paper); }
.footer-tagline { max-width: 34ch; font-size: 0.92rem; color: #93A6A0; margin: 0; }
.footer-nav-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-nav-cols h4 {
  font-family: var(--font-body); color: var(--paper); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.footer-nav-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-nav-cols li { margin-bottom: 0.55rem; font-size: 0.93rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding: 1.4rem 0 1.6rem;
  font-size: 0.8rem; color: #7C918B;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.8em 1.2em; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
