/* Second Step Equine Rescue — shared stylesheet */

:root {
  --warm-brown: #875C44;
  --taupe: #9A866E;
  --beige: #DACAC1;
  --beige-soft: #EFE6E0;
  --rose: #E19685;
  --espresso: #38271F;
  --cool-gray: #BEBEC5;
  --white: #FFFFFF;
  --cream: #FBF7F4;

  --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--warm-brown); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--espresso);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.02em; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--warm-brown);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 244, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(56, 39, 31, 0.08);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--espresso);
}

.nav-brand:hover { text-decoration: none; }

.nav-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--warm-brown);
  flex-shrink: 0;
  background-image: url('assets/logo-mark.png');
  background-size: cover;
  background-position: center;
}

.nav-mark span { display: none; }

.nav-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.nav-title small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.93rem;
  color: var(--espresso);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--warm-brown);
  color: var(--warm-brown);
}

.nav-links .nav-donate {
  background: var(--rose);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links .nav-donate:hover {
  background: var(--warm-brown);
  border: none;
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--espresso);
  margin: 5px 0;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(56,39,31,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid rgba(56,39,31,0.06); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a { padding: 14px 0; display: block; }
  .nav-links .nav-donate {
    text-align: center;
    margin-top: 10px;
    padding: 14px;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--warm-brown); color: var(--white); }
.btn-primary:hover { background: var(--espresso); color: var(--white); }

.btn-accent { background: var(--rose); color: var(--white); }
.btn-accent:hover { background: var(--warm-brown); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--espresso);
  padding: 12.5px 26.5px;
}
.btn-ghost:hover { background: var(--espresso); color: var(--white); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.75);
  padding: 12.5px 26.5px;
}
.btn-ghost-light:hover { background: var(--white); color: var(--espresso); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background: var(--espresso);
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(56,39,31,0.15) 0%, rgba(56,39,31,0.55) 100%);
}

.hero-inner {
  position: relative;
  padding: 120px 24px;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
}

.hero h1, .page-hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 24px;
}

.hero h1 em, .page-hero h1 em { font-style: italic; color: var(--rose); }

.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  max-width: 620px;
  margin: 0 auto 38px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Smaller page hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background: var(--espresso);
}
.page-hero .hero-media::after {
  background: linear-gradient(180deg, rgba(56,39,31,0.45) 0%, rgba(56,39,31,0.7) 100%);
}
.page-hero .hero-inner { padding: 100px 24px 80px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-style: italic; }

/* ---------- SECTIONS ---------- */
section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

.section-beige { background: var(--beige-soft); }
.section-brown { background: var(--warm-brown); color: var(--white); }
.section-brown h2, .section-brown h3 { color: var(--white); }
.section-espresso { background: var(--espresso); color: var(--white); }
.section-espresso h2, .section-espresso h3 { color: var(--white); }

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.rule {
  width: 48px;
  height: 2px;
  background: var(--warm-brown);
  margin: 0 auto 28px;
  border: none;
}
.rule.light { background: rgba(255,255,255,0.6); }

/* ---------- IMPACT STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 40px; }
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--rose);
  display: block;
  margin-bottom: 10px;
}

.section-brown .stat-num,
.section-espresso .stat-num { color: var(--beige); }

.stat-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--taupe);
}

.section-brown .stat-label,
.section-espresso .stat-label { color: rgba(255,255,255,0.8); }

/* ---------- HORSE CARDS ---------- */
.horse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.horse-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.horse-grid.four { grid-template-columns: repeat(4, 1fr); gap: 28px; }

@media (max-width: 960px) {
  .horse-grid, .horse-grid.four { grid-template-columns: repeat(2, 1fr); }
  .horse-grid.two { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 560px) {
  .horse-grid, .horse-grid.four, .horse-grid.two { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

.horse-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(56,39,31,0.06), 0 8px 24px rgba(56,39,31,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.horse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(56,39,31,0.08), 0 14px 32px rgba(56,39,31,0.08);
}

.horse-photo {
  aspect-ratio: 4 / 5;
  background: var(--beige);
  overflow: hidden;
  position: relative;
}
.horse-photo img { width: 100%; height: 100%; object-fit: cover; }

.horse-photo.placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--beige) 0 14px,
    var(--beige-soft) 14px 28px
  );
  display: grid;
  place-items: center;
}
.horse-photo.placeholder span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  color: var(--taupe);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 2px;
}

.horse-body { padding: 24px 24px 28px; }

.horse-status {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.horse-status.resident { background: var(--beige); color: var(--espresso); }
.horse-status.adopted { background: var(--rose); color: var(--white); }
.horse-status.available { background: var(--warm-brown); color: var(--white); }

.horse-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1;
}

.horse-meta {
  font-size: 0.85rem;
  color: var(--taupe);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.horse-meta span + span::before {
  content: "·";
  margin: 0 8px;
  color: var(--cool-gray);
}

.horse-bio {
  color: var(--espresso);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- FEATURED / IMAGE+TEXT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}

.split-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img-founders img { object-position: 35% center !important; }

/* ---------- DONATE BANNER ---------- */
.banner {
  background: var(--espresso);
  color: var(--white);
  padding: 88px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.banner h2 { color: var(--white); margin-bottom: 14px; }
.banner p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto 32px; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--espresso);
  color: rgba(255,255,255,0.78);
  padding: 72px 0 32px;
  font-size: 0.93rem;
}
.footer a { color: rgba(255,255,255,0.78); }
.footer a:hover { color: var(--rose); text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-brand .nav-mark {
  background-image: url('assets/logo-mark.png');
}
.footer-brand .nav-title { color: var(--white); }
.footer-brand .nav-title small { color: var(--beige); }

.footer-mission {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--beige);
  line-height: 1.5;
  max-width: 320px;
}

.footer h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--beige);
  margin: 0 0 18px;
  font-weight: 600;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--beige);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.footer-socials a:hover { background: var(--rose); color: var(--espresso); border-color: var(--rose); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}

/* ---------- LISTS / CONTENT BLOCKS ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; gap: 32px; max-width: 520px; margin: 0 auto; } }

.feature {
  padding: 36px 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(56,39,31,0.06);
}
.feature-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--rose);
  margin-bottom: 8px;
  display: block;
}
.feature h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--espresso); }
.feature .btn { margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid rgba(56,39,31,0.12);
}
.faq details {
  border-bottom: 1px solid rgba(56,39,31,0.12);
  padding: 8px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 36px 24px 4px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--espresso);
  position: relative;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--warm-brown);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 4px 24px;
  margin: 0;
  color: var(--espresso);
  max-width: 780px;
}

/* ---------- FORM ---------- */
.form {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(56,39,31,0.08);
}
@media (max-width: 600px) { .form { padding: 28px; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--taupe);
  margin-bottom: 8px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid rgba(56,39,31,0.18);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--espresso);
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--warm-brown);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ---------- QUOTE / PULL ---------- */
.pull {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  color: var(--espresso);
}
.pull::before, .pull::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--warm-brown);
  margin: 32px auto;
}

/* ---------- UTIL ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
