/* CSS Custom Properties (enhanced bamboo theme) */
:root {
  --bg1: #f0f8e8;
  --bg2: #e8f5e0;
  --bg3: #d4edda;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0b2b1a;
  --muted: #3b6e53;
  --brand: #2e7d32;
  --brand-2: #43a047;
  --bamboo-light: #8bc34a;
  --bamboo-medium: #689f38;
  --bamboo-dark: #558b2f;

  --maxw: 1100px;
  --radius: 1.25rem;
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --shadow: 0 10px 30px rgba(34, 120, 73, 0.12);
}

/* Global reset */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg1), var(--bg2) 25%, var(--bg3) 75%, var(--bamboo-light));
  background-attachment: fixed;
  line-height: 1.5;
  font-size: clamp(16px, 1.6vw, 18px);
  position: relative;
}

/* Subtle bamboo glow overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(139, 195, 74, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(104, 159, 56, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(85, 139, 47, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Layout helpers */
.wrap {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
  padding: 0 1rem;
}
.center { text-align: center; }
.lead { font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.sublead { color: var(--muted); margin-top: .25rem; }

/* Skip link for a11y */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: static; width: auto; height: auto; padding: .5rem 1rem;
  background: #fff; color: #000; z-index: 100;
}

/* Topbar */
.topbar {
  background: #0e5a3a;
  color: #ffffff;
  font-size: 0.9rem;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  padding: .35rem 0;
}
.topbar-right {
  color: #ffffff;
  opacity: 0.9;
}

/* Header & Navigation */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(34, 120, 73, 0.15);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
}
.brand img {
  display: block;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle .bar {
  width: 24px; height: 2px; background: var(--text);
  display: block;
}

.nav {
  display: none;
  gap: 1rem;
}
.nav-link {
  color: #1e4d34;
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: .6rem;
}
.nav-link:hover {
  background: rgba(34, 120, 73, 0.15);
  color: var(--text);
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

body.menu-open #primary-nav {
  display: grid;
  gap: .5rem;
  position: absolute;
  inset: calc(100% + 2px) 0 auto 0;
  background: var(--surface);
  padding: .75rem;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(34, 120, 73, 0.15);
}
.carousel-track {
  display: flex;
  transition: transform .6s ease;
}
.slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
}
.slide img {
  display: block;
  width: 100%;
  height: clamp(220px, 42vw, 480px);
  object-fit: cover;
  filter: saturate(1.05);
}
.slide figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(253, 253, 253, 0.92);
  padding: 1rem 1.4rem;
  border-radius: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  max-width: 85%;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  z-index: 10;
  white-space: pre-line;
}
.slide-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  border: 0; background: rgba(0,0,0,.4); color: #fff;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  cursor: pointer;
}
.carousel-btn:hover { background: rgba(0,0,0,.6); }
.carousel-btn.prev { left: .5rem; }
.carousel-btn.next { right: .5rem; }

.carousel-dots {
  position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem;
}
.dot {
  width: .6rem; height: .6rem; border-radius: 50%;
  background: rgba(255,255,255,.45); border: 0; cursor: pointer;
}
.dot.current { background: #fff; }

/* Hero Section */
.hero {
  padding: var(--space-4) 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(232,245,224,0.8));
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.hero-text h1 {
  text-align: left;
  margin-bottom: 1rem;
  position: relative;
  padding-top: 3rem;
}
.hero-text h1::before,
h2::before,
h3::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23558b2f'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.64,20 8,20C19,20 22,3 22,3C21,5 14,5.25 9,6.25C4,7.25 2,11.5 2,13.5C2,15.5 3.75,17.25 3.75,17.25C7,8 17,8 17,8Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 6px rgba(85, 139, 47, 0.3));
}
.hero-text .lead,
.hero-text .sublead,
.hero-text p {
  text-align: left;
}
.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(34,120,73,0.15);
}

/* Sections */
.section {
  padding: var(--space-3) 0;
}

/* Lists & Cards */
.checklist {
  padding-left: 1.25rem;
}
.checklist li {
  margin: .5rem 0;
}
.sdg-list {
  columns: 1; gap: 1rem; list-style-type: none;
}
@media (min-width: 620px) {
  .sdg-list { columns: 2; }
}

.grid-cards {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 680px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  background: var(--card);
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid rgba(34,120,73,0.15);
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 195, 74, 0.15);
}
.card strong {
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  display: block;
  color: var(--bamboo-dark);
}

/* Centered Image under "Our Approach" */
.approach-image-container {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}
.centered-image {
  width: 75%;
  max-width: 600px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(34,120,73,0.15);
}

/* Map */
.map-section {
  padding-top: var(--space-4);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(240px, 45vw, 380px);
  border-radius: var(--radius);
  border: 1px solid rgba(34,120,73,0.15);
  box-shadow: var(--shadow);
}

/* Footer - Updated with specific icons */
.site-footer {
  padding: 2rem 0;
  background: #0b3d2a;
  color: #ffffff;
  font-size: 0.95rem;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-contact {
  text-align: center;
}
.footer-contact p {
  margin: 0.4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.footer-icon {
  width: 18px;
  height: 18px;
  filter: brightness(1.2) drop-shadow(0 1px 2px rgba(255,255,255,0.3));
}
.footer-contact a {
  color: #ffffff;
  text-decoration: none;
}
.footer-contact a:hover {
  text-decoration: underline;
}
.footer-copyright {
  margin-top: 0.5rem;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Headings */
h1, h2, h3 {
  text-align: center;
  margin: 0 0 1rem 0;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  position: relative;
  padding-top: 3rem;
  color: var(--bamboo-dark);
}

p { margin: .5rem 0 1rem 0; }
a, button { outline-offset: 3px; }
figure { margin: 0; }

/* Back to Top */
#backToTop {
  position: fixed; right: 1rem; bottom: 1rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bamboo-medium); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 10px 30px rgba(104, 159, 56, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
#backToTop.show {
  display: inline-flex;
}
#backToTop:hover {
  background: var(--bamboo-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(104, 159, 56, 0.5);
}

/* Animation for scroll reveal */
[data-animate] {
  opacity: 0;
  transform: translateY(12px);
}
[data-animate].in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}
