@import "variables.css";

.services-section {
  padding: 64px 24px;
  background: linear-gradient(
    160deg,
    var(--gray-light) 0%,
    var(--off-white) 60%,
    var(--white) 100%
  );
}

.services-section .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Card ── */
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 0;
  /* border: 1.5px solid var(--border); */
  box-shadow: 0 4px 20px rgba(26, 60, 110, 0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26, 60, 110, 0.16);
}

/* Image / icon area */
.service-img {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-img-icon {
  font-size: 72px;
  opacity: 0.18;
  color: var(--white);
}

/* Floating icon badge on image */
.service-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  border: 3px solid var(--white);
  z-index: 2;
}

/* Curved bottom edge on image */
/* .service-img::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -5%;
  width: 110%;
  height: 36px;
  background: var(--white);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  transform: scaleY(-1);
} */

/* Card body */
.service-body {
  padding-bottom: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
  padding-top: 10px;
}

/* Underline accent below title */
.service-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  margin: 8px auto 0;
}

.service-desc {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.65;
  margin: 0;
}

/* Colour variants */
.sv-blue .service-img {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}
.sv-blue .service-badge {
  background: var(--blue);
}
.sv-blue .service-title {
  color: var(--blue);
}
.sv-blue .service-title::after {
  background: var(--blue);
}

.sv-orange .service-img {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
}
.sv-orange .service-badge {
  background: var(--orange-light);
}
.sv-orange .service-title {
  color: var(--orange-light);
}
.sv-orange .service-title::after {
  background: var(--orange-light);
}

.sv-teal .service-img {
  background: linear-gradient(135deg, var(--teal), #2bb5c3);
}
.sv-teal .service-badge {
  background: var(--teal);
}
.sv-teal .service-title {
  color: var(--teal);
}
.sv-teal .service-title::after {
  background: var(--teal);
}

.sv-green .service-img {
  background: linear-gradient(135deg, #2e6b38, #4a9c58);
}
.sv-green .service-badge {
  background: #3a7d44;
}
.sv-green .service-title {
  color: #3a7d44;
}
.sv-green .service-title::after {
  background: #3a7d44;
}

.sv-purple .service-img {
  background: linear-gradient(135deg, #52297a, #8455b8);
}
.sv-purple .service-badge {
  background: #6b3fa0;
}
.sv-purple .service-title {
  color: #6b3fa0;
}
.sv-purple .service-title::after {
  background: #6b3fa0;
}
