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

:root {
  --radius: 0.75rem;
  --background: #fafbf8;
  --foreground: #232e26;
  --card: #ffffff;
  --card-foreground: #232e26;
  --primary: #2d6a3f;
  --primary-foreground: #fbfef6;
  --secondary: #eaf5e8;
  --secondary-foreground: #1a4028;
  --muted: #f0f5ed;
  --muted-foreground: #6a7a6e;
  --accent: #e8923e;
  --accent-foreground: #232e26;
  --leaf: #8fd14f;
  --leaf-foreground: #232e26;
  --border: #dce3da;
  --input: #dce3da;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 227, 218, 0.6);
  background: rgba(250, 251, 248, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img { height: 2.75rem; width: auto; }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .logo-abbr {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}
.logo-text .logo-sub {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

.nav-desktop { display: none; align-items: center; gap: 2rem; }

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(35, 46, 38, 0.8);
  transition: color 0.2s;
}

.nav-desktop a:hover, .nav-desktop a.active { color: var(--primary); }
.nav-desktop a.active { font-weight: 600; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { transform: scale(1.03); }

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-accent:hover { transform: scale(1.03); }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.btn-outline-light:hover { background: rgba(255,255,255,0.2); }

.hamburger {
  display: block;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--foreground);
  cursor: pointer;
}

.hamburger svg { width: 1.25rem; height: 1.25rem; }

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.mobile-nav-inner a {
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(35, 46, 38, 0.9);
}

.mobile-nav-inner a.active { color: var(--primary); }

/* HERO SLIDESHOW */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(45, 106, 63, 0.95) 0%, rgba(45, 106, 63, 0.75) 50%, rgba(45, 106, 63, 0.3) 100%);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero-badge .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--leaf);
}

.hero-title {
  margin-top: 1.25rem;
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
}

.hero-title .highlight { color: var(--leaf); }

.hero-text {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(255,255,255,0.85);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dot.active { background: #fff; }

/* SECTIONS */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-title-sm {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.15;
}

.bg-secondary { background: var(--secondary); }
.bg-card { background: var(--card); }

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.stat-value {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--leaf));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* PILLARS */
.pillars-grid {
  display: grid;
  gap: 1.5rem;
}

.pillar-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.5rem;
  transition: all 0.3s;
}

.pillar-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(45, 106, 63, 0.3);
  box-shadow: 0 20px 50px -20px rgba(45, 106, 63, 0.4);
}

.pillar-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), #6abf5e);
  color: #fff;
}

.pillar-icon svg { width: 1.5rem; height: 1.5rem; }

.pillar-title {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.pillar-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* PROGRAMS CARD */
.programs-grid {
  display: grid;
  gap: 1.5rem;
}

.program-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  transition: all 0.3s;
}

.program-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 20px 50px -20px rgba(45, 106, 63, 0.4);
}

.program-card .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.program-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.program-card:hover .img-wrap img { transform: scale(1.05); }

.program-body { padding: 1.25rem; }

.program-location {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.program-title {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.program-partner {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.link-arrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.link-arrow:hover { text-decoration: underline; }

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 0.75rem;
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: 3/4;
}

.gallery-item.square { aspect-ratio: 1; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.05); }

/* MASONRY GALLERY */
.masonry {
  column-count: 1;
  column-gap: 1rem;
}

.masonry figure {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.masonry figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* CTA */
.cta-section {
  padding: 0 1.5rem 5rem;
}

.cta-box {
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--primary), #6abf5e);
  padding: 2.5rem;
  color: var(--primary-foreground);
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.cta-text {
  margin-top: 0.75rem;
  max-width: 36rem;
  color: rgba(251, 254, 246, 0.85);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* CARDS (About) */
.cards-grid {
  display: grid;
  gap: 2rem;
}

.info-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.75rem;
}

.info-card-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), #6abf5e);
  color: #fff;
}

.info-card-icon svg { width: 1.5rem; height: 1.5rem; }

.info-card-title {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.info-card-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* TWO COL IMG + TEXT */
.two-col {
  display: grid;
  gap: 2.5rem;
}

.two-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px -20px rgba(45, 106, 63, 0.4);
}

.col-text h2 {
  font-size: 1.875rem;
  font-weight: 700;
}

.col-text p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

.bullets {
  margin-top: 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.bullets li .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--leaf);
  flex-shrink: 0;
}

/* CONTACT */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.25rem;
}

.contact-icon {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), #6abf5e);
  color: #fff;
}

.contact-icon svg { width: 1.25rem; height: 1.25rem; }

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.contact-card p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* FORM */
.form-card {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--card);
  padding: 1.75rem;
  box-shadow: 0 20px 50px -20px rgba(45, 106, 63, 0.4);
}

.form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.form-card .form-sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-group {
  margin-top: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--input);
  background: var(--background);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 63, 0.2);
}

.btn-submit {
  margin-top: 1.5rem;
  width: 100%;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  padding: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-submit:hover { transform: scale(1.02); }

/* FOOTER */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background: var(--primary);
  color: var(--primary-foreground);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.footer-logo-img {
  height: 3.5rem;
  width: auto;
  border-radius: 0.375rem;
  background: rgba(255,255,255,0.95);
  padding: 0.5rem;
}

.footer-desc {
  margin-top: 1rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(251, 254, 246, 0.8);
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(251, 254, 246, 0.8);
}

.footer-links a:hover { color: var(--leaf); }

.footer-contact {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(251, 254, 246, 0.8);
}

.footer-contact li {
  display: flex;
  gap: 0.5rem;
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  font-size: 0.75rem;
  color: rgba(251, 254, 246, 0.7);
}

/* SECTION HEADER (inner pages) */
.page-header {
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
}

.page-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.page-header-inner h1 {
  margin-top: 0.75rem;
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.page-header-inner p {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* GALLERY SLIDESHOW MODAL */
.slideshow-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

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

.slideshow-modal .slideshow-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
}

.slideshow-modal .slideshow-slide {
  display: none;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.slideshow-modal .slideshow-slide.active { display: block; }

.slideshow-modal .slideshow-caption {
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
}

.slideshow-modal .slideshow-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
}

.slideshow-modal .slideshow-prev,
.slideshow-modal .slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background 0.2s;
  z-index: 5;
}

.slideshow-modal .slideshow-prev:hover,
.slideshow-modal .slideshow-next:hover { background: rgba(255,255,255,0.4); }

.slideshow-modal .slideshow-prev { left: 1rem; }
.slideshow-modal .slideshow-next { right: 1rem; }

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; }
  .hero-content { padding: 10rem 1.5rem; }
  .section-title { font-size: 2.25rem; }
  .stat-value { font-size: 2.25rem; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .masonry { column-count: 2; }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 4rem; }
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
  .cta-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; }
  .cta-actions { justify-content: flex-end; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom-inner { flex-direction: row; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
  .hero-content { padding: 10rem 1.5rem; }
  .hero-text { font-size: 1.125rem; }
  .section-title { font-size: 2.5rem; }
  .stat-value { font-size: 2.5rem; }
  .pillars-grid { grid-template-columns: repeat(4, 1fr); }
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
  .masonry { column-count: 3; }
  .page-header-inner h1 { font-size: 3rem; }
}
