/* ============================================================
   PNW Trail Conservancy — Global Styles
   Design tokens sourced from Figma (shadcn/ui slate palette)
   ============================================================ */

/* --- Tokens --- */
:root {
  --green-900: #0e2e17;
  --green-800: #164522;
  --green-100: #f8fbf8;
  --green-200: #deeee0;
  --green-text-muted: #badec2;
  --green-text-badge: #baedbf;

  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;

  --white: #ffffff;

  --border-light: #e1eae1;
  --border-nav: #e1e7ed;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--slate-900); background: var(--white); }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }

.btn--dark        { background: var(--slate-900); color: var(--white); }
.btn--forest      { background: var(--green-800); color: var(--white); }
.btn--white-green { background: var(--white);     color: var(--green-900); }
.btn--outline     { background: var(--white); color: var(--slate-900); border-color: var(--slate-200); }
.btn--outline-green { background: transparent; color: #e5f7e8; border-color: var(--green-text-muted); }
.btn--dark-muted  { background: var(--slate-900); color: #e5f7e8; }

/* ============================================================
   OVERLINE
   ============================================================ */
.overline {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--green-800);
  text-transform: uppercase;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--border-nav);
  padding: 20px 80px;
}

.navbar__logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--green-800);
  white-space: nowrap;
}

.navbar__links {
  display: flex;
  gap: 4px;
}

.navbar__links a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--slate-900);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.navbar__links a:hover { background: var(--slate-100); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--green-900);
  padding: 120px 80px;
  overflow: hidden;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 69, 34, 0.6);
  color: var(--green-text-badge);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.hero__headline {
  font-size: 64px;
  font-weight: 800;
  line-height: 76px;
  letter-spacing: -1.5px;
  color: var(--white);
  text-align: center;
}

.hero__sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--green-text-muted);
  text-align: center;
  max-width: 700px;
}

.hero__cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero__img-wrap {
  width: 100%;
  max-width: 1280px;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--green-900);
  padding: 64px 80px;
  overflow: hidden;
}

.stats__divider {
  width: 100%;
  max-width: 1280px;
  height: 1px;
  background: #21542e;
  margin-bottom: 0;
}

.stats__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 32px;
  text-align: center;
}

.stats__icon  { font-size: 32px; line-height: 1; }

.stats__value {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--white);
}

.stats__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--green-text-muted);
  white-space: nowrap;
}

/* ============================================================
   MISSION
   ============================================================ */
.mission {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  background: var(--white);
  padding: 96px 80px;
  overflow: hidden;
}

.mission__img-wrap {
  flex-shrink: 0;
  width: 580px;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mission__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 560px;
}

.mission__title {
  font-size: 48px;
  font-weight: 800;
  line-height: 58px;
  letter-spacing: -1px;
  color: var(--slate-900);
}

.mission__body {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: var(--slate-700);
}

/* ============================================================
   TRAILS
   ============================================================ */
.trails {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  background: var(--green-100);
  padding: 96px 80px;
  overflow: hidden;
}

.trails__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.trails__title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--slate-900);
}

.trails__sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--slate-500);
  max-width: 600px;
}

/* Trail Cards */
.trail-cards {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.trail-card {
  display: flex;
  flex-direction: column;
  width: 400px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.trail-card__img-wrap {
  position: relative;
  height: 220px;
  flex-shrink: 0;
}

.trail-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trail-card__tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.trail-card__tag--green { color: var(--green-800); }
.trail-card__tag--blue  { color: #133d87; }
.trail-card__tag--amber { color: #874f13; }

.trail-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.trail-card__name {
  font-size: 20px;
  font-weight: 600;
  color: var(--slate-900);
}

.trail-card__region {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate-500);
}

.trail-card__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-500);
  white-space: nowrap;
}

/* ============================================================
   VOLUNTEER
   ============================================================ */
.volunteer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  background: var(--white);
  padding: 96px 80px;
  overflow: hidden;
}

.volunteer__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 520px;
  flex-shrink: 0;
}

.volunteer__title {
  font-size: 42px;
  font-weight: 800;
  line-height: 52px;
  letter-spacing: -0.8px;
  color: var(--slate-900);
}

.volunteer__body {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: var(--slate-700);
}

/* Features panel */
.features {
  display: flex;
  flex-direction: column;
  background: var(--green-100);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 560px;
  flex-shrink: 0;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.feature:last-child { border-bottom: none; }

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--green-200);
  border-radius: var(--radius-md);
  font-size: 20px;
  line-height: 1;
}

.feature__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-900);
}

.feature__desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--slate-500);
}

/* ============================================================
   DONATE CTA
   ============================================================ */
.donate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--green-900);
  padding: 112px 80px;
  text-align: center;
  overflow: hidden;
}

.donate__title {
  font-size: 52px;
  font-weight: 800;
  line-height: 64px;
  letter-spacing: -1.2px;
  color: var(--white);
}

.donate__sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--green-text-muted);
  max-width: 680px;
}

.donate__cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--slate-900);
  padding: 64px 80px;
  overflow: hidden;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 260px;
}

.footer__logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.footer__tagline {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--slate-500);
}

.footer__copy {
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: #4a576b;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.footer__col a {
  font-size: 14px;
  font-weight: 400;
  color: var(--slate-500);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.footer__col a:hover { color: var(--white); }
