/* Vivacity Homepage Services — equal-weight, inset-media service cards.
   Only this section is scoped; selection, links and admin settings are untouched. */
.vhsvc{
  --svc-ink:var(--viv-ink);
  --svc-accent:var(--viv-primary);
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:clamp(76px,7vw,112px) 0;
  background:linear-gradient(155deg,var(--viv-primary-soft) 0%,#fff 48%,var(--viv-primary-soft) 100%);
  color:var(--svc-ink);
}
.vhsvc::before,.vhsvc::after{content:"";position:absolute;z-index:-1;pointer-events:none}
.vhsvc::before{width:min(55vw,680px);height:480px;right:-230px;top:-250px;border:1px solid color-mix(in srgb,var(--viv-primary) 14%,transparent);border-radius:50%;box-shadow:0 0 0 45px color-mix(in srgb,var(--viv-primary) 2.8%,transparent),0 0 0 100px color-mix(in srgb,var(--viv-primary) 1.8%,transparent)}
.vhsvc::after{width:240px;height:240px;left:-120px;bottom:-140px;background:radial-gradient(circle,color-mix(in srgb,var(--viv-accent) 13%,transparent),transparent 72%)}
.vhsvc *{box-sizing:border-box}
.vhsvc__shell{width:min(1370px,calc(100% - 64px));margin-inline:auto}
/* One coherent, left-aligned introduction instead of split title/description. */
.vhsvc__header{display:block;max-width:850px;margin:0 0 42px;padding:5px 0 5px 25px;border-left:3px solid var(--viv-accent)}
.vhsvc__eyebrow{display:inline-flex;align-items:center;gap:12px;margin-bottom:14px;font-size:11px;letter-spacing:.17em;font-weight:800;color:var(--viv-primary)}
.vhsvc__eyebrow i{width:27px;height:2px;background:var(--viv-accent)}
.vhsvc__heading h2{max-width:660px;margin:0;font-size:clamp(32px,3vw,39px);line-height:1.2;letter-spacing:-.035em;color:var(--viv-primary-deep);font-weight:800;text-wrap:balance}
.vhsvc__description{margin:16px 0 0;max-width:690px;font-size:16px;line-height:1.75;color:var(--viv-slate)}

/* Uniform, clean cards instead of a wide featured tile and dark image overlays. */
.vhsvc__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;align-items:stretch}
.vhsvc__card,.vhsvc__card--featured{
  position:relative;isolation:isolate;grid-column:auto;min-width:0;min-height:0;
  overflow:hidden;border:1px solid var(--viv-primary-soft-2);border-radius:20px;
  background:#fff;box-shadow:0 3px 13px color-mix(in srgb,var(--viv-primary-deep) 2.5%,transparent);
  transition:border-color .35s ease,box-shadow .35s ease,transform .35s cubic-bezier(.22,.7,.2,1);
}
/* A soft animated wash enters from the bottom; content always stays readable. */
.vhsvc__card::before{
  content:"";position:absolute;z-index:0;inset:0;
  background:linear-gradient(145deg,#fff 25%,var(--viv-primary-soft-2) 100%);
  opacity:0;transform:translateY(35%);
  transition:opacity .4s ease,transform .45s cubic-bezier(.22,.7,.2,1);
  pointer-events:none;
}
.vhsvc__card::after{
  content:"";position:absolute;z-index:2;left:20px;right:20px;bottom:0;height:3px;
  background:linear-gradient(90deg,var(--viv-primary),color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white)),var(--viv-accent));
  transform:scaleX(0);transform-origin:left;
  transition:transform .48s cubic-bezier(.22,.7,.2,1);pointer-events:none;
}
.vhsvc__card:hover,.vhsvc__card:focus-within{transform:translateY(-4px);border-color:color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white));box-shadow:0 10px 26px color-mix(in srgb,var(--viv-primary-deep) 5.5%,transparent)}
.vhsvc__card:hover::before,.vhsvc__card:focus-within::before{opacity:1;transform:translateY(0)}
.vhsvc__card:hover::after,.vhsvc__card:focus-within::after{transform:scaleX(1)}
.vhsvc__card-link,.vhsvc__card--featured .vhsvc__card-link{
  position:relative;z-index:1;display:flex;flex-direction:column;
  min-height:100%;height:100%;padding:14px;overflow:hidden;
  color:var(--svc-ink);text-decoration:none;
}
/* Explicitly remove original full-bleed dark overlays in all states. */
.vhsvc__card-link::after,.vhsvc__card--featured .vhsvc__card-link::after{content:none;background:none}
.vhsvc__media{
  position:relative;inset:auto;display:grid;place-items:center;
  flex:none;width:100%;height:clamp(180px,15vw,215px);
  overflow:hidden;border-radius:12px;
  background:linear-gradient(135deg,var(--viv-primary-soft-2),var(--viv-primary-soft-2));color:var(--viv-primary);
}
.vhsvc__media::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 70%,color-mix(in srgb,var(--viv-primary-deep) 4.5%,transparent))}
.vhsvc__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.22,.7,.2,1)}
.vhsvc__media svg{position:relative;z-index:1;width:min(31%,112px);height:auto;transition:transform .45s ease}
.vhsvc__card:hover .vhsvc__media img,.vhsvc__card:focus-within .vhsvc__media img{transform:scale(1.045)}
.vhsvc__card:hover .vhsvc__media svg,.vhsvc__card:focus-within .vhsvc__media svg{transform:scale(1.07) rotate(-3deg)}
.vhsvc__card-copy,.vhsvc__card--featured .vhsvc__card-copy{
  position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;
  justify-content:flex-start;gap:11px;max-width:none;width:100%;min-height:0;
  flex:1 1 auto;padding:22px 10px 7px;
}
.vhsvc__category{
  display:inline-flex;align-items:center;min-height:20px;padding:0;
  background:transparent;border:0;border-radius:0;
  font-size:10px;line-height:1.5;letter-spacing:.15em;font-weight:800;color:var(--viv-primary);
}
.vhsvc__title,.vhsvc__card--featured .vhsvc__title{
  font-size:clamp(21px,1.8vw,25px);line-height:1.27;font-weight:700;letter-spacing:-.027em;
  overflow-wrap:anywhere;color:var(--viv-primary-deep);
}
.vhsvc__summary{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
  overflow:hidden;font-size:15px;line-height:1.68;color:var(--viv-slate);
}
/* CTA sits at the same bottom edge in every equal-height grid card. */
.vhsvc__action{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;min-height:52px;padding:7px 8px 7px 17px;margin-top:auto;
  border:1px solid color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white));border-radius:12px;
  background:var(--viv-primary-soft);font-size:13px;font-weight:800;color:var(--viv-primary);
  transition:background .3s ease,color .3s ease,border-color .3s ease;
}
.vhsvc__action-arrow{
  display:grid;place-items:center;width:36px;height:36px;flex:none;
  border:0;border-radius:9px;background:var(--viv-primary);color:#fff;
  transition:background .3s ease,color .3s ease,transform .3s ease;
}
.vhsvc__action-arrow svg{width:19px;height:19px}
.vhsvc__card:hover .vhsvc__action,.vhsvc__card:focus-within .vhsvc__action{
  background:var(--viv-primary-deep);color:#fff;border-color:var(--viv-primary-deep);
}
.vhsvc__card:hover .vhsvc__action-arrow,.vhsvc__card:focus-within .vhsvc__action-arrow{
  background:var(--viv-accent);color:var(--viv-primary-deep);transform:translateX(3px);
}
.vhsvc__footer{display:flex;justify-content:center;margin-top:38px}
.vhsvc__all{min-height:53px;display:inline-flex;justify-content:center;align-items:center;gap:16px;padding:13px 24px;border-radius:12px;background:var(--viv-primary-deep);color:#fff;text-decoration:none;font-size:14px;font-weight:800;transition:background .25s ease,transform .25s ease}
.vhsvc__all:hover{background:var(--viv-primary);color:#fff;transform:translateY(-2px)}
.vhsvc__all svg{width:20px;height:20px}
.vhsvc__all:focus-visible,.vhsvc__card-link:focus-visible{outline:3px solid var(--viv-accent);outline-offset:4px}
.vhsvc__empty{margin:0;padding:22px;background:#fff;border:1px dashed color-mix(in srgb,var(--viv-primary) 48%,var(--viv-white));border-radius:15px;color:var(--viv-slate)}
@media(max-width:1020px){.vhsvc__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vhsvc__media{height:205px}}
@media(max-width:720px){
  .vhsvc{padding:68px 0 75px}.vhsvc__shell{width:calc(100% - 32px)}
  .vhsvc__header{max-width:none;padding-left:18px;margin-bottom:30px}
  .vhsvc__description{max-width:620px}
  .vhsvc__grid{grid-template-columns:1fr;gap:17px}
  .vhsvc__media{height:clamp(190px,51vw,265px)}
  .vhsvc__footer{margin-top:25px}.vhsvc__all{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .vhsvc__card,.vhsvc__card::before,.vhsvc__card::after,.vhsvc__media img,
  .vhsvc__media svg,.vhsvc__action,.vhsvc__action-arrow,.vhsvc__all{transition:none!important}
}
