* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #123d2b;
  --lime: #b7e34b;
  --cream: #f7f4ec;
  --ink: #17201b;
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 6%;
  background: rgba(18, 61, 43, 0.97);
  color: white;
}

.logo {
  color: white;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
}

.logo span { color: var(--lime); }
nav { display: flex; gap: 22px; }
nav a { color: white; text-decoration: none; font-weight: 700; }
nav a:hover { color: var(--lime); }

.hero {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 80px 6%;
  text-align: center;
  color: white;
  background:
    linear-gradient(rgba(7, 24, 17, 0.45), rgba(7, 24, 17, 0.82)),
    url("https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.hero-content { max-width: 850px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--lime);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1; margin-bottom: 22px; }
.hero p { max-width: 680px; margin: auto; font-size: 1.15rem; }

.hero a {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 25px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--green);
  text-decoration: none;
  font-weight: 800;
}

section { padding: 78px 6%; scroll-margin-top: 80px; }
section:nth-of-type(even) { background: white; }
.section-head { max-width: 700px; margin-bottom: 32px; }
.section-head span { color: #56801c; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
h2 { margin: 5px 0 10px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  overflow: hidden;
  border-radius: 22px;
  background: white;
  box-shadow: 0 12px 34px rgba(19, 48, 35, 0.1);
}

section:nth-of-type(even) .card { background: var(--cream); }
.card img { width: 100%; height: 230px; object-fit: cover; display: block; }
.card-body { padding: 24px; }
.tag { color: #56801c; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.card h3 { margin: 6px 0 9px; font-size: 1.35rem; }

.card button {
  margin-top: 18px;
  border: 0;
  background: var(--green);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.card button:hover { background: #205c43; }
footer { padding: 35px 6%; text-align: center; background: var(--green); color: white; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(7, 20, 14, 0.72);
}

.modal.show { display: grid; }

.modal-box {
  position: relative;
  width: min(440px, 100%);
  padding: 38px;
  border-radius: 25px;
  background: white;
  text-align: center;
}

.close { position: absolute; right: 18px; top: 12px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.modal-box h2 { font-size: 2rem; }
.modal-box input { width: 100%; margin-top: 12px; padding: 14px; border: 1px solid #ccd4cf; border-radius: 10px; font-size: 1rem; }
.login-btn { width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 10px; background: var(--green); color: white; font-weight: 800; cursor: pointer; }
.signup { margin-top: 16px; font-size: 0.9rem; }
.signup a { color: #447514; font-weight: 800; }

@media (max-width: 800px) {
  header { align-items: flex-start; flex-direction: column; }
  nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .grid { grid-template-columns: 1fr; }
  .hero { min-height: 60vh; }
  .card img { height: 220px; }
}