/* ============================================================
   LUMI — L-QUBE AI Chatbot Widget
   ============================================================ */
:root {
  --lumi-green: #135B3A;
  --lumi-green-dark: #0a3d28;
  --lumi-green-light: #1e7a4f;
  --lumi-yellow: #ffd93d;
  --lumi-red: #ff6b6b;
  --lumi-bg: #ffffff;
  --lumi-text: #1a2e22;
  --lumi-muted: #6b7c73;
  --lumi-shadow: 0 20px 60px -15px rgba(19, 91, 58, 0.35);
}

/* ---------- Launcher (always-visible Lumi mascot) ---------- */
.lumi-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.45s ease, opacity 0.3s ease;
}
.lumi-launcher:hover { transform: translateY(-2px); }
.lumi-launcher.lumi-hidden { opacity: 0; pointer-events: none; transform: scale(0.85); }
.lumi-launcher.lumi-removed { display: none !important; }

@keyframes lumi-idle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* Small "×" to hide Lumi for good (persists) */
.lumi-dismiss {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--lumi-text);
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.lumi-launcher:hover .lumi-dismiss { opacity: 1; }
.lumi-dismiss:hover { background: #f3f4f6; }

/* "Ask Lumi" pill shown when user dismissed Lumi */
.lumi-restore {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99998;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(19,91,58,0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--lumi-green);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(19,91,58,0.35);
}
.lumi-restore.lumi-restore-visible { display: inline-flex; }
.lumi-restore i { font-size: 16px; }


.lumi-mascot-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 10px 20px rgba(19, 91, 58, 0.35));
}
.lumi-mascot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.lumi-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border: 3px solid #fff;
  border-radius: 50%;
  

}
@keyframes lumi-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  50%      { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

.lumi-bubble {
  background: #fff;
  color: var(--lumi-text);
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  white-space: nowrap;
  margin-bottom: 18px;
  position: relative;
  animation: lumi-bubble-in 0.5s ease-out;
}
.lumi-bubble small { font-weight: 400; color: var(--lumi-muted); font-size: 12px; }
.lumi-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 3px 3px 6px rgba(0,0,0,0.05);
}
@keyframes lumi-bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Wave animation disabled — keep Lumi perfectly still */
.lumi-launcher.lumi-wave .lumi-mascot { transform-origin: 60% 80%; }


/* ---------- Chat Panel ---------- */
.lumi-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 48px);
  background: var(--lumi-bg);
  border-radius: 24px;
  box-shadow: var(--lumi-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.lumi-panel.lumi-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lumi-header {
  background: linear-gradient(135deg, var(--lumi-green) 0%, var(--lumi-green-light) 100%);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.lumi-header::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.25), transparent 70%);
  border-radius: 50%;
}
.lumi-header-info { display: flex; align-items: center; gap: 12px; position: relative; }
.lumi-avatar {
  width: 44px; height: 44px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  object-fit: contain;
}
.lumi-name {
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lumi-status {
  font-size: 11px;
  color: #4ade80;
  font-weight: 600;
}
.lumi-sub { font-size: 12px; opacity: 0.85; }
.lumi-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: relative;
}
.lumi-close:hover { background: rgba(255,255,255,0.3); }

.lumi-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  background: linear-gradient(180deg, #f8fbf9 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lumi-messages::-webkit-scrollbar { width: 6px; }
.lumi-messages::-webkit-scrollbar-thumb { background: #d1ddd6; border-radius: 3px; }

.lumi-msg {
  display: flex;
  gap: 8px;
  max-width: 88%;
  animation: lumi-msg-in 0.3s ease-out;
}
@keyframes lumi-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lumi-msg-bot { align-self: flex-start; }
.lumi-msg-user { align-self: flex-end; }
.lumi-msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
  object-fit: contain;
  border: 1px solid #e5ede9;
}
.lumi-bubble-msg {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  word-wrap: break-word;
}
.lumi-msg-bot .lumi-bubble-msg {
  background: #fff;
  color: var(--lumi-text);
  border: 1px solid #e8efea;
  border-bottom-left-radius: 4px;
}
.lumi-msg-user .lumi-bubble-msg {
  background: linear-gradient(135deg, var(--lumi-green) 0%, var(--lumi-green-light) 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.lumi-bubble-msg a { color: var(--lumi-green); font-weight: 600; }
.lumi-bubble-msg code { background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
.lumi-bubble-msg ul { margin: 6px 0 0 18px; padding: 0; }
.lumi-bubble-msg li { margin: 2px 0; }

.lumi-dot-typing {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--lumi-green);
  border-radius: 50%;
  margin: 0 2px;
  animation: lumi-bounce 1.3s infinite;
}
.lumi-dot-typing:nth-child(2) { animation-delay: 0.15s; }
.lumi-dot-typing:nth-child(3) { animation-delay: 0.3s; }
@keyframes lumi-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

.lumi-suggestions {
  padding: 0 16px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lumi-chip {
  background: #fff;
  border: 1px solid #d4e0da;
  color: var(--lumi-green);
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.lumi-chip:hover {
  background: var(--lumi-green);
  color: #fff;
  border-color: var(--lumi-green);
  transform: translateY(-1px);
}

.lumi-form {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid #ecf2ee;
  background: #fff;
}
.lumi-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #e0e8e3;
  border-radius: 24px;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.lumi-form input:focus {
  border-color: var(--lumi-green);
  box-shadow: 0 0 0 3px rgba(19, 91, 58, 0.1);
}
.lumi-form button {
  background: linear-gradient(135deg, var(--lumi-green) 0%, var(--lumi-green-light) 100%);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.lumi-form button:hover {
  transform: scale(1.08) rotate(-8deg);
  box-shadow: 0 6px 16px rgba(19, 91, 58, 0.35);
}

@media (max-width: 480px) {
  .lumi-panel { width: calc(100vw - 16px); height: calc(100vh - 24px); bottom: 12px; right: 8px; border-radius: 20px; }
  .lumi-launcher { bottom: 16px; right: 16px; }
  .lumi-mascot-wrap { width: 78px; height: 78px; }
  .lumi-bubble { font-size: 13px; }
}

/* ============================================================
   PREMIUM POLISH — Hero + Services subtle overrides
   (Layered on top of existing styles; non-destructive)
   ============================================================ */
.hero {
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(19, 91, 58, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(30, 122, 79, 0.06), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-container { position: relative; z-index: 1; }

.hero-title {
  letter-spacing: -0.02em !important;
  line-height: 1.05 !important;
}
.hero-tagline {
  background: linear-gradient(120deg, #135B3A 0%, #1e7a4f 50%, #135B3A 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lumi-shimmer 6s linear infinite;
  font-weight: 700 !important;
}
@keyframes lumi-shimmer {
  to { background-position: 200% center; }
}

.service-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s !important;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lumi-green), var(--lumi-yellow), var(--lumi-green), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.service-card:hover::before { transform: translateX(0); }
.service-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 25px 50px -15px rgba(19, 91, 58, 0.25) !important;
}
.service-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.service-card:hover .service-icon {
  transform: scale(1.15) rotate(-6deg) !important;
}
