/* ═══════════════════════════════════════
   GK Malik & Associates — Custom Styles
   ═══════════════════════════════════════ */

/* ── TOP BAR ── */
#gkm-topbar {
  background: #0F1C35;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 0;
  position: relative;
  z-index: 1000;
}
.gkm-topbar-inner {
  max-width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gkm-topbar-left, .gkm-topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
#gkm-topbar a, #gkm-topbar span {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
#gkm-topbar a:hover { color: #2D7A4F; }
#gkm-topbar i { font-size: 11px; color: #2D7A4F; }
.gkm-topbar-addr { display: none; }
@media (min-width: 992px) { .gkm-topbar-addr { display: flex; } }

/* Logo fix */
.header-logo img {
  height: 40px !important;
  width: auto !important;
  max-width: 220px !important;
}

/* ── WHATSAPP BUTTON ── */

/* ── GKM AI FAB BUTTON ── */
#gkm-ai-fab {
  position: fixed;
  bottom: 24px;
  right: 22px;
  z-index: 9001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #2D7A4F, #4A9C3F);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(45,122,79,.5);
  transition: all .3s ease;
}
#gkm-ai-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(45,122,79,.6); }
#gkm-ai-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }
#gkm-ai-fab i { font-size: 16px; }

/* ── AI OVERLAY ── */
#gkm-ai-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9002;
  backdrop-filter: blur(2px);
}
#gkm-ai-overlay.open { display: block; }

/* ── AI POPUP ── */
#gkm-ai-popup {
  position: fixed;
  bottom: 90px;
  right: 22px;
  width: 360px;
  max-height: 540px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(15,28,53,.25);
  z-index: 9003;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  pointer-events: none;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
#gkm-ai-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
@media (max-width: 480px) {
  #gkm-ai-popup { width: calc(100vw - 20px); right: 10px; bottom: 80px; }
}

/* AI Header */
#gkm-ai-header {
  background: linear-gradient(135deg, #0F1C35, #1a3a28);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
#gkm-ai-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
#gkm-ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
#gkm-ai-title { font-size: 14px; font-weight: 700; color: #fff; font-family: 'Poppins', sans-serif; }
#gkm-ai-status { font-size: 11px; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
#gkm-ai-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,.8);
  animation: gkm-pulse 2s ease-in-out infinite;
}
@keyframes gkm-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
#gkm-ai-close {
  background: rgba(255,255,255,.12);
  border: none;
  color: rgba(255,255,255,.7);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background .2s;
}
#gkm-ai-close:hover { background: rgba(255,255,255,.22); color: #fff; }

/* AI Messages */
#gkm-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafb;
}
#gkm-ai-messages::-webkit-scrollbar { width: 4px; }
#gkm-ai-messages::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

.gkm-ai-msg { display: flex; }
.gkm-ai-msg-user { justify-content: flex-end; }
.gkm-ai-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  font-family: 'Poppins', sans-serif;
}
.gkm-ai-msg-bot .gkm-ai-bubble {
  background: #fff;
  color: #1f2937;
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.gkm-ai-msg-user .gkm-ai-bubble {
  background: linear-gradient(135deg, #2D7A4F, #4A9C3F);
  color: #fff;
  border-radius: 16px 4px 16px 16px;
}

/* Typing dots */
.gkm-ai-typing { display: flex; gap: 4px; align-items: center; padding: 12px 16px !important; }
.gkm-ai-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #9ca3af;
  animation: gkm-bounce 1.4s ease-in-out infinite;
}
.gkm-ai-typing span:nth-child(2) { animation-delay: .2s; }
.gkm-ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes gkm-bounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-7px)} }

/* Quick chips */
#gkm-ai-chips {
  padding: 8px 14px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #f8fafb;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}
#gkm-ai-chips button {
  background: rgba(45,122,79,.09);
  border: 1px solid rgba(45,122,79,.2);
  color: #2D7A4F;
  border-radius: 50px;
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all .2s;
}
#gkm-ai-chips button:hover { background: #2D7A4F; color: #fff; }

/* Input row */
#gkm-ai-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}
#gkm-ai-input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  color: #1f2937;
  transition: border-color .2s;
}
#gkm-ai-input:focus { border-color: #2D7A4F; }
#gkm-ai-send {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2D7A4F, #4A9C3F);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(45,122,79,.35);
  transition: transform .2s;
  flex-shrink: 0;
}
#gkm-ai-send:hover { transform: scale(1.08); }

/* ── FOOTER — GKM Custom ── */
footer.footer-custom-gkm {
  background: #0a1628 !important;
}
footer.footer-custom-gkm .footer-top {
  padding: 56px 0 40px;
}
footer.footer-custom-gkm .footer-col-brand p {
  color: rgba(255,255,255,.6);
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}
footer.footer-custom-gkm h5 {
  color: #2D7A4F;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
footer.footer-custom-gkm ul { list-style: none; padding: 0; margin: 0; }
footer.footer-custom-gkm ul li { margin-bottom: 9px; }
footer.footer-custom-gkm ul a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .2s;
}
footer.footer-custom-gkm ul a:hover { color: #2D7A4F; }
footer.footer-custom-gkm .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.6);
  font-size: 13.5px;
}
footer.footer-custom-gkm .footer-contact-item i {
  color: #2D7A4F;
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 13px;
}
footer.footer-custom-gkm .footer-contact-item a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
footer.footer-custom-gkm .footer-contact-item a:hover { color: #2D7A4F; }
footer.footer-custom-gkm .footer-social {
  display: flex; gap: 10px; margin-top: 8px;
}
footer.footer-custom-gkm .footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
}
footer.footer-custom-gkm .footer-social a:hover {
  background: #2D7A4F;
  border-color: #2D7A4F;
  color: #fff;
}
footer.footer-custom-gkm .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: 12.5px;
}

/* ════════════════════════════════════════
   HEADER — compact spacing + clean sticky
   Porto's own sticky is disabled (stickyEnabled:false).
   We implement a simple, reliable sticky: the topbar
   and nav move together as one unit and pin to the top.
   ════════════════════════════════════════ */
/* Compact nav row in all states */
#header .header-body .row.py-3 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  min-height: 0 !important;
}
#header .header-body {
  min-height: 0 !important;
  height: auto !important;
  border-top: 0 !important;
  background: #fff;
}
#header[style*="height"] { height: auto !important; }
.header-logo img { margin: 0; }

/* Topbar */
#gkm-topbar { padding: 5px 0; position: relative; z-index: 1; }

/* The sticky wrapper holds topbar + header and pins to top */
body.gkm-sticky-on #gkm-sticky-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 2px 18px rgba(15,28,53,.10);
  animation: gkmSlideDown .28s ease;
}
@keyframes gkmSlideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
/* Spacer prevents the page from jumping when wrap goes fixed */
#gkm-sticky-spacer { display: none; }
body.gkm-sticky-on #gkm-sticky-spacer { display: block; }
