/* --- Global Styles --- */
html {
  scroll-behavior: smooth;
}

:root {
  --primary-teal: #2A9D8F;
  --dark-gray: #2C2C2C;
  --light-blue-bg: #D0E8EB;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
}

h1, h2, h3, h4, h5, h6, .nav-link {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Navbar --- */
/* This makes the navbar sit transparently on top of the hero image */
.navbar-clear {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent !important;
}

.navbar-brand {
  font-weight: 700;
  color: var(--dark-gray) !important;
  font-size: 1.5rem;
  max-width: 200px !important;
}

.navbar-brand img {
  max-width: 100%;
}

.nav-link {
  font-size: 0.9rem;
  color: #333 !important; /* Kept dark for visibility */
  font-weight: 600;
}

/* White Hamburger Menu Fix */
.navbar-toggler {
    border-color: #ffffff !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile Menu Fix: Adds white background when menu opens */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: #ffffff;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
}

/* --- Hero & Sections --- */
.hero-section img {
  max-width: 100%;
  width: 100%; /* Ensures it fills width */
  height: auto;
}

.section-title {
  color: var(--primary-teal);
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

/* --- About Section --- */
.about-box {
  background-color: var(--light-blue-bg);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Service Cards (The Fix) --- */
.service-card {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    /* These properties ensure the image shows correctly */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* The 0.6 value controls darkness. Lower it (e.g., 0.4) for brighter images. */
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-overlay {
     background-color: rgba(0, 0, 0, 0.75); /* Darkens slightly on hover */
}

.service-content {
    color: #ffffff;
    z-index: 2;
}

.service-content h4 {
    color: #fff; /* White text for contrast against dark overlay */
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* --- Service Background Images --- */
.bg-1 { background-image: url('../assets/recycling.jpg'); }
.bg-2 { background-image: url('../assets/consumer-products.jpg'); }
.bg-3 { background-image: url('../assets/agriculture.jpg'); }
.bg-4 { background-image: url('../assets/housing.jpg'); }
.bg-5 { background-image: url('../assets/energy.jpg'); }
.bg-6 { background-image: url('../assets/infrastructure.jpg'); }

/* --- Footer & Contact --- */
.footer-info {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}
