/* styles.css – Shared across all pages */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: #f8f9fa;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background: #1a3d1f;
  color: #fff;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo span {
  color: #7cb342;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

nav a:hover, nav a.active {
  color: #7cb342;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(26, 61, 31, 0.8), rgba(26, 61, 31, 0.8)),
              url('https://images.pexels.com/photos/1094774/pexels-photo-1094774.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
  flex: 1 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: #7cb342;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #66a22e;
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 4rem 0;
}

.features-grid, .product-grid, .blog-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-card, .product-card, .blog-card {
  flex: 1;
  min-width: 280px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover, .product-card:hover, .blog-card:hover {
  transform: translateY(-8px);
}

.feature-img, .product-img, .blog-img {
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-bottom: 0.8rem;
  color: #1a3d1f;
  font-size: 1.4rem;
}

.card-content p {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: #555;
}

.price {
  font-weight: 600;
  color: #7cb342;
  font-size: 1.1rem;
}

.card-link {
  color: #7cb342;
  font-weight: 600;
  align-self: flex-start;
}

.card-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #111;
  color: #ccc;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #7cb342;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: #aaa;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #7cb342;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #fff;
  font-weight: bold;
}

.social-links a:hover {
  background: #7cb342;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .features-grid, .product-grid, .blog-grid {
    flex-direction: column;
  }
  .footer-inner {
    flex-direction: column;
  }

  section {
    padding: 2rem  0;
  }
}
