﻿:root {
  --primary: #e9e4d3;
  --primary-dark: #bfbcae;
  --secondary: #264f41;
  --secondary-hover: #356859;
  --secondary-dark: #083d2d;
  --parchment: #f6f2e8;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--primary);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--secondary);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  color: var(--primary);
  background: var(--secondary);
  border-bottom: 1px solid var(--secondary-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: scale(1.04);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  color: transparent;
  background: url("/assets/logo.png?v=4") center / cover no-repeat;
  border-radius: 50%;
  font-size: 0;
  font-weight: 900;
  overflow: hidden;
}

.brand > span:not(.brand-mark) {
  display: inline-block;
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.main-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--primary);
}

.main-nav a:hover {
  color: rgba(233, 228, 211, 0.72);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 9px;
  top: 19px;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.button,
.nav-cta,
.footer-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 208px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-cta {
  min-width: auto;
  min-height: 36px;
  padding: 8px 14px;
  color: var(--secondary-dark);
  background: var(--primary-dark);
  border-color: rgba(8, 61, 45, 0.2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.button.primary,
.footer-donate {
  color: var(--secondary-dark);
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.button.secondary {
  color: var(--secondary-dark);
  background: var(--primary-dark);
  border-color: rgba(8, 61, 45, 0.2);
}

.button:hover,
.nav-cta:hover,
.footer-donate:hover {
  transform: translateY(-1px);
}

main {
  padding-top: 64px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  height: 85vh;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.52)),
    url("/assets/images/hero-dogs.jpg") center / cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  padding: 0 24px;
  color: white;
}

h1 {
  margin-bottom: 24px;
  color: white;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: none;
}

h2 {
  color: var(--secondary-dark);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
}

h3 {
  color: var(--secondary-dark);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 750;
}

p {
  color: var(--secondary);
  line-height: 1.65;
}

.hero-content p {
  max-width: 720px;
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.eyebrow {
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  width: min(1152px, calc(100% - 48px));
  margin: -80px auto 0;
  padding: 56px 24px;
  background: var(--primary);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.stats-strip div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: var(--primary);
  background: rgba(38, 79, 65, 0.2);
  border-radius: 999px;
  font-weight: 900;
}

.stats-strip strong {
  margin-bottom: 4px;
  color: var(--secondary);
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1;
  font-weight: 900;
}

.stats-strip p {
  max-width: 200px;
  color: rgba(38, 79, 65, 0.82);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.work-section,
.residents-section,
.tips-section,
.partnership-section,
.donate-section,
.contact-section {
  padding: 80px clamp(24px, 6vw, 80px);
}

.work-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(40px, 7vw, 64px);
  width: min(1280px, 100%);
  margin: 0 auto;
}

.section-copy {
  display: grid;
  gap: 24px;
  text-align: left;
}

.section-copy p {
  color: var(--primary);
  font-size: 1.08rem;
}

.section-copy h2 {
  color: var(--secondary-dark);
}

.work-section .section-copy h2,
.work-section .section-copy p {
  color: var(--primary);
}

.text-link {
  width: min(100%, 208px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: var(--secondary-dark);
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-weight: 700;
}

.work-image {
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.residents-section {
  background: rgba(233, 228, 211, 0.05);
}

.section-heading {
  width: min(720px, 100%);
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin-bottom: 16px;
  color: var(--primary);
}

.section-heading p {
  color: var(--primary);
  font-size: 1.08rem;
}

.animal-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  width: min(1280px, 100%);
  margin: 0 auto 48px;
}

.animal-gallery article {
  overflow: hidden;
  background: var(--primary);
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.18);
}

.animal-gallery img {
  width: 100%;
  height: 288px;
  object-fit: cover;
}

.animal-gallery div {
  display: none;
}

.center-button {
  margin: 0 auto;
  display: flex;
}

.tips-section {
  background: var(--secondary);
  overflow: hidden;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 24px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.tip-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  color: var(--secondary-dark);
  background: var(--parchment);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 16px;
}

.tip-card span {
  color: rgba(8, 61, 45, 0.78);
  font-size: 0.9rem;
  font-weight: 650;
  text-align: center;
}

.tip-card h3 {
  margin-top: 8px;
  text-align: center;
}

.tip-card img {
  width: 100%;
  height: 288px;
  margin: 24px 0;
  object-fit: cover;
  border-radius: 12px;
}

.tip-card p {
  color: var(--secondary);
  text-align: center;
}

.partnership-section,
.donate-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 56px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.partnership-section h2,
.donate-section h2,
.contact-section h2 {
  color: var(--primary);
}

.partnership-section p,
.donate-section p {
  color: var(--primary);
  font-size: 1.08rem;
}

.donate-section {
  border-top: 1px solid rgba(233, 228, 211, 0.1);
  border-bottom: 1px solid rgba(233, 228, 211, 0.1);
}

.donate-section .button {
  justify-self: end;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: 56px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  color: var(--secondary-dark);
  background: var(--parchment);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--secondary-dark);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid rgba(8, 61, 45, 0.22);
  border-radius: 8px;
  color: var(--secondary-dark);
  background: white;
  font: inherit;
}

textarea {
  resize: vertical;
}

.application-status {
  padding: 14px 16px;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 10px;
  font-weight: 700;
}

.application-status:empty {
  display: none;
}

.contact-form :disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.field-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.field-error {
  min-height: 1.2em;
  color: #b42318;
  font-size: 0.88rem;
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

.route-page {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding: 160px 24px 80px;
  color: var(--primary);
  background: var(--secondary);
  overflow: hidden;
}

.route-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.58)),
    var(--route-bg, url("/assets/images/hero-dogs.jpg")) center / cover;
}

.route-page section {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px);
  background: rgba(233, 228, 211, 0.05);
  border: 1px solid rgba(233, 228, 211, 0.12);
  border-radius: 24px;
}

.route-page h1 {
  margin-bottom: 24px;
  color: var(--primary);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
}

.route-page p {
  max-width: 720px;
  margin-bottom: 32px;
  color: var(--primary);
  font-size: 1.15rem;
}

.about-page {
  --route-bg: url("/assets/images/page-about.jpg");
}

.adopt-page {
  --route-bg: url("/assets/images/page-adopt.jpg");
}

.partnerships-page {
  --route-bg: url("/assets/images/page-partnerships.jpg");
}

.getinvolved-page {
  --route-bg: url("/assets/images/page-getinvolved.jpg");
}

.donate-page {
  --route-bg: url("/assets/images/page-donate.jpg");
}

.donate-carousel {
  position: relative;
  z-index: 3;
  width: min(480px, calc(100% - 48px));
  margin: -150px auto -138px;
  pointer-events: none;
}

.donate-carousel__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--secondary-dark);
  border: 10px solid rgba(233, 228, 211, 0.92);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.donate-carousel__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.donate-carousel__slide.is-active {
  z-index: 2;
  opacity: 1;
}

.donate-carousel__slide::before {
  content: "";
  position: absolute;
  inset: -18px;
  background:
    linear-gradient(rgba(8, 61, 45, 0.08), rgba(8, 61, 45, 0.08)),
    var(--slide-image) center / cover;
  filter: blur(16px);
  transform: scale(1.08);
}

.donate-carousel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 61, 45, 0.18);
}

.donate-carousel__slide img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.donate-page .route-detail {
  padding-top: 232px;
}

.contact-page {
  --route-bg: url("/assets/images/page-contact.jpg");
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 42px;
  padding: 64px clamp(24px, 6vw, 80px) 36px;
  color: var(--primary);
  background: var(--secondary-dark);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand .brand-mark {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  min-width: 34px;
}

.site-footer strong,
.site-footer h3 {
  color: var(--primary);
}

.site-footer h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.site-footer p {
  margin-top: 8px;
  color: rgba(233, 228, 211, 0.78);
}

.site-footer nav {
  display: grid;
  gap: 8px;
  color: rgba(233, 228, 211, 0.78);
  font-weight: 650;
}

.site-footer a:hover {
  color: white;
}

.social-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.social-buttons a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--primary);
  border: 1px solid rgba(233, 228, 211, 0.22);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.social-buttons a:hover {
  color: var(--secondary-dark);
  background: var(--primary);
}

.social-buttons svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.contact-choice-modal[hidden] {
  display: none;
}

.contact-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 35, 28, 0.72);
}

.contact-choice-modal__panel {
  position: relative;
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 28px;
  color: var(--secondary-dark);
  background: var(--primary);
  border: 1px solid rgba(8, 61, 45, 0.18);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  overflow: auto;
}

.contact-choice-modal__panel h2 {
  margin: 8px 0 10px;
  max-width: 300px;
  font-size: clamp(1.55rem, 7vw, 2.1rem);
  line-height: 1.12;
}

.contact-choice-modal__panel p:not(.eyebrow) {
  color: var(--secondary);
}

.contact-choice-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--secondary-dark);
  background: rgba(8, 61, 45, 0.08);
  border: 0;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.contact-choice-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-choice-modal__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--primary);
  background: var(--secondary-dark);
  border: 1px solid rgba(8, 61, 45, 0.18);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(8, 61, 45, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-choice-modal__icon:hover {
  transform: translateY(-2px);
  background: var(--secondary-hover);
}

.contact-choice-modal__icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.contact-modal-open {
  overflow: hidden;
}

.footer-donate {
  min-width: 160px;
  margin-top: 16px;
}

.footer-acknowledgement {
  max-width: 980px;
  margin: 0;
  color: rgba(233, 228, 211, 0.62);
  line-height: 1.45;
  font-size: 0.74rem;
  text-align: center;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 2fr) minmax(120px, 0.5fr);
  align-items: center;
  gap: 22px;
  padding-top: 28px;
  border-top: 1px solid rgba(233, 228, 211, 0.12);
  color: rgba(233, 228, 211, 0.72);
  font-size: 0.92rem;
}

.footer-bottom > a {
  justify-self: end;
}

.route-detail {
  padding: 72px clamp(24px, 6vw, 80px);
  color: var(--primary);
  background: var(--secondary);
}

.route-detail-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.route-detail h2 {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 2.65rem);
}

.route-detail p {
  color: rgba(233, 228, 211, 0.86);
}

.bylaws-panel {
  position: relative;
  margin-bottom: 52px;
  padding: clamp(28px, 5vw, 46px);
  color: var(--secondary-dark);
  background: linear-gradient(135deg, var(--parchment) 0%, #f7f1df 100%);
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.bylaws-panel .eyebrow {
  color: var(--secondary-dark);
}

.bylaws-panel h2 {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--secondary-dark);
  font-size: clamp(2rem, 3.7vw, 3rem);
}

.bylaws-copy {
  display: grid;
  gap: 16px;
  max-width: 960px;
}

.bylaws-copy p,
.route-detail .bylaws-copy p {
  margin: 0;
  color: rgba(1, 67, 67, 0.88);
  font-size: 1.05rem;
  line-height: 1.75;
}

.bylaws-copy p:first-child {
  font-size: 1.12rem;
  color: var(--secondary-dark);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.content-card {
  min-height: 230px;
  padding: 26px;
  color: var(--secondary-dark);
  background: var(--parchment);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 16px;
}

.content-card h3,
.content-card p {
  color: var(--secondary-dark);
}

.content-card h3 {
  margin-bottom: 12px;
}

.content-card p {
  opacity: 0.82;
}

.split-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: center;
  margin-top: 56px;
}

.split-detail img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.steps-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: rgba(233, 228, 211, 0.06);
  border: 1px solid rgba(233, 228, 211, 0.12);
  border-radius: 16px;
}

.steps-list span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--secondary-dark);
  background: var(--primary);
  border-radius: 999px;
  font-weight: 900;
}

.steps-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
}

.feature-band {
  margin-top: 56px;
  padding: 34px;
  color: var(--secondary-dark);
  background: var(--primary);
  border-radius: 24px;
}

.feature-band h2,
.feature-band p {
  color: var(--secondary-dark);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  margin-top: 34px;
}

.info-list {
  display: grid;
  gap: 16px;
}

.info-list div {
  padding: 20px;
  color: var(--secondary-dark);
  background: var(--parchment);
  border-radius: 16px;
}

.info-list strong {
  display: block;
  margin-bottom: 6px;
}

.info-list p {
  color: var(--secondary-dark);
}

.modal-open {
  overflow: hidden;
}

.adoption-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}

.adoption-modal[hidden] {
  display: none;
}

.adoption-modal__panel {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 48px);
  color: var(--secondary-dark);
  background: var(--primary);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.adoption-modal__panel h2,
.adoption-modal__panel p {
  color: var(--secondary-dark);
}

.adoption-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  color: var(--secondary-dark);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.adoption-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.adoption-category-grid a {
  display: grid;
  place-items: center;
  min-height: 138px;
  padding: 18px;
  color: var(--primary);
  background: var(--secondary);
  border-radius: 16px;
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.adoption-category-grid a:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
}

.adoption-category-grid span {
  margin-bottom: 10px;
  font-size: 2rem;
}

.pets-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.pet-placeholder-card {
  min-height: 320px;
  padding: 22px;
  color: var(--secondary-dark);
  background: var(--parchment);
  border: 1px dashed rgba(8, 61, 45, 0.32);
  border-radius: 16px;
}

.pet-placeholder-card .placeholder-image {
  display: grid;
  place-items: center;
  height: 170px;
  margin-bottom: 18px;
  color: rgba(8, 61, 45, 0.62);
  background: rgba(8, 61, 45, 0.08);
  border-radius: 12px;
  font-weight: 800;
}

.pet-placeholder-card h3,
.pet-placeholder-card p {
  color: var(--secondary-dark);
}

.pet-search-page {
  background: var(--secondary);
}

.pet-search-shell {
  padding: 104px clamp(18px, 4vw, 56px) 72px;
  color: var(--primary);
}

.pet-search-header {
  width: min(1180px, 100%);
  margin: 0 auto 28px;
}

.pet-search-header h1 {
  margin: 8px 0 14px;
  color: var(--primary);
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.pet-search-header p {
  max-width: 760px;
  color: rgba(233, 228, 211, 0.88);
  font-weight: 650;
}

.pet-search-layout {
  display: grid;
  grid-template-columns: minmax(250px, 310px) 1fr;
  gap: 26px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: start;
}

.pet-filter-panel,
.pet-results-panel {
  background: var(--primary);
  border: 1px solid rgba(8, 61, 45, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.pet-filter-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.pet-filter-panel h2 {
  font-size: 1.35rem;
}

.pet-filter-panel .button {
  width: 100%;
  min-width: 0;
}

.pet-filter-state {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: var(--secondary-dark);
  background: var(--parchment);
  border: 1px solid rgba(8, 61, 45, 0.18);
  border-radius: 8px;
  font-weight: 800;
}

.pet-filter-state span {
  color: rgba(8, 61, 45, 0.72);
  font-size: 0.86rem;
}

.pet-filter-state strong {
  font-size: 1.05rem;
}

.pet-results-panel {
  padding: 22px;
}

.pet-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--secondary-dark);
}

.pet-results-toolbar div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
}

.pet-results-toolbar strong {
  font-size: 2rem;
}

.pet-results-toolbar button,
.pet-pagination button,
.pet-pagination strong {
  min-height: 38px;
  padding: 9px 12px;
  color: var(--secondary-dark);
  background: var(--parchment);
  border: 1px solid rgba(8, 61, 45, 0.18);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.pet-card-grid {
  display: grid;
  gap: 18px;
}

.pet-result-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  overflow: hidden;
  color: var(--secondary-dark);
  background: var(--parchment);
  border: 1px solid rgba(8, 61, 45, 0.14);
  border-radius: 14px;
}

.pet-result-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.pet-result-card div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 22px 22px 0;
}

.pet-card-title-row,
.pet-detail-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pet-card-title-row h2,
.pet-detail-title-row h1 {
  margin: 0;
}

.pet-result-card span {
  color: rgba(8, 61, 45, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

.pet-result-card .pet-code,
.pet-detail-card .pet-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 5px 10px;
  color: var(--primary);
  background: var(--secondary-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.pet-result-card h2 {
  font-size: 1.7rem;
}

.pet-result-card p {
  color: var(--secondary);
}

.pet-result-card .pet-breed {
  font-weight: 800;
}

.pet-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.pet-status-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: fit-content;
  min-height: 32px;
  padding: 7px 11px;
  color: var(--secondary-dark);
  background: rgba(38, 79, 65, 0.12);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.86rem;
  font-weight: 800;
}

.pet-interstate {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 7px 11px;
  color: var(--secondary-dark);
  background: rgba(38, 79, 65, 0.12);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.pet-result-card .button {
  width: min(100%, 190px);
  min-width: 0;
  margin-top: 8px;
  box-shadow: none;
}

.pet-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(8, 61, 45, 0.14);
}

.pet-pagination button,
.pet-pagination strong {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(8, 61, 45, 0.18);
  font: inherit;
  font-weight: 850;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pet-pagination button {
  color: var(--secondary-dark);
  background: var(--parchment);
  cursor: pointer;
}

.pet-pagination button:hover:not(:disabled) {
  color: var(--primary);
  background: var(--secondary-hover);
  transform: translateY(-1px);
}

.pet-pagination strong {
  color: var(--primary);
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 8px 18px rgba(8, 61, 45, 0.18);
}

.pet-pagination button:disabled {
  color: rgba(8, 61, 45, 0.34);
  background: rgba(246, 242, 232, 0.55);
  cursor: default;
}

.pet-pagination__step {
  min-width: 92px !important;
}

.pet-pagination__ellipsis {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 42px;
  color: rgba(8, 61, 45, 0.58);
  font-weight: 900;
}

.pet-empty-state {
  padding: 32px;
  color: var(--secondary-dark);
  background: var(--parchment);
  border: 1px dashed rgba(8, 61, 45, 0.28);
  border-radius: 14px;
  font-weight: 750;
}

.pet-detail-page {
  background: var(--secondary);
}

.pet-detail-shell {
  padding: 104px clamp(18px, 4vw, 56px) 72px;
}

.pet-back-link {
  display: inline-flex;
  color: var(--primary);
  font-weight: 800;
}

.pet-detail-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.pet-code-search {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
}

.pet-code-search label {
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pet-code-search div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.pet-code-search input,
.pet-code-search button {
  min-height: 42px;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
}

.pet-code-search input {
  min-width: 0;
  padding: 0 12px;
  color: var(--secondary-dark);
  background: var(--primary);
  border: 1px solid rgba(233, 228, 211, 0.55);
}

.pet-code-search button {
  padding: 0 14px;
  color: var(--secondary-dark);
  background: var(--primary);
  border: 1px solid rgba(233, 228, 211, 0.55);
  cursor: pointer;
}

.pet-detail-hero,
.pet-detail-body,
.pet-detail-missing {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.pet-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: start;
}

.pet-detail-gallery,
.pet-detail-card,
.pet-detail-body,
.pet-detail-missing {
  background: var(--primary);
  border: 1px solid rgba(8, 61, 45, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.pet-detail-gallery {
  overflow: hidden;
}

.pet-detail-main-wrap {
  position: relative;
}

.pet-detail-main-image {
  width: 100%;
  height: min(58vw, 560px);
  min-height: 380px;
  object-fit: cover;
}

.pet-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--secondary-dark);
  background: rgba(233, 228, 211, 0.92);
  border: 1px solid rgba(8, 61, 45, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.18s ease, background 0.18s ease;
}

.pet-gallery-arrow:hover {
  color: var(--primary);
  background: var(--secondary);
  transform: translateY(-50%) scale(1.04);
}

.pet-gallery-arrow--prev {
  left: 14px;
}

.pet-gallery-arrow--next {
  right: 14px;
}

.pet-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.pet-detail-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.pet-detail-thumbs img:hover {
  border-color: var(--secondary);
}

.pet-detail-thumbs img.active {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(8, 61, 45, 0.16);
}

.pet-detail-card,
.pet-detail-body,
.pet-detail-missing {
  padding: clamp(24px, 4vw, 38px);
  color: var(--secondary-dark);
}

.pet-detail-card {
  position: sticky;
  top: 88px;
  background:
    linear-gradient(180deg, rgba(246, 242, 232, 0.9), rgba(233, 228, 211, 0.98)),
    var(--primary);
}

.pet-detail-card h1 {
  margin: 8px 0 16px;
  color: var(--secondary-dark);
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.pet-detail-summary,
.pet-detail-body p,
.pet-detail-missing p {
  color: var(--secondary);
}

.pet-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.pet-facts div {
  padding: 14px;
  background: var(--parchment);
  border: 1px solid rgba(8, 61, 45, 0.12);
  border-radius: 10px;
}

.pet-facts dt {
  margin-bottom: 4px;
  color: rgba(8, 61, 45, 0.7);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pet-facts dd {
  color: var(--secondary-dark);
  font-weight: 800;
}

.pet-fee-fact {
  border-color: rgba(8, 61, 45, 0.24) !important;
  background: rgba(38, 79, 65, 0.12) !important;
}

.pet-fee-fact dd {
  font-size: 1.35rem;
}

.pet-fee-info {
  display: grid;
  gap: 8px;
  margin: -8px 0 22px;
  padding: 14px 16px;
  color: var(--secondary-dark);
  background: rgba(255, 255, 255, 0.46);
  border-left: 4px solid var(--secondary);
  border-radius: 10px;
}

.pet-fee-info p {
  color: var(--secondary-dark);
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.45;
}

.pet-fee-info a {
  width: fit-content;
  color: var(--secondary-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pet-detail-body {
  margin-top: 28px;
  background:
    linear-gradient(180deg, rgba(246, 242, 232, 0.98), rgba(233, 228, 211, 0.96)),
    var(--primary);
}

.pet-profile-letter {
  width: min(860px, 100%);
  margin: 0 auto;
}

.pet-detail-body h2,
.pet-detail-missing h1 {
  margin-bottom: 18px;
  color: var(--secondary-dark);
}

.pet-profile-letter h2 {
  color: #4f8f20;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.pet-profile-intro {
  margin: 16px 0 10px;
  color: var(--secondary-dark);
  font-weight: 800;
}

.pet-profile-list {
  display: grid;
  gap: 3px;
  margin: 0 0 28px;
  color: var(--secondary-dark);
  font-size: 1rem;
  line-height: 1.55;
}

.pet-profile-list div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 8px;
}

.pet-profile-list dt {
  font-weight: 900;
}

.pet-profile-list dd {
  font-weight: 650;
}

.pet-profile-copy {
  color: var(--secondary-dark);
  font-size: 1.04rem;
  line-height: 1.9;
}

.pet-profile-copy > p + p,
.pet-profile-copy .pet-copy-block + p,
.pet-profile-copy p + .pet-copy-block,
.pet-profile-copy .pet-copy-block + .pet-copy-block {
  margin-top: 20px;
}

.pet-copy-block {
  padding-top: 8px;
}

.pet-copy-block h3 {
  margin-bottom: 4px;
  color: var(--secondary-dark);
  font-size: 1.05rem;
}

.pet-copy-block p {
  color: var(--secondary-dark);
  line-height: 1.78;
}

.adoption-fees-page {
  background: var(--secondary);
}

.article-shell {
  padding: 104px clamp(18px, 5vw, 72px) 72px;
}

.article-page {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  color: var(--secondary-dark);
  background:
    linear-gradient(180deg, rgba(246, 242, 232, 0.98), rgba(233, 228, 211, 0.96)),
    var(--primary);
  border: 1px solid rgba(8, 61, 45, 0.18);
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.article-page h1 {
  margin: 10px 0 18px;
  color: var(--secondary-dark);
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.article-lead {
  margin-bottom: 28px;
  color: var(--secondary);
  font-size: 1.16rem;
  font-weight: 700;
}

.article-page section {
  padding: 22px 0;
  border-top: 1px solid rgba(8, 61, 45, 0.14);
}

.article-page h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.article-page p {
  color: var(--secondary);
}

.article-page p + p {
  margin-top: 12px;
}

.article-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .work-section,
  .partnership-section,
  .donate-section,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .split-detail,
  .contact-panel,
  .adoption-category-grid,
  .pets-placeholder-grid,
  .pet-search-layout {
    grid-template-columns: 1fr;
  }

  .pet-filter-panel {
    position: static;
  }

  .pet-detail-grid {
    grid-template-columns: 1fr;
  }

  .pet-detail-card {
    position: static;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    align-items: flex-start;
    text-align: left;
  }

  .footer-acknowledgement {
    text-align: left;
  }

  .footer-bottom > a {
    justify-self: start;
  }

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

  .tips-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .donate-section .button {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: 64px;
    min-height: 64px;
    padding: 10px 18px;
  }

  .brand span:last-child {
    max-width: 190px;
    font-size: 0.95rem;
  }

  .header-actions {
    justify-self: end;
    gap: 10px;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(82vw, 320px);
    padding: 30px 24px;
    gap: 0;
    color: var(--primary);
    background: var(--secondary);
    border-left: 1px solid var(--secondary-dark);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.25);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .site-header.menu-open .main-nav {
    transform: translateX(0);
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg);
  }

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

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .main-nav a {
    padding: 18px 0;
    border-bottom: 1px solid rgba(233, 228, 211, 0.16);
    font-size: 1.08rem;
  }

  .main-nav a.active::after {
    bottom: 8px;
  }

  main {
    padding-top: 64px;
  }

  .hero {
    height: auto;
    min-height: 600px;
    padding: 72px 0;
  }

  .hero-actions {
    flex-direction: column;
    padding: 0 16px;
  }

  .button {
    width: 100%;
  }

  .stats-strip,
  .animal-gallery,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-top: -40px;
    padding: 42px 22px;
  }

  .pet-search-shell {
    padding: 88px 14px 48px;
  }

  .donate-carousel {
    width: min(320px, calc(100% - 32px));
    margin: -96px auto -86px;
  }

  .donate-carousel__frame {
    aspect-ratio: 4 / 5;
    border-width: 7px;
    border-radius: 18px;
  }

  .donate-page .route-detail {
    padding-top: 156px;
  }

  .pet-results-panel,
  .pet-filter-panel {
    padding: 16px;
    border-radius: 14px;
  }

  .pet-results-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .pet-result-card img {
    height: 250px;
  }

  .pet-result-card div {
    padding: 20px;
  }

  .pet-status-badges {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
  }

  .pet-status-badges span:nth-child(3) {
    grid-column: 1 / -1;
  }

  .pet-detail-shell {
    padding: 88px 14px 48px;
  }

  .pet-detail-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pet-code-search {
    width: 100%;
  }

  .pet-detail-main-image {
    height: 360px;
    min-height: 300px;
  }

  .pet-detail-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pet-gallery-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }

  .pet-facts {
    grid-template-columns: 1fr;
  }

  .pet-profile-list div {
    grid-template-columns: 104px 1fr;
  }
}
