:root {
  --cream-0: #fffaf3;
  --cream-1: #fff2db;
  --cream-2: #ffe5bf;
  --accent: #f62440;
  --ink: #2c2623;
  --muted: #746a63;
  --shadow-border: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06), 0 10px 28px -20px rgba(0, 0, 0, 0.25);
  --shadow-border-hover: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 3px 8px -4px rgba(0, 0, 0, 0.12), 0 16px 34px -22px rgba(0, 0, 0, 0.32);
}

html {
  scroll-padding-top: 86px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--cream-0);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.navbar-brand {
  font-family: "Nunito", system-ui, sans-serif;
  text-wrap: balance;
}

p,
li,
.card-text,
.lead {
  text-wrap: pretty;
}

a {
  color: var(--accent);
}

.site-nav {
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.nav-link {
  color: var(--ink);
  font-weight: 650;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--accent);
}

.btn {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition-property: scale, background-color, color, box-shadow, border-color;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.btn:active {
  scale: 0.96;
}

.btn-primary {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: #dc1f37;
  --bs-btn-hover-border-color: #dc1f37;
  --bs-btn-active-bg: #bd1b2f;
  --bs-btn-active-border-color: #bd1b2f;
}

.btn-outline-primary {
  --bs-btn-color: var(--accent);
  --bs-btn-border-color: rgba(246, 36, 64, 0.42);
  --bs-btn-hover-bg: var(--accent);
  --bs-btn-hover-border-color: var(--accent);
  --bs-btn-active-bg: #bd1b2f;
  --bs-btn-active-border-color: #bd1b2f;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--cream-1);
}

.section-warm {
  background: var(--cream-2);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - 74px);
  padding: 118px 0 56px;
  background: linear-gradient(90deg, rgba(44, 38, 35, 0.78), rgba(44, 38, 35, 0.26)), url("pexels-803093713-19176825.jpg") center 40% / cover no-repeat;
  color: #fff;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.96;
}

.hero .lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
}

.stat-tile,
.soft-card,
.animal-card,
.info-panel,
.cookie-card {
  background: rgba(255, 250, 243, 0.9);
  box-shadow: var(--shadow-border);
  border-radius: 8px;
}

.stat-tile {
  padding: 18px;
  color: var(--ink);
}

.stat-number {
  display: block;
  color: var(--accent);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.soft-card,
.animal-card,
.info-panel {
  transition-property: transform, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.soft-card:hover,
.animal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-border-hover);
}

.soft-card {
  height: 100%;
  padding: 28px;
}

.icon-pill {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--cream-2);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 900;
}

.image-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-border);
}

img {
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

.image-frame img,
.animal-card img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.animal-card {
  height: 100%;
  overflow: hidden;
}

.animal-card img {
  aspect-ratio: 4 / 3;
}

.animal-card .card-body {
  padding: 22px;
}

.badge-soft {
  background: var(--cream-2);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 800;
  padding: 8px 12px;
}

.list-check {
  list-style: none;
  padding-left: 0;
}

.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.list-check li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(246, 36, 64, 0.12);
}

.page-hero {
  padding: 132px 0 72px;
  background: var(--cream-1);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 900;
}

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

.gallery-item {
  grid-column: span 4;
  min-height: 260px;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream-1);
  box-shadow: var(--shadow-border);
  cursor: zoom-in;
  transition-property: transform, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(7) {
  grid-column: span 6;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-border-hover);
}

.gallery-item:active {
  scale: 0.96;
}

.map-wrap {
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-border);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.footer {
  background: #2c2623;
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 32px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  color: var(--cream-2);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1080;
  max-width: 430px;
}

.cookie-card {
  padding: 20px;
}

.modal-content {
  border: 0;
  border-radius: 8px;
  background: var(--cream-0);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.lightbox-image {
  max-height: 76vh;
  width: 100%;
  object-fit: contain;
  background: #171412;
  border-radius: 8px;
}

.form-control,
.form-select {
  min-height: 48px;
  border-color: rgba(44, 38, 35, 0.16);
  border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(246, 36, 64, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(246, 36, 64, 0.16);
}

@media (max-width: 991.98px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(7) {
    grid-column: span 6;
  }
}

@media (max-width: 575.98px) {
  .hero {
    background-position: 48% center;
    padding-top: 104px;
  }

  .hero h1 {
    font-size: 2.42rem;
    line-height: 1.02;
    max-width: 100%;
  }

  .hero .lead {
    font-size: 1.18rem;
  }

  .gallery-grid {
    gap: 12px;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(7) {
    grid-column: span 12;
    min-height: 240px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .cookie-card {
    padding: 16px;
  }

  .cookie-card .btn {
    min-height: 40px;
    font-size: 0.86rem;
  }

  .cookie-card .d-flex {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .cookie-card .btn-link {
    justify-self: center;
  }
}
