:root {
  --cream: #fff8ec;
  --linen: #f5e8d4;
  --hay: #d9a441;
  --clay: #9e5435;
  --barn: #783a2d;
  --leaf: #54724f;
  --moss: #253d31;
  --ink: #251b16;
  --muted: #715f52;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(63, 37, 22, 0.14);
  --radius: 8px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(255, 248, 236, 0.94);
  border-bottom: 1px solid rgba(120, 58, 45, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--moss);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: clamp(96px, 10vw, 142px);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: none;
}

.site-nav a {
  color: var(--moss);
  font-weight: 700;
  text-decoration: none;
}

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

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--moss);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px 0;
  background: var(--cream);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-open .site-nav {
  position: absolute;
  inset: 100% 0 auto 0;
  display: grid;
  gap: 2px;
  padding: 10px 18px 18px;
  background: var(--cream);
  border-bottom: 1px solid rgba(120, 58, 45, 0.16);
  box-shadow: var(--shadow);
}

.nav-open .site-nav a {
  padding: 14px 10px;
  border-radius: var(--radius);
}

.nav-open .site-nav a:hover,
.nav-open .site-nav a:focus {
  background: var(--linen);
}

.section,
.strip,
.story-band,
.site-footer {
  width: min(var(--content), calc(100% - 36px));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-band {
  width: 100%;
}

.page-hero {
  width: min(var(--content), calc(100% - 36px));
  margin-inline: auto;
  padding: clamp(70px, 10vw, 132px) 0 clamp(54px, 8vw, 90px);
}

.page-hero-with-photo {
  display: grid;
  gap: 34px;
  align-items: center;
}

.page-hero h1 {
  max-width: 920px;
  color: var(--moss);
  font-size: clamp(2.45rem, 7vw, 5.4rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.2vw, 1.36rem);
}

.page-hero-media {
  position: relative;
  min-height: clamp(300px, 38vw, 520px);
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero-media img {
  position: absolute;
  inset: 0;
}

.page-hero-media img,
.feature-photo img,
.photo-tile img,
.animal-grid article img,
.split-photo img,
.care-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-action {
  padding-bottom: clamp(70px, 10vw, 116px);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(560px, 82vh, 760px);
  padding: clamp(42px, 7vw, 74px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(37, 29, 22, 0.34), rgba(37, 29, 22, 0.68)),
    linear-gradient(90deg, rgba(84, 114, 79, 0.72), rgba(120, 58, 45, 0.42)),
    url("assets/photos/1000029629-warm-polished.jpg") center / cover;
  color: var(--white);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.14) 0 12%, transparent 12% 88%, rgba(217, 164, 65, 0.18) 88%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 248, 236, 0.08) 0,
      rgba(255, 248, 236, 0.08) 1px,
      transparent 1px,
      transparent 96px
    );
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: clamp(18px, 3vw, 42px);
  content: "";
  border: 1px solid rgba(255, 248, 236, 0.34);
  border-radius: var(--radius);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 880px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe0a6;
}

.hero-logo-showcase {
  width: min(62vw, 440px);
  margin: 0 auto clamp(14px, 2.4vw, 22px);
  filter: drop-shadow(0 26px 46px rgba(26, 18, 12, 0.5));
}

.hero h1 {
  max-width: 12ch;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.05;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.65rem, 9vw, 6.4rem);
  overflow-wrap: normal;
  text-wrap: balance;
}

h2 {
  max-width: 760px;
  color: var(--moss);
  font-size: clamp(2rem, 5vw, 4.3rem);
}

h3 {
  color: var(--moss);
  font-size: 1.55rem;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.12rem, 2.3vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--hay);
}

.button-secondary {
  color: var(--white);
  background: var(--leaf);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.hero-mark {
  display: none;
}

.intro {
  display: grid;
  gap: 1px;
  margin-top: clamp(22px, 4vw, 46px);
  background: rgba(120, 58, 45, 0.18);
  box-shadow: var(--shadow);
}

.intro div {
  padding: 24px;
  background: var(--white);
}

.intro strong,
.intro span {
  display: block;
}

.intro strong {
  color: var(--moss);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
}

.intro span {
  margin-top: 4px;
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 34px;
}

.mission-grid {
  display: grid;
  gap: 24px;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: repeat(2, minmax(140px, 1fr));
  gap: 12px;
  min-height: 430px;
}

.photo-tile {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-tile-large {
  grid-row: span 2;
}

.mission-copy {
  color: var(--muted);
  font-size: 1.18rem;
}

.mission-copy p {
  margin: 0 0 18px;
}

.impact-panel {
  display: grid;
  align-content: center;
  min-height: 300px;
  padding: clamp(28px, 5vw, 48px);
  color: var(--cream);
  background: var(--moss);
  border-radius: var(--radius);
}

.impact-number {
  color: var(--hay);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
}

.impact-label {
  margin-top: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.impact-note {
  margin-top: 16px;
  color: rgba(255, 248, 236, 0.76);
}

.section-warm {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - var(--content)) / 2));
  background: var(--linen);
}

.animal-grid,
.help-grid,
.path-grid {
  display: grid;
  gap: 16px;
}

.animal-grid article,
.feature,
.path-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(120, 58, 45, 0.12);
  border-radius: var(--radius);
}

.animal-grid article:has(img),
.feature:has(.feature-photo),
.path-card:has(.path-media) {
  overflow: hidden;
  padding: 0;
}

.animal-grid article img,
.feature-photo,
.path-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--linen);
}

.animal-grid article:has(img) span,
.animal-grid article:has(img) p,
.feature:has(.feature-photo) h3,
.feature:has(.feature-photo) p,
.feature:has(.feature-photo) .feature-icon,
.path-card:has(.path-media) span,
.path-card:has(.path-media) p {
  margin-inline: 22px;
}

.animal-grid article:has(img) span,
.feature:has(.feature-photo) h3,
.path-card:has(.path-media) span {
  margin-top: 20px;
}

.animal-grid article:has(img) p,
.feature:has(.feature-photo) p,
.path-card:has(.path-media) p {
  margin-bottom: 22px;
}

.path-card {
  display: grid;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.path-card:hover,
.path-card:focus-visible {
  border-color: rgba(120, 58, 45, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.animal-grid span,
.path-card span {
  display: block;
  color: var(--barn);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.animal-grid p,
.path-card p,
.feature p,
.split-copy p,
.story-band p,
.form-note {
  color: var(--muted);
}

.path-card p {
  margin: 0;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--white);
  background: var(--clay);
  border-radius: 50%;
  font-weight: 900;
}

.feature a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--barn);
  font-weight: 900;
  text-decoration: none;
}

.text-link {
  display: inline-flex;
  color: var(--barn);
  font-weight: 900;
  text-decoration: none;
}

.inline-light-link {
  color: var(--hay);
  font-weight: 900;
}

.split-copy .button {
  margin-top: 28px;
}

.split-section {
  display: grid;
  gap: 28px;
}

.split-photo {
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.care-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.care-gallery img {
  aspect-ratio: 1;
  border-radius: var(--radius);
}

.split-copy {
  font-size: 1.12rem;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--moss);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  background: var(--leaf);
  border-radius: 50%;
  content: "";
}

.story-band {
  display: grid;
  gap: 20px;
  padding: clamp(34px, 7vw, 64px);
  color: var(--white);
  background: var(--barn);
  border-radius: var(--radius);
}

.story-band h2 {
  color: var(--white);
}

.story-band p {
  margin: 0;
  color: rgba(255, 248, 236, 0.82);
  font-size: 1.2rem;
}

.contact-grid {
  display: grid;
  gap: 24px;
}

.contact-details {
  display: grid;
  gap: 12px;
}

.contact-details a {
  display: grid;
  gap: 2px;
  padding: 18px;
  color: var(--ink);
  background: var(--linen);
  border-radius: var(--radius);
  text-decoration: none;
}

.contact-details span {
  color: var(--barn);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 5vw, 34px);
  background: var(--white);
  border: 1px solid rgba(120, 58, 45, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--moss);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(120, 58, 45, 0.24);
  border-radius: var(--radius);
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-note {
  margin: 0;
  font-size: 0.94rem;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-status-success {
  color: var(--leaf);
  font-weight: 700;
}

.form-status-error {
  color: var(--clay);
  font-weight: 700;
}

.site-footer {
  display: grid;
  gap: 24px;
  padding: 34px 0 48px;
  border-top: 1px solid rgba(120, 58, 45, 0.16);
}

.site-footer img {
  width: 80px;
}

.site-footer p {
  max-width: 420px;
  margin: 12px 0 0;
  color: var(--muted);
}

.footer-ein {
  font-size: 0.85em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.site-footer a {
  color: var(--moss);
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 720px) {
  .intro,
  .animal-grid,
  .help-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .mission-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    align-items: start;
  }

  .split-section,
  .story-band,
  .site-footer {
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
    align-items: center;
  }

  .page-hero-with-photo {
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  }
}

@media (min-width: 920px) {
  .site-header {
    min-height: 66px;
    padding-block: 5px;
  }

  .brand-logo {
    width: clamp(54px, 5vw, 64px);
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.4vw, 30px);
    margin-left: auto;
  }

  .hero-content {
    max-width: 880px;
  }

  .hero-mark {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero {
    overflow-x: clip;
  }

  .hero-content {
    width: min(100%, calc(100vw - 48px));
    max-width: min(100%, calc(100vw - 48px));
    min-width: 0;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.12rem, 11vw, 2.55rem);
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy {
    max-width: 30ch;
    margin-top: 14px;
    font-size: 1.08rem;
  }

  .hero-logo-showcase {
    width: min(78vw, 330px);
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .brand-logo {
    width: 82px;
  }

  .hero-mark {
    display: none;
  }

  .photo-mosaic {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .photo-tile,
  .photo-tile-large {
    min-height: 250px;
  }

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