/* =====================================================================
   URCARE Our Services page, 2026 redesign
   Aus Asia Online, October 2026
   Loaded only on the "Our Services (2026 Redesign)" template (services-v2.php).
   Shared hero, type and section styles live in urcare-about-v2.css (.ucx).
   ===================================================================== */

/* ---------- Filter ---------- */
.ucs-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.ucs .ucs-filter__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 18px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--x-line);
  font: 600 15px/1 var(--x-body); color: var(--x-ink);
  transition: background .25s var(--x-ease), color .25s var(--x-ease), border-color .25s var(--x-ease), box-shadow .25s var(--x-ease);
}
.ucs .ucs-filter__btn span {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: var(--x-sand); font-size: 12px; font-weight: 700; color: var(--x-muted);
}
.ucs .ucs-filter__btn:hover { border-color: rgba(184, 40, 120, .4); color: var(--x-berry); }
.ucs .ucs-filter__btn.is-active {
  background: linear-gradient(135deg, var(--x-berry), var(--x-plum)); border-color: transparent; color: #fff;
  box-shadow: 0 14px 26px -14px rgba(184, 40, 120, .85);
}
.ucs .ucs-filter__btn.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }
.ucs .ucs-filter__btn:focus-visible { outline: 3px solid var(--x-amber); outline-offset: 3px; }

/* ---------- Grid + cards ---------- */
.ucs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ucs-card {
  position: relative; display: flex; flex-direction: column; margin: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--x-line); border-radius: 24px;
  box-shadow: 0 1px 2px rgba(30, 26, 38, .05), 0 10px 30px -18px rgba(30, 26, 38, .18);
  transition: transform .35s var(--x-ease), box-shadow .35s var(--x-ease), border-color .35s var(--x-ease);
}
.ucs-card[hidden] { display: none; }
.ucs-card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 34px 60px -30px rgba(11, 59, 79, .4); }
.ucs-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--x-teal-lt); }
.ucs-card__media img {
  width: 100%; height: 100% !important; object-fit: cover;
  transition: transform .8s var(--x-ease);
}
.ucs-card:hover .ucs-card__media img { transform: scale(1.06); }
.ucs-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 106, 134, .35) 0%, rgba(7, 106, 134, 0) 40%);
}
.ucs-card__num {
  position: absolute; z-index: 1; left: 16px; top: 16px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 700 13px/1 var(--x-body); color: #fff;
}
.ucs-card__tag {
  position: absolute; z-index: 1; right: 16px; top: 18px;
  padding: 7px 12px; border-radius: 999px; background: #fff;
  font: 600 12px/1 var(--x-body); color: var(--x-teal-dk);
  box-shadow: 0 8px 18px -10px rgba(11, 59, 79, .5);
}
.ucs-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.ucs .ucs-card__title {
  font-family: var(--x-display) !important; font-weight: 700 !important; font-size: 21px !important;
  line-height: 1.22 !important; letter-spacing: -.015em !important; text-transform: none !important;
  margin: 0 0 10px !important; color: var(--x-ink) !important;
}
.ucs .ucs-card__title a { color: inherit !important; }
.ucs .ucs-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 24px; }
.ucs .ucs-card__title a:focus-visible { outline: none; }
.ucs .ucs-card__title a:focus-visible::after { outline: 3px solid var(--x-amber); outline-offset: -3px; }
.ucs .ucs-card__text { font-size: 15.5px; line-height: 1.65; margin-bottom: 22px; }
.ucs-card__cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 700; color: var(--x-ink);
}
.ucs-card__arrow {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--x-sand); color: var(--x-berry);
  transition: background .3s var(--x-ease), color .3s var(--x-ease), transform .3s var(--x-ease);
}
.ucs-card__arrow svg { width: 16px; height: 16px; }
.ucs-card:hover .ucs-card__cta { color: var(--x-berry); }
.ucs-card:hover .ucs-card__arrow { background: linear-gradient(135deg, var(--x-orange), var(--x-amber)); color: #fff; transform: rotate(45deg); }

/* ---------- Why ---------- */
.ucs-why { background: var(--x-sand); }
.ucs-why__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px clamp(40px, 6vw, 96px); align-items: center;
}
.ucs-why__head .ucx-lead { margin-bottom: 26px; }
.ucs-why__list { display: grid; gap: 16px; }
.ucs-pillar {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 26px 28px; border-radius: 22px; background: #fff; border: 1px solid var(--x-line);
  box-shadow: 0 1px 2px rgba(30, 26, 38, .05), 0 10px 30px -20px rgba(30, 26, 38, .2);
  transition: transform .3s var(--x-ease), box-shadow .3s var(--x-ease);
}
.ucs-pillar:hover { transform: translateX(6px); box-shadow: 0 24px 44px -28px rgba(11, 59, 79, .35); }
.ucs-pillar__icon { flex: none; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; }
.ucs-pillar__icon svg { width: 26px; height: 26px; }
.ucs-pillar__icon--teal { background: linear-gradient(135deg, var(--x-teal), var(--x-teal-dk)); }
.ucs-pillar__icon--berry { background: linear-gradient(135deg, var(--x-berry), var(--x-plum)); }
.ucs-pillar__icon--orange { background: linear-gradient(135deg, var(--x-amber), var(--x-orange)); }
.ucs .ucs-pillar h3 {
  font-family: var(--x-display) !important; font-weight: 700 !important; font-size: 21px !important;
  line-height: 1.2 !important; letter-spacing: -.015em !important; color: var(--x-ink) !important;
  margin: 2px 0 6px !important; text-transform: none !important;
}
.ucs .ucs-pillar p { font-size: 16px; line-height: 1.65; }

/* ---------- Help panel ---------- */
.ucs-help__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; align-items: center;
  padding: clamp(36px, 5vw, 64px); border-radius: 32px; color: #fff;
  background: linear-gradient(120deg, #076A86 0%, #0898B8 55%, #12A6C2 100%);
  box-shadow: 0 40px 80px -40px rgba(7, 106, 134, .7);
}
.ucs-help__panel::before {
  content: ""; position: absolute; z-index: -1; right: -140px; bottom: -220px; width: 460px; aspect-ratio: 1;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18);
}
.ucs-help__panel::after {
  content: ""; position: absolute; z-index: -1; left: -80px; top: -140px; width: 340px; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(248, 168, 40, .28) 0%, rgba(248, 168, 40, 0) 70%);
}
.ucs .ucs-help__panel .ucx-h2 { color: #fff !important; }
.ucs .ucs-help__panel .ucx-h2 em { background: none; color: #FFE2B8; -webkit-text-fill-color: #FFE2B8; }
.ucs .ucs-help__body p:not(.ucx-eyebrow) { color: rgba(255, 255, 255, .9); max-width: 52ch; }
.ucs-help__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.ucs-help__link {
  flex-basis: 100%; display: inline-flex; justify-content: flex-end; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: #fff !important; margin-top: 6px;
}
.ucs-help__link svg { width: 18px; height: 18px; transition: transform .25s var(--x-ease); }
.ucs-help__link:hover { color: #FFE2B8 !important; }
.ucs-help__link:hover svg { transform: translateX(4px); }

/* ---------- Reveal for cards ---------- */
.ucx--anim .ucs-card { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--x-ease), transform .7s var(--x-ease), box-shadow .35s var(--x-ease), border-color .35s var(--x-ease); }
.ucx--anim .ucs-card.is-in { opacity: 1; transform: none; }
.ucx--anim .ucs-card.is-in:hover { transform: translateY(-5px); }
.ucx--anim .ucs-grid > :nth-child(3n+2) { transition-delay: .08s; }
.ucx--anim .ucs-grid > :nth-child(3n+3) { transition-delay: .16s; }
.ucx--anim .ucs-why__list > :nth-child(2) { transition-delay: .1s; }
.ucx--anim .ucs-why__list > :nth-child(3) { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .ucs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .ucs-why__grid, .ucs-help__panel { grid-template-columns: minmax(0, 1fr); }
  .ucs-help__actions { justify-content: flex-start; }
  .ucs-help__link { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ucs-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ucs-filter { flex-wrap: nowrap; overflow-x: auto; margin-left: -15px; margin-right: -15px; padding: 2px 15px 8px; scrollbar-width: none; }
  .ucs-filter::-webkit-scrollbar { display: none; }
  .ucs .ucs-filter__btn { flex: none; font-size: 14px; }
  .ucs-card__body { padding: 20px 22px 22px; }
  .ucs-pillar { padding: 22px; gap: 16px; }
  .ucs-pillar__icon { width: 48px; height: 48px; border-radius: 14px; }
  .ucs-help__panel { border-radius: 24px; }
  .ucs-help__actions .uc-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ucs-card, .ucs-card__media img, .ucs-pillar, .ucs-card__arrow { transition: none !important; }
}
