:root {
  --primary: #09182D;
  --dark: #0a192f;
  --light: #ffffff;
  --secondary:#E14D25;
  --text-dark: #222;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--soft);
  color: var(--dark);
  margin: 0;
  padding: 0;
}


/* ========= SERVICES HERO ========= */
.services-hero {
  position: relative;
  min-height: clamp(280px, 35vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;

  /* Layered background: gradient overlay + image */
  background-image:
    linear-gradient(rgba(10,25,47,.72), rgba(10,25,47,.72)),
    url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Optional extra overlay element */
.services-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,25,47,.65);
  pointer-events: none;
  z-index: 0;
}

.services-hero .hero-content {
  position: relative; /* ensures text stays above overlay */
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 var(--padX);
}

.services-hero h1 {
  margin: 0 0 8px 0;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: white;
}

.services-hero p {
  margin: 0;
  font-size: clamp(14px, 2.2vw, 18px);
  opacity: .95;
  color: white;
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 50px 10%;
  background: var(--light);
}

.service-item {
  background: #f5f5f5;
  padding: 25px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  text-align: center;
}

.service-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-item h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.service-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.service-item:hover {
  background: var(--primary);
  color: var(--light);
}

.service-item:hover i {
  color: var(--light);
}

.service-item:hover p {
  color: var(--light);
}

/* CONTACT CTA */
.contact-cta {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 40px 20px;
}

.contact-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.contact-cta p {
  max-width: 600px;
  margin: 0 auto 20px;
}

.cta-link {
  background: var(--primary);
  color: var(--light);
  padding: 12px 25px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  transition: background 0.3s ease;
  border: white solid 1px;
}

.cta-link:hover {
  background: #c53e1d;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
  .services-hero h1 {
    font-size: 2rem;
  }
  .services-hero p {
    font-size: 1rem;
  }
  .services-grid {
    padding: 40px 5%;
  }
}
