/* style.css */

/* animações */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #121212;
  animation: fadeIn 0.8s ease-in;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header {
  background: transparent;
  transition: background-color 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: fadeInDown 0.6s ease-in-out;
}

.header.scrolled {
  background-color: #1e1e1e;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #5BB848;
}

.menu a {
  margin: 0 0.75rem;
  text-decoration: none;
  color: #f0f0f0;
  font-weight: 600;
  transition: color 0.3s;
}

.menu a:hover {
  color: #5BB848;
}

.menu .login {
  padding: 0.5rem 1rem;
  background: #5BB848;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.menu .login:hover {
  background: #4ca43c;
}

.hero {
  background: url('../images/hero-bg.png') no-repeat center center/cover;
  position: relative;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  scroll-margin-top: 80px;
  margin-top: -80px;
  padding-top: 80px;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 1;
  padding: 2rem 1rem;
  text-align: left;
  animation: fadeInUp 0.8s ease-in-out;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.125rem;
}

.cta-button {
  display: inline-block;
  background: #5BB848;
  color: white;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
  background: #4ca43c;
  transform: scale(1.05);
}

.features {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.mockup {
  background: url('../images/mockup.png') no-repeat right center/contain;
  width: 100%;
  height: 300px;
  margin-top: 2rem;
  margin-right: 0;
}

.como-funciona {
  background-color: #1e1e1e;
  padding: 4rem 1rem;
  text-align: center;
  color: #f0f0f0;
  position: relative;
}

.cards {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cards::-webkit-scrollbar {
  display: none;
}

.card {
  background: #2c2c2c;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  padding: 2rem;
  min-width: 300px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: left;
  transition: transform 0.3s;
  animation: fadeInUp 0.7s ease forwards;
  color: #f0f0f0;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.card h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.slider-button {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  border-radius: 50%;
  transition: background 0.3s;
}

.slider-button:hover {
  background: rgba(91, 184, 72, 0.8);
}

.planos {
  padding: 4rem 1rem;
  background-color: #121212;
  text-align: center;
  color: #f0f0f0;
}

.planos-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.plano {
  border: 2px solid #333;
  border-radius: 12px;
  padding: 2rem;
  max-width: 300px;
  flex: 1;
  background: #1e1e1e;
  position: relative;
  transition: transform 0.3s;
  animation: fadeInUp 0.6s ease forwards;
}

.plano:hover {
  transform: translateY(-4px);
}

.plano .badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #5BB848;
  color: white;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.plano h3 {
  margin-bottom: 1rem;
}

.plano ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  text-align: left;
}

.plano ul li::before {
  content: '✓';
  margin-right: 0.5rem;
  color: #5BB848;
}

.plano strong {
  font-size: 1.5rem;
  display: block;
}

.contato {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #1e1e1e;
  color: #f0f0f0;
}

.whatsapp-button {
  display: inline-block;
  background: #25d366;
  color: white;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.whatsapp-button:hover {
  background: #1ebc5b;
  transform: scale(1.05);
}

.footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
  animation: fadeIn 1s ease-in-out;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: #f0f0f0;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.fullscreen-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease-in-out;
}

.fullscreen-card {
  background: #2c2c2c;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  animation: fadeInUp 0.4s ease-in-out;
}

.fullscreen-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #5BB848;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 3000;
  transition: background 0.3s;
}

.close-button:hover {
  background: #4ca43c;
}


@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
  }
  .hero-content > div:first-child {
    flex: 1;
  }
  .mockup {
    flex: 1;
    height: 400px;
    background-position: right center;
    margin-right: 0;
  }
  .cards {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    justify-content: start;
    flex-wrap: nowrap;
  }
  .card {
    max-width: 400px;
    min-width: 350px;
  }
  .card img {
    height: auto;
  }
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 1rem;
  }
   .menu.active {
    display: flex;
  }
  .menu a,
  .menu .login {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
  }
  .menu-toggle {
    display: block;
    align-self: flex-end;
    margin-top: 0.5rem;
  }
}
