/* --- 1. GLOBAL SETTINGS --- */
:root {
  --primary-green: #006837;
  --dark-green: #024626;
  --accent-purple: #8c2b8d;
  --accent-red: #ff0000;
  --yellow: #ffff00;
  --text-dark: #333;
  --light-bg: #f4f4f4;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-dark);
}

/* --- 2. HERO PREMIUM SECTION --- */
.hero-premium {
  background-image: url("../images/hero.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background: radial-gradient(circle at center, var(--white) 0%, #e9e9e9 100%);*/
  padding: 80px 5%;
  min-height: 70vh;

  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge-new {
  background: var(--accent-red);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 900;
  margin: 20px 0;
  color: #ffffff;
  text-shadow: #04693f 2px 1px 4px;
}

.text-purple {
  color: var(--accent-purple);
}

.hero-copy p {
  font-size: 1.2rem;
  color: #04693f;
  background-color: #f4faf7;
  margin-bottom: 35px;
  max-width: 500px;
}

/* Hero Buttons */
.hero-actions {
  display: flex;
  gap: 20px;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

.btn-outline {
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--dark-green);
  transform: translateY(-3px);
}

/* Hero Visual Overlays */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px; /* Gives the jar space to exist */
  z-index: 1; /* Sits below the navbar */
}

.hero-jar-background {
  width: 100%;
  height: 100%;
  min-height: 450px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  /* Ensure the path above is correct relative to your CSS file */
}

/* --- COMMITMENT SECTION --- */
.commitment-section {
  padding: 100px 5%;
  background-color: #fff;
  overflow: hidden;
}

.commitment-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px; /* Space between image and text */
}

/* Image Wrapper with Accent Box */
.commitment-img-wrapper {
  flex: 1;
  position: relative;
  z-index: 1;
}

.commitment-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: block;
  position: relative;
  z-index: 2;
}

.img-accent-box {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 150px;
  height: 150px;
  background-color: var(--primary-green);
  border-radius: 15px;
  z-index: 1;
  opacity: 0.2;
}

/* Text Styling */
.commitment-text {
  flex: 1;
}

.commitment-text h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 5px;
  font-weight: 800;
}

.subtitle-green {
  color: var(--primary-green);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.commitment-text p:not(.subtitle-green) {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
  .commitment-content {
    gap: 40px;
  }

  .commitment-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .commitment-section {
    padding: 60px 5%;
  }

  .commitment-content {
    flex-direction: column; /* Stacks image on top of text */
    text-align: center;
  }

  .commitment-img-wrapper {
    margin-bottom: 30px;
    width: 100%;
    max-width: 500px; /* Prevents image from being too huge on mobile */
  }

  .img-accent-box {
    display: none; /* Hide decorative box on mobile to save space */
  }

  .commitment-text h2 {
    font-size: 1.8rem;
  }
}
/* --- 3. TRUST BAR --- */
.trust-bar {
  background: var(--primary-green);
  color: var(--white);
  display: flex;
  justify-content: space-around;
  padding: 40px 5%;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-item i {
  font-size: 4rem;
  color: var(--yellow);
}

.stat-item strong {
  display: block;
  font-size: 2.5rem;
}

/* --- 4. PRODUCT GRID & CARDS (Optimized) --- */
.featured-catalog {
  padding: 60px 5% 20px;
  text-align: center;
}

.home-product-grid {
  display: grid;
  /* Desktop: 4 columns */
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 40px 5% 100px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensures all cards in a row have equal height */
  min-width: 0; /* Prevents overflow */
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-title {
  color: var(--primary-green);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 10px 0;
  /* Standardize title height */
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-weight {
  color: var(--primary-green);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 10px 0;
  /* Standardize title height */
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Push button to the very bottom */
.btn-find-card {
  background: var(--dark-green);
  color: var(--white);
  text-decoration: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  margin-top: auto;
  display: block;
}

/* --- 5. MOBILE RESPONSIVENESS (Samsung A16 Fix) --- */

@media (max-width: 1024px) {
  .home-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .home-product-grid {
    /* Force 2 columns on small screens */
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
    padding: 20px 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .product-card {
    padding: 12px;
    border-radius: 10px;
  }

  .product-title {
    font-size: 0.85rem;
    min-height: 2.4em;
    margin: 5px 0;
  }

  .product-weight {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .btn-find-card {
    padding: 8px;
    font-size: 0.85rem;
  }

  /* Fix Hero for Mobile */
  .hero-copy h1 {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  /* Make trust bar more compact on mobile */
  .trust-bar {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }
  .stat-item {
    flex-direction: column;
    text-align: center;
  }
}

/* --- BLOG SECTION --- */
/* Latest Update Mini Grid */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.blog-card-mini {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 250px;
}

.blog-card-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  padding: 15px;
  color: white;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  width: 100%;
}

.read-more {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  text-decoration: underline;
}
