/* ============================================
   jo armstrong, integrative therapist
   Shared stylesheet
   ============================================ */

/* Site typeface: Source Sans, a free, open licence font in the same
   family of clean, editorial sans-serifs as News Gothic Std. */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

:root {
  /* Colour */
  --paper: #F5F3E9;
  --paper-warm: #EFEDE0;
  --teal: #4DA4A9;
  --teal-deep: #4DA4A9;
  --sage: #6E7A3F;
  --ink: #2B2A25;
  --quiet: #8C897E;
  --quiet-light: #C9C6B8;
  --line: #DAD7C8;

  /* Logo colours now point to the same unified teal and khaki used
     site-wide, kept as separate variables in case that ever needs to
     change again, but currently identical to --teal-deep / --sage. */
  --teal-logo: #4DA4A9;
  --sage-logo: #B2AD81;

  /* Type, single family throughout, standing in for News Gothic Std */
  --font-display: 'Source Sans 3', 'News Gothic Std', Helvetica, Arial, sans-serif;
  --font-body: 'Source Sans 3', 'News Gothic Std', Helvetica, Arial, sans-serif;

  /* Layout */
  --measure: 40rem;
  --measure-wide: 46rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

a {
  color: var(--teal-deep);
  text-decoration-color: var(--quiet-light);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal);
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--teal-deep);
  text-transform: lowercase;
  margin: 0 0 var(--space-sm) 0;
}

h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  font-style: normal;
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin-top: var(--space-lg);
}

p {
  margin: 0 0 var(--space-md) 0;
  max-width: var(--measure);
}

em, i { font-style: italic; }
strong, b { font-weight: 600; }

.site-wrap {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / nav ---------- */

header.site-header {
  padding: var(--space-lg) 0 var(--space-md) 0;
}

.brand {
  display: block;
  text-decoration: none;
}

.brand .name {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.3rem;
  color: var(--teal-logo);
  text-transform: lowercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand .tagline {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--sage-logo);
  margin-top: 1.1rem;
  line-height: 1.1;
}

.brand .services {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--teal-logo);
  margin-top: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

nav.site-nav {
  margin-top: var(--space-md);
  border-top: 1px solid var(--line);
  padding-top: var(--space-sm);
}

nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}

nav.site-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sage-logo);
  transition: color 0.2s ease;
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--teal-deep);
}

/* ---------- Main content ---------- */

main {
  padding-bottom: var(--space-xl);
}

.page-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-sm);
}

.lede {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--teal-deep);
}

section.block {
  margin-bottom: var(--space-lg);
}

/* ---------- Headshot ---------- */

.headshot-wrap {
  margin: var(--space-md) 0 var(--space-lg) 0;
}

.headshot-wrap img {
  width: 220px;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 1px 3px rgba(43, 42, 37, 0.08);
}

@media (max-width: 480px) {
  .headshot-wrap img {
    width: 160px;
    height: auto;
  }
}

/* ---------- CTA links ---------- */

.cta-link {
  display: inline-block;
  margin: 0.25rem 0 var(--space-sm) 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--teal);
  padding-bottom: 0.1em;
}

.cta-link:hover {
  color: var(--teal);
  border-bottom-color: var(--sage);
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-sm);
}

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

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-md) 0 var(--space-lg) 0;
  margin-top: var(--space-xl);
}

footer.site-footer p {
  font-size: 0.85rem;
  color: var(--quiet);
  margin: 0;
}

footer.site-footer a {
  color: var(--quiet);
}

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

form.contact-form {
  margin-top: var(--space-lg);
  max-width: var(--measure);
}

.form-row {
  margin-bottom: var(--space-md);
}

.form-row label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-row .hint {
  display: block;
  font-size: 0.85rem;
  color: var(--quiet);
  font-style: italic;
  margin-top: 0.3rem;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="number"],
.form-row textarea,
.form-row select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--quiet-light);
  border-radius: 4px;
  padding: 0.65rem 0.8rem;
}

.form-row textarea {
  min-height: 7rem;
  resize: vertical;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  margin: 0;
}

.radio-group input { margin: 0; }

button.submit-btn {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--teal-deep);
  border: none;
  border-radius: 4px;
  padding: 0.75rem 2rem;
  cursor: pointer;
}

button.submit-btn:hover {
  background: var(--teal);
}

.crisis-note {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--quiet);
  font-style: italic;
  max-width: var(--measure);
}

/* Honeypot field, hidden from real visitors, left visible in the HTML
   for simple bots that fill in every field they find. Anything other
   than display:none is used here on purpose, since some bots skip
   fields hidden that way. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.form-status.success {
  background: #E8EEE8;
  color: var(--teal-deep);
  border: 1px solid var(--teal);
}

.form-status.error {
  background: #F5E9E5;
  color: #8A4A3A;
  border: 1px solid #C98D77;
}
