/* Services & Departments */
.lp-dept-section {
  padding: 80px 0 90px;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(26, 122, 109, 0.08), transparent 55%),
    #f3f7f6;
}

.lp-dept-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.lp-dept-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a7a6d;
  margin-bottom: 0.65rem;
}

.lp-dept-head h2 {
  font-family: "Lexend", sans-serif;
  color: #0a3d3a;
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.lp-dept-head p {
  color: #4a5c59;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

.lp-dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.lp-dept-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dce8e6;
  box-shadow: 0 14px 36px rgba(10, 61, 58, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.lp-dept-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(10, 61, 58, 0.14);
}

.lp-dept-card .media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.lp-dept-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.lp-dept-card:hover .media img {
  transform: scale(1.08);
}

.lp-dept-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 61, 58, 0.55) 100%);
}

.lp-dept-card .tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  color: #0a3d3a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
}

.lp-dept-card .body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lp-dept-card h3 {
  font-family: "Lexend", sans-serif;
  font-size: 1.2rem;
  color: #0a3d3a;
  margin: 0 0 0.5rem;
}

.lp-dept-card p {
  color: #4a5c59;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.1rem;
  flex: 1;
}

.lp-dept-card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1a7a6d;
}

.lp-dept-card:hover .more {
  color: #0a3d3a;
}

.lp-dept-card .more span {
  transition: transform 0.25s ease;
}

.lp-dept-card:hover .more span {
  transform: translateX(4px);
}

.lp-dept-cta {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.lp-dept-cta .lp-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid #1a7a6d;
  border-radius: 10px;
  color: #0a3d3a;
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s ease;
}

.lp-dept-cta .lp-btn-outline:hover {
  background: #1a7a6d;
  color: #fff;
}

/* Colour accents on cards */
.lp-dept-card.accent-teal .tag { color: #1a7a6d; }
.lp-dept-card.accent-navy .tag { color: #2b5f8a; }
.lp-dept-card.accent-copper .tag { color: #b06a3a; }
.lp-dept-card.accent-forest .tag { color: #3d7a4a; }

.lp-dept-intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 2.5rem;
}

.lp-dept-intro-stats .stat {
  background: #fff;
  border: 1px solid #dce8e6;
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  text-align: center;
}

.lp-dept-intro-stats .stat strong {
  display: block;
  font-family: "Lexend", sans-serif;
  font-size: 1.6rem;
  color: #1a7a6d;
  margin-bottom: 0.2rem;
}

.lp-dept-intro-stats .stat span {
  color: #4a5c59;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .lp-dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .lp-dept-grid,
  .lp-dept-intro-stats {
    grid-template-columns: 1fr;
  }

  .lp-dept-card .media {
    height: 180px;
  }
}
