/* ========================================
   Evergreen Enterprises – Modern Redesign
   HTML5 + Bootstrap 5 + CSS3
   ======================================== */

:root {
  --primary: #1a7a4c;
  --primary-dark: #0f5c38;
  --primary-light: #2d9b66;
  --accent: #f0c040;
  --dark: #1a1a1a;
  --gray: #6c757d;
  --light-bg: #f8faf9;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.875rem;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.top-bar a:hover {
  opacity: 0.85;
}

.social-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin-left: 6px;
  transition: background 0.3s;
}

.social-icon:hover {
  background: rgba(255,255,255,0.25);
}

/* ---------- Navbar ---------- */
.navbar {
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-text {
  color: var(--primary);
  letter-spacing: -0.5px;
}

.brand-sub {
  color: #555;
  font-weight: 500;
  font-size: 1.1rem;
}

.leaf {
  font-size: 1.3rem;
}

.nav-link {
  font-weight: 500;
  color: #333 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--primary);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 122, 76, 0.35);
}

.btn-outline-light:hover {
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 560px;
  background: linear-gradient(135deg, rgba(15, 92, 56, 0.85), rgba(26, 122, 76, 0.75)),
              url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.hero-desc {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  opacity: 0.95;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-down a {
  color: white;
  font-size: 1.8rem;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-12px); }
  60% { transform: translateX(-50%) translateY(-6px); }
}

.animate-up {
  animation: fadeUp 0.8s ease-out forwards;
}

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

/* Ensure elements observed by IntersectionObserver start hidden */
.service-card,
.stat-card,
.value-card,
.client-box {
  opacity: 0;
}

/* ---------- Section Titles ---------- */
.section-title {
  font-size: 2.2rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-card h3 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.stat-card p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---------- Services ---------- */
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-light);
  box-shadow: 0 15px 40px rgba(26, 122, 76, 0.15);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.service-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- About ---------- */
.list-check {
  list-style: none;
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: #444;
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.about-image-placeholder {
  background: linear-gradient(135deg, #e8f5ef, #d4edda);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

/* ---------- Values ---------- */
.value-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform 0.3s;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.value-card h5 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.value-card p {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 0;
}

/* ---------- Industries ---------- */
.industry-badge {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 0.85rem 1.25rem;
  text-align: center;
  font-weight: 500;
  color: #333;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.industry-badge:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.industry-badge i {
  color: var(--primary);
}

.industry-badge:hover i {
  color: white;
}

/* ---------- Clients ---------- */
.client-box {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  font-weight: 600;
  color: #555;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.client-box:hover {
  color: var(--primary);
  transform: scale(1.05);
}

/* ---------- Contact ---------- */
.contact-info .info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-info i {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info h5 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.contact-info p {
  margin: 0;
  color: var(--gray);
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-form .form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 122, 76, 0.15);
}

/* ---------- Footer ---------- */
.footer {
  background: #0d3d28;
  color: #c8e6d5;
}

.footer-brand {
  color: white;
  font-size: 1.4rem;
}

.footer-brand span {
  font-weight: 400;
  opacity: 0.85;
}

.footer h5 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #c8e6d5;
  text-decoration: none;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.back-to-top.show {
  display: flex;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-section {
    height: 75vh;
  }
  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    height: auto;
    padding: 100px 0 80px;
    min-height: 480px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .value-card {
    margin-bottom: 0.5rem;
  }
}
