/* Base */
:root {
  --bg: #f7faf6;
  --surface: #ffffff;
  --text: #1f2a24;
  --muted: #5a6b62;
  --brand: #2f7d5a;
  --brand-2: #1f5d44;
  --accent: #cfe7da;
  --border: #e2e8e4;
  --shadow: 0 8px 24px rgba(31, 42, 36, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: var(--brand);
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover,
.nav a:focus {
  color: var(--brand);
}

.nav.open {
  display: flex;
}

/* Hero */
.hero {
  padding: 48px 0 32px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* Sections */
section {
  padding: 32px 0;
}

.section-title {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}

.card-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.button.secondary {
  background: transparent;
  color: var(--brand);
}

.button:focus {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.testimonial span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 28px 0 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Cookie banner & modal */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  display: none;
  z-index: 100;
}

.cookie-banner.visible {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 42, 36, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120;
}

.modal-backdrop.visible {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--brand-2);
  font-weight: 600;
}

.toggle-button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

/* Layout helpers */
.split {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--brand-2);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    flex-direction: row;
    padding: 0;
  }

  .hero-inner,
  .split {
    flex-direction: row;
    align-items: center;
  }

  .hero-card,
  .split > * {
    flex: 1;
  }

  .cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card {
    flex: 1 1 calc(33% - 12px);
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
