/* ── Fonts ─────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ─────────────────────────────────────────────────────────────── */

:root {
  --brand-green: #3A7D44;
  --brand-lime: #A7C957;
  --brand-neutral: #F4F1DE;
  --brand-dark: #344E41;
  --text-secondary: #6B705C;
  --text-muted: #8A8F7F;
  --border: #D8D5C4;
  --error-red: #C0392B;
  --error-bg: #FDF3F2;

  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max-width: 960px;
  --gutter: 1.25rem;
  --radius: 10px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--brand-neutral);
  color: var(--brand-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-dark);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-dark);
}

/* ── Accessibility ─────────────────────────────────────────────────────────── */

.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;
}

:focus-visible {
  outline: 3px solid var(--brand-lime);
  outline-offset: 2px;
}

/* ── Nav ───────────────────────────────────────────────────────────────────── */

.site-nav {
  background-color: var(--brand-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.875rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-wordmark {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-wordmark img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand-lime);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
  background-color: var(--brand-dark);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(58, 125, 68, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(167, 201, 87, 0.12) 0%, transparent 60%);
  color: white;
  padding: 5rem var(--gutter) 4rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.25rem);
  color: var(--brand-neutral);
  line-height: 1.1;
  max-width: 680px;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(244, 241, 222, 0.75);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.cta-button img {
  height: 52px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(0.2);
  transition: opacity 0.15s;
}

.cta-button[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
}

/* ── Features ──────────────────────────────────────────────────────────────── */

.features {
  padding: 4rem var(--gutter);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-heading {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  color: var(--brand-lime);
  font-size: 10px;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--brand-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── FAQ Teaser ────────────────────────────────────────────────────────────── */

.faq-teaser {
  background-color: var(--brand-green);
  padding: 3.5rem var(--gutter);
}

.faq-teaser-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq-teaser h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--brand-neutral);
  margin-bottom: 0.75rem;
}

.faq-teaser p {
  color: rgba(244, 241, 222, 0.8);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.teaser-link {
  display: inline-block;
  color: var(--brand-lime);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.15s;
}

.teaser-link:hover,
.teaser-link:focus-visible {
  opacity: 0.8;
  color: var(--brand-lime);
}

/* ── Page hero ─────────────────────────────────────────────────────────────── */

.page-hero {
  background-color: var(--brand-dark);
  padding: 3.5rem var(--gutter) 2.5rem;
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--brand-neutral);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(244, 241, 222, 0.7);
  font-size: 1.05rem;
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */

.faq {
  padding: 3rem var(--gutter) 4rem;
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}

.faq-item:first-of-type {
  padding-top: 0.5rem;
}

.faq-item h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.faq-item p,
.faq-item ul {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item a {
  color: var(--brand-green);
  font-weight: 600;
}

/* ── Contact form ──────────────────────────────────────────────────────────── */

.contact-section {
  padding: 3rem var(--gutter) 4rem;
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-dark);
}

.required {
  color: var(--brand-green);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--brand-dark);
  background-color: white;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.875rem;
  transition: border-color 0.15s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B705C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(58, 125, 68, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--error-red);
}

.field-error {
  font-size: 0.85rem;
  color: var(--error-red);
  font-weight: 500;
}

.form-actions {
  margin-top: 0.5rem;
}

.submit-button {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  background-color: var(--brand-green);
  border: none;
  border-radius: 6px;
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: background-color 0.15s;
  width: 100%;
}

.submit-button:hover,
.submit-button:focus-visible {
  background-color: var(--brand-dark);
}

/* ── Banners ───────────────────────────────────────────────────────────────── */

.success-banner {
  background-color: #EFF7F1;
  border: 1.5px solid var(--brand-lime);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.success-banner p {
  color: var(--brand-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

.error-banner {
  background-color: var(--error-bg);
  border: 1.5px solid var(--error-red);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.error-banner p {
  color: var(--error-red);
  font-size: 0.95rem;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
  background-color: var(--brand-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.75rem var(--gutter);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(244, 241, 222, 0.5);
}

.footer-privacy {
  font-size: 0.85rem;
  color: rgba(244, 241, 222, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-privacy:hover,
.footer-privacy:focus-visible {
  color: var(--brand-lime);
}

/* ── Desktop (≥720px) ──────────────────────────────────────────────────────── */

@media (min-width: 720px) {
  :root {
    --gutter: 2.5rem;
  }

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

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .submit-button {
    width: auto;
    min-width: 180px;
  }
}

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