/* ===== eBiz Hub — Visual Enhancements v1 ===== */

/* ── HERO: Split layout with phone mockup ── */
.hero .container { display: flex; align-items: center; gap: 48px; }
.hero-content { flex: 1; }
.hero-visual { flex: 0 0 320px; position: relative; z-index: 1; }

/* Phone mockup */
.phone-mockup {
  width: 280px; margin: 0 auto;
  background: #fff; border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.1);
  overflow: hidden; position: relative;
  animation: phoneFloat 4s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.phone-notch {
  height: 28px; background: #1A2332;
  display: flex; align-items: center; justify-content: center;
}
.phone-notch-pill { width: 80px; height: 5px; background: #333; border-radius: 3px; }
.phone-wa-header {
  background: #075E54; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.phone-wa-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--teal-light, #E3EFF6);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--teal, #1E638D);
}
.phone-wa-name { color: #fff; font-size: 13px; font-weight: 600; }
.phone-wa-status { color: rgba(255,255,255,0.6); font-size: 10px; }
.phone-wa-body {
  background: #ECE5DD; padding: 12px 10px; min-height: 220px;
  display: flex; flex-direction: column; gap: 6px;
}
.phone-msg {
  max-width: 85%; padding: 6px 10px; border-radius: 8px;
  font-size: 11px; line-height: 1.5; position: relative;
  animation: msgPop 0.4s ease both;
}
.phone-msg:nth-child(1) { animation-delay: 0.5s; }
.phone-msg:nth-child(2) { animation-delay: 1.2s; }
.phone-msg:nth-child(3) { animation-delay: 2s; }
.phone-msg:nth-child(4) { animation-delay: 2.8s; }
@keyframes msgPop { from { opacity: 0; transform: scale(0.9) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.phone-msg.in {
  align-self: flex-start; background: #fff; color: #111;
  border-bottom-left-radius: 2px;
}
.phone-msg.out {
  align-self: flex-end; background: #DCF8C6; color: #111;
  border-bottom-right-radius: 2px;
}
.phone-msg .time { font-size: 9px; color: #999; float: right; margin: 4px 0 0 12px; }
.phone-wa-input {
  background: #F0F0F0; padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
}
.phone-wa-input span {
  flex: 1; background: #fff; border-radius: 18px;
  padding: 6px 12px; font-size: 11px; color: #999;
}

/* ── HERO: Glow effect behind phone ── */
.hero-visual::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,99,141,0.25) 0%, transparent 70%);
  pointer-events: none; z-index: -1;
}

/* ── HERO STATS: Enhanced visual ── */
.hero-stats > div {
  position: relative; padding-left: 16px;
}
.hero-stats > div::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 2px; background: var(--teal, #1E638D); opacity: 0.5;
}

/* ── TRUST BAR: Visual pill badges ── */
.trust-bar {
  display: flex !important; justify-content: center; gap: 12px !important; flex-wrap: wrap;
}
.trust-item {
  background: var(--white, #fff) !important;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 99px !important; padding: 8px 18px 8px 12px !important;
  font-size: 13px !important; font-weight: 500 !important;
  color: var(--text, #111827) !important;
  transition: box-shadow 0.2s, transform 0.2s;
}
.trust-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); transform: translateY(-1px); }
.trust-item svg {
  width: 16px !important; height: 16px !important;
  background: var(--teal-light, #E3EFF6); border-radius: 50%; padding: 3px;
  stroke: var(--teal, #1E638D) !important;
  box-sizing: content-box;
}

/* ── EMPLOYEE CARDS: Colored accent strips ── */
.employee-card {
  border-top: 3px solid transparent !important; overflow: visible !important;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s !important;
}
.employee-card:nth-child(1)  { border-top-color: #1E638D !important; } /* Booking — teal */
.employee-card:nth-child(2)  { border-top-color: #059669 !important; } /* Support — success */
.employee-card:nth-child(3)  { border-top-color: #D97706 !important; } /* Sales — warning */
.employee-card:nth-child(4)  { border-top-color: #133E5C !important; } /* Office — dark */
.employee-card:nth-child(5)  { border-top-color: #DC2626 !important; } /* Content — red */
.employee-card:nth-child(6)  { border-top-color: #F97316 !important; } /* Finance — orange */
.employee-card:nth-child(7)  { border-top-color: #7C3AED !important; } /* HR — purple */
.employee-card:nth-child(8)  { border-top-color: #0891B2 !important; } /* Analyst — cyan */
.employee-card:nth-child(9)  { border-top-color: #BE185D !important; } /* Project — pink */

/* Staggered animation */
.employee-card:nth-child(1) { transition-delay: 0ms; }
.employee-card:nth-child(2) { transition-delay: 50ms; }
.employee-card:nth-child(3) { transition-delay: 100ms; }
.employee-card:nth-child(4) { transition-delay: 150ms; }
.employee-card:nth-child(5) { transition-delay: 200ms; }
.employee-card:nth-child(6) { transition-delay: 250ms; }
.employee-card:nth-child(7) { transition-delay: 300ms; }
.employee-card:nth-child(8) { transition-delay: 350ms; }
.employee-card:nth-child(9) { transition-delay: 400ms; }

/* Better icon backgrounds with matching colors */
.employee-card:nth-child(1) .employee-icon { background: rgba(30,99,141,0.1); }
.employee-card:nth-child(2) .employee-icon { background: rgba(5,150,105,0.1); }
.employee-card:nth-child(3) .employee-icon { background: rgba(217,119,6,0.1); }
.employee-card:nth-child(4) .employee-icon { background: rgba(19,62,92,0.1); }
.employee-card:nth-child(5) .employee-icon { background: rgba(220,38,38,0.1); }
.employee-card:nth-child(6) .employee-icon { background: rgba(249,115,22,0.1); }
.employee-card:nth-child(7) .employee-icon { background: rgba(124,58,237,0.1); }
.employee-card:nth-child(8) .employee-icon { background: rgba(8,145,178,0.1); }
.employee-card:nth-child(9) .employee-icon { background: rgba(190,24,93,0.1); }
.employee-card:nth-child(2) .employee-icon svg { stroke: #059669; }
.employee-card:nth-child(3) .employee-icon svg { stroke: #D97706; }
.employee-card:nth-child(5) .employee-icon svg { stroke: #DC2626; }
.employee-card:nth-child(6) .employee-icon svg { stroke: #F97316; }
.employee-card:nth-child(7) .employee-icon svg { stroke: #7C3AED; }
.employee-card:nth-child(8) .employee-icon svg { stroke: #0891B2; }
.employee-card:nth-child(9) .employee-icon svg { stroke: #BE185D; }

/* ── PRICING: Highlight Core as recommended ── */
.pricing-grid .pricing-card:nth-child(2) {
  border: 2px solid var(--teal, #1E638D) !important;
  position: relative; transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(30,99,141,0.12);
}
.pricing-grid .pricing-card:nth-child(2)::before {
  content: 'Most popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal, #1E638D); color: #fff;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 4px 16px; border-radius: 12px; white-space: nowrap;
}

/* ── HEALTHCARE CARDS: Subtle gradient bg ── */
.healthcare-card {
  transition: transform 0.3s, box-shadow 0.3s !important;
  position: relative; overflow: hidden;
}
.healthcare-card::before {
  content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(30,99,141,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.healthcare-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08) !important;
}

/* ── SECTION LABELS: Pill style ── */
.section-label {
  display: inline-block !important;
  background: var(--teal-light, #E3EFF6);
  padding: 4px 14px; border-radius: 99px;
  font-size: 12px !important; letter-spacing: 0.8px !important;
}

/* ── CTA BANNER: Gradient accent ── */
.cta-banner {
  position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal, #1E638D), var(--orange, #F97316));
}

/* ── GENERAL: Section dividers ── */
.section-alt { position: relative; }
.section-alt::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border, #E5E7EB), transparent);
}

/* ── ANIMATED COUNTERS ── */
.hero-stat-num { transition: color 0.3s; }
.hero-stats > div:hover .hero-stat-num { color: var(--teal, #1E638D); }

/* ── RESPONSIVE: Phone mockup ── */
@media (max-width: 900px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-visual { flex: 0 0 auto; order: -1; }
  .phone-mockup { width: 240px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-stats > div { padding-left: 0; }
  .hero-stats > div::before { display: none; }
}
@media (max-width: 480px) {
  .hero-visual { display: none; }
}

/* Homepage integration pills */
.int-pill { font-size: 10px; padding: 2px 8px; border-radius: 4px; background: var(--off-white); border: 1px solid var(--border); color: var(--text-muted); font-weight: 500; }
.employee-card:hover .int-pill { border-color: var(--teal); color: var(--teal); }
.int-more { font-size: 10px; padding: 2px 6px; color: var(--text-muted); font-weight: 600; }
