:root {
  --primary: #4A7C59;
  --ink: #1C1917;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
}

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

h1, h2, h3 {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

a[style*="background-color"] {
  transition: opacity 0.15s ease;
}
a[style*="background-color"]:hover {
  opacity: 0.85;
}

.btn-ghost {
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover {
  background-color: #fff;
  color: var(--primary);
}

.btn-ghost-fill {
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-ghost-fill:hover {
  background-color: var(--primary);
  color: #fff;
}

.btn-invert {
  transition: background-color 0.15s ease;
}
.btn-invert:hover {
  background-color: #f5f5f4;
}

.card-flat img {
  transition: transform 0.5s ease;
}
.card-flat:hover img {
  transform: scale(1.05);
}

.hero-slides img {
  opacity: 0;
  animation: heroSlide 20s linear infinite;
  animation-fill-mode: backwards;
}
.hero-slides img:nth-child(1) { animation-delay: 0s; }
.hero-slides img:nth-child(2) { animation-delay: 5s; }
.hero-slides img:nth-child(3) { animation-delay: 10s; }
.hero-slides img:nth-child(4) { animation-delay: 15s; }

@keyframes heroSlide {
  0%   { opacity: 0; transform: scale(1.05); }
  2%   { opacity: 1; }
  20%  { opacity: 1; }
  23%  { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides img { animation: none; opacity: 0; }
  .hero-slides img:first-child { opacity: 1; }
}

details.faq > summary {
  list-style: none;
  cursor: pointer;
}
details.faq > summary::-webkit-details-marker {
  display: none;
}
details.faq > summary::after {
  content: '+';
  float: right;
  color: var(--primary);
  font-size: 1.1em;
  transition: transform 0.2s ease;
}
details.faq[open] > summary::after {
  transform: rotate(45deg);
}
