/* ============================================================
   Dharabi Private Wildlife Reserve — design tokens & base
   ============================================================ */

:root {
  --ink: #1B2318;
  --ink-soft: #263323;
  --stone: #F6F2E8;
  --stone-deep: #ECE4D2;
  --stone-line: rgba(27, 35, 24, 0.14);
  --moss: #4B5A3F;
  --moss-soft: #6E7A5C;
  --brass: #A9743D;
  --brass-light: #C79361;
  --cream: #F3EEE1;
  --cream-soft: rgba(243, 238, 225, 0.72);
  --ink-70: rgba(27, 35, 24, 0.72);
  --ink-50: rgba(27, 35, 24, 0.52);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --edge: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

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

/* ---------- eyebrow / utility text ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--edge);
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--stone-line);
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__title {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 600;
  white-space: nowrap;
}
.brand__sub {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
}
.nav__links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-70);
  position: relative;
  padding: 4px 0;
  margin-left: 34px;
}
.nav__links a:first-child { margin-left: 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.25s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  right: 0;
}
.nav__links a[aria-current="page"] { color: var(--ink); }

.nav__cta {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__cta:hover { background: var(--ink); color: var(--cream); }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--stone-line);
  background: none;
  cursor: pointer;
  flex: none;
}
.nav__toggle svg { width: 18px; height: 18px; }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px var(--edge) 22px;
  border-top: 1px solid var(--stone-line);
  background: var(--stone);
}
.nav__mobile a {
  padding: 13px 0;
  border-bottom: 1px solid var(--stone-line);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile .nav__cta { margin-top: 16px; text-align: center; }

@media (max-width: 860px) {
  .nav__links, .nav > .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .brand__sub { display: none; }
  .site-header.is-open .nav__mobile { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero--short { min-height: 46vh; }

.hero__bg {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero__scrim {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  background:
    linear-gradient(180deg, rgba(20,26,17,0.15) 0%, rgba(17,22,14,0.35) 55%, rgba(14,18,11,0.86) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--edge) 56px;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-light);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.hero__eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass-light);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  color: var(--cream);
  max-width: 16ch;
}
.hero h1 em { color: var(--brass-light); font-style: italic; }

.hero__lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 17px;
  color: var(--cream-soft);
}

.hero__meta {
  display: flex;
  gap: 34px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero__meta div { max-width: 220px; }
.hero__meta span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 6px;
}
.hero__meta p { font-size: 14px; color: var(--cream-soft); margin: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background 0.2s ease, color 0.2s ease, border-color .2s ease;
}
.btn--light { color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--ink); }
.btn--dark { color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--cream); }
.btn--fill { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--fill:hover { background: var(--moss); border-color: var(--moss); }

/* ============================================================
   Sections
   ============================================================ */
section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--ink); color: var(--cream); }
.section--deep { background: var(--stone-deep); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 14px;
}
.section-head p { margin-top: 16px; color: var(--ink-70); font-size: 16px; }
.section--dark .section-head p { color: var(--cream-soft); }

hr.rule {
  border: none;
  border-top: 1px solid var(--stone-line);
  margin: 0;
}

/* ---------- Intro / lede blocks ---------- */
.lede-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) {
  .lede-grid { grid-template-columns: 1fr; gap: 28px; }
}
.lede-grid .lede-copy p { font-size: 17px; color: var(--ink-70); }
.lede-grid .lede-copy p strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Feature tiles (activities preview on home)
   ============================================================ */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--stone-line);
}
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
}
.tile {
  position: relative;
  background: var(--ink);
  aspect-ratio: 3/4;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
}
.tile img {
  position: absolute; top:0; right:0; bottom:0; left:0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.tile:hover img { transform: scale(1.06); }
.tile::after {
  content: "";
  position: absolute; top:0; right:0; bottom:0; left:0;
  background: linear-gradient(180deg, rgba(14,18,11,0) 40%, rgba(11,15,9,0.88) 100%);
}
.tile__body {
  position: relative;
  z-index: 2;
  padding: 26px;
}
.tile__num {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
  display: block;
  margin-bottom: 8px;
}
.tile h3 { color: var(--cream); font-size: 22px; }
.tile p { color: var(--cream-soft); font-size: 13.5px; margin-top: 6px; }

/* ============================================================
   Location strip
   ============================================================ */
.locale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 780px) {
  .locale { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
.locale__item span.eyebrow { margin-bottom: 10px; }
.locale__item p { font-size: 15px; color: var(--cream-soft); }
.section--dark .locale__item .eyebrow { color: var(--brass-light); }
.section--dark .locale__item .eyebrow::before { background: var(--brass-light); }

/* ============================================================
   Field-guide specimen cards (signature element)
   ============================================================ */
.specimen-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 34px 26px;
}
.specimen {
  text-align: left;
}
.specimen__frame {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--stone-line);
  outline: 1px solid transparent;
  box-shadow: 0 0 0 5px var(--stone);
  margin-bottom: 16px;
  position: relative;
}
.specimen__frame img {
  width: 100%; height: 100%; object-fit: cover;
}
.specimen__plate {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--ink);
  color: var(--cream);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 20px;
  font-weight: 600;
}
.specimen__common {
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
.specimen__latin {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--brass);
  margin-top: 3px;
}
.specimen__tag {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-50);
}

.index-group { margin-bottom: 56px; }
.index-group:last-child { margin-bottom: 0; }
.index-group__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  padding-bottom: 14px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--stone-line);
}

/* ============================================================
   Image + text feature rows (about/activities)
   ============================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row.reverse .feature-row__media { order: 2; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-row__media { order: initial; }
}
.feature-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3.1;
}
.feature-row__copy .eyebrow { margin-bottom: 16px; }
.feature-row__copy h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.feature-row__copy p { color: var(--ink-70); font-size: 16px; }
.feature-row__list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.feature-row__list li {
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border: 1px solid var(--stone-line);
  color: var(--ink-70);
}

/* ============================================================
   Gallery grid (activities photo strips)
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 780px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.gallery figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.gallery--wide img { aspect-ratio: 16/10; }

/* ============================================================
   Activity block header (Activities page)
   ============================================================ */
.activity-block {
  padding: 88px 0;
  border-bottom: 1px solid var(--stone-line);
}
.activity-block:last-of-type { border-bottom: none; }
.activity-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.activity-head h2 { font-size: clamp(30px, 4vw, 46px); }
.activity-head .eyebrow { margin-bottom: 14px; }
.activity-head p {
  max-width: 40ch;
  color: var(--ink-70);
  font-size: 15.5px;
}

/* ============================================================
   Quote / conservation banner
   ============================================================ */
.banner {
  position: relative;
  min-height: 56vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}
.banner__bg {
  position: absolute; top:0; right:0; bottom:0; left:0;
  background-size: cover;
  background-position: center;
}
.banner__scrim {
  position: absolute; top:0; right:0; bottom:0; left:0;
  background: linear-gradient(90deg, rgba(14,18,11,0.9) 0%, rgba(14,18,11,0.55) 55%, rgba(14,18,11,0.2) 100%);
}
.banner__content { position: relative; z-index: 2; max-width: 620px; padding: 0 var(--edge); }
.banner .eyebrow { color: var(--brass-light); }
.banner .eyebrow::before { background: var(--brass-light); }
.banner h2 { color: var(--cream); font-size: clamp(26px, 3.4vw, 38px); margin-top: 16px; }
.banner p { color: var(--cream-soft); margin-top: 18px; font-size: 16px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  text-align: center;
  padding: 100px 0;
}
.cta-band .eyebrow { justify-content: center; }
.cta-band h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  max-width: 16ch;
  margin: 18px auto 0;
}
.cta-band p {
  max-width: 52ch;
  margin: 18px auto 0;
  color: var(--ink-70);
  font-size: 16.5px;
}
.cta-band .btn { margin-top: 32px; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--stone-line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list__icon {
  width: 40px; height: 40px;
  border: 1px solid var(--moss);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  color: var(--moss);
}
.contact-list__icon svg { width: 17px; height: 17px; }
.contact-list__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 4px;
}
.contact-list__value { font-size: 16px; }
.contact-list__value a:hover { color: var(--brass); }

.social-row { display: flex; gap: 14px; margin-top: 36px; }
.social-row a {
  width: 42px; height: 42px;
  border: 1px solid var(--stone-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social-row a:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.social-row svg { width: 17px; height: 17px; }

.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.field input, .field textarea {
  border: none;
  border-bottom: 1px solid var(--ink-50);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  resize: none;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.field textarea { min-height: 120px; }
.form .btn { align-self: flex-start; border: none; background: var(--ink); color: var(--cream); cursor: pointer; font-family: var(--sans); }
.form .btn:hover { background: var(--moss); }
.form-note { font-size: 13px; color: var(--ink-50); margin-top: -6px; }

.map-note {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--stone-line);
}
.map-note h3 { font-size: 20px; margin-bottom: 10px; }
.map-note p { color: var(--ink-70); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--cream-soft);
  padding: 72px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.footer-brand__mark { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex: none; }
.footer-brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand__title { font-family: var(--serif); font-size: 17px; color: var(--cream); }
.footer-brand__sub { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-light); margin-top: 3px; }
.footer p { font-size: 14px; max-width: 34ch; color: var(--cream-soft); }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--cream-soft); }
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid rgba(243,238,225,0.14);
  font-size: 12.5px;
  color: rgba(243,238,225,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .social-row a { border-color: rgba(243,238,225,0.2); color: var(--cream-soft); }
.footer-bottom .social-row a:hover { background: var(--cream); color: var(--ink); }
