/* Custom styles for QReview landing page */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions */
a, button {
  transition: all 0.3s ease;
}

/* Card hover effects */
[data-card] {
  transition: all 0.3s ease;
}

[data-card]:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(230, 120, 23, 0.1);
}

/* Button hover effects */
button {
  cursor: pointer;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* Input focus styles */
input:focus {
  outline: none;
}

/* Smooth scrolling for anchor links */
a[href^="#"] {
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem !important;
  }

  h2 {
    font-size: 1.875rem !important;
  }

  .text-5xl {
    font-size: 2.25rem !important;
  }

  .text-4xl {
    font-size: 1.875rem !important;
  }
}

/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Utility classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-float {
  animation: float 2s ease-in-out infinite;
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(1px)) {
  .backdrop-blur-md {
    backdrop-filter: blur(12px);
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .backdrop-blur-md {
    background-color: rgba(255, 248, 240, 0.95);
  }
}

/* Smooth color transitions */
a, button, [data-card] {
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

/* Print styles */
@media print {
  nav, footer {
    display: none;
  }
}

/* Estilo do botão principal */
.menu-button {
  display: flex;
  align-items: center;
  gap: 10px; /* Espaço entre o texto e o ícone */
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-family: sans-serif; /* Use a fonte do seu projeto */
  color: #333; /* Cor do texto */
  padding: 10px;
  z-index: 100; /* Garante que fique acima de outros elementos */
}

/* Estilo do ícone do hambúrguer */
.menu-icon {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribui as barras igualmente */
  position: relative;
}

.menu-icon .bar {
  width: 100%;
  height: 2.3px; /* Espessura das barras */
  background-color: #333; /* Cor das barras */
  border-radius: 2.5px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Animação suave */
  transform-origin: center;
}

/* --- Animação para o estado "Aberto" (X) --- */

/* Gira a barra de cima */
.menu-button.open .bar:nth-child(1) {
  transform: translateY(8.75px) rotate(45deg);
}

/* Esconde a barra do meio */
.menu-button.open .bar:nth-child(2) {
  opacity: 0;
}

/* Gira a barra de baixo */
.menu-button.open .bar:nth-child(3) {
  transform: translateY(-8.75px) rotate(-45deg);
}
