/* ============================
   DC48 Kenya – Services Page
   static/main/css/our_services/our_services.css
   ============================ */

:root {
  /* approximate height of the ribbon / running band */
  --ticker-h: 72px;
}

/* Whole services page section:
   fills the viewport between navbar and ribbon,
   and carries the background image. */
.svc-page {
  position: relative;
  min-height: calc(100vh - var(--nav-h, 96px) - var(--ticker-h, 72px));
  color: #ffffff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
}

/* Full-page background for the Services page */
body.services-page {
  position: relative;
  min-height: 100vh;
  background-image: url("../../img/our_services/services.f23cb8d80901.svg");
  background-size: cover;          /* fill the whole page */
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;    /* optional: parallax feel on scroll */
}

/* Full-page dark overlay on top of the image, beneath all content */
body.services-page::before {
  content: "";
  position: fixed;
  inset: 0;

  /* soft dark tint – adjust alphas to taste */
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1)
  );

  pointer-events: none;
  z-index: -1;          /* sits above background, below all content */
}

/* Make inner content sit above the bg image */
.svc-hero,
.svc-grid-wrapper {
  position: relative;
  z-index: 1;
}

/* ----------------------------
   HERO (no background image)
   ---------------------------- */

.svc-hero {
  height: clamp(180px, 26vh, 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* solid + slight gradient so text pops over page bg */
  /* background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.92)
  ); */
  padding: 0 1.5rem;
}

.svc-hero-inner h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.svc-hero-inner p {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

/* ----------------------------
   GRID WRAPPER
   ---------------------------- */

.svc-grid-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 4vw 32px;
}

/* NO background image here anymore */

/* Cards grid: 3 per row on desktop */
.svc-grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

/* ----------------------------
   SERVICE CARD
   ---------------------------- */

.svc-card {
  background: #14161a;
  border-radius: 24px;
  padding: 24px 20px 28px;
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  border: 1px silver solid;

  box-shadow:
    -10px -10px 20px rgba(255, 255, 255, 0.02),
    16px 18px 40px rgba(0, 0, 0, 0.75);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.svc-card:hover {
  transform: translateY(-4px);
  background: #181b20;
  border: 1px #FED702 solid;
  box-shadow:
    -12px -12px 24px rgba(255, 255, 255, 0.02),
    20px 22px 50px rgba(0, 0, 0, 0.9);
}

.svc-icon {
  background: transparent;
}

.svc-icon img{
  width:100px;
  height: 100px;
  /* border-radius: 18px; */
  /* background: rgba(255, 99, 71, 0.08); */
  display: flex;
  align-items: center;
  justify-content: center;

}

.svc-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  text-align: center;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.svc-card h3:hover {
  color: #58BD93;
}

.svc-card p {
  font-size: 0.92rem;
  color: #b7bcc5;
  line-height: 1.6;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* ----------------------------
   RESPONSIVE
   ---------------------------- */

@media (max-width: 1024px) {
  .svc-grid {
    gap: 24px;
  }

  .svc-card {
    padding: 22px 18px 24px;
  }
}

@media (max-width: 900px) {
  .svc-hero {
    height: clamp(170px, 24vh, 230px);
  }

  .svc-grid-wrapper {
    padding: 32px 5vw 28px;
  }

  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .svc-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .svc-card {
    text-align: left;
  }
}
