/* Verdant Atlas — Nature Media Library
   Lightweight, dependency-free stylesheet. */

:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --ink: #1f2a2440;
  --text: #20302a;
  --muted: #5c6b63;
  --line: #e3e1d6;
  --brand: #1f6b53;
  --brand-dark: #154d3c;
  --accent: #c9892f;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(26, 47, 38, 0.08);
  --shadow-hover: 0 14px 40px rgba(26, 47, 38, 0.16);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; color: var(--text); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 241, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span b { color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-dark);
  background: rgba(31, 107, 83, 0.08);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 11vw, 8rem) 0;
  max-width: 640px;
}
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero p {
  color: #f1f3ef;
  font-size: 1.18rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
  max-width: 36rem;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: #ffe6bd;
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.24); color:#fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Grids / cards ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card figure { margin: 0; aspect-ratio: 3 / 2; background: #dfe7e1; }
.card figure img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: rgba(31, 107, 83, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* gallery: rich masonry-like */
.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.gallery figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
}

/* feature row */
.features {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature { padding: 4px; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(31, 107, 83, 0.1);
  color: var(--brand-dark);
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  text-align: center;
}
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.stat .lbl { color: var(--muted); font-size: .92rem; }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; color: var(--muted); }
.prose li { margin-bottom: .4rem; }
.lead { font-size: 1.18rem; color: var(--muted); }

/* contact */
.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
.field textarea { min-height: 130px; resize: vertical; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.info-card dt { font-weight: 700; margin-top: 14px; }
.info-card dt:first-child { margin-top: 0; }
.info-card dd { margin: 2px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: #142420;
  color: #c8d4cd;
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-bottom: 36px;
}
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c8d4cd; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: #9fb1a8; max-width: 28rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .88rem;
  color: #9fb1a8;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
