/* =============================================================
   Sodis Services Filter — Stylesheet
   Plugin Version: 1.0.0
   ============================================================= */

/* ── Filter bar ─────────────────────────────────────────────── */
.filter-btn {
  padding: .7px 16px;
  border: none;
  background: transparent;
  color: #b7d358;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.filter-btn:hover {
  border-bottom: 2px solid #00a4bd;
}

.filter-btn[aria-pressed="true"] {
  border-bottom: 2px solid #00a4bd;
  margin-bottom: 10px;
}

.filter-bar {
  padding-bottom: 30px;
  text-align: center;
}

/* ── Cards grid ─────────────────────────────────────────────── */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.card {
  border-radius: 8px;
  flex: 1 0 32%;
  width: 32%;
}

@media only screen and (max-width: 767px) {
  .card {
    flex: 1 0 100%;
    width: 100%;
  }
}

.card[hidden] {
  display: none;
}

/* ── Entry animation ────────────────────────────────────────── */
@keyframes sodis-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.card.is-showing {
  animation: sodis-card-in 700ms cubic-bezier(.4, 0, .2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .card.is-showing {
    animation: none;
  }
}

/* ── Category colours ───────────────────────────────────────── */
.common-services { background-color: var(--accent); }
.design          { background-color: #628888; }
.construction    { background-color: #E8B577; }
.facility        { background-color: #85ACCB; }

/* ── Filter button colours ──────────────────────────────────── */
.et_pb_code_inner .common-services-btn { color: var(--accent); }
.et_pb_code_inner .design-btn          { color: #628888; }
.et_pb_code_inner .construction-btn    { color: #E8B577; }
.facility-btn                          { color: #85ACCB; }

/* ── Card layout ────────────────────────────────────────────── */
.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 330px;
  padding: 50px 20px 20px 20px;
}

.card-img {
  margin-bottom: auto;
}

.card-container img {
  padding-bottom: 25px;
  transition: transform .3s ease-out;
}

.card:hover img {
  transform: scale(1.2);
}

.card-container p {
  padding-bottom: 0;
  line-height: 1em;
}
