/* ═══════════════════════════════════════════════════════════════
   Waste Wise — Shared Stylesheet
   Applies to: index.html, data.html, storyboard.html,
               assertion1.html, assertion2.html, assertion3.html,
               resources.html
   ═══════════════════════════════════════════════════════════════ */

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

/* ── CSS VARIABLES ── */
:root {
  --green-deep:   #1a3d2b;
  --green-mid:    #2d6a4f;
  --green-bright: #52b788;
  --green-light:  #95d5b2;
  --cream:        #f0ede4;
  --cream-dark:   #d4cfc2;
  --bg:           #060e14;
  --surface:      #0c1a22;
  --header-h:     60px;
}

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

/* ── NAV ── */
#nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 1.5rem; gap: 1.5rem;
  background: rgba(6,14,20,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 36px; width: auto;
  filter: drop-shadow(0 0 6px rgba(82,183,136,0.4));
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--green-light);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex; gap: 0.25rem;
}
.nav-link {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.18s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-link.active {
  color: var(--green-light);
  background: rgba(45,106,79,0.25);
  border-color: rgba(82,183,136,0.3);
}

/* ── SHARED PAGE LAYOUT ── */
.page { max-width: 980px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

.page-header { margin-bottom: 2rem; }
.page-header.centered { text-align: center; margin-bottom: 3rem; }
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900;
  color: var(--green-light); margin-bottom: 0.4rem;
  line-height: 1.15;
}
.page-header p {
  font-size: 0.88rem; color: rgba(255,255,255,0.45);
  max-width: 620px; line-height: 1.7;
}
.page-header.centered p { margin: 0 auto; }

/* ── PILLS (policy strength) ── */
.pill {
  display: inline-block; padding: 0.1rem 0.45rem;
  border-radius: 8px; font-size: 0.65rem; font-weight: 700;
}
.pill-Strong   { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.pill-Moderate { background: rgba(250,204,21,0.15);  color: #fde047; }
.pill-Limited  { background: rgba(249,115,22,0.13);  color: #fdba74; }
.pill-None,
.pill-null,
.pill-NULL     { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.28); }

/* ── LOADER ── */
.loader {
  width: 36px; height: 36px;
  border: 3px solid rgba(82,183,136,0.15);
  border-top-color: var(--green-bright);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CTA BUTTON ── */
.cta-btn {
  display: inline-block; padding: 0.8rem 2.5rem;
  background: var(--green-mid); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600;
  color: var(--cream); text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(45,106,79,0.4);
  border: none; cursor: pointer;
}
.cta-btn:hover {
  background: var(--green-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(82,183,136,0.4);
}

/* ── CITATION MARKERS ── */
.cite-ref {
  display: inline-block;
  font-size: 0.6rem; font-weight: 700;
  color: var(--green-bright);
  background: rgba(82,183,136,0.12);
  border: 1px solid rgba(82,183,136,0.25);
  border-radius: 4px;
  padding: 0 0.3rem;
  vertical-align: super;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.cite-ref:hover {
  background: rgba(82,183,136,0.25);
  color: #fff;
}

/* ── CITATIONS FOOTNOTE SECTION ── */
.citations-section {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.citations-section h3 {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: rgba(255,255,255,0.3); margin-bottom: 0.85rem;
}
.citation-item {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin-bottom: 0.65rem; font-size: 0.78rem;
}
.citation-num {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 4px;
  background: rgba(82,183,136,0.12);
  border: 1px solid rgba(82,183,136,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: var(--green-bright);
}
.citation-text { color: rgba(255,255,255,0.45); line-height: 1.5; }
.citation-text strong { color: rgba(255,255,255,0.7); }
.citation-text a {
  color: var(--green-bright); text-decoration: none;
  transition: color 0.15s;
}
.citation-text a:hover { color: var(--green-light); text-decoration: underline; }

/* ── ASSERTION CARD LINKS (used on homepage intro) ── */
.assertion-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.assertion-card {
  display: block; text-decoration: none;
  background: linear-gradient(135deg, rgba(45,106,79,0.14), rgba(82,183,136,0.05));
  border: 1px solid rgba(82,183,136,0.2);
  border-radius: 12px; padding: 1.25rem 1.35rem;
  transition: all 0.2s;
}
.assertion-card:hover {
  border-color: rgba(82,183,136,0.5);
  background: linear-gradient(135deg, rgba(45,106,79,0.25), rgba(82,183,136,0.1));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.assertion-card .a-num {
  font-size: 0.63rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green-bright); margin-bottom: 0.45rem;
}
.assertion-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 700; color: var(--cream);
  line-height: 1.3; margin-bottom: 0.45rem;
}
.assertion-card p {
  font-size: 0.76rem; color: rgba(255,255,255,0.45); line-height: 1.55;
}
.assertion-card .a-arrow {
  display: inline-block; margin-top: 0.65rem;
  font-size: 0.75rem; color: var(--green-bright);
}
