@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ─── WCAG AA contrast on #ffffff background ────────────────
   --green    #7dd855  →  2.8:1  (decorative/large only)
   --green-dark #3a7d1e → 5.1:1  ✓ text on white
   --black    #1a1a1a  → 16.7:1  ✓
   --muted    #555555  →  7.0:1  ✓
   --muted-2  #777777  →  4.6:1  ✓
   Green used as accent/decoration; text always dark
   ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #7dd855;   /* signature green — decorative */
  --green-dark:  #3a7d1e;   /* AA text on white: 5.1:1 ✓ */
  --green-mid:   #5aab35;   /* AA large text/UI: 3.2:1 ✓ */
  --black:       #1a1a1a;
  --white:       #ffffff;
  --bg:          #f8f9f7;   /* very light green-tinted white */
  --muted:       #555555;   /* 7.0:1 ✓ */
  --muted-2:     #777777;   /* 4.6:1 ✓ */
  --border:      #e0e0e0;
  --border-green: rgba(125,216,85,0.3);
  --card-bg:     #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; }

/* ─── Skip link ──────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--green-dark); color: var(--white);
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700;
  padding: 10px 20px; z-index: 9999; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ─── Navigation ─────────────────────────────────────────── */
.site-nav {
  background: var(--white);
  border-bottom: 3px solid var(--green);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 960px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 24px;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 17px; font-weight: 800;
  color: var(--black); text-decoration: none;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}

.nav-logo-dot {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-links {
  display: flex; gap: 8px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green);
  color: var(--black);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

/* ─── Layout ─────────────────────────────────────────────── */
.page-wrap {
  max-width: 960px; margin: 0 auto;
  padding: 0 32px;
}

/* ─── Page header ────────────────────────────────────────── */
.page-header {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.page-tag::before { content: ''; width: 20px; height: 2px; background: var(--green); }

.page-header h1 {
  font-size: 36px; font-weight: 800;
  color: var(--black); line-height: 1.1;
  margin-bottom: 12px;
}
.page-header h1 span { color: var(--green-dark); }

.page-header p {
  font-size: 14px; color: var(--muted); max-width: 560px;
}

/* ─── Section labels ─────────────────────────────────────── */
.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: '//'; color: var(--green); }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--green);
  box-shadow: 0 2px 16px rgba(125,216,85,0.12);
}

/* ─── Buttons / links ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; padding: 10px 20px;
  border-radius: 6px; transition: all 0.2s;
  cursor: pointer;
}
.btn-green {
  background: var(--green); color: var(--black); border: 2px solid var(--green);
}
.btn-green:hover { background: #6bc944; border-color: #6bc944; }

.btn-outline {
  background: none; color: var(--green-dark); border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--black); }

.btn:focus-visible { outline: 2px solid var(--green-dark); outline-offset: 3px; }

/* ─── Inline links ───────────────────────────────────────── */
a.text-link {
  color: var(--green-dark); text-decoration: underline;
  text-underline-offset: 3px; transition: color 0.2s;
}
a.text-link:hover { color: var(--green-mid); }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px;
  background: rgba(125,216,85,0.15);
  color: var(--green-dark);
  border: 1px solid var(--border-green);
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
  height: 1px; background: var(--border); margin: 40px 0;
}
.divider-green {
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  margin: 32px 0;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--white);
  border-top: 3px solid var(--green);
  padding: 24px 0; margin-top: 72px;
}
.footer-inner {
  max-width: 960px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-text {
  font-size: 12px; color: var(--muted-2);
}
.footer-text a { color: var(--green-dark); text-decoration: underline; }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a {
  font-size: 12px; color: var(--muted-2); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-dark); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .page-wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .page-header h1 { font-size: 26px; }
}

/* ─── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
