/* =======================================
   services.css
   ======================================= */

/* 1. Brand Colors and Variables */
:root {
  --color-bg-dark:       #1e1d21;
  --color-deep-green:    #046C4E;
  --color-gold:          #CBB26A;
  --color-ivory:         #FFF4CA;
  --color-light-ivory:   #F7F7F7;
  --color-text-dark:     #333333;
  --color-text-muted:    #4D5C59;
}

/* 2. Global Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat Alternates', sans-serif;
  background-color: #ffffff;
  color: var(--color-text-dark);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* 3. Navbar “Glass” Styling */
.glass-navbar {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
}
.navbar-brand,
.nav-link {
  color: #ffffffdd !important;
  font-weight:500;
}
.nav-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

/* 4. Hero Section with Tech-Pattern Background */
.services-hero {
  position: relative;
  background: 
    /* linear-gradient(
      rgba(4,108,78,0.85),
      rgba(203,178,106,0.85)
    ),
 */    url("bg.png") center/cover no-repeat;
  min-height: 60vh;
  padding-top: 100px; /* offset for fixed navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.services-hero h1 {
  color: var(--color-ivory);
  font-size: 3rem;
  font-weight: 800;
}
.services-hero p {
  color: var(--color-ivory);
  font-size: 1.25rem;
  margin-top: 1rem;
}

/* 5. Services List Section (light-ivory background behind cards) */
.services-list {
  background-color: #002721;
  padding: 3rem 0; 
}
.services-list .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 5a. Grid wrapper: prevent cards from stretching too wide */
.services-list .row.justify-content-center > .col-md-4 {
  max-width: 480px; /* each card column won’t exceed 480px */
}

/* 6. Card Styles */
.service-card {
  background-color:darkslategrey;
  border: none;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  max-height: 320px; /* cap overall card height */
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* 6a. Image Placeholder / Wrapper */
.service-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio placeholder */
  background-color: #e0e0e0; 
  overflow: hidden;
}
.service-img-wrapper .img-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1rem;
  font-style: italic;
}
/* To use a real image, replace placeholder with:
.service-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
*/

/* 6b. Card Body Content */
.card-body {
  padding: 1rem; /* tighter padding */
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.service-title {
  font-size: 1.4rem; 
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.service-desc {
  font-size: 0.95rem;
  color: var(--color-ivory);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  flex-grow: 1;
  letter-spacing: 0.5px;
}
.service-features {
  margin-top: auto; /* push features list to bottom if space allows */
}
.service-features li {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  margin-bottom: 0.4rem;
}
.service-features li i {
  color: var(--color-gold);
  margin-right: 0.5rem;
}

/* 7. Call-to-Action Banner */
.cta-banner {
  background-color: var(--color-deep-green);
  padding: 2rem 1rem;
  text-align: center;
}
.cta-banner h2 {
  color: var(--color-ivory);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.btn-cta {
  background-color: var(--color-gold);
  color: var(--color-deep-green);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-cta:hover {
  background-color: #a38b53;
  color: #fff;
}

/* 8. Footer (reuse existing footer styles) */
/* No changes needed here */

/* 9. Responsive Tweaks */
@media (max-width: 992px) {
  .service-card {
    margin-bottom: 2rem;
    max-height: none; /* allow cards to expand on medium screens */
  }
}
@media (max-width: 576px) {
  .service-img-wrapper {
    padding-top: 75%; /* taller placeholder on very small screens */
  }
  .service-title {
    font-size: 1.2rem;
  }
  .service-desc {
    font-size: 0.9rem;
  }
  .service-features li {
    font-size: 0.85rem;
  }
  .btn-cta {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }
  .services-hero {
    min-height: 50vh; /* reduce hero height on mobile */
  }
}
