/* ==========================================================================
   Design System - L-Vision Segurança Eletrônica
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors - Dark Premium Brand Theme */
  --color-bg-base: #f8fafc;
  --color-bg-surface: #ffffff;
  --color-bg-elevated: #f1f5f9;

  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;

  --color-brand-primary: #0b0f34;
  /* Dark Navy from Logo */
  --color-brand-secondary: #3b82f6;
  /* Action Blue */
  --color-brand-accent: #f59e0b;
  /* Alert orange */

  --color-border: rgba(10, 15, 51, 0.1);
  --color-border-hover: rgba(10, 15, 51, 0.2);

  /* Typography */
  --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
  --font-family-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows & Glows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 20px rgba(59, 130, 246, 0.3);
  --glow-accent: 0 0 20px rgba(245, 158, 11, 0.2);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Header offset */
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.nav-link {
  font-weight: 500;
  color: #e2e8f0;
  /* Light gray for dark header */
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  /* pure white on hover */
}

a {
  color: var(--color-brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-secondary);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font-family: inherit;
}

/* ==========================================================================
   Layout & Utility
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
}

.section-subtitle {
  color: var(--color-brand-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.875rem;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--spacing-md);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-brand-primary), var(--color-brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-family-heading);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand-secondary), #2563eb);
  color: white;
  box-shadow: var(--shadow-md), var(--glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(59, 130, 246, 0.5);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--color-text-primary);
}

.btn-accent {
  background-color: var(--color-brand-accent);
  color: #000;
  box-shadow: var(--shadow-md), var(--glow-accent);
}

.btn-accent:hover {
  transform: translateY(-2px);
  background-color: #fcd34d;
  color: #000;
  box-shadow: var(--shadow-lg), 0 0 25px rgba(245, 158, 11, 0.4);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--color-brand-primary);
  /* Dark Navy from Logo */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background-color: var(--color-brand-primary);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-brand-primary);
  text-decoration: none;
}

.logo-icon {
  color: var(--color-brand-primary);
}

.logo-img {
  max-height: 60px;
  /* Reduced to fit nicely in the 80px header without stretching it */
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
}

.nav-link {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-brand-secondary);
  /* Highlight active underline */
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}



.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: -2;
  object-fit: cover;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, rgba(11, 15, 52, 0.85) 0%, rgba(10, 15, 51, 0.95) 100%);
}

.hero-bg-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* CCTV Style Overlay */
.cctv-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1));
  background-size: 100% 4px;
}

.cctv-ui {
  position: absolute;
  top: 90px;
  right: 2rem;
  z-index: 1;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.cctv-rec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ef4444;
  /* Red recording color */
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.rec-dot {
  width: 12px;
  height: 12px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-brand-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-brand-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-brand-secondary);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.hero-desc {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-2xl);
  max-width: 600px;
}

/* Make text white only when placed over the dark video background in index.html */
.hero-content-wrapper .hero-title {
  color: #ffffff;
}

.hero-content-wrapper .hero-desc {
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Features/Services Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl) var(--spacing-xl);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-brand-primary), var(--color-brand-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.3);
  background-color: var(--color-bg-elevated);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  color: var(--color-brand-secondary);
}

.feature-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.feature-desc {
  color: var(--color-text-secondary);
  flex-grow: 1;
}

/* Statistics Section */
.stats {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  text-align: center;
}

.stat-item {
  padding: var(--spacing-lg);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-family-heading);
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-label {
  color: var(--color-text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

/* Dual Column Layout (About / Text+Image) */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
}

.split-content h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.split-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 40px rgba(10, 14, 23, 0.8);
  pointer-events: none;
}

.split-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.split-image-wrapper:hover img {
  transform: scale(1.05);
}

/* Contact / CTA Section */
.cta-section {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--spacing-4xl) var(--spacing-2xl);
  text-align: center;
  background: var(--color-brand-primary);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(35, 38, 72, 0.2);
}

.cta-section h2 {
  color: #ffffff;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* Legal Pages (Privacy, Terms) */
.legal-page {
  padding-top: 120px;
  padding-bottom: var(--spacing-4xl);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-bg-surface);
  padding: var(--spacing-3xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.legal-content h1 {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.legal-content h2 {
  margin-top: var(--spacing-2xl);
  font-size: 1.5rem;
}

.legal-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.legal-content ul {
  list-style: disc;
  margin-left: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  background-color: var(--color-brand-primary);
  color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: var(--spacing-4xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-4xl);
}

.footer-col h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
  color: #ffffff;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-lg);
  max-width: 400px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: #ffffff;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.7);
}

.contact-icon {
  color: #ffffff;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.legal-links {
  display: flex;
  gap: var(--spacing-lg);
}

.legal-links a {
  color: var(--color-text-muted);
}

.legal-links a:hover {
  color: var(--color-text-primary);
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(14, 165, 233, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .split-content {
    order: 2;
  }

  .split-image-wrapper {
    order: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-base);
    flex-direction: column;
    padding: var(--spacing-xl) 0;
    gap: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }
}