@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-label: 'Inter', sans-serif;

  --background-50: 0.97 0 0;
  --background-100: 0.95 0 0;
  --background-200: 0.92 0 0;
  --background-300: 0.88 0 0;
  --background-400: 0.82 0 0;
  --background-500: 0.75 0 0;
  --background-600: 0.65 0 0;
  --background-700: 0.55 0 0;
  --background-800: 0.42 0 0;
  --background-900: 0.28 0 0;
  --background-950: 0.15 0 0;

  --primary-50: 0.97 0.01 0;
  --primary-100: 0.95 0.02 0;
  --primary-200: 0.92 0.04 0;
  --primary-300: 0.87 0.06 0;
  --primary-400: 0.78 0.10 0;
  --primary-500: 0.65 0.18 0;
  --primary-600: 0.55 0.20 0;
  --primary-700: 0.45 0.18 0;
  --primary-800: 0.35 0.14 0;
  --primary-900: 0.25 0.10 0;
  --primary-950: 0.15 0.06 0;

  --accent-50: 0.97 0.01 0;
  --accent-100: 0.95 0.02 0;
  --accent-200: 0.92 0.04 0;
  --accent-300: 0.87 0.06 0;
  --accent-400: 0.78 0.10 0;
  --accent-500: 0.65 0.18 0;
  --accent-600: 0.55 0.20 0;
  --accent-700: 0.45 0.18 0;
  --accent-800: 0.35 0.14 0;
  --accent-900: 0.25 0.10 0;
  --accent-950: 0.15 0.06 0;

  --secondary-50: 0.97 0 0;
  --secondary-100: 0.95 0 0;
  --secondary-200: 0.92 0 0;
  --secondary-300: 0.88 0 0;
  --secondary-400: 0.82 0 0;
  --secondary-500: 0.75 0 0;
  --secondary-600: 0.65 0 0;
  --secondary-700: 0.55 0 0;
  --secondary-800: 0.42 0 0;
  --secondary-900: 0.28 0 0;
  --secondary-950: 0.15 0 0;

  --foreground-50: 0.97 0 0;
  --foreground-100: 0.95 0 0;
  --foreground-200: 0.92 0 0;
  --foreground-300: 0.88 0 0;
  --foreground-400: 0.82 0 0;
  --foreground-500: 0.75 0 0;
  --foreground-600: 0.65 0 0;
  --foreground-700: 0.55 0 0;
  --foreground-800: 0.42 0 0;
  --foreground-900: 0.28 0 0;
  --foreground-950: 0.15 0 0;
}

body {
  font-family: var(--font-body);
  background-color: oklch(var(--background-50));
  color: oklch(var(--foreground-900));
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

video::-webkit-media-text-track-display {
  display: none !important;
}

video::-webkit-media-text-track-container {
  display: none !important;
}

video::cue {
  visibility: hidden;
  opacity: 0;
}

/* VAPI widget - move to left side so it doesn't overlap WhatsApp */
#vapi-widget-floating-button,
#vapi-widget-container,
.vapi-widget-container {
  left: 1.5rem !important;
  right: auto !important;
  bottom: 1.5rem !important;
}

/* Anti-spam honeypot - visually hidden but detectable by bots */
.form-phone-alt-wrap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-company-alt-wrap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* BlurImage progressive loading */
.blur-image-container {
  display: contents;
}

.blur-image-img {
  will-change: filter, opacity, transform;
  background-color: oklch(var(--background-200));
}

.blur-image-loading {
  filter: blur(12px) brightness(1.05);
  opacity: 0.5;
  transform: scale(1.08);
}

.blur-image-loaded {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
  transition: filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero word-by-word reveal — pure CSS, zero JS re-renders */
@keyframes word-reveal {
  0% {
    opacity: 0.3;
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

.animate-word-reveal {
  opacity: 0;
  animation: word-reveal 0.15s ease-out forwards;
}

/* Cookie consent banner slide-up animation */
@keyframes slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slide-up 0.4s ease-out forwards;
}

/* Print styles for PDF generation */
.pdf-report {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: white !important;
  }

  /* Hide app container when printing */
  .app-container {
    display: none !important;
  }

  /* Show PDF report */
  .pdf-report {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: white !important;
    z-index: 999999 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-y: auto !important;
  }

  /* Force background colors and borders to print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}