/* Mitchell Farm Equine Therapy & Learning Center — draft site styles */

:root {
  --navy: #1c2b4a;
  --navy-deep: #121c33;
  --navy-soft: #2a3d64;
  --barn: #8e2a2a;
  --barn-deep: #6e1e1e;
  --barn-soft: #a53d3d;
  --cream: #f7f1e6;
  --cream-dark: #efe6d4;
  --paper: #fbf7ef;
  --wood: #8a6a3e;
  --wood-light: #c4a574;
  --gold: #c4a35a;
  --ink: #2a2418;
  --muted: #5c5346;
  --line: rgba(42, 36, 24, 0.14);
  --line-strong: rgba(42, 36, 24, 0.22);
  --header-h: 5rem;
  --font-serif: "Libre Baskerville", "Georgia", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 12px 32px rgba(18, 28, 51, 0.1);
  --shadow-soft: 0 6px 18px rgba(18, 28, 51, 0.06);
  --radius: 8px;
  --measure: 40rem;
  --content: 70rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("images/paper-grain.png");
  background-repeat: repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 0 0 0.75em;
}

h1 {
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  line-height: 1.22;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35em;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: var(--barn);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--barn-deep);
}

:focus-visible {
  outline: 2px solid var(--barn);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--navy);
  color: var(--cream);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
  color: var(--cream);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.container.narrow {
  width: min(46rem, calc(100% - 2.5rem));
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--barn);
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.split-copy .eyebrow,
.section-head .eyebrow,
.pledge .eyebrow {
  justify-content: flex-start;
}

.eyebrow.light {
  color: var(--gold);
}

.star {
  font-size: 0.7em;
  color: var(--gold);
  transform: translateY(-0.05em);
}

.eyebrow.light .star {
  color: var(--gold);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  box-shadow: inset 0 3px 0 var(--barn);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: inset 0 3px 0 var(--barn), 0 6px 18px rgba(18, 28, 51, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand:hover {
  color: var(--navy);
}

.brand-mark {
  width: 3.15rem;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.35rem 0;
}

.site-nav a:hover {
  color: var(--barn);
}

.site-nav .nav-cta {
  display: inline-block;
  background: var(--barn);
  color: #fff;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
}

.site-nav .nav-cta:hover {
  background: var(--barn-deep);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  color: var(--navy);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

body.nav-open .nav-toggle-bars { background: transparent; }
body.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--barn);
  color: #fff;
  border-color: var(--barn);
}

.btn-primary:hover {
  background: var(--barn-deep);
  border-color: var(--barn-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--cream);
}

/* ---------- Hero ---------- */

.hero {
  padding: 3rem 1.25rem 4.25rem;
  text-align: center;
}

.hero-inner {
  width: min(46rem, 100%);
  margin-inline: auto;
}

.hero-logo {
  width: min(22rem, 82%);
  margin: 0 auto 1.75rem;
  filter: drop-shadow(0 8px 18px rgba(18, 28, 51, 0.08));
}

.hero-eyebrow {
  margin-bottom: 1rem;
  color: var(--wood);
}

.hero-eyebrow .star {
  color: var(--barn);
}

.hero h1 {
  margin-bottom: 0.85rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Mission ---------- */

.mission {
  background: var(--navy);
  color: var(--cream);
  padding: 5rem 0;
  box-shadow: inset 0 3px 0 var(--gold), inset 0 -3px 0 var(--gold);
}

.mission .eyebrow {
  justify-content: center;
}

.mission-lead,
.mission-close {
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.75;
  color: var(--cream);
}

.mission-lead {
  margin-bottom: 1.4rem;
}

.mission-close {
  font-style: italic;
  font-weight: 400;
  color: #f3e6c8;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(196, 163, 90, 0.35);
}

/* ---------- Split sections ---------- */

.split {
  padding: 5rem 0;
}

.our-home {
  background: var(--cream-dark);
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem 4rem;
  align-items: center;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

.split-copy .eyebrow {
  margin-bottom: 0.7rem;
}

.split-copy h2 {
  margin-bottom: 1rem;
}

.split-copy p {
  font-size: 1.12rem;
  color: var(--ink);
}

.split-media img {
  margin-inline: auto;
  width: min(26rem, 100%);
}

.home-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.home-marks picture {
  display: block;
  flex: 1 1 0;
  min-width: 0;
}

.home-badge {
  width: 100%;
}

.home-7g {
  width: 82%;
  margin-inline: auto;
}

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

.programs,
.involved {
  padding: 5rem 0;
}

.board {
  padding: 5rem 0;
  background: var(--paper);
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.4rem;
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.program-grid {
  grid-template-columns: repeat(3, 1fr);
}

.involve-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--barn);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.board .card,
.involved .card {
  background: #fffdf8;
}

.badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--barn);
  background: rgba(142, 42, 42, 0.08);
  border: 1px solid rgba(142, 42, 42, 0.22);
  border-radius: 999px;
}

.card h3 {
  color: var(--navy);
}

.card p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Board ---------- */

.board-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.person,
.founder {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.person h3,
.founder h3 {
  margin: 0.15rem 0 0.2rem;
  font-size: 1.15rem;
}

.role {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--barn);
  margin: 0;
}

.bio {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0.65rem 0 0;
  line-height: 1.5;
}

.avatar {
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px rgba(196, 163, 90, 0.7);
}

.avatar-founder {
  background: var(--barn);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px rgba(28, 43, 74, 0.35);
}

.founder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: left;
  max-width: 24rem;
  margin: 1.5rem auto 0;
  padding: 1.15rem 1.4rem;
}

.founder .avatar {
  margin: 0;
  flex-shrink: 0;
}

/* ---------- Pledge / donate ---------- */

.pledge {
  margin-top: 2.75rem;
  margin-inline: auto;
  max-width: 46rem;
  background: var(--navy);
  color: var(--cream);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow), inset 0 3px 0 var(--gold);
  text-align: left;
}

.pledge .eyebrow,
.pledge .eyebrow .star {
  color: var(--gold);
}

.pledge h2 {
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.pledge p {
  max-width: 42rem;
}

.pledge .btn {
  margin-top: 0.5rem;
}

.pledge .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.pledge .btn-primary:hover {
  background: #d4b56c;
  border-color: #d4b56c;
  color: var(--navy-deep);
}

.contact-line {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 1.25rem 0 0.35rem;
}

.placeholder-field {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 1px dashed rgba(243, 230, 200, 0.65);
  border-radius: 4px;
  color: #f3e6c8;
  background: rgba(255, 255, 255, 0.06);
  letter-spacing: 0.02em;
}

.placeholder-note {
  font-size: 0.85rem;
  color: rgba(247, 241, 230, 0.7);
  margin-bottom: 1.25rem;
}

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

.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 2.75rem 0 3rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.footer-badge {
  width: 8.5rem;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}

.footer-copy {
  max-width: 24rem;
  padding-inline: 0.75rem;
}

.footer-copy p {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  color: rgba(247, 241, 230, 0.88);
}

.footer-domain {
  letter-spacing: 0.04em;
  color: var(--gold) !important;
  font-weight: 600;
}

.footer-domain a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.footer-domain a:hover,
.footer-domain a:focus-visible {
  color: #d4b56c;
  text-decoration: underline;
}

.footer-status {
  margin-top: 0.55rem !important;
  font-style: italic;
  color: rgba(247, 241, 230, 0.7) !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  :root { --header-h: 4.35rem; }

  .brand-sub { display: none; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    display: none;
  }

  body.nav-open .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.8rem 1.5rem;
  }

  .site-nav .nav-cta {
    margin: 0.4rem 1.5rem 0.2rem;
    text-align: center;
  }

  .split-grid,
  .split-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .split-media { order: -1; }

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

  .involve-grid,
  .board-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-marks { max-width: 32rem; margin-inline: auto; }

  .pledge { padding: 2rem 1.4rem; }
}

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

  .container,
  .container.narrow,
  .header-inner {
    width: min(var(--content), calc(100% - 1.5rem));
  }

  .hero {
    padding: 2rem 1rem 3.25rem;
  }

  .hero-logo { width: min(16.5rem, 78%); margin-bottom: 1.3rem; }

  .hero-sub { font-size: 1.05rem; }

  .mission,
  .split,
  .programs,
  .board,
  .involved {
    padding: 3.25rem 0;
  }

  .program-grid,
  .involve-grid {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .person { padding: 1.15rem 0.7rem 1.1rem; }

  .person h3 { font-size: 1rem; }

  .bio { font-size: 0.85rem; }

  .founder {
    max-width: none;
    margin-top: 0.85rem;
  }

  .home-marks {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    max-width: 22rem;
  }

  .home-7g { width: 88%; }

  .split-media img {
    width: min(17.5rem, 88%);
  }

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

  .footer-copy { max-width: 18rem; }

  .btn { width: 100%; text-align: center; }

  .hero-actions { flex-direction: column; align-items: stretch; }
}

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