/* ============================================================
   Services page - custom styles
   ============================================================ */

/* ---------- Hero ---------- */
.svc-hero {
  position: relative;
  overflow: hidden;
  background-image: url("../images/healthcaredaw.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.svc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 26, 44, 0.86) 0%, rgba(10, 38, 64, 0.58) 42%, rgba(11, 50, 107, 0.26) 72%, rgba(20, 80, 120, 0.08) 100%),
    radial-gradient(680px 420px at 88% 8%, rgba(56, 158, 60, 0.16), transparent 62%);
}

.svc-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 8px 0;
}

.svc-hero-inner .grad {
  background: linear-gradient(118deg, #ffffff 8%, #CFE8FF 45%, #9BE7DD 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--white);
}

.svc-hero-inner p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
  max-width: 620px;
}

.svc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.svc-hero .crumbs {
  color: rgba(255, 255, 255, 0.72);
}

.svc-hero-btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.svc-hero-btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ---------- Intro split ---------- */
.svc-split h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.55rem);
  line-height: 1.16;
  margin-bottom: 18px;
}

.svc-split h2 .grad {
  background: linear-gradient(120deg, var(--teal) 10%, var(--teal-dark) 55%, var(--green-dark) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--teal);
}

.svc-split p {
  color: var(--muted);
  margin-bottom: 16px;
}

.svc-split .check-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px 14px 48px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  font-weight: 600;
  color: var(--navy);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.svc-split .check-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

.svc-split .check-list li::before {
  left: 12px;
  top: 12px;
}

.svc-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  background: var(--teal-mist);
}

.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.4;
  transition: transform 0.55s ease;
}

.svc-media:hover img {
  transform: scale(1.04);
}

.svc-media-tag {
  position: absolute;
  bottom: 22px;
  left: 20px;
  font-family: var(--font-hand);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  background: linear-gradient(120deg, var(--teal), var(--teal-dark));
  padding: 12px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 2;
}

/* ---------- Service cards ---------- */
.svc-card {
  position: relative;
  overflow: hidden;
  text-align: left;
}

.svc-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--teal), var(--green));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.svc-card:hover::before {
  opacity: 1;
}

.svc-icon {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--teal-mist), rgba(78, 186, 40, 0.12));
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(20, 80, 168, 0.08);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-icon svg {
  width: 30px;
  height: 30px;
  transition: transform 0.35s ease;
}

.svc-card:hover .svc-icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: var(--white);
  transform: translateY(-3px) scale(1.05) rotate(-4deg);
  box-shadow: 0 12px 26px rgba(20, 80, 168, 0.32);
}

.svc-card:hover .svc-icon svg {
  transform: scale(1.08);
}

.svc-card p {
  margin-bottom: 0;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.svc-tags li {
  list-style: none;
  background: var(--teal-mist);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

/* ---------- Related links ---------- */
.svc-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.svc-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  color: var(--navy);
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.svc-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.svc-link span:first-child {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--teal-mist);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.svc-link span:first-child svg {
  width: 24px;
  height: 24px;
}

.svc-link:hover span:first-child {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
}

.svc-link small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 3px;
}

.svc-link .arrow {
  margin-left: auto;
  color: var(--teal);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .svc-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .svc-media-tag {
    bottom: 14px;
    left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-media:hover img,
  .svc-card,
  .svc-icon,
  .svc-icon svg {
    transition: none;
  }
}
