@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --green-dark: #3a4a24;
  --green-accent: #4e6330;
  --bg-page: #F4F6F9;
  --bg-cream: #F0EDE4;
  --text-main: #1f2a27;
  --text-muted: #5b6b66;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Prompt", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: var(--bg-page);
  line-height: 1.6;
  overflow-wrap: break-word;
}

html {
  overflow-x: hidden;
}

a {
  color: var(--green-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--green-dark);
  border-bottom: 3px solid var(--green-accent);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 700;
}
.brand__logo {
  height: 56px;
  width: auto;
}

/* Hamburger checkbox hack: no JS needed to toggle .nav-list on small screens */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle-label span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list > li {
  position: relative;
}
.nav-list > li > a {
  color: #fff;
  font-weight: 500;
}
.nav-list > li > a:hover {
  color: var(--bg-cream);
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff !important;
}
.nav-cta:hover {
  background: #fff;
  color: var(--green-dark) !important;
  text-decoration: none;
}

.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 260px;
  list-style: none;
  margin: 0;
  z-index: 20;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}
.submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: normal;
}

@media (max-width: 880px) {
  .site-header {
    padding: 0.75rem 1rem;
  }
  .nav-toggle-label {
    display: flex;
  }
  .site-header nav {
    order: 3;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.5rem;
  }
  .nav-toggle:checked ~ nav .nav-list {
    display: flex;
  }
  .nav-list > li > a {
    display: block;
    padding: 0.6rem 0;
  }
  .nav-cta {
    display: inline-block;
    margin-top: 0.4rem;
  }

  .has-submenu .submenu {
    display: block;
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0.25rem 1rem;
    min-width: 0;
  }
  .submenu li a {
    color: var(--bg-cream);
    padding: 0.4rem 0;
  }
}

/* Sections */
.section {
  padding: 3rem 1.5rem;
}
@media (max-width: 640px) {
  .section {
    padding: 2rem 1rem;
  }
}
.section--centered {
  text-align: center;
}
.section--cream {
  background: var(--bg-cream);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-accent);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.intro h1 {
  color: var(--green-dark);
  margin: 0.25rem 0;
  font-size: 2.25rem;
}
.intro__lead {
  max-width: 640px;
  margin: 1rem auto 0;
  color: var(--text-muted);
}
@media (max-width: 480px) {
  .intro h1 {
    font-size: 1.65rem;
  }
}

/* Logo badge, floats over the bottom edge of the hero banner */
.logo-mark {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 5;
  margin-top: -60px;
}
.logo-mark img {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}
@media (max-width: 480px) {
  .logo-mark {
    margin-top: -40px;
  }
  .logo-mark img {
    width: 80px;
  }
}

/* Hero */
.hero {
  width: 100%;
  height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .hero {
    height: 320px;
  }
}
@media (max-width: 480px) {
  .hero {
    height: 220px;
  }
}

/* Criteria progress */
.criteria__summary {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.criteria__summary--muted {
  color: var(--text-muted);
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.criteria-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.criteria-card__icon {
  font-size: 1.75rem;
  color: var(--green-accent);
  margin-bottom: 0.5rem;
}
.criteria-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--green-dark);
}
.criteria-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-accent);
}
.criteria-card__link:hover {
  text-decoration: underline;
}

/* Feature banner */
.feature-banner {
  line-height: 0;
  background: var(--green-dark);
}
.feature-banner img {
  width: 100%;
  height: auto;
}

/* Learning / activity cards */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}
.section-heading h2 {
  color: var(--green-dark);
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.post-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translate(6px, 6px);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}
.post-card__icon {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  color: var(--green-accent);
  background: var(--bg-cream);
}
.post-card__image-wrap {
  aspect-ratio: 16 / 10;
  background-color: var(--bg-cream);
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
}
.post-card__zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.post-card__image-wrap:hover .post-card__zoom-hint,
.post-card__image-wrap:focus-visible .post-card__zoom-hint {
  background: rgba(0, 0, 0, 0.35);
  opacity: 1;
}
.post-card__content {
  padding: 1.25rem;
}
.post-card__content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.post-card__content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}
.post-card__content p.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}
.post-card__toggle {
  display: none;
  margin: 0.4rem 0 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--green-accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.post-card__toggle.is-visible {
  display: inline-block;
}

/* Energy */
.energy__placeholder {
  color: var(--text-muted);
}
.energy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 1.5rem auto 0;
}
.energy-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
}
.energy-card__icon {
  font-size: 1.75rem;
  color: var(--green-accent);
  margin-bottom: 0.5rem;
}
.energy-card h3 {
  margin: 0 0 0.75rem;
  color: var(--green-dark);
  font-size: 1rem;
}
.energy-card__report,
.energy-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-cream);
  font-size: 0.85rem;
  font-weight: 500;
}
.energy-card__report {
  color: #c0392b;
}
.energy-card__report:hover {
  background: #e7e1d4;
  text-decoration: none;
}
.energy-card__link {
  color: var(--green-dark);
}
.energy-card__link:hover {
  background: #e7e1d4;
  text-decoration: none;
}
.energy-card__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #fff;
  padding: 2.5rem 1.5rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.footer-brand {
  width: 74px;
  height: auto;
}
.site-footer h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.site-footer address {
  font-style: normal;
}
.site-footer a {
  color: #d7ecdf;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

/* Lightbox modal (opened via [data-lightbox] click, see inline script) */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
}
.lightbox-modal.is-open {
  display: flex;
}
.lightbox-modal__image {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-modal__close:hover {
  background: rgba(255, 255, 255, 0.3);
}
