/*
  Endee Greens - Custom CSS
  Sustainable Packaging Solutions
*/

/* ========================
   CSS Variables / Tokens
======================== */
:root {
  --eg-green-dark:   #1a5c2a;
  --eg-green:        #27a243;
  --eg-green-light:  #4cbb6e;
  --eg-green-pale:   #e8f5ec;
  --eg-blue:         #0056b3; /* Brand Blue from Logo */
  --eg-blue-light:   #3498db; /* Light blue */
  --eg-blue-pale:    #eef7fc; /* Very light blue */
  --eg-leaf:         #2d8c4e;
  --eg-gold:         #f0a500;
  --eg-dark:         #0f1f14;
  --eg-text:         #2d3d32;
  --eg-muted:        #6b7d72;
  --eg-white:        #ffffff;
  --transition:      0.35s ease;
  --shadow-sm:       0 4px 16px rgba(39,162,67,0.10);
  --shadow-md:       0 8px 32px rgba(39,162,67,0.18);
  --shadow-lg:       0 16px 48px rgba(39,162,67,0.22);
  --radius:          14px;
  --radius-lg:       24px;
}

/* ========================
   Base & Typography
======================== */
* { box-sizing: border-box; }

body {
  font-family: 'Roboto', sans-serif;
  color: var(--eg-text);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

/* ========================
   Top Navbar
======================== */
#templatemo_nav_top {
  background: var(--eg-dark) !important;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

#templatemo_nav_top a {
  transition: color var(--transition);
}
#templatemo_nav_top a:hover { color: var(--eg-green-light) !important; }

/* ========================
   Main Navbar
======================== */
.navbar.navbar-expand-lg.navbar-light.shadow {
  background: #fff;
  border-bottom: 2px solid var(--eg-green-pale);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 18px rgba(39,162,67,0.10) !important;
}

.eg-logo-text {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--eg-green-dark) !important;
  letter-spacing: -0.03em;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eg-logo-text span {
  color: var(--eg-green);
}

.eg-logo-leaf {
  width: 36px;
  height: 36px;
  background: var(--eg-green);
  border-radius: 50% 0 50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.nav-link {
  font-weight: 500;
  color: var(--eg-text) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--eg-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--eg-green) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* ========================
   Hero Carousel
======================== */
#eg-hero-carousel {
  background: linear-gradient(135deg, var(--eg-green-pale) 0%, var(--eg-blue-pale) 100%);
  min-height: 600px;
}

.eg-hero-slide {
  padding: 80px 0 60px;
}

.eg-hero-badge {
  display: inline-block;
  background: var(--eg-green-pale);
  color: var(--eg-green-dark);
  border: 1.5px solid var(--eg-green-light);
  border-radius: 50px;
  padding: 5px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eg-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--eg-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.eg-hero-title .accent {
  color: var(--eg-blue);
}

.eg-hero-subtitle {
  font-size: 1.05rem;
  color: var(--eg-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.eg-btn-primary {
  background: var(--eg-green);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 18px rgba(39,162,67,0.30);
}

.eg-btn-primary:hover {
  background: var(--eg-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,86,179,0.25);
}

.eg-btn-outline {
  background: transparent;
  color: var(--eg-green-dark);
  border: 2px solid var(--eg-green-dark);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.eg-btn-outline:hover {
  background: var(--eg-blue);
  border-color: var(--eg-blue);
  color: #fff;
  transform: translateY(-2px);
}

.eg-hero-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 460px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-item.active .eg-hero-img {
  animation: floatIn 0.8s ease forwards;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  background: var(--eg-green);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1 !important;
  box-shadow: var(--shadow-sm);
}

.carousel-control-prev { left: 16px; }
.carousel-control-next { right: 16px; }

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--eg-green-dark);
}

.carousel-indicators [data-bs-target] {
  background-color: var(--eg-green);
  border-radius: 50px;
  width: 10px;
  height: 10px;
  opacity: 0.4;
  transition: all var(--transition);
}
.carousel-indicators .active {
  opacity: 1;
  width: 28px;
}

/* Hero Stats */
.eg-hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 24px;
}

.eg-stat {
  text-align: left;
}

.eg-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--eg-green);
  line-height: 1;
}

.eg-stat-label {
  font-size: 0.78rem;
  color: var(--eg-muted);
  font-weight: 500;
}

/* ========================
   Section Titles
======================== */
.eg-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.eg-section-tag {
  display: inline-block;
  background: var(--eg-green-pale);
  color: var(--eg-green-dark);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eg-section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--eg-dark);
  margin-bottom: 12px;
}

.eg-section-desc {
  color: var(--eg-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================
   About Strip
======================== */
.eg-about-strip {
  background: linear-gradient(90deg, var(--eg-green-dark) 0%, var(--eg-green) 100%);
  padding: 40px 0;
  color: #fff;
}

.eg-about-strip h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.eg-about-strip p {
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ========================
   Product Categories
======================== */
.eg-products-section {
  padding: 80px 0;
  background: #fff;
}

.eg-product-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  background: #fff;
  height: 100%;
}

.eg-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.eg-product-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--eg-green-pale);
}

.eg-product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
  transition: transform 0.5s ease;
}

.eg-product-card:hover .eg-product-card-img-wrap img {
  transform: scale(1.07);
}

.eg-product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--eg-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eg-product-card-body {
  padding: 20px 22px 24px;
}

.eg-product-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--eg-dark);
  margin-bottom: 8px;
}

.eg-product-card-body p {
  font-size: 0.9rem;
  color: var(--eg-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.eg-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.eg-product-tag {
  background: var(--eg-green-pale);
  color: var(--eg-green-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

.eg-product-link {
  color: var(--eg-green);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.eg-product-link:hover {
  color: var(--eg-green-dark);
  gap: 10px;
}

/* ========================
   Why Choose Us
======================== */
.eg-why-section {
  background: linear-gradient(135deg, var(--eg-green-pale) 0%, var(--eg-blue-pale) 100%);
  padding: 80px 0;
}

.eg-why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all var(--transition);
  border: 1.5px solid transparent;
}

.eg-why-card:hover {
  border-color: var(--eg-green-light);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.eg-why-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--eg-green), var(--eg-blue-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 18px;
  transition: transform var(--transition);
}

.eg-why-card:hover .eg-why-icon {
  transform: rotate(-8deg) scale(1.1);
}

.eg-why-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--eg-dark);
  margin-bottom: 10px;
}

.eg-why-card p {
  font-size: 0.88rem;
  color: var(--eg-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ========================
   Vision & Mission
======================== */
.eg-vision-section {
  padding: 80px 0;
  background: #fff;
}

.eg-vision-card {
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.eg-vision-card.vision {
  background: linear-gradient(135deg, var(--eg-green-dark), var(--eg-green));
  color: #fff;
}

.eg-vision-card.mission {
  background: var(--eg-green-pale);
  border: 2px solid var(--eg-green-light);
}

.eg-vision-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.eg-vision-card .vm-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
}

.eg-vision-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.eg-vision-card.vision h3,
.eg-vision-card.vision p {
  color: #fff;
}

.eg-vision-card.mission h3 {
  color: var(--eg-green-dark);
}

.eg-vision-card.mission p {
  color: var(--eg-text);
}

.eg-vision-card p {
  line-height: 1.75;
  font-size: 0.95rem;
  opacity: 0.92;
  margin-bottom: 0;
}

/* ========================
   Industries We Serve
======================== */
.eg-industries-section {
  background: var(--eg-dark);
  padding: 80px 0;
  color: #fff;
}

.eg-industries-section .eg-section-title {
  color: #fff;
}

.eg-industries-section .eg-section-desc {
  color: rgba(255,255,255,0.65);
}

.eg-industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid rgba(39,162,67,0.12);
  border-radius: 50px;
  padding: 12px 22px;
  margin: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--eg-dark);
  box-shadow: 0 4px 12px rgba(39,162,67,0.05);
  transition: all var(--transition);
}

.eg-industry-pill:hover {
  background: var(--eg-green);
  border-color: var(--eg-green);
  color: #fff;
  transform: translateY(-3px);
}

.eg-industry-pill i {
  color: var(--eg-green-light);
  font-size: 1rem;
}

.eg-industry-pill:hover i {
  color: #fff;
}

/* ========================
   Sustainability CTA
======================== */
.eg-sustainability-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--eg-green-pale) 0%, var(--eg-blue-pale) 100%);
}

.eg-sustainability-img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 360px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.eg-sustainability-content {
  padding: 20px 20px 20px 40px;
}

.eg-sustainability-content h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--eg-dark);
  margin-bottom: 16px;
}

.eg-sustainability-content p {
  color: var(--eg-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}

.eg-check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.eg-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--eg-text);
  margin-bottom: 10px;
  font-weight: 500;
}

.eg-check-list li i {
  color: var(--eg-green);
  margin-top: 2px;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ========================
   Footer
======================== */
#tempaltemo_footer {
  background: var(--eg-dark) !important;
}

.eg-footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--eg-green) !important;
  letter-spacing: -0.02em;
}

.footer-link-list {
  line-height: 2;
}

.footer-link-list a {
  color: rgba(255,255,255,0.72) !important;
  transition: color var(--transition);
}

.footer-link-list a:hover {
  color: var(--eg-green-light) !important;
}

.footer-link-list li {
  color: rgba(255,255,255,0.72);
}

.footer-icons .list-inline-item {
  width: 40px;
  height: 40px;
  line-height: 40px;
  transition: all var(--transition);
}

.footer-icons .list-inline-item:hover {
  background: var(--eg-green) !important;
  border-color: var(--eg-green) !important;
  transform: translateY(-4px);
}

/* ========================
   Scroll Animations
======================== */
.eg-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.eg-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.eg-fade-up-delay-1 { transition-delay: 0.1s; }
.eg-fade-up-delay-2 { transition-delay: 0.2s; }
.eg-fade-up-delay-3 { transition-delay: 0.3s; }
.eg-fade-up-delay-4 { transition-delay: 0.4s; }
.eg-fade-up-delay-5 { transition-delay: 0.5s; }
.eg-fade-up-delay-6 { transition-delay: 0.6s; }

/* ========================
   Responsive Tweaks & Extra Helpers
======================== */
.eg-info-card-body a {
  word-break: break-all;
}

/* WhatsApp Floating Button */
.eg-whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 9999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}
.eg-whatsapp-float:hover {
  background-color: #128c7e;
  color: #fff;
  transform: scale(1.1);
}

@media (max-width: 991px) {
  .eg-hero-title { font-size: 2rem; }
  .eg-hero-stats { gap: 18px; }
  .eg-sustainability-content { padding: 30px 10px 10px; }
}

@media (max-width: 767px) {
  .eg-hero-title { font-size: 1.7rem; }
  .eg-section-title { font-size: 1.6rem; }
  .eg-hero-slide { padding: 40px 24px 30px !important; }
  .eg-hero-img {
    max-height: 280px;
    object-fit: contain !important;
    box-shadow: none !important;
    background: transparent !important;
    margin-top: 15px;
  }
  /* Fix stacked buttons in hero slide on mobile */
  .eg-hero-slide .d-flex.gap-3.flex-wrap {
    gap: 12px !important;
  }
  .eg-hero-slide .d-flex.gap-3.flex-wrap a {
    width: 100%;
    justify-content: center;
    margin-bottom: 0;
  }
}
