/* ===========================
   Global Styles
=========================== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
  margin: 0;
  padding: 0;
}

section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h2, h3 { margin-top: 0; }

/* Headings */
h2 {
  font-size: 28px;
  color: #2e7d32;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h3 {
  font-size: 22px;
  color: #1b5e20;
  margin: 20px 0 10px;
  font-weight: 600;
}

/* ===========================
   Header & Navigation
=========================== */
header {
  background: url('images/greenfield.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  min-height: 192px;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

header h1,
header nav {
  position: relative;
  z-index: 1;
}

/* Top navigation bar */
.top-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-nav ul li a {
  color: #f5f5dc;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.3s ease, background 0.3s ease;
}

/* Hover effect */
.top-nav ul li a:hover {
  color: #ffd54f;
  background: rgba(255, 255, 255, 0.15);
}

/* Active page link */
.top-nav ul li a.active {
  color: #fff;
  background: #2e7d32; /* eco-friendly green highlight */
  font-weight: bold;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  header {
    padding: 20px 10px;
    min-height: auto;
  }

  header h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .top-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  .top-nav ul li a {
    display: block;
    padding: 10px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  header h1 { font-size: 20px; }
  .top-nav ul li a { font-size: 14px; padding: 8px; }
}

/* ===========================
   Hero Section
=========================== */
.hero {
  position: relative;
  background: url('images/coir-texture.jpg') no-repeat center center;
  background-size: cover;
  padding: 60px 20px;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

/* ===========================
   Buttons
=========================== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  background: linear-gradient(to right, #66bb6a, #2e7d32);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: linear-gradient(to right, #43a047, #1b5e20);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Contact Form
=========================== */
.contact form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.contact label { margin-top: 10px; }

.contact input,
.contact textarea {
  padding: 8px;
  margin-top: 5px;
}

.success { color: green; }
.error { color: red; }

/* ===========================
   About Page
=========================== */
.about-page { background-color: #fff; }

.about-page img.about-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Products Page
=========================== */
.products-page { background-color: #f5f5f5; }

.products-page .product img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 15px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-page .product img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

/* ===========================
   Comparison Table
=========================== */
.comparison table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 16px;
  text-align: left;
}

.comparison th,
.comparison td {
  padding: 12px 15px;
  border: 1px solid #ddd;
}

.comparison th {
  background: linear-gradient(to bottom, #388e3c, #2e7d32);
  color: #fff;
  font-weight: bold;
}

.comparison tr:nth-child(even) { background-color: #f9f9f9; }
.comparison tr:hover {
  background-color: #f1f1f1;
  transition: background-color 0.3s ease;
}

/* ===========================
   Footer
=========================== */
footer {
  background: linear-gradient(135deg, #1b5e20, #004d40);
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

footer a {
  color: #f5f5dc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover { color: #ffd54f; }

.site-title {
  font-family: 'Playfair Display', serif; /* elegant serif */
  font-size: 42px;
  font-weight: 700;
  color: #f5f5dc;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  margin: 0;
}

/* Alternate playful style if you prefer */
.site-title.alt-style {
  font-family: 'Pacifico', cursive;
  font-size: 80px;
  color: #ffd54f;
}
