/* Source Sans 3 — self-hosted (OFL), no third-party requests */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-sans-3-700.woff2") format("woff2");
}

:root {
  --green: #008050;
  --green-dark: #006640;
  --green-light: #a5c94a;
  --bg: #f7faf5;
  --bg-card: #ffffff;
  --text: #1a2e24;
  --text-muted: #4a5f54;
  --border: #dde8e0;
  --shadow: 0 4px 24px rgba(0, 64, 40, 0.08);
  --radius: 12px;
  --max: 68rem;
  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--green-dark);
}

a:hover {
  color: var(--green);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 8.25rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
  height: 100%;
  max-width: min(82vw, 27.75rem);
}

.logo-link img {
  height: 7.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 767px) {
  .header-inner {
    min-height: 5.75rem;
  }

  .logo-link {
    max-width: min(78vw, 20rem);
  }

  .logo-link img {
    height: 4.75rem;
  }
}

@media (min-width: 768px) {
  .logo-link {
    max-width: 27.75rem;
  }

  .logo-link img {
    height: 7.5rem;
  }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.65rem 1rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(0, 128, 80, 0.1);
  color: var(--green-dark);
}

@media (max-width: 767px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.5rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block !important;
  }

  .site-nav ul {
    display: flex;
    gap: 0.25rem;
  }
}

main {
  min-height: 50vh;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--green-dark);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 40, 25, 0.85) 0%,
    rgba(0, 40, 25, 0.35) 55%,
    rgba(0, 40, 25, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem 2.75rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero .tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  max-width: 18ch;
}

.hero .lead {
  margin: 0;
  font-size: 1.15rem;
  max-width: 42ch;
  opacity: 0.95;
}

.page-header {
  padding: 2.5rem 0 1.5rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--green-dark);
}

.page-header .lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 50ch;
}

.section {
  padding: 2rem 0 3rem;
}

.section h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
  color: var(--green-dark);
}

.section h2:first-child {
  margin-top: 0;
}

.section p {
  margin: 0 0 1rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 64, 40, 0.12);
  color: inherit;
}

.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--green-dark);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.35rem;
  background: var(--green);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--green-dark);
  color: #fff !important;
}

.btn-outline {
  background: transparent;
  color: var(--green-dark) !important;
  border: 2px solid var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: #fff !important;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.info-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.info-list li:last-child {
  border-bottom: none;
}

.highlight-box {
  background: var(--bg-card);
  border-left: 4px solid var(--green-light);
  padding: 1.25rem 1.35rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.home-news-hint {
  margin: 1.5rem 0 0;
  padding: 0.85rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.home-news-hint a {
  text-decoration: none;
  color: var(--text);
}

.home-news-hint a:hover {
  color: var(--green-dark);
}

.doc-panel {
  margin: 1.5rem 0 0;
  padding: 1.35rem 1.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doc-panel h2 {
  margin-top: 0;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.35rem 0 1rem;
}

.pdf-preview {
  margin-top: 1.25rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pdf-preview img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 64, 40, 0.08);
}

.pdf-frame-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.news-item__header {
  margin-bottom: 0.75rem;
}

.news-item__date {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.news-item__title {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

.news-item__body p,
.news-item__body ul {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}

.news-item__body ul {
  padding-left: 1.25rem;
}

.news-item__body li {
  margin: 0.25rem 0;
}

.news-item__body > :last-child {
  margin-bottom: 0;
}

.news-item__image {
  margin-top: 1rem;
  border-radius: var(--radius);
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.news-item__gallery {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.news-item__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.news-item__gallery--2 {
  grid-template-columns: repeat(2, 1fr);
}

.news-item__gallery--3 {
  grid-template-columns: repeat(3, 1fr);
}

.news-item__gallery--4 {
  grid-template-columns: repeat(2, 1fr);
}

.news-item__gallery--3 + .news-item__image {
  margin-top: 0.75rem;
}

@media (max-width: 639px) {
  .news-item__gallery--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-item__gallery--3 img:nth-child(3) {
    grid-column: 1 / -1;
  }
}

.news-empty {
  margin: 2rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.news-archive-cta {
  margin: 1.75rem 0 0;
}

.photo-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.legal {
  padding: 2rem 0 3rem;
  font-size: 0.98rem;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--green-dark);
}

.legal h2:first-child {
  margin-top: 0;
}

.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.92);
  padding: 2rem 0;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--green-light);
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-brand p {
  margin: 0.5rem 0 0;
  opacity: 0.9;
  max-width: 36ch;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  opacity: 0.85;
}
