:root {
  --forest: #174a35;
  --leaf: #2f7d52;
  --mint: #dcefe3;
  --sage: #f3f8f1;
  --earth: #8a6f45;
  --ink: #183327;
  --muted: #60756b;
  --white: #ffffff;
  --line: #d6e5da;
  --shadow: 0 18px 45px rgba(23, 74, 53, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft JhengHei", "PingFang TC", sans-serif;
  background: var(--sage);
  color: var(--ink);
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

img, svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--forest);
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 15px;
}

.nav-menu {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-menu a {
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--leaf);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 9px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--forest);
  border-radius: 999px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(23, 74, 53, 0.88), rgba(23, 74, 53, 0.52), rgba(23, 74, 53, 0.2)),
    url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: var(--white);
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 110px;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow,
.cta-section .eyebrow {
  color: #cdebd2;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--forest);
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 22px;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero-actions,
.cta-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--leaf);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(47, 125, 82, 0.25);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading p,
.impact-inner p,
.cta-content p {
  color: var(--muted);
}

.align-left {
  margin-left: 0;
  text-align: left;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.action-card,
.contact-card,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.action-card {
  padding: 30px;
}

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--forest);
  font-weight: 900;
  font-size: 20px;
}

.action-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.impact-section {
  background: var(--forest);
  color: var(--white);
}

.impact-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.impact-inner h2,
.impact-inner p {
  color: var(--white);
}

.impact-inner p {
  opacity: 0.82;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stat-item {
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 36px;
  line-height: 1;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.82);
}

.cta-section {
  background:
    linear-gradient(90deg, rgba(23, 74, 53, 0.92), rgba(47, 125, 82, 0.74)),
    url("https://images.unsplash.com/photo-1473773508845-188df298d2d1?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: var(--white);
}

.cta-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
  flex-direction: column;
  align-items: flex-start;
}

.cta-content h2,
.cta-content p {
  color: var(--white);
}

.cta-content p {
  max-width: 720px;
  opacity: 0.88;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.contact-card,
.contact-form {
  padding: 28px;
}

.contact-card a {
  color: var(--leaf);
  font-weight: 800;
  word-break: break-word;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  color: var(--forest);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fbfdfb;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  margin-top: 8px;
}

.site-footer {
  padding: 28px 20px;
  text-align: center;
  background: #102c20;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  margin: 0;
}

/* Motion enhances the page without hiding content when scripts are unavailable. */
.site-header {
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(23, 74, 53, 0.1);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: var(--leaf);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
  pointer-events: none;
}

.nav-menu a {
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  inset: auto 0 -7px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-menu a[aria-current="location"] { color: var(--forest); }

.nav-menu a[aria-current="location"]::after,
.nav-menu a:hover::after,
.nav-menu a:focus-visible::after { transform: scaleX(1); }

.nav-toggle span:not(.sr-only) {
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

.button:active { transform: translateY(0) scale(0.98); }

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid #b59326;
  outline-offset: 4px;
}

.button.primary:hover {
  background: var(--forest);
  box-shadow: 0 8px 22px rgba(23, 74, 53, 0.2);
}

.action-card {
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.card-icon {
  transition: transform 240ms ease, background 240ms ease, color 240ms ease;
}

.contact-form input,
.contact-form textarea {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 125, 82, 0.1);
}

@keyframes enter-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * {
    animation: enter-up 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-content > :nth-child(2) { animation-delay: 90ms; }
  .hero-content > :nth-child(3) { animation-delay: 180ms; }
  .hero-content > :nth-child(4) { animation-delay: 270ms; }
}

@media (hover: hover) and (pointer: fine) {
  .action-card:hover {
    transform: translateY(-6px);
    border-color: var(--leaf);
    box-shadow: 0 22px 40px rgba(23, 74, 53, 0.16);
  }

  .action-card:hover .card-icon {
    transform: rotate(-5deg);
    background: var(--forest);
    color: var(--white);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
    animation: enter-up 220ms ease-out;
  }

  .nav-menu a {
    display: block;
    padding: 14px 0;
  }

  .nav-menu a::after { bottom: 8px; }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 74px 0 86px;
  }

  .action-grid,
  .impact-inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .impact-inner {
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .navbar,
  .section,
  .impact-inner,
  .hero-content,
  .cta-content {
    width: min(100% - 28px, 1120px);
  }

  .brand {
    font-size: 15px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding-inline: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .action-card,
  .contact-card,
  .contact-form {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .action-card:hover,
  .action-card:hover .card-icon,
  .button:hover,
  .button:focus-visible,
  .button:active { transform: none; }
}
