/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

a {
  color: #2E7D32;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1B5E20;
}

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

ul {
  list-style: none;
}

/* ===== Header & Navigation ===== */
header {
  background: #1B5E20;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1rem 0;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

nav ul {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

nav ul li a {
  display: block;
  color: #fff;
  padding: 1rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #66BB6A;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 40%, #4CAF50 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.8;
}

/* ===== Page Banners ===== */
.about-banner,
.products-banner,
.contact-banner,
.terms-banner,
.privacy-banner {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #388E3C 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 2rem;
}

.about-banner h1,
.products-banner h1,
.contact-banner h1,
.terms-banner h1,
.privacy-banner h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.terms-banner p,
.privacy-banner p {
  font-size: 1rem;
  opacity: 0.9;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.8rem 2rem;
  background: #2E7D32;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3);
}

.btn:hover {
  background: #1B5E20;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.4);
}

/* ===== Home Sections ===== */
.home-about,
.home-products,
.home-contact {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.home-about {
  background: #fff;
}

.home-products {
  background: #f8faf8;
}

.home-contact {
  background: #fff;
  border-top: 1px solid #e8e8e8;
}

.home-about h2,
.home-products h2,
.home-contact h2 {
  font-size: 2rem;
  color: #1B5E20;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.home-about h2::after,
.home-products h2::after,
.home-contact h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #4CAF50;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.home-about p,
.home-contact p {
  max-width: 700px;
  margin: 0 auto 1rem;
  color: #555;
  font-size: 1.05rem;
}

.home-contact p a {
  color: #2E7D32;
  font-weight: 500;
}

/* ===== Product Grid ===== */
.home-products .product-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e8f5e9;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: #f9f9f9;
  padding: 0.5rem;
}

.product-card p {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #1B5E20;
}

/* ===== About Page ===== */
.about-container {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-container section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8f5e9;
}

.about-container section:last-child {
  border-bottom: none;
}

.about-container h2 {
  color: #1B5E20;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-left: 4px solid #4CAF50;
  padding-left: 1rem;
}

.about-container p {
  color: #555;
  margin-bottom: 0.75rem;
}

.about-container ul {
  margin: 1rem 0;
  padding-left: 0;
}

.about-container li {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f1f8e9;
  border-radius: 6px;
  padding-left: 1.25rem;
  position: relative;
  list-style: none;
}

.about-container li::before {
  content: '\2713';
  color: #2E7D32;
  font-weight: bold;
  position: absolute;
  left: 0.5rem;
}

/* ===== Products Page ===== */
.categories {
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  color: #fff;
  padding: 1.5rem 2rem;
  margin: 0;
  text-align: center;
}

.categories h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.categories p {
  font-size: 0.95rem;
  line-height: 2;
  opacity: 0.95;
}

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

/* ===== Contact Page ===== */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8f5e9;
}

.contact-info h2,
.contact-form h2 {
  color: #1B5E20;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e8f5e9;
}

.contact-info p {
  margin-bottom: 1.25rem;
  color: #555;
  line-height: 1.8;
}

.contact-info a {
  color: #2E7D32;
  font-weight: 500;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 1rem;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fafafa;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
  background: #fff;
}

/* ===== Terms & Privacy Pages ===== */
.terms-container,
.privacy-container {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.terms-container section,
.privacy-container section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.terms-container section:last-child,
.privacy-container section:last-child {
  border-bottom: none;
}

.terms-container h2,
.privacy-container h2 {
  color: #1B5E20;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 4px solid #4CAF50;
}

.terms-container p,
.privacy-container p {
  color: #555;
  margin-bottom: 0.75rem;
}

.terms-container ul,
.privacy-container ul {
  margin: 1rem 0;
  padding-left: 0;
}

.terms-container li,
.privacy-container li {
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.75rem 0.4rem 1.5rem;
  position: relative;
  list-style: none;
  color: #555;
}

.terms-container li::before,
.privacy-container li::before {
  content: '\2022';
  color: #4CAF50;
  font-weight: bold;
  position: absolute;
  left: 0.25rem;
  font-size: 1.2rem;
}

/* ===== Footer ===== */
footer {
  background: #1B5E20;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

footer p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 0.75rem 1rem;
  }

  .logo {
    text-align: center;
    padding: 0.5rem 0;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  nav ul li a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
  }

  nav ul li a:hover {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left-color: #66BB6A;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-banner h1,
  .products-banner h1,
  .contact-banner h1,
  .terms-banner h1,
  .privacy-banner h1 {
    font-size: 1.75rem;
  }

  .home-about,
  .home-products,
  .home-contact {
    padding: 2.5rem 1.25rem;
  }

  .home-about h2,
  .home-products h2,
  .home-contact h2 {
    font-size: 1.5rem;
  }

  .contact-container {
    flex-direction: column;
    padding: 2rem 1.25rem;
  }

  .contact-info,
  .contact-form {
    min-width: unset;
  }

  .about-container,
  .terms-container,
  .privacy-container,
  .products-container {
    padding: 2rem 1.25rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
}
