/* Services grid as modern cards (no JS) */
:root{
  --accent: var(--bs-primary, #64a19d);
}

.services-section{
  padding: 5rem 0 4rem;
}

.services-title{
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
  font-size: clamp(1.75rem, 2.5vw + .75rem, 2.5rem);
  margin-bottom: .25rem;
  position: relative;
}

.service-card{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  background: rgba(255,255,255,.03);
  padding: 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.20);
}

.service-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.15);
}

.service-icon{
  width: 48px;
  height: 48px;
  color: var(--accent);
  opacity: .95;
  margin-bottom: .75rem;
}

.service-title{
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 .25rem;
}

.service-desc{
  color: rgba(255,255,255,.75);
  margin-bottom: .75rem;
  min-height: 3.5rem; /* keeps cards aligned when text length differs */
}

.service-link{
  display: inline-block;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.service-link:hover{
  color: #fff;
  border-bottom-color: var(--accent);
  transform: translateX(1px);
}

/* Accessibility: keyboard focus */
.service-link:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Small tweaks for tight screens */
@media (max-width: 575.98px){
  .service-card{ padding: 1.25rem; }
}

/* Bigger cards */
@media (min-width: 1200px){
  .services-section .container{
    max-width: 1500px;
  }
}

@media (min-width: 1400px){
  .services-section .container{
    max-width: min(1500px, 92vw);
  }
}
