:root {
  --primary: #2D5F40;
  --secondary: #7CA65C;
  --accent: #A35C35;
  --neutral: #C6B787;
  --bg-color: #F2F0E6;
  --text-color: #333333;
  --light-text: #FFFFFF;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 10px 20px rgba(0, 0, 0, 0.06);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', 'Open Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(242, 240, 230, 0.9);
  border-bottom: 1px solid rgba(45, 95, 64, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 22px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--primary);
}

.brand img {
  width: 300px;
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

nav a {
  position: relative;
  padding: 6px 0;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

nav a:focus-visible,
nav a:hover {
  outline: none;
  color: var(--primary);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.donate-btn {
  background: var(--accent);
  color: var(--light-text);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.donate-btn:hover,
.donate-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(163, 92, 53, 0.25);
  background: #8f4e2f;
  outline: none;
}

.menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--light-text);
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 120px 0 90px;
  color: var(--text-color);
  background: linear-gradient(120deg, rgba(45, 95, 64, 0.35), rgba(124, 166, 92, 0.06)), url('img/banner.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 54, 36, 0.72) 0%, rgba(24, 54, 36, 0.38) 45%, rgba(24, 54, 36, 0.08) 70%, rgba(24, 54, 36, 0) 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(242, 240, 230, 0) 0%, rgba(242, 240, 230, 0.30) 40%, rgba(242, 240, 230, 0.95) 70%),
    linear-gradient(180deg, rgba(242, 240, 230, 0) 0%, rgba(242, 240, 230, 0.12) 45%, rgba(242, 240, 230, 0.85) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 40px;
}

.hero-grid .hero-visual {
  justify-self: end;
}

.hero-copy h1 {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.8rem);
  margin: 0 0 16px;
  color: #fffdfa;
  letter-spacing: -0.5px;
  text-shadow:
    0 10px 24px rgba(0, 0, 0, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
  font-size: 1.05rem;
  margin: 0 0 22px;
  color: #f8f6f1;
  letter-spacing: -0.5px;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.hero .eyebrow {
  color: #f2f0e6;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-primary {
  background: var(--secondary);
  color: var(--light-text);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-primary:hover,
.cta-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(124, 166, 92, 0.35);
  background: #6b9450;
  outline: none;
}

.cta-secondary {
  background: #f7fbf7;
  color: #0f2016;
  border: 2px solid rgba(45, 95, 64, 0.65);
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  transform: translateY(-1px);
  background: var(--primary);
  color: var(--light-text);
  border-color: var(--primary);
  outline: none;
}

.hero-visual {
  justify-self: center;
  position: relative;
  width: min(520px, 100%);
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transform: translateY(4px);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 0 20px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  display: none;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 22px;
}

.section h2 {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.8rem, 1.4vw + 1rem, 2.4rem);
  color: var(--primary);
  margin: 0 0 12px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(45, 95, 64, 0.08);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  align-items: center;
  background: var(--bg-color);
}

.about-visual {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(45, 95, 64, 0.15), rgba(163, 92, 53, 0.12)), #e8e2cf;
  min-height: 260px;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: radial-gradient(circle at 30% 20%, rgba(195, 183, 135, 0.4) 0, rgba(195, 183, 135, 0) 40%), radial-gradient(circle at 80% 10%, rgba(124, 166, 92, 0.35) 0, rgba(124, 166, 92, 0) 35%), repeating-linear-gradient(45deg, rgba(45, 95, 64, 0.06), rgba(45, 95, 64, 0.06) 14px, rgba(45, 95, 64, 0.03) 14px, rgba(45, 95, 64, 0.03) 28px);
}

.about-visual::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 16px;
  border: 2px dashed rgba(45, 95, 64, 0.25);
  mix-blend-mode: multiply;
}

.about p {
  margin: 0 0 14px;
}

.about-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.about-list li {
  padding: 10px 12px;
  background: rgba(45, 95, 64, 0.08);
  border-radius: 10px;
  font-weight: 600;
  color: var(--primary);
}

.section-divider {
  max-width: calc(var(--max-width) + 120px);
  margin: 0 auto 30px;
  padding: 0 22px;
}

.section-divider img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.08));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(45, 95, 64, 0.05);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  outline: none;
}

.card-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.card .bar {
  height: 6px;
  border-radius: 12px;
  background: #5d7b82;
  box-shadow: none;
}

.card h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.15rem;
  margin: 0;
  color: var(--primary);
}

.card p {
  margin: 0;
  color: #4a4a4a;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  max-width: 640px;
  width: min(640px, 92vw);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 12px;
}

.modal-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.modal-content h3 {
  margin: 0;
  font-family: 'Roboto Slab', serif;
  color: var(--primary);
}

.modal-content p {
  margin: 0;
  color: #3f3f3f;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.social {
  background:
    linear-gradient(180deg, rgba(242, 240, 230, 0.7), rgba(198, 183, 135, 0.18)),
    linear-gradient(rgba(242, 240, 230, 0.5), rgba(242, 240, 230, 0.5)),
    url('img/images/topo.png');
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: cover, cover, 620px;
  background-position: center, center, center;
  border-radius: 26px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.20);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.social-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 10px 12px;
  border: 1px solid rgba(45, 95, 64, 0.06);
}

.social-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
}

.social-card h3 {
  margin: 0;
  font-family: 'Roboto Slab', serif;
  color: var(--primary);
}

.social-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #4a4a4a;
}

.social-link {
  grid-column: 1 / -1;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.social-icon.youtube { background: #cc0000; }
.social-icon.linkedin { background: #0a66c2; }
.social-icon.newsletter { background: var(--accent); }
.social-icon.community { background: var(--secondary); color: var(--primary); }
.social-icon.facebook { background: #1877f2; }

.volunteer {
  background: linear-gradient(120deg, rgba(45, 95, 64, 0.8), rgba(124, 166, 92, 0.75)), url('img/banner.jpg') center/cover no-repeat;
  color: var(--light-text);
  margin: 70px 0;
}

.volunteer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 70px 22px;
  text-align: left;
}

.volunteer h2 {
  color: var(--light-text);
}

.volunteer p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
}

.contact {
  background: linear-gradient(120deg, rgba(98, 144, 115, 0.82), rgba(124, 166, 92, 0.75)), url('img/lory.jpg') center/cover no-repeat;
  color: var(--light-text);
  border-radius: 0;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  margin: 40px 0;
  max-width: none;
  width: 100%;
  padding: 70px 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact h2 {
  color: var(--light-text);
}

.contact p,
.contact li,
.contact .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.contact .eyebrow {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.contact-list li {
  padding: 8px 0;
}

.contact-card {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-card);
  color: var(--light-text);
  margin-top: 52px;
}

.contact-card h3 {
  margin: 0 0 6px;
  color: var(--light-text);
}

.contact-link {
  display: inline-block;
  background: var(--primary);
  color: var(--light-text);
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-soft);
  margin-top: 12px;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-1px);
  background: #254d35;
  outline: none;
}

footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.88);
  padding: 26px 22px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 12px 22px 20px;
  background: rgba(242, 240, 230, 0.98);
  border-bottom: 1px solid rgba(45, 95, 64, 0.08);
}

.mobile-menu a {
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  nav ul {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
  }

  .donate-btn {
    display: none;
  }

  header.nav-open + .mobile-menu {
    display: flex;
  }

  .hero {
    padding: 100px 0 70px;
    background-position: center center;
  }

  .hero-grid .hero-visual {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-visual {
    width: 100%;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-link {
    width: 100%;
    text-align: center;
  }

  .contact-card {
    margin-top: 0;
  }
}
