/* ================= SERVICES EXPAND ================= */
.services-expand{
  width:100%;
  padding:30px 0 100px;
  background:#ffffff;
  overflow:hidden;
}

.services-expand-inner{
  width:100%;
  max-width:90%;
  margin:0 auto;
  display:flex;
  gap:24px;
}

/* ================= CARD BASE ================= */
.service-expand-card{
  flex:1;
  display:flex;
  background:#f6fbff;
  border-radius:26px;
  overflow:hidden;
  cursor:pointer;

  /* expansão suave */
  transition:
    flex 1.1s cubic-bezier(.22,.61,.36,1),
    opacity .7s ease,
    transform .7s cubic-bezier(.22,.61,.36,1);

  /* estado inicial (entrada) */
  opacity:0;
  transform:translateX(60px);
}

/* cards aparecem */
.services-expand.show-cards .service-expand-card{
  opacity:1;
  transform:translateX(0);
}

/* delay progressivo (impacto) */
.service-expand-card:nth-child(1){ transition-delay:.15s; }
.service-expand-card:nth-child(2){ transition-delay:.30s; }
.service-expand-card:nth-child(3){ transition-delay:.45s; }

/* CARD ATIVO */
.service-expand-card.active{
  flex:2.2;
}

/* ================= IMAGE ================= */
.service-expand-image{
  flex:1;
  position:relative;
  overflow:hidden;
}

.service-expand-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ================= OVERLAY HOVER ================= */
.service-expand-overlay{
  position:absolute;
  inset:0;
  background:rgba(9,45,105,.85);

  display:flex;
  align-items:center;
  justify-content:center;

  opacity:0;
  pointer-events:none;
  transition:opacity .5s ease;
}

/* mostra overlay apenas nos cards fechados */
.service-expand-card:not(.active):hover .service-expand-overlay{
  opacity:1;
  pointer-events:auto;
}

/* ================= BOTÃO + ================= */
.service-expand-plus{
  width:64px;
  height:64px;
  border-radius:50%;
  border:2px solid #ffffff;
  color:#ffffff;
  background:transparent;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:34px;
  font-weight:300;
  line-height:1;
}

/* ================= CONTENT ================= */
.service-expand-content{
  display:none;
  padding:40px;
  background:#ffffff;
  color:#092D69;

  opacity:0;
  transition:opacity .6s ease;
}

/* CONTENT ABERTO */
.service-expand-card.active .service-expand-content{
  display:block;
  width:45%;
  opacity:1;
}

/* ================= TEXT ================= */
.service-expand-content h3{
  font-size:26px;
  font-weight:900;
  margin-bottom:16px;
}

.service-expand-content p{
  font-size:16px;
  line-height:1.7;
  opacity:.9;
}

/* ================= RESPONSIVE ================= */
@media (max-width:900px){
  .services-expand-inner{
    flex-direction:column;
  }

  .service-expand-card,
  .service-expand-card.active{
    flex:unset;
    transform:translateY(30px);
  }

  .services-expand.show-cards .service-expand-card{
    transform:translateY(0);
  }

  .service-expand-card.active .service-expand-content{
    width:100%;
  }

  .service-expand-overlay{
    display:none;
  }
}
