/* MIDPL Group overrides on top of the Arino theme (style.css). */

/* ---------- Logo ---------- */
.midpl-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-transform: none;
}
.midpl-logo:hover { color: #fff; }
.midpl-logo_mark {
  width: 46px;
  height: auto;
  max-height: none;
}
.midpl-logo_text {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.midpl-logo_text small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
  margin-top: 5px;
}
.cs-fooer .midpl-logo { margin-bottom: 25px; }

/* ---------- Header CTA ---------- */
.midpl-header_btn {
  display: inline-block;
  padding: 10px 22px;
  margin-right: 25px;
  border: 1px solid #FF4A17;
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.midpl-header_btn:hover { background: #FF4A17; color: #fff; }
@media (max-width: 575px) {
  .midpl-header_btn { display: none; }
}

/* ---------- Contact list (Font Awesome icons instead of inline SVG) ---------- */
.cs-contact_info.cs-style1 li > i {
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  text-align: center;
  font-size: 17px;
}
.cs-contact_info.cs-style1 a:hover { color: #FF4A17; }
.cs-social_btns i { font-size: 14px; color: #fff; }

/* ---------- Service tiles ---------- */
.midpl-service_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .midpl-service_grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .midpl-service_grid { grid-template-columns: 1fr; } }
.midpl-service_tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 35px;
  border-radius: 15px;
  background: linear-gradient(267deg, #1f1f1f 0%, #111 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(254, 254, 254, 0.7);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.midpl-service_tile::before {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #FF4A17;
  opacity: 0;
  filter: blur(80px);
  transition: opacity 0.35s ease;
}
.midpl-service_tile:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 74, 23, 0.6);
  color: rgba(254, 254, 254, 0.8);
}
.midpl-service_tile:hover::before { opacity: 0.35; }
.midpl-service_icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 74, 23, 0.12);
  color: #FF4A17;
  font-size: 26px;
  margin-bottom: 28px;
  transition: all 0.35s ease;
}
.midpl-service_tile:hover .midpl-service_icon { background: #FF4A17; color: #fff; }
.midpl-service_title {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 14px;
}
.midpl-service_tile p {
  margin-bottom: 25px;
  line-height: 1.7;
  flex: 1;
}
.midpl-service_more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.midpl-service_tile:hover .midpl-service_more { color: #FF4A17; }
.midpl-service_tile--cta {
  grid-column: span 2;
  background: linear-gradient(120deg, rgba(255, 74, 23, 0.25) 0%, #161616 70%);
  border-color: rgba(255, 74, 23, 0.4);
}
@media (max-width: 991px) { .midpl-service_tile--cta { grid-column: auto; } }

/* ---------- "What's included" checklist ---------- */
.midpl-includes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 767px) { .midpl-includes { grid-template-columns: 1fr; } }
.midpl-include {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 10px;
  background: #1f1f1f;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 17px;
}
.midpl-include i {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FF4A17;
  color: #fff;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Numbered process step ---------- */
.midpl-step {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 74, 23, 0.6);
  color: #FF4A17;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Why-choose cards ---------- */
.midpl-why {
  padding: 35px 30px;
  height: 100%;
  border-radius: 15px;
  background: #1f1f1f;
}
.midpl-why i {
  font-size: 30px;
  color: #FF4A17;
  margin-bottom: 22px;
}
.midpl-why h3 { font-size: 22px; margin-bottom: 12px; }
.midpl-why p { margin: 0; line-height: 1.7; }

/* ---------- Floating WhatsApp button ---------- */
.midpl-whatsapp {
  position: fixed;
  right: 25px;
  bottom: 90px;
  z-index: 50;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}
.midpl-whatsapp:hover { color: #fff; transform: scale(1.08); }

/* ---------- Mobile sticky Call / WhatsApp bar ---------- */
.midpl-mobile_bar { display: none; }
@media (max-width: 767px) {
  .midpl-whatsapp { display: none; }
  .midpl-mobile_bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
  }
  .midpl-mobile_bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
  }
  .midpl-mobile_bar a:hover { color: #fff; }
  .midpl-mobile_bar i { font-size: 18px; }
  .midpl-mobile_bar_call { background: #FF4A17; }
  .midpl-mobile_bar_wa { background: #25D366; }
  body { padding-bottom: 52px; }
  .cs-scrollup { bottom: 70px; }
}

/* ---------- Portfolio project cards ---------- */
.midpl-project {
  border-radius: 15px;
  overflow: hidden;
  background: #1f1f1f;
  height: 100%;
  transition: transform 0.35s ease;
}
.midpl-project:hover { transform: translateY(-6px); }
.midpl-project_img { aspect-ratio: 16 / 9; overflow: hidden; }
.midpl-project_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.midpl-project:hover .midpl-project_img img { transform: scale(1.05); }
.midpl-project_body { padding: 30px 32px 34px; }
.midpl-project_cat {
  color: #FF4A17;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.midpl-project_title { font-size: 26px; margin-bottom: 14px; }
.midpl-project_body p { line-height: 1.75; margin-bottom: 20px; }
.midpl-project_tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.midpl-project_tags li {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: #fff;
}
@media (max-width: 575px) {
  .midpl-project_body { padding: 24px 22px 26px; }
  .midpl-project_title { font-size: 22px; }
}

/* ---------- Legal / text pages ---------- */
.midpl-prose { max-width: 860px; margin: 0 auto; }
.midpl-prose h2 { font-size: 28px; margin: 40px 0 15px; }
.midpl-prose p, .midpl-prose li { line-height: 1.8; }
.midpl-prose ul { padding-left: 20px; }

/* ---------- Guided chatbot ---------- */
.mchat-launcher {
  position: fixed;
  right: 25px;
  bottom: 160px;
  z-index: 990;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #FF4A17;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 74, 23, 0.4);
  transition: transform 0.25s ease;
}
.mchat-launcher:hover { transform: scale(1.07); }
/* While the chat is open, hide the floating buttons it would cover. */
.mchat-lock .mchat-launcher, .mchat-lock .midpl-whatsapp, .mchat-lock .mchat-teaser, .mchat-lock .cs-scrollup { opacity: 0; visibility: hidden; }
.mchat-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #25D366;
  border: 2px solid #181818;
}
.mchat-teaser {
  position: fixed;
  right: 95px;
  bottom: 168px;
  z-index: 990;
  max-width: 240px;
  padding: 12px 16px;
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  color: #222;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
}
.mchat-teaser.show { opacity: 1; visibility: visible; transform: none; }
.mchat-box {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 1100; /* above the sticky site header (999) */
  width: 370px;
  height: min(600px, calc(100vh - 50px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.98);
  transform-origin: bottom right;
  transition: all 0.25s ease;
}
.mchat-box.open { opacity: 1; visibility: visible; transform: none; }
.mchat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mchat-avatar {
  width: 40px;
  height: 40px;
  padding: 7px;
  border-radius: 50%;
  background: #222;
}
.mchat-title { color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 16px; }
.mchat-sub { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.mchat-online {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  margin-right: 6px;
}
.mchat-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}
.mchat-close:hover { opacity: 1; }
.mchat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.mchat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  word-wrap: break-word;
}
.mchat-msg.bot { align-self: flex-start; background: #2a2a2a; color: #eee; border-bottom-left-radius: 4px; }
.mchat-msg.user { align-self: flex-end; background: #FF4A17; color: #fff; border-bottom-right-radius: 4px; }
.mchat-msg strong { color: #fff; }
.mchat-msg.typing { display: flex; gap: 4px; padding: 14px; }
.mchat-msg.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #888;
  animation: mchat-blink 1s infinite ease-in-out;
}
.mchat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.mchat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes mchat-blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }
.mchat-summary { margin-top: 8px; font-size: 13px; }
.mchat-summary div { padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mchat-summary span { display: inline-block; width: 72px; color: rgba(255, 255, 255, 0.5); }
.mchat-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mchat-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
.mchat-actions a:hover { color: #fff; opacity: 0.9; }
.mchat-actions .wa { background: #25D366; }
.mchat-actions .call { background: #FF4A17; }
.mchat-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  max-height: 45%;
  overflow-y: auto;
}
.mchat-opts:empty { display: none; }
.mchat-chip {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 74, 23, 0.7);
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mchat-chip:hover, .mchat-chip.primary { background: #FF4A17; border-color: #FF4A17; }
.mchat-input {
  display: none;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #111;
}
.mchat-input input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #1f1f1f;
  color: #fff;
  font-size: 15px;
  outline: none;
}
.mchat-input input:focus { border-color: #FF4A17; }
.mchat-input input.bad { border-color: #ff4d4d; animation: mchat-shake 0.3s; }
@keyframes mchat-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.mchat-input button {
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #FF4A17;
  color: #fff;
  cursor: pointer;
}
@media (max-width: 767px) {
  .mchat-launcher { right: 15px; bottom: 70px; width: 54px; height: 54px; font-size: 22px; }
  .mchat-teaser { right: 80px; bottom: 76px; }
  .cs-scrollup { display: none; }
  .mchat-box {
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: 0;
  }
  .mchat-lock, .mchat-lock body { overflow: hidden; }
  .mchat-msg { font-size: 15px; }
}

/* Contact form status message */
#cs-result { margin-top: 15px; }
