/* ==========================================================================
   Stratford Counselling — Mandy York Ford
   Palette & type carried over from the Squarespace original:
   navy  hsl(218 37% 23%)  |  stone hsl(60 7% 87%)  |  white
   Headings: Space Grotesk 500/700  ·  Body: Raleway 400/500/700
   ========================================================================== */

:root {
  --navy: hsl(218, 37%, 23%);
  --navy-deep: hsl(218, 40%, 18%);
  --stone: hsl(60, 7%, 87%);
  --stone-soft: hsl(60, 9%, 92%);
  --white: #ffffff;
  --ink: hsl(330, 3%, 14%);
  --ink-soft: hsl(218, 10%, 32%);

  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Raleway", system-ui, sans-serif;

  --max-width: 1140px;
  --prose-width: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 4px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; }

p + p { margin-top: 1em; }
.prose { max-width: var(--prose-width); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.theme-dark :focus-visible { outline-color: var(--white); }

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

/* Layout ------------------------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section { padding-block: var(--section-y); }

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  color: var(--ink-soft);
}
.theme-dark .eyebrow { color: hsl(218, 30%, 78%); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--inverse {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}
.btn--inverse:hover { background: var(--stone); border-color: var(--stone); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }

/* Header ------------------------------------------------------------------ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid hsl(60, 7%, 90%);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
}
.site-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.site-header .btn { padding: 0.625rem 1.375rem; font-size: 0.9375rem; }

/* Hero ------------------------------------------------------------------ */
.theme-dark { background: var(--navy); color: var(--white); }
.theme-stone { background: var(--stone); }

.hero .container {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 820px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; }
}
.hero h1 { margin-bottom: 1.25rem; }
.hero .lede {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.65;
  max-width: 34ch;
  margin-bottom: 2rem;
  color: hsl(218, 35%, 88%);
}
.hero-image img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 5.5;
}

/* Split sections (image + text) ------------------------------------------- */
.split .container {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 820px) {
  .split .container { grid-template-columns: 1fr 1fr; }
  .split--flip .split-image { order: 2; }
}
.split-image img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.split .btn { margin-top: 1.75rem; }

.fee {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-top: 1.25rem;
}

/* CTA band ------------------------------------------------------------------ */
.cta { text-align: center; }
.cta h2 { color: var(--navy); }
.cta .prose { margin-inline: auto; margin-bottom: 2rem; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Contact page ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
}
.contact-details p + p { margin-top: 0.5em; }
.contact-details a { color: var(--navy); font-weight: 500; }

.form-field { margin-bottom: 1.375rem; }
.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid hsl(218, 15%, 72%);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--navy);
  outline: none;
}
.form-note { font-size: 0.875rem; color: var(--ink-soft); margin-top: 1rem; }
.hp { position: absolute; left: -9999px; }

/* Privacy page ------------------------------------------------------------- */
.policy h2 { margin-top: 0; }
.policy h3 { margin-top: 2.25rem; margin-bottom: 0.625rem; }
.policy ul { padding-left: 1.375rem; margin-top: 0.5em; }
.policy li + li { margin-top: 0.25em; }
.policy a { color: var(--navy); }
.policy .updated { color: var(--ink-soft); font-size: 0.9375rem; margin-bottom: 2rem; }

/* Footer ------------------------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: hsl(218, 30%, 85%);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.9375rem;
}
.site-footer a { color: var(--white); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.875rem;
  letter-spacing: 0.02em;
}
.site-footer p + p { margin-top: 0.375em; }
.footer-links a {
  display: block;
  text-decoration: none;
  padding-block: 0.2rem;
}
.footer-links a:hover { text-decoration: underline; }
.bacp-logo { max-width: 180px; margin-top: 0.875rem; background: var(--white); padding: 0.5rem; border-radius: var(--radius); }
.footer-legal {
  border-top: 1px solid hsl(218, 30%, 32%);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: hsl(218, 25%, 72%);
}
