/* ==========================================================================
   Lopcam Website - CSS Principal
   Arquivo CSS com estilos personalizados e otimizações
   ========================================================================== */

/* Variáveis CSS Customizadas */
:root {
  /* Cores da marca Lopcam */
  --lopcam-gold: #f7c52d;
  --lopcam-gold-hover: #ffd700;
  --lopcam-blue: #4a5568;
  --lopcam-blue-dark: #2d3748;
  --lopcam-blue-light: #5d6b7d;
  --lopcam-gray: #f8f9fa;
  --lopcam-gray-dark: #e2e8f0;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transições */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* Reset e Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--lopcam-blue);
  background-color: #fafafa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografia */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300;
  line-height: 1.2;
  color: #264163;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Links */
a {
  color: var(--lopcam-blue);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--lopcam-gold);
}

a:focus {
  outline: 2px solid var(--lopcam-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Buttons */
button {
  font-family: inherit;
  cursor: pointer;
}

/* Forms */
input,
textarea,
select {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: all var(--transition-normal);
  font-family: inherit;
  background: white;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--lopcam-gold);
  box-shadow: 0 0 0 3px rgba(247, 197, 45, 0.1);
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Header */
header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
}

/* Hero background pattern */
.hero-pattern {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(247, 197, 45, 0.1) 0%, transparent 50%);
}

/* Cards com hover effects */
.card-hover {
  transition: all var(--transition-normal);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Loading spinner */
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--lopcam-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Scroll behavior smooth */
.smooth-scroll {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--lopcam-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--lopcam-gold-hover);
}

/* Responsividade adicional */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem !important;
  }

  .section-padding {
    padding: 3rem 0 !important;
  }

  .container-mobile {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem !important;
  }

  .text-responsive {
    font-size: 0.875rem !important;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --lopcam-blue: #000000;
    --lopcam-gold: #ffaa00;
  }
}

/* Print styles */
@media print {
  header {
    position: static !important;
  }

  .no-print {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}