:root {
  --green-900: #14361f;
  --green-800: #1d4d2c;
  --green-700: #246b3a;
  --green-600: #2d8a4b;
  --green-500: #3aa75c;
  --green-400: #6cc486;
  --green-200: #c8e6cf;
  --green-100: #e6f4ea;
  --green-50:  #f3faf5;
  --ink:       #1a1f1c;
  --muted:     #5b6b60;
  --line:      #d6e5da;
  --bg:        #fbfdfb;
  --white:     #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 {
  color: var(--green-900);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green-900);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 480px) {
  .brand-logo { height: 48px; }
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
}

.nav-links a.active {
  color: var(--green-700);
  border-bottom: 2px solid var(--green-700);
}

.nav-cta {
  background: var(--green-700);
  color: white !important;
  padding: 12px 22px !important;
  font-weight: 600 !important;
  margin-left: 10px;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--green-900);
  margin: 5px 0;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 88px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta { margin: 8px 0 4px; text-align: center; }
}

/* ---------- Hero (Homepage) ---------- */
.hero {
  padding: 80px 0 64px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 820px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 14px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--green-700);
  background: var(--green-700);
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--green-700); color: white; border-color: var(--green-700); }
.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-700);
}

.hero-art {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 16px;
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt {
  background: var(--green-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards (Homepage) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.card-icon {
  width: 40px; height: 40px;
  color: var(--green-700);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}
.card-icon svg { width: 32px; height: 32px; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 16px; }
.card .more {
  margin-top: auto;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Detail page ---------- */
.page-hero {
  padding: 64px 0 32px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.page-hero p.lead {
  color: var(--ink);
  font-size: 1.12rem;
  max-width: 64ch;
  margin-top: 12px;
}

.page-hero .hero-grid { align-items: center; }

.page-hero .hero-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.page-hero .hero-img.is-landscape img {
  aspect-ratio: 16 / 11;
}

@media (max-width: 820px) {
  .page-hero .hero-img img,
  .page-hero .hero-img.is-landscape img { aspect-ratio: 16 / 10; }
}

.detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; gap: 32px; }
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}
.aside-card h3 { margin-bottom: 8px; }
.aside-card p { color: var(--muted); margin-bottom: 18px; }
.aside-card .btn { width: 100%; text-align: center; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 780px;
}
.feature-list li {
  position: relative;
  padding: 18px 0 18px 32px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.02rem;
}
.feature-list li:first-child { border-top: 1px solid var(--line); }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 27px;
  width: 14px; height: 2px;
  background: var(--green-700);
}

/* ---------- CTA (Homepage) ---------- */
.cta {
  background: var(--green-800);
  color: white;
  text-align: center;
  padding: 64px 0;
}
.cta h2 { color: white; }
.cta p {
  color: rgba(255,255,255,.9);
  max-width: 56ch;
  margin: 0 auto 24px;
}
.cta .btn {
  background: white;
  color: var(--green-800);
  border-color: white;
}

/* ---------- Contact / forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.field label {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--green-900);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-600);
  outline: 2px solid var(--green-200);
  outline-offset: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #c64545; }
.field .err {
  display: none;
  color: #b03333;
  font-size: .85rem;
  margin-top: 6px;
}
.field.invalid .err { display: block; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: var(--muted);
  margin: 4px 0 18px;
}
.checkbox input { margin-top: 4px; }

.form .btn { width: 100%; text-align: center; }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--green-100);
  color: var(--green-800);
  border: 1px solid var(--green-200);
  font-weight: 500;
}
.form-status.show { display: block; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.info-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 0;
  padding: 24px;
}
.info-block:last-child { border-bottom: 1px solid var(--line); }
.info-block h3 { margin-bottom: 8px; }
.info-block p { color: var(--ink); margin: 0; }
.info-block a { color: var(--green-700); }
.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.info-row:last-child { margin-bottom: 0; }
.info-row svg { flex-shrink: 0; color: var(--green-700); }

/* ---------- Legal pages ---------- */
.legal {
  padding: 56px 0 80px;
  background: var(--bg);
}
.legal .container { max-width: 800px; }
.legal h2 { margin-top: 36px; }
.legal h3 { margin-top: 24px; color: var(--green-800); }
.legal p, .legal li { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.78);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  color: white;
  font-size: 1rem;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer .brand { color: white; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .9rem;
}
