/* Estilos principais para o site RKR - Regional de Kart Rental */

:root {
  --primary-color: #e10600;
  --secondary-color: #15151e;
  --accent-color: #27f4d2;
  --text-color: #ffffff;
  --gray-color: #38383f;
  --light-gray: #6f6f78;
  --error-color: #e10600;
  --success-color: #27f4d2;
  --warning-color: #ffb800;
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
  background-image: url('../images/smoke-bg.png');
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Cursor personalizado com bandeira do RS */
body {
  cursor: url('../images/rs-flag-cursor.png'), auto;
}

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

/* Botões */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

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

.btn-primary:hover {
  background-color: #c00500;
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: #45454f;
  transform: translateY(-2px);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(21, 21, 30, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 60px;
  transition: all 0.3s ease;
}

.site-header.scrolled .logo img {
  max-height: 50px;
}

.main-nav {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Menu Mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--secondary-color);
  z-index: 2000;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
}

.mobile-logo img {
  max-height: 50px;
}

.mobile-nav ul {
  list-style: none;
  padding: 20px;
}

.mobile-nav li {
  margin-bottom: 15px;
}

.mobile-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

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

.mobile-contact {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-contact a {
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-contact a i {
  color: var(--primary-color);
}

.mobile-social {
  padding: 20px;
  display: flex;
  gap: 15px;
}

.mobile-social a {
  width: 40px;
  height: 40px;
  background-color: var(--gray-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.mobile-social a:hover {
  background-color: var(--primary-color);
}

body.menu-open {
  overflow: hidden;
}

/* Main Content */
.main-section {
  padding: 120px 0 60px;
}

/* Formulários */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-color);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.2);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-check-input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-check-label {
  cursor: pointer;
}

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

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.form-col {
  flex: 1;
  padding: 0 10px;
  min-width: 250px;
}

/* Alertas */
.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: 600;
}

.alert-success {
  background-color: rgba(39, 244, 210, 0.2);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.alert-error {
  background-color: rgba(225, 6, 0, 0.2);
  border: 1px solid var(--error-color);
  color: var(--error-color);
}

.alert-warning {
  background-color: rgba(255, 184, 0, 0.2);
  border: 1px solid var(--warning-color);
  color: var(--warning-color);
}

.alert ul {
  margin: 10px 0 0 20px;
}

/* Animação de fumaça */
.smoke-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.smoke {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url('../images/smoke.png') repeat;
  opacity: 0.05;
  animation: smoke-drift 60s linear infinite;
}

.smoke:nth-child(2) {
  background-position: 50% 50%;
  opacity: 0.03;
  animation-duration: 120s;
  animation-delay: -10s;
}

.smoke:nth-child(3) {
  background-position: 70% 70%;
  opacity: 0.02;
  animation-duration: 180s;
  animation-delay: -20s;
}

@keyframes smoke-drift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Animação de grid de largada */
.grid-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  transition: opacity 0.5s;
}

.traffic-light {
  display: flex;
  gap: 10px;
}

.light {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #333;
  transition: background-color 0.3s;
}

.light.red {
  background-color: #e10600;
}

.countdown {
  font-size: 100px;
  font-weight: 900;
  color: var(--text-color);
}

.go-text {
  font-size: 150px;
  font-weight: 900;
  color: var(--primary-color);
  text-transform: uppercase;
  animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

/* Responsividade */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .main-section {
    padding: 100px 0 40px;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-col {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .logo img {
    max-height: 40px;
  }
  
  .site-header.scrolled .logo img {
    max-height: 35px;
  }
  
  .mobile-menu {
    width: 100%;
    max-width: none;
  }
}

/* Lazy Loading para imagens */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Animações de entrada */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utilitários */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 20px;
}

.mb-4 {
  margin-bottom: 20px;
}

/* Estilos para impressão */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .site-header, .site-footer, .whatsapp-float {
    display: none;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  
  .main-section {
    padding: 20px 0;
  }
}

/* Estilos para acessibilidade */
:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
