:root {
  --bg: #0b1625;
  --panel: #142238;
  --panel-soft: #1b2d48;
  --text: #f4f0dd;
  --muted: #b5c3d8;
  --accent: #f2bf3a;
  --accent-2: #58b7ff;
  --outline: #0a0f16;
  --ok: #6ddf8f;
  --danger: #ff6f7e;
  --max: 1120px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(11, 22, 37, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

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

.hero {
  position: relative;
  min-height: 72vh;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  /* Bias image toward the lower part of the art so the scene sits under the title copy */
  background-color: #0b1625;
  background-image: linear-gradient(rgba(7, 14, 23, 0.64), rgba(7, 14, 23, 0.82)),
    url("./assets/images/zoo_entrance.jpg");
  background-size: 100% 100%, cover;
  background-position: 0% 0%, center 14%;
  background-repeat: no-repeat, no-repeat;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 20px 70px;
  display: grid;
  gap: 24px;
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 15px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #1a1403;
}

.btn-secondary {
  background: var(--panel-soft);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

main {
  display: block;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 20px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.muted {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.habitat-grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.habitat-grid li {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.habitat-card {
  margin: 0;
  display: block;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.habitat-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
}

.habitat-card figcaption {
  padding: 10px 12px 12px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--panel);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.55;
}

.notice {
  background: rgba(88, 183, 255, 0.12);
  border: 1px solid rgba(88, 183, 255, 0.4);
  color: #cbe8ff;
  padding: 11px 12px;
  border-radius: 10px;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px 30px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.fine {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 800px) {
  .habitat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .habitat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
