/**
 * Theme Name: SusEarth Custom Theme
 * Description: Main stylesheet for the SusEarth custom theme.
 * Design System: Ecological Vanguard
 */

/* ==========================================================================
   1. CSS Custom Properties (:root)
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #0D3B2E; /* Deep Canopy Green */
  --color-primary-dark: #00241A;
  --color-primary-hover: #006C49;
  --color-primary-light: #14532D;
  --color-secondary: #10B981; /* Bio-Electric Emerald */
  --color-secondary-fixed: #6CF8BB; /* Was #6FFBBE in some places, combining similar tones */
  --color-secondary-fixed-alt: #6FFBBE; 
  --color-secondary-container: #6CF8BB;
  --color-tertiary: #C2593F; /* Terracotta Clay */
  --color-neutral: #111827; /* Obsidian Charcoal */
  --color-neutral-dark: #414845;
  --color-neutral-light: #717974;
  --color-background: #F8FAF8; /* Organic sand off-white */
  --color-surface: #F3F6F3; /* Soft moss-wash */
  --color-surface-alt: #F1F3FF;
  --color-card: #FFFFFF;
  --color-border: #E5EAE5;
  --color-border-alt: #C0C8C3;
  --color-outline: #717974;
  
  --color-text-main: #111827;
  --color-text-body: #414845;
  --color-text-muted: #717974;
  --color-text-light: #A3D0BE;
  --color-text-lighter: #BEEDD9;
  
  /* Fonts */
  --font-headline: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Radii */
  --radius-card: 1rem;
  --radius-card-lg: 1.5rem;
  --radius-button: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0px 4px 20px -2px rgba(13,59,46,0.04);
  --shadow-elevated-hover: 0px 12px 32px -4px rgba(13,59,46,0.08);
}

/* ==========================================================================
   2. Global Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-secondary-fixed-alt);
  color: var(--color-primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

p {
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   3. Typography Classes
   ========================================================================== */
.text-display-hero {
  font-family: var(--font-headline);
  font-size: 36px; /* Mobile first */
  line-height: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-headline-xl {
  font-family: var(--font-headline);
  font-size: 32px; /* Mobile first */
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-headline-lg {
  font-family: var(--font-headline);
  font-size: 24px; /* Mobile first */
  line-height: 32px;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .text-display-hero {
    font-size: 56px;
    line-height: 64px;
    letter-spacing: -0.03em;
  }
  .text-headline-xl {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.025em;
  }
  .text-headline-lg {
    font-size: 28px;
    line-height: 36px;
  }
}

.text-headline-md {
  font-family: var(--font-headline);
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
}

.text-headline-sm {
  font-family: var(--font-headline);
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.text-body-md {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
}

.text-body-sm {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
}

.text-label-lg {
  font-family: var(--font-headline);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.text-label-md {
  font-family: var(--font-headline);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.text-label-sm {
  font-family: var(--font-headline);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   4. Layout Utilities
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

.grid-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

/* ==========================================================================
   5. Navigation (Header)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 234, 229, 0.3);
  box-shadow: var(--shadow-sm);
  height: 80px;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header .brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px; /* xl */
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-secondary-fixed);
}

.site-header .brand-name {
  font-size: 22px;
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: -0.025em; /* tight */
}

.site-header nav a {
  font-size: 14px;
  line-height: 20px;
  font-family: var(--font-headline);
  font-weight: 600;
  color: var(--color-text-body);
  transition: color 150ms ease;
}

.site-header nav a:hover {
  color: var(--color-primary-hover);
}

.site-header .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-header .btn-outline {
  border-radius: var(--radius-button);
  border: 1px solid var(--color-primary-dark);
  color: var(--color-primary-dark);
  padding: 8px 16px;
  background: transparent;
}

.site-header .btn-primary {
  border-radius: var(--radius-button);
  background-color: var(--color-primary);
  color: white;
  padding: 10px 20px;
  box-shadow: var(--shadow-sm);
}

.site-header .btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-primary-dark);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

body.menu-open .mobile-nav {
  display: block;
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  background-color: var(--color-primary-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-overlay-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,59,46,0.95), rgba(13,59,46,0.8), rgba(13,59,46,0.4));
  mix-blend-mode: multiply;
}

.hero-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-primary), transparent, rgba(13,59,46,0.3));
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 8rem 1.5rem 5rem;
}

.hero-inner {
  max-width: 48rem;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border-radius: var(--radius-button);
  background-color: rgba(108,248,187,0.2);
  border: 1px solid rgba(108,248,187,0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-bottom: 1.5rem;
}

.hero .eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-secondary-fixed);
}

.hero .eyebrow span {
  font-size: 12px;
  font-family: var(--font-headline);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-secondary-fixed);
}

.hero h1 {
  font-family: var(--font-headline);
  font-size: 36px; /* Mobile */
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.hero .subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--color-text-light);
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.hero .cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn-accent {
  border-radius: var(--radius-button);
  background-color: var(--color-secondary-fixed);
  color: #00714D;
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  padding: 14px 28px;
  box-shadow: var(--shadow-lg);
  transition: filter 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero .btn-accent:hover {
  filter: brightness(1.05);
}

.hero .btn-glass {
  border-radius: var(--radius-button);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms ease;
}
.hero .btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-trust-bar {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(113,121,116,0.2);
  background-color: rgba(13,59,46,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-trust-bar .trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* mobile */
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.hero-trust-bar .trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-trust-bar .trust-item .icon {
  color: var(--color-secondary-fixed);
  font-size: 24px;
  display: flex;
}

.hero-trust-bar .trust-item .stat {
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  color: white;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
}

.hero-trust-bar .trust-item .label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-light);
  display: block;
}

/* ==========================================================================
   7. Impact / Bento Section
   ========================================================================== */
.section-impact {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-impact .section-header {
  margin-bottom: 3rem;
}

.section-impact .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border-radius: var(--radius-button);
  background-color: #E9EDFF;
  border: 1px solid rgba(192,200,195,0.4);
  color: var(--color-primary-hover);
  font-size: 12px;
  font-family: var(--font-headline);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-impact .section-tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary-hover);
}

.section-impact h2 {
  color: var(--color-primary-dark);
}

.section-impact .section-desc {
  color: var(--color-text-body);
  max-width: 42rem;
  margin-top: 0.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  gap: 1.5rem;
}

.bento-card {
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-elevated);
  padding: 2rem;
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.bento-card:hover {
  box-shadow: var(--shadow-elevated-hover);
}

.bento-card.inverted {
  background-color: var(--color-primary);
  color: white;
  border-color: transparent;
  overflow: hidden;
  position: relative;
}

.bento-card.inverted .glow {
  position: absolute;
  right: -2.5rem; /* -right-10 */
  bottom: -2.5rem; /* -bottom-10 */
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.15);
  filter: blur(40px); /* blur-2xl */
}

.bento-card .tag {
  display: inline-block;
  border-radius: var(--radius-button);
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  background-color: #E9EDFF;
  color: var(--color-text-body);
  margin-bottom: 1rem;
}

.bento-card .stat-number {
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.bento-card.inverted .stat-number {
  color: white;
}

.bento-card .stat-label {
  color: var(--color-primary-hover);
  margin-bottom: 0.5rem;
}
.bento-card.inverted .stat-label {
  color: var(--color-text-lighter);
}

.bento-card .stat-desc {
  color: var(--color-text-body);
}
.bento-card.inverted .stat-desc {
  color: var(--color-text-light);
}

.bento-card .micro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.bento-card.inverted .micro-grid {
    border-top-color: rgba(255,255,255,0.1);
}

.bento-card .micro-item {
  padding: 14px;
  border-radius: 0.75rem; /* xl */
  background-color: var(--color-surface-alt);
}
.bento-card.inverted .micro-item {
    background-color: rgba(255,255,255,0.05);
}

.progress-bar {
  width: 100%;
  background-color: #E9EDFF;
  border-radius: 9999px;
  height: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar .fill {
  background-color: var(--color-primary-hover);
  height: 8px;
  border-radius: 9999px;
}

/* ==========================================================================
   8. About Us Section
   ========================================================================== */
.section-about {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: rgba(243, 246, 243, 0.6);
  border-top: 1px solid rgba(192, 200, 195, 0.3);
  border-bottom: 1px solid rgba(192, 200, 195, 0.3);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 4rem;
  }
  
  .about-content {
    grid-column: span 6;
  }
  
  .about-visual {
    grid-column: span 6;
    position: relative;
  }
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-pillar {
  display: flex;
  gap: 1rem;
}

.about-pillar .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem; /* xl */
  background-color: white;
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
  color: var(--color-primary-dark);
  flex-shrink: 0;
}

.about-pillar h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.about-pillar p {
  color: var(--color-text-body);
  margin-bottom: 0;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-background);
}

.about-image-wrap img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 500ms ease;
}

.about-image-wrap:hover img {
  transform: scale(1.02);
}

.about-image-wrap .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,59,46,0.8), transparent, transparent);
  pointer-events: none;
}

.quote-card {
  position: relative;
  margin-top: -2rem; /* mobile */
  margin-left: 1rem;
  margin-right: 1rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: 1rem; /* 2xl */
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-elevated);
  z-index: 10;
}

@media (min-width: 1024px) {
  .quote-card {
    margin-top: -4rem;
    margin-left: 2rem;
    margin-right: 2rem;
    padding: 2rem;
  }
}

.quote-card .quote-icon {
  color: var(--color-primary-hover);
  font-size: 30px;
  display: block;
  margin-bottom: 0.75rem;
}

.quote-card blockquote {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--color-text-main);
  font-weight: 500;
  font-style: italic;
  margin: 0 0 1rem 0;
  padding: 0;
}

.quote-card .author {
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.quote-card .role {
  color: var(--color-text-muted);
}

/* ==========================================================================
   9. Thematic Areas Cards
   ========================================================================== */
.section-themes {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.themes-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.themes-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  gap: 1.5rem;
}

.theme-card {
  background-color: white;
  border-radius: 1rem; /* 2xl */
  padding: 28px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 300ms ease, transform 300ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.theme-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.theme-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem; /* xl */
  background-color: rgba(108,248,187,0.2); /* secondary-container/20 */
  color: #00714D;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: transform 300ms ease;
}
.theme-card:hover .card-icon {
  transform: scale(1.1);
}

.theme-card .pillar-label {
  display: inline-block;
  border-radius: var(--radius-button);
  background-color: #E9EDFF;
  color: var(--color-text-body);
  padding: 4px 10px;
}

.theme-card h3 {
  color: var(--color-primary-dark);
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  transition: color 300ms ease;
}
.theme-card:hover h3 {
  color: var(--color-primary-hover);
}

.theme-card p {
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.theme-card .card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-primary-hover);
}

/* ==========================================================================
   10. News / Field Dispatches
   ========================================================================== */
.section-news {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: rgba(243, 246, 243, 0.4);
  border-top: 1px solid var(--color-border);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  gap: 2rem;
}

.news-card {
  background-color: white;
  border-radius: 1rem; /* 2xl */
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 300ms ease, transform 300ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.news-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.news-card .card-image {
  height: 12rem;
  overflow: hidden;
  position: relative;
}

.news-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.news-card:hover .card-image img {
  transform: scale(1.05);
}

.news-card .card-image .category-tag {
  position: absolute;
  top: 0.75rem; /* top-3 */
  left: 0.75rem; /* left-3 */
  border-radius: var(--radius-button);
  background-color: rgba(13,59,46,0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--color-text-lighter);
  padding: 4px 10px;
}

.news-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card .meta {
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.news-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
  transition: color 300ms ease;
}
.news-card:hover h3 {
  color: var(--color-primary-hover);
}

.news-card .excerpt {
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-link {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-primary-hover);
}

/* ==========================================================================
   11. Newsletter / Mobilization Banner
   ========================================================================== */
.section-newsletter {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.newsletter-banner {
  border-radius: var(--radius-card-lg);
  background-color: var(--color-primary);
  color: white;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.newsletter-banner .glow {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-3rem) translateX(3rem);
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.2);
  filter: blur(48px); /* blur-3xl */
}

.newsletter-banner .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border-radius: var(--radius-button);
  background-color: rgba(108,248,187,0.2); /* secondary-container/20 */
  border: 1px solid rgba(108,248,187,0.3);
  color: var(--color-secondary-fixed);
  font-size: 12px;
  font-family: var(--font-headline);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.newsletter-banner h2 {
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.newsletter-banner p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  max-width: 36rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
  max-width: 32rem;
  margin-bottom: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-button);
  background-color: white;
  color: var(--color-text-main);
  border: 1px solid rgba(229, 234, 229, 0.4);
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
}
.newsletter-form input:focus {
  box-shadow: 0 0 0 2px var(--color-secondary-fixed-alt);
}

.newsletter-form button {
  padding: 14px 32px;
  border-radius: var(--radius-button);
  background-color: var(--color-secondary-fixed);
  color: #00714D;
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: background-color 150ms ease;
  white-space: nowrap;
}
.newsletter-form button:hover {
  background-color: var(--color-secondary-fixed-alt);
}

.newsletter-privacy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(163, 208, 190, 0.8);
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary-dark);
  color: white;
  border-top: 1px solid var(--color-primary);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem; /* lg */
  background-color: var(--color-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.footer-brand .brand-name {
  color: var(--color-text-lighter);
  margin-bottom: 1rem;
}

.footer-brand .brand-desc {
  color: var(--color-text-light);
  max-width: 24rem;
  margin-bottom: 1.5rem;
}

.footer-brand .ecosoc-badge {
  padding: 1rem;
  border-radius: 0.75rem; /* xl */
  background-color: rgba(13,59,46,0.6);
  border: 1px solid var(--color-primary);
  display: inline-block;
  font-size: 13px;
  color: var(--color-text-light);
}

.footer-links h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  color: var(--color-text-light);
  transition: color 150ms ease;
}
.footer-links a:hover {
  color: var(--color-secondary-fixed-alt);
}

.footer-contact p {
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-bottom .copyright {
  color: var(--color-text-light);
}

.footer-bottom .badges {
  display: flex;
  gap: 1.5rem;
  color: var(--color-text-light);
  flex-wrap: wrap;
}

/* ==========================================================================
   13. Buttons (reusable)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-button);
  font-family: var(--font-headline);
  font-weight: 600;
  transition: all 150ms ease;
  cursor: pointer;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background-color: var(--color-primary-light);
}

.btn-accent {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}
.btn-accent:hover {
  background-color: #22C55E;
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background-color: rgba(13,59,46,0.04);
}

.btn-terracotta {
  background-color: var(--color-tertiary);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-md {
  padding: 10px 20px;
  font-size: 15px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 18px;
}

/* ==========================================================================
   14. Utilities
   ========================================================================== */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined', sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   15. Responsive Media Queries
   ========================================================================== */
@media (max-width: 767px) {
  .section-padding { padding: 3rem 0; }
  .section-impact { padding-top: 3rem; padding-bottom: 3rem; }
  .section-about { padding-top: 3rem; padding-bottom: 3rem; }
  .section-themes { padding-top: 3rem; padding-bottom: 3rem; }
  .section-news { padding-top: 3rem; padding-bottom: 3rem; }
  .section-newsletter { padding-top: 3rem; padding-bottom: 3rem; }
  
  .hero-content { padding: 5rem 1.5rem 4rem; }
  .hero h1 { font-size: 36px; line-height: 44px; }
  
  .newsletter-banner { padding: 2rem; }
}

@media (min-width: 768px) {
  /* Common overrides for tablet up */
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .bento-grid { grid-template-columns: repeat(8, 1fr); }
  .bento-card { grid-column: span 8; }
  
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 56px; line-height: 64px; }
  
  .hero-trust-bar .trust-grid { grid-template-columns: repeat(4, 1fr); }
  
  .bento-grid { grid-template-columns: repeat(12, 1fr); }
  .bento-card.span-8 { grid-column: span 8; }
  .bento-card.span-4 { grid-column: span 4; }
  .bento-card { padding: 2.5rem; }
  .bento-card .stat-number.large { font-size: 3.75rem; }
  
  .about-layout { flex-direction: row; align-items: center; }
  .quote-card { margin-top: -4rem; margin-left: 2rem; margin-right: 2rem; padding: 2rem; }
  
  .themes-grid { grid-template-columns: repeat(4, 1fr); }
  
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  
  .newsletter-banner { padding: 4rem; }
  .newsletter-form { flex-direction: row; }
  
  .footer-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-brand { grid-column: span 2; }
}


@media (max-width: 1199px) {
  .site-header .nav-desktop,
  .site-header .nav-actions {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
  .site-header .nav-inner {
    justify-content: space-between;
  }
}


/* Mobile Menu Vertical Fix */
.mobile-nav ul, 
.mobile-nav .nav-links,
.mobile-nav-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  padding: 0;
  margin: 0 0 1.5rem 0;
  list-style: none;
}
.mobile-nav ul li a,
.mobile-nav .nav-links li a,
.mobile-nav-links li a {
  display: block;
  font-size: 16px;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-outline-variant);
  color: var(--color-primary-dark);
}
.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav-cta a {
  text-align: center;
  justify-content: center;
  width: 100%;
}


/* 4K and Ultrawide Fixes */
@media (min-width: 1600px) {
  .hero {
    min-height: auto;
    height: 900px; /* Prevent 90vh from stretching infinitely tall on 4K screens */
  }
}

/* Projects Archive Specific */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -4px rgba(13, 59, 46, 0.12);
}
.project-card .card-footer {
    transition: gap 0.3s ease;
}
.project-card:hover .card-footer {
    gap: 8px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Project DOM Slider Responsiveness */
.project-main-display {
  height: 300px !important;
}
@media (min-width: 768px) {
  .project-main-display {
    height: 400px !important;
  }
}
@media (min-width: 1024px) {
  .project-main-display {
    height: 500px !important;
  }
}
