@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --forest: #3f5a45;
  --forest-dark: #263a2c;
  --sage: #aebd9d;
  --sage-light: #dfe6d4;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --brown: #80644f;
  --ink: #263029;
  --muted: #68726b;
  --white: #fff;
  --border: rgba(38, 58, 44, .13);
  --shadow: 0 22px 55px rgba(38, 58, 44, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: "DM Sans", sans-serif; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
a, button { font: inherit; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 7%; background: rgba(255,253,248,.94);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--forest-dark); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--forest); border-radius: 50%;
  font-family: "Playfair Display", serif; font-size: 25px; font-style: italic;
}
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Playfair Display", serif; font-size: 22px; line-height: 1; }
.brand small { margin-top: 4px; color: var(--brown); font-size: 10px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }

nav { display: flex; align-items: center; gap: 24px; }
nav a { color: var(--forest-dark); text-decoration: none; font-size: 14px; font-weight: 800; }
.nav-button { padding: 11px 18px; border-radius: 999px; background: var(--forest); color: white; }

.hero {
  position: relative; min-height: calc(100vh - 83px);
  display: flex; align-items: center; padding: 95px 7%;
  background: url("images/hero.jpg") center / cover no-repeat; color: white;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,31,23,.92), rgba(21,31,23,.62) 48%, rgba(21,31,23,.08)); }
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { margin: 0 0 16px; color: var(--forest); font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow.light { color: var(--sage-light); }
h1, h2, h3 { font-family: "Playfair Display", serif; }
.hero h1 { margin: 0 0 24px; font-size: clamp(55px, 8vw, 102px); line-height: .95; letter-spacing: -2px; }
.hero h1 em { display: block; color: var(--sage-light); }
.hero-intro { max-width: 620px; font-size: 19px; line-height: 1.75; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.button {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 14px 24px; border: 1px solid var(--forest); border-radius: 999px;
  background: var(--forest); color: white; text-decoration: none; font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-3px); background: var(--forest-dark); }
.button-outline { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
.button-outline:hover { background: white; color: var(--forest-dark); }

.section { padding: 100px 7%; }
.mission { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; background: var(--cream); }
h2 { margin: 0 0 20px; color: var(--forest-dark); font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.lead { font-size: 20px; line-height: 1.75; }
.mission p:last-child, .section-heading p, .contact p { color: var(--muted); line-height: 1.75; }

.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.stats-grid article { padding: 34px 18px; text-align: center; }
.stats-grid article + article { border-left: 1px solid var(--border); }
.stats-grid strong, .stats-grid span { display: block; }
.stats-grid strong { color: var(--forest); font-family: "Playfair Display", serif; font-size: 38px; }
.stats-grid span { margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }

.section-heading { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.horse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 1050px; margin: auto; }
.horse-card { overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: white; box-shadow: 0 16px 38px rgba(38,58,44,.09); transition: .25s; }
.horse-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.horse-card img { width: 100%; height: 380px; object-fit: cover; }
.horse-content { padding: 28px; }
.horse-content h3 { margin: 0 0 8px; color: var(--forest-dark); font-size: 31px; }
.horse-info { color: var(--brown); font-size: 13px; font-weight: 800; }
.horse-content p:not(.horse-info) { color: var(--muted); line-height: 1.7; }
.card-link { color: var(--forest); text-decoration: none; font-weight: 800; }

.story { background: var(--sage-light); }
.before-after { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.before-after figure { margin: 0; overflow: hidden; border-radius: 28px; background: white; box-shadow: var(--shadow); }
.before-after img { width: 100%; height: 430px; object-fit: cover; }
.before-after figcaption { padding: 23px 27px 27px; color: var(--muted); line-height: 1.65; }
.before-after strong { color: var(--forest); }

.donate { text-align: center; background: var(--forest-dark); color: white; }
.donate h2 { color: white; }
.donate > p:not(.eyebrow) { max-width: 600px; margin: 0 auto; color: rgba(255,255,255,.8); line-height: 1.7; }
.donation-options { display: flex; justify-content: center; gap: 10px; margin: 28px 0 22px; }
.donation-options button { padding: 11px 19px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: transparent; color: white; cursor: pointer; }

.contact { display: grid; grid-template-columns: 1fr .75fr; gap: 70px; align-items: center; background: var(--cream); }
.dark-button { margin-top: 12px; }

footer { padding: 40px 7%; background: #17271d; color: white; text-align: center; }
footer p { margin: 7px 0; }
.concept-note { color: rgba(255,255,255,.58); font-size: 13px; }
.concept-note a { color: var(--sage-light); }

@media (max-width: 820px) {
  .site-header { position: relative; flex-direction: column; gap: 17px; }
  nav { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .mission, .contact { grid-template-columns: 1fr; gap: 38px; }
  .horse-grid, .before-after { grid-template-columns: 1fr; }
  .hero { min-height: 720px; background-position: 58% center; }
  .hero-overlay { background: rgba(21,31,23,.69); }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid article + article { border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 540px) {
  .section { padding: 76px 6%; }
  .hero { padding: 70px 6%; }
  .hero h1 { font-size: 54px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .horse-card img, .before-after img { height: 300px; }
}
