/* LSR Transportes — estilos melhorados (vermelho, preto e branco) */
:root {
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-300: #fca5a5;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --red-950: #450a0a;
  --black: #0f1115;
  --gray-900: #171923;
  --gray-800: #1a202c;
  --gray-700: #2d3748;
  --gray-600: #4a5568;
  --gray-500: #718096;
  --gray-400: #a0aec0;
  --gray-300: #cbd5e0;
  --gray-200: #e2e8f0;
  --gray-100: #edf2f7;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

/* Containers */
.container {
  width: min(1100px, 90%);
  margin-inline: auto;
}

/* Header / Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--black);
  font-weight: 700;
}

.brand-logo {
  height: 42px;
  filter: brightness(0) saturate(100%) invert(16%) sepia(89%) saturate(5000%) hue-rotate(355deg) brightness(90%) contrast(120%);
}

.brand-text {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.2rem;
}

.menu {
  display: flex;
  gap: 1.2rem;
}

.menu a {
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.menu a:hover {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red-700);
}

.menu a.active {
  background: var(--red-600);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  margin: 2px 0;
  background: var(--black);
  border-radius: 2px;
  transition: 0.25s;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  background: radial-gradient(1200px 400px at 40% -10%, rgba(220, 38, 38, 0.15), transparent 60%),
              linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 800;
}

.accent {
  color: var(--red-600);
}

.hero p {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin: 0 0 24px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  gap: 8px;
}

.btn.primary {
  background: var(--red-600);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  background: var(--red-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.dark {
  background: var(--gray-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn.dark:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.ghost {
  background: var(--white);
  border-color: var(--gray-200);
  color: var(--gray-800);
}

.btn.ghost:hover {
  border-color: var(--red-600);
  color: var(--red-700);
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art img {
  max-width: 100%;
  height: auto;
  filter: brightness(0) saturate(100%) invert(16%) sepia(89%) saturate(5000%) hue-rotate(355deg) brightness(90%) contrast(120%);
}

/* Generic sections */
.section {
  padding: 80px 0;
}

.section.alt {
  background: var(--gray-50);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  margin: 0 0 12px;
  font-weight: 700;
}

.section p {
  color: var(--gray-700);
  font-size: 1.1rem;
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--red-700);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-top: 0;
  color: var(--red-700);
}

/* Forms melhorados */
.form-container {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 900px;
}

.form.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-weight: 600;
  color: var(--gray-800);
}

.field input, .field textarea, .field select {
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font: inherit;
  outline: none;
  background: var(--white);
  transition: all 0.2s ease;
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.field input.error, .field textarea.error, .field select.error {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.error-message {
  color: var(--red-600);
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

.span-2 {
  grid-column: span 2;
}

.form-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Modal de confirmação */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  width: min(500px, 90%);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.modal h3 {
  margin-top: 0;
  color: var(--red-700);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--gray-200);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.footer .brand--inverse {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 16px;
}

.footer .brand--inverse .brand-text {
  color: var(--white);
}

.footer-logo {
  height: 36px;
  filter: brightness(0) invert(1);
}

.slogan {
  color: var(--gray-400);
  font-style: italic;
  margin: 0;
}

.footer h4 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1.1rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  margin-bottom: 10px;
}

.list a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

.list a:hover {
  color: var(--red-400);
}

.copy {
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal.up {
  transform: translateY(30px);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .features, .cards {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .form-container {
    padding: 24px;
  }
}

/* Menu mobile - Melhorias de visibilidade */
@media (max-width: 680px) {
  .menu {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 5%;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .menu a {
    padding: 14px 16px;
    text-align: center;
    color: var(--black); /* Garante texto preto no modo claro */
    font-weight: 600;
    border-radius: var(--radius);
    margin: 4px 0;
    transition: all 0.2s ease;
  }
  
  .menu a:hover {
    background: rgba(220, 38, 38, 0.1);
    color: var(--red-700);
  }
  
  .menu a.active {
    background: var(--red-600);
    color: var(--white) !important; /* Força texto branco no item ativo */
  }
  
  .menu.open {
    display: flex;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Modo escuro - menu mobile */
  [data-theme="dark"] .menu {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
  }
  
  [data-theme="dark"] .menu a {
    color:  var(--white);
    font-weight: 600;
  }
  
  [data-theme="dark"] .menu a:hover {
    background: rgba(220, 38, 38, 0.15);
    color: var(--red-400) !important;
  }
  
  [data-theme="dark"] .menu a.active {
    background: var(--red-600);
    color: var(--white) !important;
  }
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #0f1115;
    --bg-secondary: #171923;
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --border-color: #2d3748;
  }
}

[data-theme="dark"] {
  --bg-primary: #0f1115;
  --bg-secondary: #171923;
  --text-primary: #e2e8f0;
  --text-secondary: #a0aec0;
  --border-color: #2d3748;
}

/* Aplicar variáveis de tema escuro */
[data-theme="dark"],
:root:not([data-theme="light"]) {
  body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
  }

  .header {
    background: rgba(15, 17, 21, 0.95);
    border-bottom-color: var(--border-color);
  }

  .brand,
  .menu a {
    color: var(--text-primary);
  }

  .menu a:hover {
    background: rgba(220, 38, 38, 0.15);
  }

  .menu a.active {
    background: var(--red-600);
    color: var(--white);
  }

  .menu-toggle span {
    background: var(--text-primary);
  }

  .hero {
    background: radial-gradient(1200px 400px at 40% -10%, rgba(220, 38, 38, 0.2), transparent 60%),
                linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  }

  .hero p {
    color: var(--text-secondary);
  }

  .btn.ghost {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
  }

  .btn.ghost:hover {
    border-color: var(--red-600);
    color: var(--red-400);
  }

  .section.alt {
    background: var(--bg-secondary);
  }

  .feature-card,
  .card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
  }

  .feature-card h3,
  .card h3 {
    color: var(--red-400);
  }

  .form-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
  }

  .field input,
  .field textarea,
  .field select {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-primary);
  }

  .field input:focus,
  .field textarea:focus,
  .field select:focus {
    border-color: var(--red-600);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
  }

  .theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
  }

  .footer {
    background: var(--gray-900);
  }

  .footer .brand--inverse .brand-text {
    color: var(--text-primary);
  }

  .slogan {
    color: var(--text-secondary);
  }

  .list a {
    color: var(--text-secondary);
  }

  .list a:hover {
    color: var(--red-400);
  }

  .copy {
    border-top-color: var(--border-color);
    color: var(--text-secondary);
  }
}

/* Botão de alternância de tema */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.theme-toggle .icon-light,
.theme-toggle .icon-dark {
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .theme-toggle .icon-light {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-dark {
  display: block;
}

.theme-toggle .icon-light {
  display: block;
}

.theme-toggle .icon-dark {
  display: none;
}

/* Botão do WhatsApp flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* Animação de pulsar */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Tooltip do WhatsApp */
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--black);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-left: 5px solid var(--black);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* Ajustes para modo escuro */
[data-theme="dark"] .whatsapp-tooltip {
  background: var(--white);
  color: var(--black);
}

[data-theme="dark"] .whatsapp-tooltip::after {
  border-left-color: var(--white);
}

/* Responsividade */
@media (max-width: 680px) {
  .whatsapp-float {
    bottom: 80px;
    right: 15px;
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-tooltip {
    display: none; /* Oculta tooltip em mobile */
  }
}
