/* ============================================
   GLOBAL CSS - aisolutions/Bizoforce
   ============================================ */

:root {
  --primary: #004aad;
  --primary-dark: #00327a;
  --accent: #ff7a2f;
  --bg-light: #f5f7fb;
  --bg-dark: #050816;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-soft: #d0d5dd;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 0 0, #ffb347, #ff7a2f, #ff512f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(255, 122, 47, 0.5);
}

.logo-text-main {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.logo-text-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  margin-left: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(169deg, #e07436, var(--accent));
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--bg-light);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(0, 74, 173, 0.3);
}

.btn-secondary {
  background: var(--text-muted);
  color: white;
}

.btn-secondary:hover {
  background: var(--text-main);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}



.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   CARDS & COMPONENTS
   ============================================ */

.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-soft);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 74, 173, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pill {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin: 4px;
}

.pill-soft {
  background: rgba(0, 74, 173, 0.1);
  color: var(--primary);
}

/* ============================================
   GRIDS
   ============================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

/* ============================================
   LISTS
   ============================================ */

.list {
  list-style: none;
  margin: 1rem 0;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.list-bullet {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  section {
    padding: 48px 0;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 12px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 32px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 12px;
  }

  section {
    padding: 24px 0;
  }

  .section-header {
    margin-bottom: 24px;
  }

  .logo-text-main {
    font-size: 16px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
/* ============================================
   EXIT INTENT POPUP
   ============================================ */

.exit-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.exit-popup-overlay.active {
  display: flex;
}

.exit-popup {
  background: white;
  border-radius: 20px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.exit-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.exit-popup-close:hover {
  background: var(--bg-light);
  color: var(--text-main);
  transform: rotate(90deg);
}

.exit-popup-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 40px 32px 32px;
  text-align: center;
  color: white;
  border-radius: 20px 20px 0 0;
}

.exit-popup-emoji {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
  animation: wave 0.6s ease-in-out;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.exit-popup-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.exit-popup-header p {
  font-size: 16px;
  opacity: 0.95;
  line-height: 1.5;
}

.exit-popup-body {
  padding: 32px;
}

.exit-popup-benefits {
  list-style: none;
  margin-bottom: 28px;
}

.exit-popup-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--text-main);
}

.exit-popup-benefits li::before {
  content: "✓";
  background: #10b981;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
}

.exit-popup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exit-popup-form input,
.exit-popup-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-soft);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.exit-popup-form input:focus,
.exit-popup-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.exit-popup-form textarea {
  min-height: 100px;
  resize: vertical;
}

.exit-popup-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.exit-popup-form button:hover {
  background: #ff6520;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 47, 0.3);
}

.exit-popup-form button:active {
  transform: translateY(0);
}

.exit-popup-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

@media (max-width: 640px) {
  .exit-popup {
    width: 95%;
    max-height: 95vh;
  }

  .exit-popup-header {
    padding: 32px 24px 24px;
  }

  .exit-popup-header h2 {
    font-size: 24px;
  }

  .exit-popup-body {
    padding: 24px;
  }

  .exit-popup-emoji {
    font-size: 40px;
  }
}

/* Floating Action Buttons - Modern Pattern */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.whatsapp-float::before {
  content: 'WhatsApp';
  position: absolute;
  right: 68px;
  background-color: #1f2937;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  right: 56px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #1f2937;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transform: scale(1.08);
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.whatsapp-float:active {
  transform: scale(1.0);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
  transform: scale(1.1);
}

/* Mobile - Touch-friendly with tap tooltip */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 30px;
    right: 16px;
    width: 56px;
    height: 56px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  
  /* Show tooltip on touch/tap */
  .whatsapp-float.show-tooltip::before,
  .whatsapp-float.show-tooltip::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  
  .whatsapp-float::before {
    font-size: 13px;
    padding: 6px 12px;
    right: 64px;
  }
  
  .whatsapp-float::after {
    right: 54px;
  }
}

/* Small mobile - Compact view */
@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 30px;
    right: 12px;
    width: 52px;
    height: 52px;
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  
  .whatsapp-float::before {
    font-size: 12px;
    padding: 6px 10px;
    right: 60px;
  }
  
  .whatsapp-float::after {
    right: 50px;
    border-width: 5px 0 5px 7px;
  }
}

/* Tablet - Balanced sizing */
@media (min-width: 769px) and (max-width: 1024px) {
  .whatsapp-float {
    bottom: 30px;
    right: 20px;
    width: 58px;
    height: 58px;
  }
  
  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

/* Desktop - Larger with smooth interactions */
@media (min-width: 1025px) {
  .whatsapp-float {
    bottom: 30px;
    right: 12px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float svg {
    width: 32px;
    height: 32px;
  }
  
  .whatsapp-float::before {
    font-size: 14px;
    padding: 10px 18px;
  }
}

/* Ensure Tawk.to container doesn't get clipped */
body {
  overflow-x: visible !important;
}

@media print {
  header,
  .nav-actions,
  .exit-popup-overlay,
  .whatsapp-float {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
