/* ==========================
   RESET
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================
   BODY + GLOBAL BACKGROUND
========================== */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(
    135deg,
    #fbe8c4 0%,
    #f9a825 45%,
    #e53935 100%
  );
  background-attachment: fixed;
  background-size: cover;
  color: #3a2c2c;
  line-height: 1.6;
  position: relative;
}

/* 🔹 Logo watermark in background */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("assets/logo.jpg") no-repeat center;
  background-size: 350px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

section, header, footer {
  position: relative;
  z-index: 1;
}

/* ==========================
   NAVBAR
========================== */
header {
  background: #fff;
  padding: 15px 30px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.logo img {
  height: 60px;
  max-width: 100%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  font-weight: bold;
  color: #3a2c2c;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #f9a825;
}

/* Dropdown (desktop) */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ddd;
  min-width: 160px;
  padding: 0;
  margin: 0;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.15);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: #3a2c2c;
  font-weight: normal;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ==========================
   HAMBURGER MENU
========================== */
.menu-toggle {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #3a2c2c;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2000;
}

/* ==========================
   RESPONSIVE (Mobile)
========================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* show hamburger */
  }

  .nav-links {
    display: none; /* hidden by default */
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.15);
    width: 220px;
    transition: all 0.3s ease-in-out;
    z-index: 1500;
  }

  .nav-links.show {
    display: flex; /* visible when toggled */
  }

  /* Mobile dropdown */
  .dropdown-menu {
    display: none;
    position: static;
    border: none;
    box-shadow: none;
    background: none;
    flex-direction: column;
    margin-top: 5px;
  }

  .dropdown-menu li a {
    padding: 8px 15px;
  }

  .dropdown-menu.show {
    display: flex; /* shown on toggle */
  }
}

/* ==========================
   HERO SLIDER
========================== */
.hero {
  position: relative;
  height: 68vh;
  overflow: hidden;
  margin-top: 0;
}

.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* 🚫 Removed arrows */
.prev, .next {
  display: none !important;
}

/* ==========================
   CATEGORY BANNER
========================== */
.category-banner {
  position: relative;
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  max-width: 1200px;
  border-radius: 10px;
  overflow: hidden;
}

.category-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  display: block;
}

/* ==========================
    FEATURED PRODUCTS
========================== */
.featured-products {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  margin: 40px auto;
  max-width: 1200px;
}

.featured-products h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #b83227;
  font-family: Georgia, serif;
}

.products-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.product-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 5px solid #f9a825;
}

.product-card img {
  width: 100%;
  border-radius: 10px;
}

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

.product-card h3 {
  margin: 15px 0 5px;
  color: #2e7d32;
}

.product-card p {
  color: #666;
}

/* ==========================
   RED FEATURES PANEL
========================== */
.features {
  background: #b83227;
  color: #fff;
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.feature-item {
  text-align: center;
  max-width: 200px;
}

.feature-item img {
  width: 50px;
  margin-bottom: 10px;
}

/* ==========================
   CATEGORIES
========================== */
.categories {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  margin: 40px auto;
  max-width: 1200px;
}

.categories h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2e7d32;
  font-family: Georgia, serif;
}

.category-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.category-card {
  display: block;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  text-decoration: none;
  color: #3a2c2c;
  flex: 1 1 280px;
  max-width: 320px;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-left: 5px solid #f9a825;
}

.category-card img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.category-card:hover {
  transform: translateY(-5px);
  border-left-color: #2e7d32;
}

/* ==========================
   LEGACY SECTION
========================== */
.legacy-section {
  background: #800000;
  color: #fff;
  padding: 60px 20px;
  margin: 40px auto;
  border-radius: 16px;
  max-width: 1200px;
}

.legacy-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.legacy-image {
  flex: 1 1 40%;
}

.legacy-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.legacy-content {
  flex: 1 1 55%;
}

.legacy-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffd700;
}

.legacy-content p {
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 1rem;
}

/* ==========================
     CERTIFICATIONS SECTION
========================== */
.certifications {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  margin: 60px auto;
  max-width: 1200px;
}

.certifications h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #b83227;
  font-family: Georgia, serif;
}

.certifications-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cert-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  width: 250px; /* exactly same as product-card */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 5px solid #f9a825;
}

.cert-card img {
  width: 100%;
  border-radius: 10px;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cert-card h4 {
  margin: 15px 0 5px;
  color: #2e7d32;
}

.cert-card p {
  color: #666;
}

/* ==========================
   ABOUT SECTION
========================== */
.about {
  padding: 60px 20px;
  background: #800000;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 1200px;
  color: #fff;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about img {
  width: 350px;
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.about-text {
  max-width: 600px;
}

.about-text h2 {
  color: #ffd700;
  font-family: Georgia, serif;
  margin-bottom: 15px;
  font-size: 2rem;
}

.about-text p {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.7;
}

/* ==========================
   FOLLOW US SECTION
========================== */
.follow-us {
  text-align: center;
  margin: 40px auto;
  padding: 20px;
}

.follow-us h2 {
  font-size: 1.8rem;
  color: #b83227;
  margin-bottom: 20px;
  font-family: Georgia, serif;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* ==========================
   CONTACT SECTION
========================== */
.contact {
  background: rgba(255,255,255,0.95);
  padding: 60px 20px;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 800px;
  color: #3a2c2c;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #b83227;
  text-align: center;
  font-family: Georgia, serif;
}

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

.contact input,
.contact textarea {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

.contact button {
  background: #f9a825;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.contact button:hover {
  background: #e08900;
}

/* ==========================
   FOOTER
========================== */
footer {
  background: #3a2c2c;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

footer a {
  color: #f9a825;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #2e7d32;
}

/* ==========================
   MOBILE RESPONSIVE
========================== */
@media screen and (max-width: 1024px) {
  .featured-products, .categories, .legacy-section, .about, .certifications, .contact {
    padding: 40px 15px;
  }

  .products-grid, .category-cards, .legacy-container, .about-content, .features, .certifications-container {
    gap: 20px;
    justify-content: center;
  }

  .logo img {
    height: 50px;
  }

  .category-banner {
    height: 35vh;
  }
}

@media screen and (max-width: 768px) {
  .feature-item {
    max-width: 150px;
    margin: 10px auto;
  }

  .hero {
    height: 40vh;
  }

  .about img {
    width: 100%;
  }

  .category-banner {
    height: 30vh;
  }
}

@media screen and (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .logo img {
    height: 40px;
  }

  .featured-products h2,
  .categories h2,
  .legacy-content h2,
  .about-text h2,
  .certifications h2,
  .contact h2 {
    font-size: 1.5rem;
  }

  .product-card, .category-card, .cert-card {
    width: 100%;
    flex: 1 1 100%;
  }

  .hero {
    height: 30vh;
  }

  .category-banner {
    height: 25vh;
  }

  .social-icon {
    width: 30px;
    height: 30px;
  }
}
