:root {
  --bg: #f6f2e8;
  --paper: #fdfbf6;
  --ink: #2f342d;
  --muted: #6e7568;
  --sage: #7c9273;
  --sage-dark: #526648;
  --cream: #d7c3a1;
  --line: rgba(47, 52, 45, 0.15);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--sage);
  color: var(--paper);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 150px;
  height: 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.logo img {
  width: 150px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

/* NAV LINKS */

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Arial, sans-serif;
  font-size: clamp(0.78rem, 1.25vw, 0.9rem);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--cream);
}

/* MOBILE BUTTON */

.nav-toggle {
  display: none;
  border: 1px solid rgba(253, 251, 246, 0.8);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  padding: 5px 7px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--paper);
}

/* HERO */

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background: #8a9782;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

.hero-content {
  width: min(720px, calc(100% - 32px));
  padding: clamp(44px, 8vw, 88px) 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.35);
}
.hero .eyebrow {
  color: #d7c3a1;
}
.intro .eyebrow,
.section-heading .eyebrow,
.split-copy .eyebrow,
.visit .eyebrow {
  color: #526648;
}

.eyebrow {
  margin: 0 0 10px;
  color: #f0d9a7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-family: Arial, sans-serif;
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 32px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.05;
}
h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
  line-height: 1.15;
}

.hero-text {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 34ch;
}

.button {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 13px 24px;
  background: var(--sage);
  color: var(--paper);
  border: 2px solid var(--sage);
  font-family: Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: transparent;
  color: var(--sage);
}

/* GLOBAL LAYOUT */

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
  text-align: center;
}

.intro,
.animals,
.gallery,
.visit {
  padding: clamp(72px, 9vw, 120px) 0;
}

.intro p,
.split-copy p,
.visit p,
.animal-card p {
  color: var(--muted);
}

/* SPLIT SECTIONS */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
  background: var(--paper);
}

.split-section.reverse .split-image {
  order: 2;
}

.split-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 7vw, 90px);
}

/* ANIMALS */

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.animal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.animal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
}

.animal-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 18px;
}

/* GALLERY */
.gallery {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.gallery::before {
  content: "";
  position: absolute;
 inset: 360px 0 auto 0;
  height: 300px;
  background: var(--paper);
  z-index: 0;
}
.gallery .container {
  position: relative;
  z-index: 1;
}
.gallery-grid img {
  border: 10px solid var(--paper);
  box-shadow: 0 14px 28px rgba(47, 52, 45, 0.14);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid img {
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
}

.gallery-grid img:nth-child(even) {
  margin-top: 34px;
}

/* VISIT */

.visit {
  background: var(--paper);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.visit-card {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: clamp(28px, 4vw, 44px);
}

.visit-card p {
  margin-bottom: 8px;
}

/* FOOTER */

.site-footer {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 30px 16px;
  background: var(--sage);
  color: var(--paper);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  position: relative;
  z-index: 101;
  text-decoration: none;
}
/* ADAPTIVE */

@media (max-width: 760px) {
  .nav {
    width: calc(100% - 24px);
    height: 66px;
  }

  .logo {
    width: 110px;
    height: 54px;
  }

  .logo img {
    width: 110px;
    height: 54px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--sage);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(253, 251, 246, 0.2);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 13px 0;
  }

  .hero {
    min-height: calc(100vh - 66px);
    place-items: center start;
    text-align: left;
  }

 .hero-content {
  padding: clamp(44px, 10vw, 76px) 32px;
}

  .split-section,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .split-image {
    order: 0;
  }

  .split-section {
    min-height: 0;
  }

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

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.75rem, 16vw, 4.5rem);
  }

  .narrow {
    text-align: left;
  }

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

  .gallery-grid img:nth-child(even) {
    margin-top: 0;
  }

  .split-copy {
    padding: 48px 24px;
  }
}
.contact-form {
  display: grid;
  gap: 14px;
  margin: 20px 0 18px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}
/* WAIVER PAGE */

.waiver-page {
  background: var(--bg);
}

.waiver-hero {
  padding: clamp(64px, 9vw, 110px) 0 clamp(36px, 6vw, 72px);
  background: var(--paper);
}

.waiver-hero .eyebrow {
  color: var(--sage-dark);
  text-shadow: none;
}

.waiver-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 1;
}

.waiver-hero p {
  max-width: 760px;
  color: var(--muted);
}

.waiver-content,
.waiver-form-section {
  padding: clamp(32px, 5vw, 64px) 0;
}

.waiver-form-section {
  padding-top: 0;
}

.waiver-card {
  max-width: 900px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(28px, 5vw, 56px);
}

.waiver-card h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.waiver-card h2:first-child {
  margin-top: 0;
}

.waiver-card p,
.waiver-card li {
  color: var(--muted);
}

.waiver-card strong {
  color: var(--ink);
}

.waiver-card ul {
  margin: 0 0 24px;
  padding-left: 22px;
}

.waiver-card li {
  margin-bottom: 10px;
}

.waiver-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.waiver-form label,
.waiver-form legend {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.waiver-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 12px;
  font: inherit;
}

.waiver-form fieldset {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
}

.waiver-form legend {
  padding: 0 8px;
}

.checkbox-label {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px !important;
  margin-top: 8px;
  line-height: 1.4;
}

.checkbox-label input {
  width: auto;
  margin-top: 3px;
}

.waiver-form button {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 13px 24px;
  background: var(--sage);
  color: var(--paper);
  border: 2px solid var(--sage);
  font-family: Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.waiver-form button:hover {
  background: transparent;
  color: var(--sage);
}

@media (max-width: 520px) {
  .waiver-card {
    padding: 24px;
  }

  .waiver-form button {
    width: 100%;
    justify-content: center;
  }
}