/* ============================================================
   CLIMATE ACTIONS — Global Stylesheet
   Covers: CSS reset, variables, navbar, footer
   Each page's own <style> block handles page-specific styles.
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:        #4ade4a;
  --green-dark:   #22c55e;
  --green-dim:    #16a34a;
  --bg:           #0a0f0a;
  --card-bg:      #0d1a0d;
  --card-border:  #1a2e1a;
  --text:         #e8f5e8;
  --text-muted:   #8aab8a;
  --nav-height:   68px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  /* Inter must be loaded on every page via:
     <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap" rel="stylesheet"> */
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* ── NAVBAR ── */
nav {
  position: sticky;
  top: 0;
  z-index: 999;
  height: var(--nav-height);
  background: rgba(10, 15, 10, 0.97);
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

/* Logo block */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--green-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1.2;
}

.logo-text .brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.logo-text .brand span {
  color: var(--green);
}

.logo-text .tagline {
  font-size: 11px;
  color: var(--text-muted);
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-links a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

/* CTA button */
.btn-cta {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  padding: 9px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--green);
  color: #000;
}

/* Hamburger (mobile — hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(10, 15, 10, 0.98);
  border-bottom: 1px solid var(--card-border);
  padding: 20px 24px 28px;
  z-index: 998;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(14px);
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-drawer a:last-child {
  border-bottom: none;
}

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

/* ── FOOTER ── */
footer {
  background: #070d07;
  border-top: 1px solid var(--card-border);
  margin-top: 40px;
}

.footer-container-glass {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 40px;
  padding: 48px 40px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-column h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-column p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column ul li {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-column ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: var(--green);
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a img {
  width: 26px;
  height: 26px;
  filter: brightness(0) saturate(100%) invert(45%) sepia(40%) saturate(500%) hue-rotate(90deg);
  transition: filter 0.2s, transform 0.2s;
}

.social-icons a:hover img {
  filter: brightness(0) saturate(100%) invert(80%) sepia(60%) saturate(800%) hue-rotate(70deg);
  transform: translateY(-2px);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--green);
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: 12px;
  color: #3d5c3d;
}

/* ── SHARED UTILITY CLASSES ── */

/* Buttons */
.btn-primary {
  background: var(--green);
  color: #000;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #6aef6a;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid #3a4e3a;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--green);
  background: rgba(74, 222, 74, 0.06);
}

/* Card base */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 24px;
}

/* Section label */
.section-label {
  padding: 28px 24px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Page wrapper — keeps content off the edges */
.page-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav {
    padding: 0 20px;
  }

  .nav-links,
  .btn-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-container-glass {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 24px;
  }

  .footer-bottom {
    padding: 14px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .footer-container-glass {
    padding: 24px 16px;
  }
}