:root {
  --green-900: #173f2b;
  --green-800: #1f5c3d;
  --green-700: #26754d;
  --green-100: #e8f4ee;
  --sand: #fdf7ec;
  --amber: #b45309;
  --red: #b42318;
  --ink: #17211b;
  --muted: #4a5a51;
  --white: #ffffff;
  --focus: #0b57d0;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(23, 63, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-size: 1rem;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-800);
}

a:hover,
a:focus-visible {
  color: var(--green-900);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green-900);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  background: var(--green-900);
  color: var(--white);
}

.topline {
  background: var(--amber);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.topline .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 0.55rem 0;
}

.topline a {
  color: inherit;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--green-700);
  border-radius: 50%;
  font-size: 1.4rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  background: var(--green-700);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

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

.button-primary {
  background: var(--green-700);
  color: var(--white);
}

.button-secondary {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
}

.button-light {
  background: var(--white);
  color: var(--green-900);
}

.button-danger {
  background: var(--red);
  color: var(--white);
}

/* Hero */
.hero {
  background:
    linear-gradient(120deg, rgba(23, 63, 43, 0.92), rgba(38, 117, 77, 0.82)),
    repeating-linear-gradient(45deg, #1f5c3d 0 24px, #26754d 24px 48px);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.quick-cards {
  display: grid;
  gap: 0.8rem;
}

.quick-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.quick-card strong {
  display: block;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  max-width: 62ch;
  margin-bottom: 2rem;
}

.section-head h2,
.section-head h1 {
  color: var(--green-900);
  margin: 0 0 0.5rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-media {
  min-height: 180px;
  background: linear-gradient(135deg, var(--green-100), #cfe8da);
  display: grid;
  place-items: center;
  font-size: 3rem;
}

.card-body {
  padding: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.card-body h3 {
  margin: 0;
  color: var(--green-900);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--green-100);
  color: var(--green-900);
}

.badge-emergency {
  background: #fee4e2;
  color: var(--red);
}
.badge-reserved {
  background: #fef3c7;
  color: var(--amber);
}
.badge-available {
  background: var(--green-100);
  color: var(--green-900);
}

.card-link {
  margin-top: auto;
}

/* Filter */
.filter-panel {
  background: var(--white);
  border: 1px solid #d8e4dd;
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 2rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}

select,
input,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid #9db4a8;
  border-radius: 8px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

legend {
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.checkbox-row input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--green-700);
}

/* Animal profile */
.animal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.animal-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-100), #cfe8da);
  min-height: 320px;
  display: grid;
  place-items: center;
  font-size: 6rem;
}

.fact-list {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 1rem 0;
  list-style: none;
}

.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed #c8d8d0;
  padding-bottom: 0.5rem;
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border-left: 6px solid var(--green-700);
  border-radius: 10px;
  padding: 1rem 1.2rem 1rem 3.4rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--white);
  font-weight: 800;
}

/* Forms */
.form-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.3rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.error-text {
  color: var(--red);
  font-weight: 700;
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: #dcebe2;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.05rem;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: #dcebe2;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* Toast */
.toast {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 50;
  background: var(--green-900);
  color: var(--white);
  padding: 1rem 1.2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 24rem;
}

@media (max-width: 860px) {
  .hero-grid,
  .animal-layout {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.hero-actions ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-actions li {
  margin: 0;
  padding: 0;
}
.quick-cards ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-cards li {
  margin: 0;
  padding: 0;
}

.quick-card {
  display: flex;
  height: 100%;
}
.brand-name {
  display: none;
}
