:root {
  --green-900: #063527;
  --green-800: #0b5c3b;
  --green-700: #0f7048;
  --green-100: #e8f5ee;
  --gold-600: #c9a227;
  --gold-500: #d4af37;
  --gold-100: #f8f1d8;
  --ink: #1a2420;
  --muted: #5a6b63;
  --paper: #f7faf8;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(6, 53, 39, 0.12);
  --radius: 4px;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Libre Baskerville", Georgia, serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-800);
  text-decoration: none;
}

a:hover {
  color: var(--gold-600);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-500);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--gold-500);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  background: var(--green-900);
  color: #d7ebe1;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--gold-500);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-800);
}

.brand-text small {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-800);
  background: var(--green-100);
}

.has-sub {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid #d8e5dd;
  box-shadow: var(--shadow);
  padding: 0.35rem !important;
  flex-direction: column !important;
  z-index: 50;
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu {
  display: flex;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #c9d9d0;
  background: var(--white);
  border-radius: var(--radius);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-800);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--green-900) center / cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 53, 39, 0.35) 0%, rgba(6, 53, 39, 0.88) 100%),
    url("/assets/img/banner-hero.jpg") center / cover no-repeat;
  z-index: -1;
}

.hero-inner {
  padding: 4.5rem 0 3.5rem;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero p {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  color: #e5f2eb;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 700;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--green-900);
}

.btn-primary:hover {
  background: var(--gold-100);
  color: var(--green-900);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-outline {
  border-color: var(--green-800);
  color: var(--green-800);
  background: transparent;
}

.btn-outline:hover {
  background: var(--green-800);
  color: var(--white);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2 {
  font-family: var(--font-display);
  color: var(--green-900);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.goals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.goal-card {
  background: var(--white);
  border-top: 4px solid var(--gold-500);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.goal-card .num {
  font-family: var(--font-display);
  color: var(--gold-600);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.goal-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--green-900);
  line-height: 1.4;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.split img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border: 1px solid #d5e4db;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--green-900);
}

.prose p,
.prose li {
  color: var(--ink);
}

.news-grid,
.activity-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid #d8e5dd;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1.15rem 1.2rem 1.4rem;
}

.card-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--green-900);
  line-height: 1.35;
}

.card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(11, 92, 59, 0.94), rgba(6, 53, 39, 0.92)),
    url("/assets/img/banner-kegiatan.jpg") center / cover no-repeat;
  color: var(--white);
  padding: 3.5rem 0;
}

.cta-band h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  color: #dff0e7;
}

/* Page banner */
.page-banner {
  background:
    linear-gradient(100deg, rgba(6, 53, 39, 0.92), rgba(11, 92, 59, 0.75)),
    url("/assets/img/banner-hero.jpg") center / cover no-repeat;
  color: var(--white);
  padding: 3rem 0;
}

.page-banner h1 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.page-banner p {
  margin: 0;
  max-width: 40rem;
  color: #dff0e7;
}

.breadcrumb {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #c7ddd2;
}

.breadcrumb a {
  color: var(--gold-500);
}

/* Structure */
.org-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.org-card {
  background: var(--white);
  border: 1px solid #d8e5dd;
  padding: 1.25rem;
  text-align: center;
}

.org-card .role {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.65rem;
}

.org-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--green-900);
}

.org-note {
  background: var(--gold-100);
  border-left: 4px solid var(--gold-500);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

/* Forms */
.form {
  background: var(--white);
  border: 1px solid #d8e5dd;
  padding: 1.5rem;
  max-width: 640px;
}

.form-row {
  margin-bottom: 1rem;
}

.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #c9d9d0;
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--green-700);
  border-color: var(--green-700);
}

.alert {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
}

.alert-success {
  background: #e7f7ee;
  color: #0b5c3b;
  border: 1px solid #b7e0c7;
}

.alert-error {
  background: #fdeceb;
  color: #8a1f17;
  border: 1px solid #f0b8b3;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
}

.contact-info {
  background: var(--green-900);
  color: #dff0e7;
  padding: 1.75rem;
}

.contact-info h2 {
  font-family: var(--font-display);
  color: var(--gold-500);
  margin-top: 0;
}

.contact-info a {
  color: var(--gold-500);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.link-list a {
  display: block;
  background: var(--white);
  border: 1px solid #d8e5dd;
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.link-list a:hover {
  border-color: var(--gold-500);
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: #d7ebe1;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.footer-brand strong {
  color: var(--white);
  display: block;
}

.footer-brand p,
.footer-about {
  margin: 0;
  color: #b9d4c7;
  font-size: 0.95rem;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  color: var(--gold-500);
  font-size: 1rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: #d7ebe1;
}

.site-footer a:hover {
  color: var(--gold-500);
}

.footer-links-ext {
  margin-top: 1rem;
  color: #9fbfb0;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #9fbfb0;
}

.article {
  max-width: 760px;
}

.article-meta {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.article img.featured {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 0 0 1.5rem;
  border: 1px solid #d8e5dd;
}

/* Responsive */
@media (max-width: 960px) {
  .goals,
  .news-grid,
  .activity-grid,
  .card-grid,
  .org-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 3px solid var(--gold-500);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .submenu {
    position: static;
    display: flex;
    box-shadow: none;
    border: 0;
    padding-left: 0.75rem !important;
    background: var(--green-100);
  }

  .goals,
  .news-grid,
  .activity-grid,
  .card-grid,
  .org-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 3rem 0 2.5rem;
  }
}
