/* V27 — centered service detail modal + reduced centered icon glow */

/* Remove the expansive gradient at top-right of each card.
   Keep only a tiny, uniform halo around the square icon. */
.services-feature-section .service-feature-card::before {
  background: linear-gradient(135deg, rgba(138,223,172,.035), transparent 46%) !important;
  opacity: .55 !important;
}
.services-feature-section .service-feature-card .service-feature-top::before {
  display:none !important;
}
.services-feature-section .service-feature-icon {
  position:relative;
  isolation:isolate;
  box-shadow:0 0 8px 2px rgba(138,223,172,.055), inset 0 1px 0 rgba(255,255,255,.06) !important;
}
.services-feature-section .service-feature-icon::before {
  inset:-5px !important;
  border:0 !important;
  border-radius:23px !important;
  background: radial-gradient(circle, rgba(138,223,172,.065) 0%, rgba(138,223,172,.022) 48%, transparent 72%);
  opacity:1 !important;
  z-index:-1;
  pointer-events:none;
}
.services-feature-section .service-feature-card:hover .service-feature-icon {
  box-shadow:0 0 11px 2px rgba(138,223,172,.09), inset 0 1px 0 rgba(255,255,255,.07) !important;
}
body.light-mode .services-feature-section .service-feature-card::before {
  background: linear-gradient(135deg, rgba(19,138,128,.025),transparent 46%) !important;
}
body.light-mode .services-feature-section .service-feature-icon {
  box-shadow:0 0 8px 2px rgba(19,138,128,.045), inset 0 1px 0 rgba(255,255,255,.2) !important;
}
body.light-mode .services-feature-section .service-feature-icon::before {
  background:radial-gradient(circle,rgba(19,138,128,.048),rgba(19,138,128,.014) 48%,transparent 72%);
}

/* Center the dialog, leaving a clear margin around it. Visibility delays on
   close so opacity and scale actually animate out instead of disappearing. */
.service-drawer {
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  padding:clamp(16px,3.8vw,44px);
  visibility:hidden;
  pointer-events:none;
  transition:visibility 0s linear .38s;
}
.service-drawer.is-open {
  visibility:visible;
  pointer-events:auto;
  transition:visibility 0s;
}
.service-drawer-backdrop {
  position:absolute;
  inset:0;
  background:rgba(4,13,15,.68);
  backdrop-filter:blur(0px);
  opacity:0;
  transition: opacity .38s ease,backdrop-filter .38s ease;
}
.service-drawer.is-open .service-drawer-backdrop {
  opacity:1;
  backdrop-filter:blur(6px);
}
.service-drawer-panel {
  position:relative;
  top:auto;
  right:auto;
  bottom:auto;
  width:min(820px,100%);
  max-height:min(82vh,840px);
  overflow-y:auto;
  overscroll-behavior:contain;
  border:1px solid rgba(138,223,172,.25);
  border-radius:26px;
  background:#121f20;
  box-shadow:0 35px 110px rgba(0,0,0,.5);
  opacity:0;
  transform:translateY(24px) scale(.965);
  transition:transform .38s cubic-bezier(.22,.8,.22,1),opacity .32s ease;
  scrollbar-width:thin;
  scrollbar-color:rgba(138,223,172,.34) transparent;
}
.service-drawer.is-open .service-drawer-panel {
  opacity:1;
  transform:translateY(0) scale(1);
}
.service-drawer-head {
  position:sticky;
  top:0;
  z-index:4;
  padding:18px clamp(24px,5vw,40px);
  background:#121f20;
  border-bottom:1px solid rgba(138,223,172,.12);
}
.service-drawer-brand {
  display:flex;
  align-items:center;
  height:52px;
}
.service-drawer-brand img {
  display:block;
  width:auto;
  height:100%;
  max-width:190px;
  object-fit:contain;
  object-position:left center;
}
.service-drawer-brand-light {display:none!important;}
body.light-mode .service-drawer-brand-dark {display:none!important;}
body.light-mode .service-drawer-brand-light {display:block!important;}
.service-drawer-badge {display:none!important;}
.service-drawer-content {padding:26px clamp(24px,5vw,42px) 45px;}
.service-drawer-symbol {margin-bottom:22px;}
.service-drawer-panel h2 {font-size:clamp(1.9rem,3.5vw,2.75rem);}
body.light-mode .service-drawer-panel {background:#f3faf6;border-color:rgba(19,138,128,.2);}
body.light-mode .service-drawer-head {background:#f3faf6;}
@media (max-width:650px) {
  .service-drawer {padding:14px;}
  .service-drawer-panel {max-height:calc(100dvh - 28px);border-radius:20px;}
  .service-drawer-head {padding:12px 20px;}
  .service-drawer-brand {height:42px;}
  .service-drawer-brand img {max-width:160px;}
  .service-drawer-content {padding:22px 22px 34px;}
}
@media(prefers-reduced-motion:reduce) {
  .service-drawer,.service-drawer-backdrop,.service-drawer-panel {transition:none!important;}
}
