/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #faf8f5;
  --color-text: #2c2c2c;
  --color-text-muted: #6b6b6b;
  --color-accent: #c17f3e;
  --color-accent-dark: #8b5a2b;
  --color-card-bg: #ffffff;
  --color-card-border: #e8e0d8;
  --color-hero-overlay: rgba(30, 20, 10, 0.55);
  --color-tag-bg: #f0e8df;
  --color-tag-text: #7a5c3a;
  --color-link: #2a7d5f;
  --color-link-hover: #1d5a44;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-link-hover); }

/* === Typography === */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === Grid === */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* === Navigation === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-card-border);
  transition: transform var(--transition);
}

.site-nav.hidden { transform: translateY(-100%); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text);
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-accent); }

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Tags === */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tag.vulnerable { background: #fde8e0; color: #a44a2a; }
.tag.least-concern { background: #e0f0e8; color: #2a6b4a; }
.tag.invasive { background: #fde8e0; color: #a44a2a; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent); color: #fff; }

/* === Footer === */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-card-border);
}

/* === Responsive === */
@media (max-width: 768px) {
  .section { padding: 2.5rem 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  /* Mobile nav: show hamburger, hide inline links */
  .nav-hamburger { display: flex; }

  .nav-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100dvh;
    background: var(--color-bg, #faf8f5);
    flex-direction: column;
    align-items: stretch;
    padding: 4.5rem 1.5rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 105;
    overflow-y: auto;
  }

  .nav-right.open { transform: translateX(0); }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links li { border-bottom: 1px solid var(--color-card-border, #e8e0d8); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }
}

/* Nav overlay backdrop — must sit below .site-nav (z-index 100) so the
   slide-out drawer stays interactive, but above normal page content. */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}
.nav-overlay.open { display: block; }

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .nav-inner { padding: 0.6rem 1rem; }
}
