/* ==========================================================================
   Green Earth Agro Chemicals - Custom CSS for Bootstrap 5
   Figma Exact Match (vuHYiFLM49pmIV8rJ3hopw/Alter)
   ========================================================================== */

:root {
  /* Brand Green Colors matching Figma */
  --ge-primary: #76A713;
  --ge-primary-dark: #5B840D;
  --ge-primary-light: #8DC71A;
  --ge-primary-soft: #F2F8E7;
  --ge-primary-border: #D2E7A7;
  
  /* Dark Colors matching Figma Hero & Footer */
  --ge-dark: #121811;
  --ge-dark-surface: #192218;
  --ge-dark-border: rgba(255, 255, 255, 0.12);
  
  /* Neutral Colors */
  --ge-body-bg: #FFFFFF;
  --ge-section-bg: #F8FAF5;
  --ge-card-border: #E8ECE3;
  --ge-text-main: #1D231C;
  --ge-text-muted: #5C6858;
  --ge-text-light: #849180;
  
  /* Typography */
  --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--ge-text-main);
  background-color: var(--ge-body-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ==========================================================================
   Utility Classes & Buttons
   ========================================================================== */
.text-ge-primary {
  color: var(--ge-primary) !important;
}

.bg-ge-primary {
  background-color: var(--ge-primary) !important;
}

.bg-ge-soft {
  background-color: var(--ge-primary-soft) !important;
}

.bg-ge-dark {
  background-color: var(--ge-dark) !important;
}

.bg-ge-section {
  background-color: var(--ge-section-bg) !important;
}

.border-ge-primary {
  border-color: var(--ge-primary) !important;
}

.btn-ge-primary {
  background-color: var(--ge-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 26px;
  border-radius: 50rem;
  border: 1.5px solid var(--ge-primary);
  box-shadow: 0 4px 14px rgba(118, 167, 19, 0.35);
  transition: all 0.25s ease;
}

.btn-ge-primary:hover, .btn-ge-primary:focus {
  background-color: var(--ge-primary-dark);
  border-color: var(--ge-primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(118, 167, 19, 0.45);
}

.btn-ge-outline-light {
  background-color: transparent;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 10px 26px;
  border-radius: 50rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
}

.btn-ge-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-ge-outline-primary {
  background-color: transparent;
  color: var(--ge-primary);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 9px 24px;
  border-radius: 50rem;
  border: 1.5px solid var(--ge-primary);
  transition: all 0.25s ease;
}

.btn-ge-outline-primary:hover {
  background-color: var(--ge-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.top-bar {
  background-color: #0C110C;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-bar a:hover {
  color: var(--ge-primary-light);
}

/* ==========================================================================
   Main Navbar
   ========================================================================== */
.main-navbar {
  background-color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.main-navbar.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8EC41C 0%, #5F880C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(118, 167, 19, 0.35);
}

.brand-icon-box svg {
  width: 24px;
  height: 24px;
  fill: #FFFFFF;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ge-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-subname {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ge-dark);
  text-transform: uppercase;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ge-text-main) !important;
  padding: 8px 16px !important;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--ge-primary) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--ge-primary);
  border-radius: 2px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-banner {
  position: relative;
  min-height: 580px;
  background: linear-gradient(rgba(14, 20, 13, 0.72), rgba(10, 16, 10, 0.86)),
              url('https://images.unsplash.com/photo-1500651230702-0e2d8a49d4ad?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  padding: 90px 0 80px;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(118, 167, 19, 0.25);
  border: 1px solid rgba(118, 167, 19, 0.5);
  color: #B2E555;
  padding: 6px 16px;
  border-radius: 50rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtext {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-stats-row {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: #8EC41C;
  line-height: 1;
}

.hero-stat-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ==========================================================================
   Section Title Common
   ========================================================================== */
.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ge-primary);
  margin-bottom: 6px;
}

.section-main-heading {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ge-text-main);
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.section-lead-text {
  color: var(--ge-text-muted);
  font-size: 1rem;
  max-width: 660px;
  margin: 10px auto 0;
}

/* ==========================================================================
   About Us Section (4 Feature Cards)
   ========================================================================== */
.about-feature-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--ge-card-border);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.about-feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--ge-primary-border);
  box-shadow: 0 12px 24px rgba(20, 30, 15, 0.08);
}

.about-feature-img {
  height: 175px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-feature-card:hover .about-feature-img {
  transform: scale(1.06);
}

.about-feature-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.about-feature-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ge-text-main);
  margin-bottom: 8px;
}

.about-feature-desc {
  font-size: 0.875rem;
  color: var(--ge-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.about-feature-link {
  margin-top: auto;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ge-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.about-feature-link:hover {
  color: var(--ge-primary-dark);
  gap: 8px;
}

/* ==========================================================================
   Product Category Showcase (Left Figma View)
   ========================================================================== */
.category-showcase-box {
  position: relative;
  height: 270px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-showcase-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.category-showcase-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-showcase-box:hover img {
  transform: scale(1.08);
}

.category-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 20, 13, 0.94) 0%, rgba(14, 20, 13, 0.3) 60%, transparent 100%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #FFFFFF;
}

.showcase-pill {
  background-color: var(--ge-primary);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
}

.showcase-heading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.showcase-info {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ==========================================================================
   Full Product Catalog Grid (Right Figma View)
   ========================================================================== */
.product-filter-btn {
  padding: 8px 20px;
  border-radius: 50rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ge-text-muted);
  background-color: #EEF3E6;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.product-filter-btn:hover {
  background-color: #E2ECD4;
  color: var(--ge-text-main);
}

.product-filter-btn.active {
  background-color: var(--ge-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(118, 167, 19, 0.3);
}

.category-divider-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ge-dark);
  text-align: center;
  position: relative;
  margin-bottom: 30px;
}

.category-divider-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--ge-card-border);
  z-index: 1;
}

.category-divider-title span {
  position: relative;
  background-color: #FFFFFF;
  padding: 0 20px;
  z-index: 2;
}

.catalog-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--ge-card-border);
  padding: 22px 16px 18px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}

.catalog-card:hover {
  border-color: var(--ge-primary);
  box-shadow: 0 10px 24px rgba(118, 167, 19, 0.16);
  transform: translateY(-4px);
}

.catalog-type-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--ge-primary-soft);
  color: var(--ge-primary-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.catalog-visual {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.catalog-visual svg,
.catalog-visual img,
.catalog-product-img {
  max-height: 145px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
}

.catalog-card:hover .catalog-visual svg,
.catalog-card:hover .catalog-visual img {
  transform: scale(1.08);
}

.catalog-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 800;
  color: var(--ge-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.4px;
}

.catalog-formula {
  font-size: 0.75rem;
  color: var(--ge-text-light);
  line-height: 1.35;
  min-height: 32px;
  margin-bottom: 12px;
}

.catalog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 10px;
  border-top: 1px dashed var(--ge-card-border);
  margin-top: auto;
}

.catalog-pack-size {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ge-text-muted);
}

.catalog-action-btn {
  background-color: transparent;
  color: var(--ge-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid var(--ge-primary-border);
  border-radius: 50rem;
  transition: all 0.2s ease;
}

.catalog-action-btn:hover {
  background-color: var(--ge-primary);
  color: #FFFFFF;
  border-color: var(--ge-primary);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonial-box {
  background-color: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--ge-card-border);
  padding: 34px 28px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-box:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--ge-primary-border);
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 1.125rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-quote-text {
  font-size: 0.9375rem;
  color: var(--ge-text-muted);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 22px;
  flex-grow: 1;
}

.testimonial-author-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #EEF3E6;
}

.testimonial-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ge-primary-border);
}

.testimonial-author-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ge-text-main);
  margin-bottom: 2px;
}

.testimonial-author-sub {
  font-size: 0.8125rem;
  color: var(--ge-text-light);
  margin-bottom: 0;
}

.quote-decor {
  font-family: Georgia, serif;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--ge-primary-border);
}

/* ==========================================================================
   Trust / Benefits Bar
   ========================================================================== */
.trust-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 10px;
  background-color: var(--ge-section-bg);
  border: 1px solid var(--ge-card-border);
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--ge-primary-soft);
  color: var(--ge-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.trust-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ge-text-main);
  margin-bottom: 2px;
}

.trust-desc {
  font-size: 0.8125rem;
  color: var(--ge-text-light);
  margin-bottom: 0;
}

/* ==========================================================================
   Footer (Matching Figma Dark Footer)
   ========================================================================== */
.site-footer {
  background-color: var(--ge-dark);
  color: #FFFFFF;
  padding: 70px 0 25px;
  border-top: 1px solid var(--ge-dark-border);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 22px;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--ge-primary);
  border-radius: 2px;
}

.footer-links-group a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.footer-links-group a:hover {
  color: var(--ge-primary-light);
  transform: translateX(4px);
}

.footer-contact-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact-row i {
  color: var(--ge-primary);
  font-size: 1.1rem;
  margin-top: 2px;
}

.footer-contact-row a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-row a:hover {
  color: var(--ge-primary-light);
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-right: 8px;
  transition: all 0.2s ease;
}

.footer-social-btn:hover {
  background-color: var(--ge-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--ge-primary-light);
}

/* ==========================================================================
   Interactive Modals & Toast
   ========================================================================== */
.modal-header-ge {
  background-color: var(--ge-primary-soft);
  border-bottom: 1px solid var(--ge-primary-border);
  padding: 16px 24px;
}

.modal-header-ge .modal-title {
  color: var(--ge-primary-dark);
  font-weight: 800;
}

.toast-custom {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1090;
  border-left: 4px solid var(--ge-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Responsive Tweaks
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-main-title {
    font-size: 2.75rem;
  }
  .navbar-collapse {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 12px;
  }
}

@media (max-width: 575.98px) {
  .hero-main-title {
    font-size: 2.15rem;
  }
  .section-main-heading {
    font-size: 1.75rem;
  }
  .hero-stats-row .col-4 {
    width: 100%;
    margin-bottom: 16px;
  }
  .catalog-visual {
    height: 120px;
  }
  .catalog-visual svg {
    height: 105px;
  }
}
