:root {
  --green: #2f6b2f;
  --green-dark: #245524;
  --bg-light: #f7f9f5;
  --text-dark: #1f2a1f;
  --text-muted: #4b5a4b;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------- */
/* HEADER                                        */
/* --------------------------------------------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 6vw;
  background: white;
  border-bottom: 1px solid #d9e2d9;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  position: relative
}

header img {
  height: 48px;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.2rem;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.active {
  color: var(--green-dark);
}

/* --------------------------------------------- */
/* HERO                                          */
/* --------------------------------------------- */

.hero {
  padding: 6rem 6vw;
  text-align: center;
  background: url(images/background.jpg) center/cover no-repeat;
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.4rem);
  margin-bottom: 2rem;
}

.btn {
  background: var(--green);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* --------------------------------------------- */
/* CONTAINERS + SECTIONS                         */
/* --------------------------------------------- */

.container {
  max-width: 1100px;
  margin: auto;
  padding: 3rem 6vw;
}

section {
  margin-bottom: 3rem;
}

h2 {
  margin-bottom: 1rem;
  color: var(--green);
}

/* --------------------------------------------- */
/* CARDS + GRID                                  */
/* --------------------------------------------- */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e3e8e3;
}

.card h3 {
  margin-bottom: 0.6rem;
  color: var(--green-dark);
}

.card p {
  color: var(--text-muted);
}

/* --------------------------------------------- */
/* FORMS                                         */
/* --------------------------------------------- */

form input,
form textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid #cdd8cd;
  background: #ffffff;
  font: inherit;
}

form button {
  background: var(--green);
  color: white;
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

form button:hover {
  background: var(--green-dark);
}

/* --------------------------------------------- */
/* FOOTER                                        */
/* --------------------------------------------- */

footer {
  padding: 0.6rem 6vw;
  background: #e8efe8;
  color: var(--text-muted);
  text-align: center;
  margin-top: auto;
}

/* --------------------------------------------- */
/* RESPONSIVE                                    */
/* --------------------------------------------- */

/* Burger button */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: 0.3s ease;
}

/* Desktop nav */
#nav-menu {
  display: flex;
  gap: 1.5rem;
}

/* Mobile */
@media (max-width: 720px) {
  header {
    padding: 1rem 1.2rem;
    flex-direction: column;
    text-align: center;
  }

  .burger {
    display: flex;
  }

  /* Hide nav by default on mobile */
  #nav-menu {
    position: absolute;
    top: 60px;
    right: 6vw;
    background: white;
    padding: 1.2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    width: 200px;
  }

  /* Show when toggled */
  #nav-menu.open {
    display: flex;
  }

  nav a {
    margin: 0.6rem 0;
    color: var(--text-dark);
  }

  .hero {
    padding: 4rem 1.2rem;
  }

  .container {
    padding: 2rem 1.2rem;
  }
}