/* ---------- Global Fonts ---------- */
body {
  font-family: 'Futura', 'Inter', 'Avenir', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Serif Pro', 'Playfair Display', serif;
}

/* ---------- Services Section ---------- */
.services-section {
  padding: 4rem 2rem;
  text-align: center;
}

.services-title {
  font-family: 'Source Serif Pro', 'Playfair Display', serif;
  font-size: 2rem;
  color: #003366;
  font-weight: normal;
  margin-bottom: 3rem;
}

.services-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}

/* ---------- Individual Service Card ---------- */
.service-card {
  position: relative;
  width: 350px;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  background-color: #000; /* fallback in case image fails to load */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in-out;
}

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

/* ---------- Image ---------- */
.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

/* ---------- Subtle dark overlay ---------- */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1;
  border-radius: 15px;
  transition: background-color 0.3s ease-in-out;
}

.service-card:hover::before {
  background-color: rgba(0, 0, 0, 0.35);
}

/* ---------- Text Overlay ---------- */
.text-overlay {
  font-family: 'Source Serif Pro', 'Playfair Display', serif;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  z-index: 2;
  width: 80%;
  line-height: 1.4;
}

.text-overlay p {
  font-family: 'Futura', 'Inter', sans-serif;
  font-size: 15px;
  margin-top: 10px;
  line-height: 1.5;
  color: white;
}

/* ---------- Button ---------- */
.service-button {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  font-size: 16px;
  color: white;
  background-color: #2C3E50;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  z-index: 3;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.service-button:hover {
  background-color:  #34495E;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 900px) {
  .services-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .service-card {
    width: 90%;
    height: 400px;
  }
}
