/* ============================================================
   blueheron.gallery — cream & navy, after the wordmark
   ============================================================ */
:root {
  --cream: #f4f1e9;
  --cream-deep: #ece7db;
  --navy: #1d3348;
  --navy-deep: #142534;
  --slate: #5c6f80;
  --ink: #26333e;
  --line: rgba(29, 51, 72, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(244, 241, 233, 0.92);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav-brand {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  letter-spacing: .18em; color: var(--navy); text-decoration: none;
}
.nav-brand span { color: var(--slate); font-weight: 400; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); font-weight: 400;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--navy); cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding-top: 5.5rem; }
.hero-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
}
.hero-kicker {
  font-size: .72rem; letter-spacing: .38em; color: var(--slate);
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1.02;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero-rule {
  width: 72px; height: 1px; background: var(--navy);
  margin: 1.8rem auto; opacity: .5;
}
.hero-sub {
  font-family: var(--serif); font-size: 1.35rem; font-style: italic;
  color: var(--slate); max-width: 34em; margin: 0 auto 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-photo { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.hero-photo img { box-shadow: 0 30px 60px -30px rgba(20, 37, 52, .45); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 2.1rem;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; font-weight: 400; transition: all .25s;
}
.btn-solid { background: var(--navy); color: var(--cream); border: 1px solid var(--navy); }
.btn-solid:hover { background: var(--navy-deep); }
.btn-ghost { border: 1px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }

/* ---------- shared section bits ---------- */
section { padding: 5.5rem 1.5rem; }
.section-kicker {
  text-align: center; font-size: .7rem; letter-spacing: .38em;
  color: var(--slate); margin-bottom: .8rem;
}
.section-title {
  text-align: center; font-family: var(--serif); font-weight: 500;
  color: var(--navy); font-size: clamp(2.2rem, 5vw, 3.4rem);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem;
}
.section-sub {
  text-align: center; font-family: var(--serif); font-style: italic;
  color: var(--slate); font-size: 1.15rem; margin-bottom: 3rem;
}

/* ---------- story ---------- */
.story { background: var(--navy); color: var(--cream); }
.story-text {
  max-width: 46em; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.75;
}
.story-sig {
  text-align: center; margin-top: 2rem; font-size: .72rem;
  letter-spacing: .28em; text-transform: uppercase; color: rgba(244,241,233,.65);
}

/* ---------- facts ---------- */
.facts-grid {
  max-width: 1150px; margin: 2.5rem auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.6rem 3rem;
}
.fact-num {
  font-family: var(--serif); font-size: 2.4rem; color: var(--slate);
  opacity: .55; display: block; line-height: 1;
}
.fact h3 {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: 1.45rem; margin: .5rem 0 .6rem;
}
.fact p { font-size: .95rem; color: var(--ink); }
.facts-cta { text-align: center; margin-top: 3.2rem; }

/* ---------- conservation ---------- */
.conservation-strip {
  background: var(--cream-deep); text-align: center;
  padding: 2.6rem 1.5rem;
}
.conservation-strip p {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem;
  color: var(--navy); max-width: 42em; margin: 0 auto;
}

/* ---------- gallery ---------- */
.gallery-grid {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}
.gallery-item { cursor: pointer; }
.gallery-item img {
  aspect-ratio: 3 / 2; object-fit: cover; width: 100%;
  transition: transform .4s, box-shadow .4s;
}
.gallery-item:hover img {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(20, 37, 52, .5);
}
.gallery-item figcaption {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: .7rem;
}
.g-title { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.g-loc { font-size: .62rem; letter-spacing: .26em; color: var(--slate); }

/* ---------- prints ---------- */
.prints { background: var(--navy); color: var(--cream); }
.prints .section-title, .prints .section-kicker { color: var(--cream); }
.prints .section-sub { color: rgba(244, 241, 233, .7); }
.formats-grid {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
}
.format {
  border: 1px solid rgba(244, 241, 233, .25);
  padding: 1.8rem 1.4rem; text-align: center;
  transition: border-color .3s, background .3s, transform .3s;
  display: block; text-decoration: none; color: inherit;
}
.format:hover { border-color: rgba(244,241,233,.7); background: rgba(244,241,233,.05); transform: translateY(-3px); }
.format h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem;
  margin-bottom: .5rem; color: var(--cream);
}
.format p { font-size: .82rem; color: rgba(244, 241, 233, .7); }
.format-count {
  display: inline-block; margin-top: .8rem; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(244,241,233,.5);
}
.prints-cta { text-align: center; margin-top: 3rem; }
.prints-cta .btn-solid { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.prints-cta .btn-solid:hover { background: #fff; }
.prints-note {
  margin-top: 1.4rem; font-size: .85rem; color: rgba(244, 241, 233, .65);
  max-width: 34em; margin-inline: auto;
}

/* ---------- quote ---------- */
.quote { padding: 6rem 1.5rem; }
.quote blockquote {
  max-width: 36em; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--navy); line-height: 1.6;
}

/* ---------- footer ---------- */
.footer {
  background: var(--navy-deep); color: rgba(244, 241, 233, .8);
  padding: 4rem 1.5rem 2.5rem; text-align: center;
}
.footer-word {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  letter-spacing: .18em; color: var(--cream);
}
.footer-word span { color: var(--slate); font-weight: 400; }
.footer-brand p { font-size: .85rem; }
.footer-links {
  display: flex; gap: 1.8rem; justify-content: center; flex-wrap: wrap;
  margin: 2rem 0;
}
.footer-links a {
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: rgba(244, 241, 233, .75);
}
.footer-links a:hover { color: #fff; }
.footer-fine { font-size: .72rem; color: rgba(244, 241, 233, .45); max-width: 40em; margin: 0 auto; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 37, 52, .95);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; padding: 3rem 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; max-width: 92vw; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-caption {
  color: var(--cream); font-family: var(--serif); font-style: italic;
  margin-top: 1.2rem; font-size: 1.15rem; text-align: center;
}
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.6rem;
  background: none; border: none; color: var(--cream);
  font-size: 2.2rem; cursor: pointer; line-height: 1;
}

/* ---------- facts page ---------- */
.facts-page { padding-top: 7.5rem; }
.facts-page .facts-grid { margin-bottom: 3rem; }
.facts-group-title {
  max-width: 1150px; margin: 3.5rem auto 1.8rem;
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: 1.8rem; letter-spacing: .04em;
  border-bottom: 1px solid var(--line); padding-bottom: .5rem;
}
.back-home { text-align: center; padding: 0 1.5rem 5rem; }

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  .nav { padding: 1rem 1.2rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
  section { padding: 3.5rem 1.2rem; }
  .story-text { font-size: 1.2rem; }
}
