@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Sarala:wght@400;700&display=swap');

/* RESET */
* {
   margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}


body {
  color: #222;
  background: #f9f9f9;
  scroll-behavior: smooth;
}

/* ===== CABEÇALHO ===== */
#cabecalho {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 95px;
  z-index: 10;
  background: transparent;
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
}

#cabecalho.scrolled {
  background: rgba(0, 0, 0, 0.7); /* fundo levemente escuro ao rolar */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

#navegacao {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#iconeempresa {
  max-height: 70px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s;
}

.menu li a:hover {
  color: #d4a5ff;
}


/* Botão hamburguer */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

.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(6px, -6px);
}

/* HERO */
.hero {
  height: 100vh;
  background: url('imagens/tecnico.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-attachment: fixed; 
  will-change: background-position;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}

.hero-text {
  position: relative;
  color: #fff;
  z-index: 1;
}
.hero-text h2 {
  font-size: 4em;
  margin-bottom: 10px;
}
.hero-text p {
  margin-bottom: 20px;
}
.btn {
  padding: 12px 25px;
  background: #e91e63;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover {
  background: #ff3d7f;
  transform: scale(1.05);
}

/* ANIMAÇÃO DE FADE-IN NOS TEXTOS DA HERO */
.hero-text h2,
.hero-text p,
.hero-text .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.hero-text h2 {
  animation-delay: 0.5s;
}
.hero-text p {
  animation-delay: 1s;
}
.hero-text .btn {
  animation-delay: 1.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SERVIÇOS */
.servicos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 100px 40px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.6s, box-shadow 0.6s;
  opacity: 0;
  position: relative;
}

/* Animações de entrada */
.card.left {
  transform: translateX(-80px);
}
.card.bottom {
  transform: translateY(80px);
}
.card.right {
  transform: translateX(80px);
}

.card.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* HOVER: brilho e borda pulsante */
.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(25deg);
  transition: 0.6s;
  opacity: 0;
}
.card:hover::before {
  top: -30%;
  left: -30%;
  opacity: 1;
}

.card:hover {
  box-shadow: 0 0 25px rgba(233, 30, 99, 0.5);
  animation: pulseBorder 1.5s infinite;
}

@keyframes pulseBorder {
  0% {
    box-shadow: 0 0 0 rgba(233, 30, 99, 0.6);
  }
  50% {
    box-shadow: 0 0 25px rgba(233, 30, 99, 0.9);
  }
  100% {
    box-shadow: 0 0 0 rgba(233, 30, 99, 0.6);
  }
}


/* ====== EFEITO DE HOVER NOS CARDS ====== */

/* Brilho diagonal */
.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(25deg);
  transition: 0.6s;
  opacity: 0;
}
.card:hover::before {
  top: -30%;
  left: -30%;
  opacity: 1;
}

/* Borda pulsando */
.card:hover {
  box-shadow: 0 0 25px rgba(233, 30, 99, 0.5);
  animation: pulseBorder 1.5s infinite;
}

@keyframes pulseBorder {
  0% {
    box-shadow: 0 0 0 rgba(233, 30, 99, 0.6);
  }
  50% {
    box-shadow: 0 0 25px rgba(233, 30, 99, 0.9);
  }
  100% {
    box-shadow: 0 0 0 rgba(233, 30, 99, 0.6);
  }
}

/* CTA */
.cta {
  position: relative;
  background: url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a') center/cover no-repeat;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-overlay {
  background: rgba(233, 30, 99, 0.75);
  color: #fff;
  text-align: center;
  padding: 40px;
  border-radius: 12px;
}
.cta h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
}
.cta p {
  margin-bottom: 20px;
}
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  transition: 0.3s;
}
.btn-outline:hover {
  background: #fff;
  color: #e91e63;
}

/* FORMULÁRIO */
.form-section {
  padding: 80px 40px;
  background: #f9f9f9;
  text-align: center;
}
.form-section h2 {
  margin-bottom: 30px;
  color: #e91e63;
}
.form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form input,
.form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  width: 100%;
}
.form textarea {
  min-height: 120px;
}
.form button {
  padding: 15px;
  background: #e91e63;
  border: none;
  color: #fff;
  font-size: 1.1em;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}
.form button:hover {
  background: #ff3d7f;
}



/* Rodapé */
footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-contact h3 {
  color: #6a0dad;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-contact p, 
.footer-contact a {
  font-size: 1rem;
  margin: 10px 0;
  color: #ddd;
  text-decoration: none;
}

.footer-contact a.whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: #fff;
  padding: 10px 15px;
  border-radius: 30px;
  font-weight: 600;
  transition: background 0.3s;
}

.footer-contact a.whatsapp img {
  width: 20px;
  height: 20px;
}

.footer-contact a.whatsapp:hover {
  background-color: #1ebe54;
}

.footer-info {
  margin-top: 30px;
}

.footer-info p {
  font-size: 0.9rem;
  color: #aaa;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 200px;
    height: 100vh;
    background: linear-gradient(180deg, #6a0dad, #2c003e);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 20px;
    gap: 25px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.4);
    transition: right 0.3s ease-in-out;
    z-index: 15;
  }

  .menu li a {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.2s;
  }

  .menu li a:hover {
    color: #d4a5ff;
  }

  .menu.active {
    right: 0; /* aparece deslizando */
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .text-overlay {
    font-size: 45px; 
    white-space: normal; 
    padding: 10px;
  }
}
