/* =========================================================
   VastkamTechnology — additions on top of the Nova theme
   Everything here reuses Nova's CSS variables (--bs-primary,
   --bs-secondary, --bs-heading-color, etc.) so it always
   follows whichever palette/light-dark mode Nova is set to.
   ========================================================= */

/* ---- Text logo (theme ships an image logo; site uses a text mark) ---- */
.vt-logo-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bs-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.vt-logo-text { font-weight: 700; font-size: 17px; color: var(--bs-heading-color); }
.vt-logo-text span { color: var(--bs-primary); }

/* ---- Mega menu for Services ---- */
.vt-mega-menu {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding: 24px !important; min-width: 640px; max-width: 720px;
}
@media (max-width: 991.98px) {
  .vt-mega-menu { min-width: 0; max-width: 100%; flex-direction: column; gap: 16px; }
}
.vt-mega-col { flex: 1 1 45%; min-width: 180px; list-style: none; }
.vt-mega-col h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--bs-primary); font-weight: 700; margin-bottom: 10px;
}
.vt-mega-col .dropdown-item { padding: 4px 0; white-space: normal; }

/* ---- Flash messages ---- */
.vt-flash {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
  z-index: 2000; padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.vt-flash-success { background: var(--bs-secondary); color: var(--bs-heading-color); }
.vt-flash-error { background: #f8d7da; color: #842029; }

/* ---- Theme toggle button ---- */
.vt-theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(var(--inverse-color-rgb), .15);
  background: transparent; color: var(--bs-body-color);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.vt-theme-toggle:hover { color: var(--bs-primary); border-color: var(--bs-primary); }

/* ---- Back to top ---- */
#back-to-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 1500;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--bs-primary); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--bs-primary-hover); }

/* ---- WhatsApp float ---- */
.vt-whatsapp-float {
  position: fixed; bottom: 90px; right: 24px; z-index: 1500;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  color: #fff; font-size: 26px; text-decoration: none;
  transition: transform .2s;
}
.vt-whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.vt-whatsapp-float .vt-tooltip {
  position: absolute; right: 65px; background: var(--bs-heading-color); color: #fff;
  padding: 6px 12px; border-radius: 8px; font-size: 13px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.vt-whatsapp-float:hover .vt-tooltip { opacity: 1; }

/* ---- Chatbot widget ---- */
.vt-chatbot-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 1500;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bs-primary); border: none; color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 20px rgba(var(--bs-primary-rgb), 0.45);
  transition: transform .2s;
}
.vt-chatbot-btn:hover { transform: scale(1.08); }
.vt-chatbot-window {
  position: fixed; bottom: 90px; right: 24px; z-index: 1600;
  width: 360px; max-width: calc(100vw - 32px); max-height: 500px; border-radius: 16px;
  background: var(--bs-body-bg); border: 1px solid rgba(var(--inverse-color-rgb), .1);
  box-shadow: 0 12px 40px rgba(0,0,0,.18); display: none; flex-direction: column; overflow: hidden;
}
.vt-chatbot-window.open { display: flex; }
.vt-chatbot-header {
  padding: 16px 20px; background: var(--bs-primary);
  display: flex; align-items: center; gap: 10px; color: #fff;
}
.vt-bot-avatar {
  width: 36px; height: 36px; background: rgba(255,255,255,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.vt-chatbot-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.vt-chatbot-messages { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-height: 200px; max-height: 300px; }
.vt-chat-msg { max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.vt-chat-msg.bot { background: var(--bs-secondary); color: var(--bs-heading-color); align-self: flex-start; border-bottom-left-radius: 4px; }
.vt-chat-msg.user { background: var(--bs-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.vt-chatbot-input { padding: 12px 16px; border-top: 1px solid rgba(var(--inverse-color-rgb), .1); display: flex; gap: 8px; }
.vt-chatbot-input input {
  flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(var(--inverse-color-rgb), .15);
  background: var(--bs-body-bg); color: var(--bs-body-color); font-size: 13px; outline: none;
}
.vt-chatbot-input button {
  padding: 10px 16px; border-radius: 10px; background: var(--bs-primary); color: #fff; border: none; cursor: pointer; font-size: 14px;
}

/* ---- Generic content page sections (used on inner pages Nova has no template for) ---- */
.vt-page-header { padding: 130px 0 60px; }
.vt-page-header .subtitle { color: var(--bs-primary); }
.vt-card { background: var(--bs-secondary-bg, var(--bs-body-bg)); border: 1px solid rgba(var(--inverse-color-rgb), .08); }

/* Cards used across marketplace/blog/industries/jobs listing pages, styled like Nova's .service-card */
.vt-tile {
  border-radius: 1rem; padding: 1.75rem; height: 100%;
  background: var(--bs-body-bg);
  border: 1px solid rgba(var(--inverse-color-rgb), .08);
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s;
}
.vt-tile:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(0,0,0,.08); }
.vt-tile img { border-radius: .75rem; }

.vt-badge { background: var(--bs-secondary); color: var(--bs-heading-color); border-radius: 999px; padding: .3rem .8rem; font-size: .75rem; font-weight: 600; }

/* ---- Homepage hero stat frame (replaces old gradient-glow hero mock) ---- */
.vt-stats-frame { background: var(--bs-secondary); }
.vt-stats-frame h3 { color: var(--bs-primary); }
.vt-stats-divider { border-left: 1px solid rgba(var(--inverse-color-rgb), .12); border-right: 1px solid rgba(var(--inverse-color-rgb), .12); }

/* ---- Testimonial avatar fallback (initial letter, no photo) ---- */
.vt-avatar-fallback {
  width: 48px; height: 48px; background: var(--bs-primary); color: #fff;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}

.vt-tile.p-0 { padding: 0 !important; }
