:root {
  --color-forest: #1f3d2b;
  --color-forest-light: #2e5940;
  --color-sky: #3a7ca5;
  --color-bg: #f7f6f2;
  --color-bg-alt: #eceae3;
  --color-text: #1c1c1c;
  --color-text-muted: #55564f;
  --color-border: #ddd9cf;
  --radius: 8px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

a {
  color: var(--color-forest);
  text-decoration: none;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 10;
  transition: transform 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 58px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
}

.nav a:hover {
  color: var(--color-forest);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 180px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg-img.is-active {
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  color: #fff;
}

.hero-lead {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-spaced {
  margin-top: 32px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: #054437;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--color-forest);
  border: 1px solid var(--color-border);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--color-forest);
}

.section-lead {
  max-width: 640px;
  margin: 40px auto 32px;
  text-align: center;
}

.point-list {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 48px;
}

.point {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.point-icon {
  width: 40px;
  height: 40px;
  color: #054437;
}

.point h3 {
  margin: 0;
  color: var(--color-forest);
}

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

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
}

.card-image {
  width: calc(100% + 56px);
  margin: -28px -28px 20px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card h3 {
  color: var(--color-forest);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  font-weight: 600;
  color: #054437;
}

.card-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

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

.card-link:hover::after {
  transform: translateX(3px);
}

.reason-list {
  margin: 0 0 1em;
  padding-left: 20px;
  color: var(--color-text-muted);
}

.reason-list li {
  margin-bottom: 6px;
}

.check-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 480px;
}

.check-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--color-border);
}

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

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 10px;
  color: #054437;
  font-weight: 700;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}

.team-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.team-info h3 {
  margin-bottom: 2px;
  color: var(--color-forest);
}

.team-role {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.team-info p {
  margin: 0 0 4px;
  color: var(--color-text-muted);
}

.team-info a {
  color: var(--color-text-muted);
}

.team-info a:hover {
  color: var(--color-forest);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.funding-notice {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-top: 16px;
  margin-bottom: 0;
}

.funding-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.funding-logos img {
  height: 36px;
  width: auto;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px 20px;
}

.faq-item summary {
  padding: 16px 0;
  font-weight: 600;
  color: var(--color-forest);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--color-text-muted);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 18px;
}

#yhteydenotto .two-col {
  max-width: var(--max-width);
  text-align: left;
}

@media (min-width: 640px) {
  .nowrap-text {
    white-space: nowrap;
  }
}

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

.contact-item h3 {
  color: var(--color-forest);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  margin-bottom: 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-sky);
  outline-offset: 1px;
}

.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

@media (min-width: 720px) {
  #yhteydenotto .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Footer */
.site-footer {
  background: #fff;
  color: var(--color-text-muted);
  padding: 48px 0 24px;
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 8px;
}

.meista-logo {
  height: 56px;
  width: auto;
  margin-bottom: 24px;
}

.footer-brand p {
  margin: 0;
  color: var(--color-text-muted);
}

.footer-brand a {
  color: var(--color-forest);
}

.footer-copyright {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  width: 100%;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .point-list {
    gap: 16px;
  }

  .point-icon {
    width: 28px;
    height: 28px;
  }

  .point h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .point-list {
    gap: 10px;
  }

  .point h3 {
    font-size: 0.85rem;
  }
}
