:root {
  --bg-dark: #0f0f0f;
  --bg-card: #1a1a1a;
  --text-light: #f5f5f5;
  --gold: #d1a858;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

/* Estado inicial (invisível e levemente deslocado) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Quando visível na tela */
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  background: radial-gradient(circle at center, #1a1a1a, #0d0d0d);
  color: white;
  padding-top: 90px;
}

/* Ajustes gerais de responsividade do body */
img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1,
h2,
h3,
p {
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: 1fr !important;
  }

  section {
    padding: 1.5rem 1rem;
  }
}

/* LINHAS DIAGONAIS BACKGROUND */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 40px);
  z-index: -1;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-card);
  padding: 1rem 0;
  z-index: 9999;
  /* garante que fica acima de tudo */
}

.header-content {
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  padding: 0 4vw;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-area img {
  width: 300px;
  height: auto;
}

.logo {
  height: 40px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
}

/* botão hambúrguer (invisível em desktop) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* mobile menu (inicialmente escondido) */
.mobile-nav {
  display: none;
  background-color: var(--bg-card);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* conteúdo interno alinhado ao container */
.mobile-nav .mobile-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  color: var(--text-light);
  text-decoration: none;
  display: block;
  padding: 0.75rem 0.5rem;
  font-weight: bold;
}

.mobile-nav a:active,
.mobile-nav a:hover {
  background: rgba(209, 168, 88, 0.08);
  border-radius: 4px;
  color: var(--text-light);
}

@media (max-width: 768px) {
  nav.desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .logo-area img {
    width: 180px;
    max-width: 45vw;
    height: auto;
  }

  header {
    padding: 0.5rem 0;
  }

  .mobile-nav.open {
    display: block;
  }
}

[id] {
  scroll-margin-top: 90px;
}

/* HERO */
.hero {
  padding: 5rem 0;
}

.hero-logo img {
  width: 22vw;
  max-width: 380px;
  height: auto;
}

.hero-content {
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
}

.hero-text {
  max-width: 580px;
}

.hero-text h2 {
  color: var(--gold);
  font-size: 3rem;
}

.hero-text p {
  max-width: 500px;
}

.logo-container {
  perspective: 1000px;
  /* controla a profundidade 3D */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animação 3D 
@keyframes girar3D {
  0% {
    transform: rotateY(0deg);
  }

  25% {
    transform: rotateY(90deg);
  }

  50% {
    transform: rotateY(-90deg);
  }

  75% {
    transform: rotateY(90deg);
  }

  100% {
    transform: rotateY(0deg);
  }
}
*/

.logo-3d {
  animation: girar3D 12s linear infinite;
  transform-style: preserve-3d;
}

.btn {
  background-color: var(--gold);
  color: #000;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  margin-top: 1rem;
}

/* Responsividade do HERO */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    margin-top: 40px;
    padding: 0 1rem;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-content {
    flex-direction: column-reverse;
  }

  .hero-text h2 {
    font-size: 2.2rem;
  }

  .hero-text p {
    max-width: 100%;
    font-size: 1rem;
  }

  .hero-logo img {
    width: 40vw;
    max-width: 240px;
  }
}

/* Responsividade HERO */
@media (max-width: 576px) {
  .hero-text h2 {
    font-size: 1.8rem;
  }

  .hero-content {
    flex-direction: column-reverse;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

  .hero-logo img {
    width: 55vw;
    max-width: 200px;
  }
}

/* DIFERENCIAIS */
.diferenciais {
  background-color: var(--bg-card);
  padding: 2rem 0;
}

.icones {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: auto;
  gap: 2rem;
}

.icone-card {
  text-align: justify;
  max-width: 300px;
}

.icone-card .icon {
  text-align: center;
  font-size: 30px;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .icones {
    justify-content: center;
  }
}

/* Responsividade */
@media (max-width: 576px) {
  .icones {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .icone-card {
    max-width: 90%;
  }

  .icone-card p {
    text-align: center;
    /* Centraliza texto no mobile */
  }

  .icone-card .icon {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* SERVIÇOS */

.section {
  padding: 3rem 0;
}

.section h2 {
  text-align: center;
  color: var(--gold);
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tags span {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: 0.3s;
  text-align: center;
}

.descricao-servicos {
  max-width: var(--max-width);
  margin: auto;
  text-align: center;
}

.tags span:hover {
  background-color: var(--gold);
  color: #000;
}

.tags span.active {
  background-color: var(--gold);
  color: #000;
  font-weight: bold;
}

.servicos-toggle {
  display: none;
}

/* Responsividade mbile: botão para abrir lista */
@media (max-width: 776px) {
  .servicos-toggle {
    display: block;
    background: var(--gold);
    color: #000;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    width: fit-content;
    margin: 0 auto 1rem auto;
    font-size: 1.1rem;
  }

  .container-servicos {
    background-color: rgba(0, 0, 0, 0.411);
    padding: 8% 5% 8% 5%;
    margin: 20px;
    border-radius: 8px;
  }

  .servicos-toggle .seta {
    transition: transform 0.3s ease;
  }

  /* Lista oculta inicialmente */
  .tags {
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  /* Lista aberta */
  .tags.open {
    display: flex;
    max-height: 500px;
    background-color: rgba(0, 0, 0, 0.507);
    border-radius: 13px;
  }

  /* Girar seta quando aberto */
  .servicos-toggle.open .seta {
    transform: rotate(180deg);
  }

  #nossos-servicos {
    color: black;
  }
}

/* MVV */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: auto;
  text-align: justify;
}

.mvv-grid h2 {
  color: var(--gold);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
  .mvv-grid {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .tags {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .tags span {
    width: 100%;
    max-width: 300px;
  }

  .descricao-servicos {
    padding: 0 1rem;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mvv-grid div {
    padding: 0 1rem;
  }
}

/* SOBRE */
.sobre p {
  max-width: var(--max-width);
  margin: 0.5rem auto;
  text-align: justify;
}

/* SOBRE */
.sobre p {
  max-width: var(--max-width);
  margin: 0.5rem auto;
  text-align: justify;
  padding: 0 1rem;
  /* respiro lateral no mobile */
}

/* CONTATO */
.contato-grid {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  /* espaço proporcional */
  flex-wrap: nowrap;
  /* sempre na mesma linha */
  justify-content: center;
  text-align: center;
  max-width: 100%;
  margin: 40px auto;
  font-size: 14px;
  gap: 1.5rem;
}

.svg-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 5vw, 70px);
  /* mínimo 40px, máximo 70px */
  height: clamp(40px, 5vw, 70px);
  border-radius: 50%;
  background-color: #292929;
  margin-bottom: 6px;
}

.svg-container svg {
  width: 70%;
  height: 70%;
}

.contato-card {
  font-size: clamp(10px, 1.5vw, 14px);
}

.contato-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 200px;
  flex: 1 1 auto;
  min-width: 60px;
}

.contato a {
  text-decoration: none;
  color: inherit;
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
  .contato-grid {
    justify-content: center;
    gap: 2rem;
  }

  .contato a {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .contato-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .contato-card {
    max-width: 280px;
  }

  .svg-container {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 500px) {
  .contato-grid {
    gap: 0.5rem;
  }

  .svg-container {
    width: 70px;
    height: 70px;
  }
}

/* FOOTER */
footer {
  background-color: var(--bg-card);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsividade para telas pequenas */
@media (max-width: 480px) {
  footer {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-content span {
  font-size: 14px;
}

/* Responsividade: no celular só o ícone */
@media (max-width: 600px) {
  .whatsapp-content span {
    display: none;
  }

  .whatsapp-float {
    padding: 12px;
    border-radius: 50%;
  }
}