/* Os cards mantêm a mesma altura com o painel de atividades aberto. */
.affectus .service-grid-enhanced{
  grid-auto-rows:1fr;
  align-items:stretch;
  gap:clamp(12px,1.65vw,24px);
}
.affectus .service-grid-enhanced .service-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-block-size:clamp(246px,22vw,322px);
  padding:clamp(24px,3.15vw,44px);
  border:1px solid #d3c9b8;
  border-radius:5px;
  background:linear-gradient(125deg,#fcfaf5,#f5f1e8 79%,#ece3d1);
  box-shadow:0 8px 20px #17263d09;
  isolation:isolate;
}
.affectus .service-grid-enhanced .service-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  z-index:-1;
  width:66px;
  height:3px;
  background:var(--accent);
  transition:width .35s ease;
}
.affectus .service-grid-enhanced .service-card::after{
  content:"";
  position:absolute;
  z-index:-1;
  right:-70px;
  top:-105px;
  width:165px;
  height:185px;
  transform:skew(-28deg);
  border-left:1px solid #b5843950;
  border-bottom:1px solid #b5843950;
  box-shadow:inset 12px -12px 0 #dfbb7917;
  pointer-events:none;
}
.affectus .service-grid-enhanced .service-card:hover,
.affectus .service-grid-enhanced .service-card:focus-within{
  transform:none;
  border-color:#a47d45;
  box-shadow:0 13px 26px #17263d15;
}
.service-grid-enhanced .service-card:hover::before,
.service-grid-enhanced .service-card:focus-within::before{width:116px}
.service-grid-enhanced .service-card h3,.service-grid-enhanced .service-card p{overflow-wrap:anywhere}
.service-grid-enhanced .service-card h3{font-size:clamp(1.45rem,2.25vw,2.05rem);margin-bottom:12px}
.service-grid-enhanced .service-card p{max-width:65ch;margin-bottom:24px}
.service-card-trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  align-self:stretch;
  gap:14px;
  min-height:49px;
  margin-top:auto;
  padding:10px 0 0;
  border:0;
  border-top:1px solid #c8bba7;
  background:transparent;
  color:#6e4b1f;
  font-size:.94rem;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}
.service-card-trigger::after{
  content:"";
  flex:0 0 auto;
  width:34px;
  height:34px;
  color:#89602b;
  border:1px solid #a880474d;
  border-radius:4px;
  background:linear-gradient(currentColor,currentColor) center/12px 1px no-repeat,
    linear-gradient(currentColor,currentColor) center/1px 12px no-repeat,#dfbb7938;
  transition:color .2s,background-color .2s,border-color .2s;
}
.service-card-trigger:hover::after,.service-card-trigger:focus-visible::after{
  background-color:var(--dark);
  color:var(--accent);
  border-color:var(--dark);
}
.service-card-trigger:focus-visible,.service-drawer-close:focus-visible{
  outline:2px solid #835c26;
  outline-offset:4px;
}

html:has(.service-drawer[open]){overflow:hidden}
.service-drawer{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  box-sizing:border-box;
  margin:0;
  padding:0;
  border:0;
  overflow:hidden;
  background:transparent;
  color:var(--ink);
}
.service-drawer[open]{display:grid;justify-items:end;align-items:stretch}
.service-drawer::backdrop{background:transparent}
.service-drawer-shade{
  position:absolute;
  inset:0;
  background:#08142699;
  backdrop-filter:blur(4px);
}
.service-drawer-sheet{
  position:relative;
  z-index:1;
  width:min(590px,100%);
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  background:#fcfaf5;
  box-shadow:-16px 0 54px #08142644;
  border-inline-start:1px solid #c6aa76;
}
.service-drawer-header{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:16px clamp(23px,6vw,49px);
  background:#fcfaf5;
  border-bottom:1px solid #d6d3cb;
}
.service-drawer-close{
  min-height:44px;
  display:flex;
  gap:8px;
  align-items:center;
  padding:8px 13px;
  border:1px solid #bba889;
  border-radius:4px;
  color:var(--ink);
  background:transparent;
  font-size:.93rem;
  font-weight:700;
  cursor:pointer;
}
.service-drawer-close:hover{background:#f0e6d4}
.service-drawer-close span{font-size:1.28rem;line-height:1;color:#775222}
.service-drawer-content{padding:clamp(27px,6vw,52px) clamp(23px,6vw,49px) max(30px,env(safe-area-inset-bottom))}
.service-drawer-content h2{
  max-width:16ch;
  font-size:clamp(1.85rem,4.5vw,3.1rem);
  letter-spacing:-.055em;
  line-height:1.06;
  overflow-wrap:anywhere;
}
.service-drawer-list{
  margin:25px 0 0;
  padding:0;
  color:var(--body);
  list-style:none;
  border-top:1px solid #d3c9b8;
  line-height:1.48;
}
.service-drawer-list li{
  position:relative;
  padding:15px 0 15px 21px;
  border-bottom:1px solid #e0d8c9;
  overflow-wrap:anywhere;
}
.service-drawer-list li::before{
  position:absolute;
  content:"";
  top:1.28em;
  left:1px;
  width:6px;
  height:6px;
  background:#a77e43;
  transform:rotate(45deg);
}
@media(max-width:650px){
  .affectus .service-grid-enhanced{gap:14px}
  .affectus .service-grid-enhanced .service-card{min-block-size:238px}
  .service-drawer[open]{align-items:end}
  .service-drawer-sheet{
    width:100%;
    max-height:86vh;
    max-height:86dvh;
    border:1px solid #c6aa76;
    border-bottom:0;
    border-radius:14px 14px 0 0;
    box-shadow:0 -14px 48px #08142648;
  }
  .service-drawer-header{padding-block:11px}
  .service-drawer-content{padding-top:24px}
}
