:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-soft: #f1eee7;
  --text: #1b2b2b;
  --muted: #4f5d5c;
  --brand: #123c3e;
  --brand-hover: #0b2e30;
  --accent: #6b4f3b;
  --border: #d9d5cc;
  --focus: #9b4a00;
  --max-width: 74rem;
  --content-width: 46rem;
  --radius: 0.75rem;
  --shadow: 0 1rem 2.5rem rgba(27, 43, 43, 0.08);
}

*,
*::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(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.09em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 0.35rem;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: rgba(250, 248, 244, 0.98);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}

.brand-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
}

.brand-role {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-block;
  padding: 0.55rem 0.15rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.35em;
}

.button,
.primary-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--brand);
  border-radius: 0.4rem;
  background: var(--brand);
  color: #ffffff;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.primary-nav .nav-cta:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

.button-secondary {
  background: transparent;
  color: var(--brand);
}

.button-secondary:hover {
  background: var(--surface-soft);
  color: var(--brand);
}

main:focus {
  outline: none;
}

.hero {
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.55rem, 6vw, 5.25rem);
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
}

.lead {
  max-width: 58ch;
  margin: 1.4rem 0 0;
  color: #344746;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.6;
}

.hero-quote {
  padding: 2rem;
  background: var(--brand);
  color: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-quote blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.35;
}

.hero-quote p {
  color: #ffffff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.section {
  padding: clamp(3.75rem, 8vw, 6.5rem) 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-dark {
  background: var(--brand);
  color: #ffffff;
}

.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark a:not(.button) {
  color: #ffffff;
}

.prose {
  max-width: var(--content-width);
}

.prose p {
  margin: 0 0 1.2rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

.kicker {
  max-width: 44rem;
  margin-top: -0.35rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.methods {
  columns: 2;
  column-gap: 3rem;
  max-width: 46rem;
  padding-left: 1.25rem;
}

.methods li {
  break-inside: avoid;
  margin-bottom: 0.65rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.focus-item {
  padding: 1.5rem;
  border-top: 4px solid var(--brand);
  background: var(--surface);
}

.focus-item ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.notice {
  max-width: 50rem;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: #fff9ed;
}

.placeholder {
  padding: 1rem 1.2rem;
  border: 2px dashed #8a8177;
  border-radius: 0.5rem;
  background: #fffdf8;
  color: #3c3a36;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--brand);
  color: #ffffff;
}

.cta-panel h2,
.cta-panel p {
  color: #ffffff;
}

.cta-panel h2 {
  margin-bottom: 0.75rem;
}

.site-footer {
  padding: 3rem 0;
  background: #102a2b;
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #ffffff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.footer-small {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.3);
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-nav ul {
    justify-content: flex-start;
  }

  .hero-grid,
  .cta-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-quote {
    max-width: 34rem;
  }

  .focus-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .methods {
    columns: 1;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1.05rem;
  }

  .container,
  .header-inner {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .actions,
  .actions .button,
  .primary-nav li:last-child,
  .primary-nav .nav-cta {
    width: 100%;
  }

  .primary-nav ul {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .primary-nav a {
    min-height: 2.75rem;
  }
}

@media print {
  .skip-link,
  .primary-nav,
  .actions,
  .site-footer {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .section,
  .hero {
    padding: 1rem 0;
  }
}

.credential-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
}

.credential-list li {
  position: relative;
  padding-left: 1rem;
}

.credential-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 58rem;
}

.method-card {
  padding: 1.5rem;
  border-left: 4px solid var(--brand);
  background: var(--surface);
}

.method-card p {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive photography */
.hero-media {
  display: grid;
  gap: 1rem;
  align-self: start;
}

.profile-figure,
.gallery-item {
  margin: 0;
}

.profile-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-media .hero-quote {
  box-shadow: none;
}

.equine-gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.gallery-item {
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gallery-item picture,
.gallery-item img {
  width: 100%;
  height: 100%;
}

.gallery-item img {
  min-height: 24rem;
  object-fit: cover;
}

.gallery-item:nth-child(1) img {
  object-position: center;
}

.gallery-item:nth-child(2) img {
  object-position: center;
}

.gallery-item:nth-child(3) img {
  object-position: center;
}

/* Mobile/touch refinements */
@media (max-width: 800px) {
  .hero-media {
    width: min(100%, 38rem);
  }

  .equine-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    min-height: 0;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2.75rem;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .credential-list {
    display: grid;
    gap: 0.45rem;
  }

  .profile-figure {
    border-radius: 0.6rem;
  }

  .equine-gallery {
    gap: 0.8rem;
  }

  .button,
  .primary-nav .nav-cta {
    min-height: 3.25rem;
  }
}

/* Accessibility reading-flow helpers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.quote-text {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.35;
}

/* CTA layout fix */
.cta-panel {
  display: block;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--brand);
  color: #ffffff;
}

.cta-copy {
  max-width: 48rem;
}

.cta-copy h2,
.cta-copy p {
  color: #ffffff;
}

.cta-copy h2 {
  margin-bottom: 0.75rem;
}

.cta-copy p {
  margin: 0;
  max-width: 42rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.cta-button {
  min-width: 12rem;
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand);
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--surface-soft);
  border-color: var(--surface-soft);
  color: var(--brand);
}

.cta-button-secondary {
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.cta-button-secondary:hover,
.cta-button-secondary:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand);
}

@media (max-width: 700px) {
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cta-button {
    width: 100%;
    min-width: 0;
  }
}

/* Equine-Assisted Psychotherapy page */
.equine-page-intro {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}

.equine-top-photo {
  margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.equine-top-photo img {
  width: 100%;
  max-height: 42rem;
  object-fit: cover;
  object-position: center 55%;
}

.equine-intro-copy {
  max-width: 58rem;
}

.equine-intro-copy h1 {
  max-width: 18ch;
}

.equine-split,
.equine-growth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.equine-feature-photo,
.equine-growth-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.equine-feature-photo img,
.equine-growth-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.equine-feature-photo img {
  aspect-ratio: 4 / 3;
}

.equine-growth-photo img {
  aspect-ratio: 1 / 1;
}

.wide-prose {
  max-width: 58rem;
}

.experience-lines {
  max-width: 52rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.experience-lines p {
  margin: 0 0 0.8rem;
}

.equine-manifesto {
  margin-top: 2.25rem;
  padding-left: 1.25rem;
  border-left: 4px solid rgba(255,255,255,0.8);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.4;
}

.equine-manifesto p {
  margin: 0.25rem 0;
  color: #ffffff;
}

.equine-light-eyebrow {
  color: #ffffff;
}

.population-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 58rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.population-list li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: var(--surface);
  font-weight: 700;
}

.topic-list {
  columns: 2;
  column-gap: 3rem;
  max-width: 62rem;
  margin: 1.5rem 0 2.5rem;
  padding-left: 1.25rem;
}

.topic-list li {
  break-inside: avoid;
  margin-bottom: 0.65rem;
}

.equine-learning-copy {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .equine-split,
  .equine-growth-layout {
    grid-template-columns: 1fr;
  }

  .equine-feature-photo,
  .equine-growth-photo {
    max-width: 42rem;
  }

  .population-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .equine-top-photo {
    margin-bottom: 2rem;
    border-radius: 0.55rem;
  }

  .equine-top-photo img {
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .population-list {
    grid-template-columns: 1fr;
  }

  .topic-list {
    columns: 1;
  }

  .equine-manifesto {
    font-size: 1.35rem;
  }
}

/* In-page section navigation */
.page-nav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-nav .container {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.page-nav-label {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

.page-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-nav a {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.55rem 0.1rem;
  color: var(--brand);
  font-size: 0.98rem;
  font-weight: 700;
}

#my-approach,
#therapeutic-methods,
#what-to-expect,
#areas-of-focus,
#why-horses,
#equine-psychotherapy,
#who-i-work-with,
#growth-learning,
#organizations,
#rates-retreats {
  scroll-margin-top: 1.25rem;
}

@media (max-width: 700px) {
  .page-nav .container {
    display: block;
  }

  .page-nav-label {
    display: block;
    margin-bottom: 0.35rem;
  }

  .page-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem 1rem;
  }
}

@media (max-width: 480px) {
  .page-nav ul {
    grid-template-columns: 1fr;
  }

  .page-nav a {
    width: 100%;
  }
}

/* Back-to-top links */
.back-to-top-wrap {
  padding-top: 0.5rem;
}

.back-to-top {
  margin: 1.5rem 0 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.back-to-top a {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.55rem 0.1rem;
}

.section-dark + .back-to-top-wrap {
  padding-top: 1.5rem;
}

@media (max-width: 600px) {
  .back-to-top {
    margin-top: 1.25rem;
  }
}

