:root{
  --s2-navy:#082b4f;
  --s2-green:#0a8f5c;
  --s2-pale:#eef8f3;
  --s2-border:#dce6e6;
  --s2-text:#112b43;
}
.mserv2-page{background:#fff;color:var(--s2-text);font-family:inherit}
.mserv2-page *{box-sizing:border-box}
.mserv2-page a{text-decoration:none}
.mserv2-shell{width:min(1320px,calc(100% - 40px));margin-inline:auto}

.mserv2-hero{background:#fbfaf7}
.mserv2-hero-grid{display:grid;grid-template-columns:42% 58%;min-height:275px;align-items:stretch}
.mserv2-hero-copy{display:flex;flex-direction:column;justify-content:center;padding:26px 24px 20px 0}
.mserv2-hero-copy h1{margin:0;color:var(--s2-navy);font-size:48px;line-height:1.04;letter-spacing:-.04em;font-weight:800}
.mserv2-hero-copy>p{margin:14px 0 22px;font-size:16px}
.mserv2-trust-mini{display:flex;gap:34px;flex-wrap:wrap}
.mserv2-trust-mini>div{display:grid;grid-template-columns:38px 1fr;gap:9px;align-items:center}
.mserv2-trust-mini span{width:38px;height:38px;border:2px solid var(--s2-green);border-radius:50%;display:grid;place-items:center;color:var(--s2-green);font-weight:800}
.mserv2-trust-mini strong{font-size:11px;line-height:1.25}

.mserv2-hero-photo{overflow:hidden}
.mserv2-hero-photo img{width:100%;height:275px;object-fit:cover;object-position:center;display:block}

.mserv2-category-section{padding:20px 0 14px}
.mserv2-title{text-align:center}
.mserv2-title h2{margin:0;font-size:26px;color:var(--s2-navy);font-weight:800}
.mserv2-title p{margin:5px 0 0;font-size:13px}
.mserv2-categories{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;margin-top:16px}
.mserv2-categories button{
  min-height:98px;border:1px solid var(--s2-border);border-radius:10px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  color:var(--s2-text)!important;background:#fff;padding:10px;text-align:center;
}
.mserv2-categories button.active{background:#edf8f2;border-color:#0a8f5c;box-shadow:inset 0 -3px 0 #0a8f5c}
.mserv2-categories span{font-size:29px;color:#0a8f5c}
.mserv2-categories strong{font-size:11px;line-height:1.2}

.mserv2-service-section{padding:10px 0 16px}
.mserv2-service-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.mserv2-service-heading h2{margin:0;color:var(--s2-navy);font-size:21px}
.mserv2-service-heading a{color:#087e51!important;font-weight:800;font-size:12px}
.mserv2-service-heading span{font-size:16px}
.mserv2-card-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.mserv2-card{border:1px solid var(--s2-border);border-radius:10px;overflow:hidden;background:#fff;display:flex;flex-direction:column}
.mserv2-card-photo{height:118px;position:relative;overflow:hidden}
.mserv2-card-photo img{width:100%;height:100%;object-fit:cover;display:block}
.mserv2-card-body{padding:14px 14px 13px;display:flex;flex-direction:column;flex:1}
.mserv2-card h3{margin:0 0 7px;font-size:14px;color:var(--s2-navy)}
.mserv2-card p{margin:0 0 12px;font-size:11px;line-height:1.5}
.mserv2-price{margin-top:auto;font-size:18px;font-weight:800;color:var(--s2-navy)}
.mserv2-price small{font-size:10px;font-weight:600;margin-right:3px}
.mserv2-card-btn{
  margin-top:13px;border:1px solid #0a8f5c;border-radius:6px;padding:8px 10px;
  color:var(--s2-navy)!important;font-size:11px;font-weight:800;
  display:flex;justify-content:space-between;align-items:center
}
.mserv2-card-btn span{font-size:18px;color:#0a8f5c}

.mserv2-trust-band{padding:0 0 20px}
.mserv2-trust-grid{
  background:linear-gradient(90deg,#fbf7ee,#fff,#f8faf8);
  border-radius:12px;display:grid;grid-template-columns:repeat(4,1fr);padding:18px 20px
}
.mserv2-trust-grid article{display:grid;grid-template-columns:58px 1fr;gap:12px;align-items:center;padding:0 18px;border-right:1px solid #d9dfdd}
.mserv2-trust-grid article:last-child{border-right:0}
.mserv2-trust-grid article>span{font-size:37px;color:#0a8f5c}
.mserv2-trust-grid h3{margin:0 0 4px;font-size:12px}
.mserv2-trust-grid p{margin:0;font-size:10.5px;line-height:1.45}

@media(max-width:980px){
  .mserv2-hero-grid{grid-template-columns:45% 55%}
  .mserv2-hero-copy h1{font-size:42px}
  .mserv2-categories{grid-template-columns:repeat(4,1fr)}
  .mserv2-card-grid{grid-template-columns:repeat(3,1fr)}
  .mserv2-trust-grid{grid-template-columns:1fr 1fr;gap:18px 0}
  .mserv2-trust-grid article:nth-child(2){border-right:0}
}
@media(max-width:680px){
  .mserv2-shell{width:calc(100% - 24px)}
  .mserv2-hero-grid{grid-template-columns:1fr}
  .mserv2-hero-copy{padding:20px 0 14px;text-align:center}
  .mserv2-hero-copy h1{font-size:38px}
  .mserv2-trust-mini{justify-content:center;gap:14px}
  .mserv2-hero-photo img{height:180px}
  .mserv2-categories{grid-template-columns:repeat(2,1fr)}
  .mserv2-card-grid{grid-template-columns:1fr}
  .mserv2-card-photo{height:180px}
  .mserv2-service-heading{align-items:flex-start;gap:10px}
  .mserv2-trust-grid{grid-template-columns:1fr}
  .mserv2-trust-grid article{border-right:0;border-bottom:1px solid #d9dfdd;padding:12px 4px}
  .mserv2-trust-grid article:last-child{border-bottom:0}
}


/* v2.0.1 functional category tabs */
.mserv2-category-btn{
  appearance:none;
  -webkit-appearance:none;
  font-family:inherit;
  cursor:pointer;
}
.mserv2-category-btn:hover,
.mserv2-category-btn:focus-visible{
  border-color:#0a8f5c;
  outline:none;
  box-shadow:0 0 0 2px rgba(10,143,92,.10);
}
.mserv2-category-panel[hidden]{display:none!important}
.mserv2-category-panel.active{display:block}
.mserv2-card-grid-fewer{
  grid-template-columns:repeat(3,minmax(0,1fr));
  max-width:850px;
  margin-right:auto;
}

@media(max-width:980px){
  .mserv2-card-grid-fewer{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:680px){
  .mserv2-card-grid-fewer{grid-template-columns:1fr;max-width:none}
}


/* v2.0.2 category visual refinement — overrides generic Astra/theme button colors */
.mserv2-page .mserv2-categories .mserv2-category-btn{
  background:#ffffff!important;
  color:#0b2d4f!important;
  border:1px solid #d8e4e2!important;
  box-shadow:0 3px 10px rgba(9,42,61,.035)!important;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease!important;
}
.mserv2-page .mserv2-categories .mserv2-category-btn span{
  color:#0a9360!important;
}
.mserv2-page .mserv2-categories .mserv2-category-btn strong{
  color:#0b2d4f!important;
}
.mserv2-page .mserv2-categories .mserv2-category-btn:hover,
.mserv2-page .mserv2-categories .mserv2-category-btn:focus-visible{
  background:#f5fbf8!important;
  border-color:#63b495!important;
  color:#0b2d4f!important;
  transform:translateY(-1px);
  box-shadow:0 5px 14px rgba(9,42,61,.07)!important;
}
.mserv2-page .mserv2-categories .mserv2-category-btn.active{
  background:#eaf7f1!important;
  border:2px solid #0a9360!important;
  color:#0b2d4f!important;
  box-shadow:inset 0 -4px 0 #0a9360,0 4px 12px rgba(10,147,96,.08)!important;
}
.mserv2-page .mserv2-categories .mserv2-category-btn.active span{
  color:#078557!important;
}


/* v2.0.5 — viewport centering fix only.
   Astra can place a custom page template inside its own content container.
   Break this page out to the viewport so the existing .mserv2-shell auto margins
   center the exact same page content. No component sizing/layout rules changed. */
.mserv2-page{
  width:100vw;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
}
