/* Reset e configurações globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #0a0909;
  color: #fff;
  line-height: 1.6;
}

/* Tipografia para títulos */
h1, h2, h3, h4, h5, h6,
.background-title,
.accordion-button {
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-size: 3rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  transition: background 0.3s ease;
}

.navbar .logo img {
  height: 50px;
}

/* Menu Hamburger */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 101;
}

.menu-toggle span {
  background: #fff;
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  left: 0;
  transition: all 0.4s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

.menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Menu de navegação */
.navbar .menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar .menu li a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.navbar .menu li a:hover::after {
  width: 100%;
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

/* Hero */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  animation: fadeIn 2s ease-in;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background-color: #ccc;
  color: #000;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #fff;
}

/* Seções com background definidas via inline ou CSS */
.section {
  padding: 80px 25px;
  text-align: center;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.section p {
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Overlay */
.section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Background Section 0: OneguS */
.background-section0 {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 600px;
  padding: 20px;
  overflow: visible;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.background-content {
  z-index: 2;
  text-align: left;
  /* Permite que o conteúdo expanda naturalmente sem posicionamento absoluto */
}

.background-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Accordion Button */
.accordion-button {
  background-color: #000;
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  outline: none;
  display: inline-block;
  margin-bottom: 10px;
  text-align: center;
}

.accordion-button:hover {
  background-color: #222;
}

/* Accordion Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(0, 0, 0, 0.8);
  margin-top: 10px;
  padding: 0 10px;
}

.background-content.active .accordion-content {
  max-height: 200px;
  padding: 10px;
}

/* Background Sections 1 a 4 (exemplo para serviços) */
.background-section1,
.background-section2,
.background-section3,
.background-section4 {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 600px;
  padding: 20px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.background-section1 .background-content,
.background-section2 .background-content,
.background-section3 .background-content,
.background-section4 .background-content {
  z-index: 2;
  text-align: left;
}

/* Benefícios do PWA */
.pwa-benefits {
  list-style: none;
  padding: 10px;
  background: linear-gradient(135deg, #000, #444);
  border-radius: 8px;
  text-align: left;
  max-width: 600px;
  margin: 0 auto 30px;
}

.pwa-benefits li {
  margin-bottom: 10px;
}

/* Depoimentos */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial {
  background-color: #111;
  padding: 20px;
  border-radius: 8px;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #000, #444);
}

/* Contato */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.contact-form .form-group {
  margin-bottom: 15px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
}

/* Rodapé */
.footer {
  background-color: #111;
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #aaa;
}

.footer-social a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #aaa;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #777;
}

/* Animação FadeIn */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 768px) {
  .navbar .menu {
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 70px;
    right: 20px;
    display: none;
    padding: 20px;
    border-radius: 4px;
  }
  .navbar.active .menu {
    display: flex;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
}
