/* =========================
   GREEN TECH 
========================= */

:root {
  --green: #2e7d32;
  --dark: #1b5e20;
  --light: #f5f7f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --accent: #4caf50;
}


html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--light);
  font-family: Arial, sans-serif;
  color: var(--text);
}

/* =========================
   HEADER 
========================= */

.site-header {
  background: var(--dark);
  padding: 15px 25px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 25px;
}

.brand {
  color: white;
  font-weight: bold;
  font-size: 20px;
}

/* NAV BUTTONS */
.site-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;

  padding: 8px 12px;
  border-radius: 6px;

  background: rgba(255,255,255,0.08);
  transition: 0.2s ease;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.25);
  color: #c8e6c9;
}

/* =========================
   HERO
========================= */

.hero {
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
  url("../images/hero.jpg");

  background-size: cover;
  background-position: center;

  color: white;
  text-align: center;
  padding: 90px 20px;
}

/* =========================
   LAYOUT
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 20px;
}

/* CARDS */
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 15px;

  box-shadow: 0 3px 10px rgba(0,0,0,0.08);

  transition: transform 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* IMAGES */
img {
  width: 100%;
  border-radius: 10px;
}

/* FORM */
input, textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;

  border: 1px solid #ccc;
  border-radius: 6px;
}

/* BUTTON */
button {
  background: var(--accent);
  color: white;
  border: none;

  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: var(--green);
}

/* MOBILE */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .site-nav a {
    width: fit-content;
  }
}