:root {
  --preto: #292323;
  --dourado: #d4af37;
  --dourado-hover: #facd3a;
  --branco: #ffffff;
  --cinza: #bdbdbd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: var(--preto);
  color: var(--branco);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 80px 10px;
  max-width: 1200px;
  margin: auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h2 {
  color: var(--dourado);
  margin-bottom: 20px;
  font-size: 32px;
}

.client-card,
.service-card {
  touch-action: manipulation;
}

.service-card.active {
  z-index: 100;
}

/* Hover desktop */
@media (hover: hover) {
  .service-card.active {
    pointer-events: none;
  }
  
  .service-card:hover {
    border-color: var(--dourado);
    transform: translateY(-6px);
    z-index: 10;
    transform: translateY(-12px) scale(1.02);
    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(212, 175, 55, 0.25);
  }

  .service-card:hover .service-expand {
    max-height: 600px;
    opacity: 1;
  }

  .service-card:hover .service-long {
    transform: translateY(0);
  }

  .clients-marquee:hover .clients-track {
    animation-play-state: paused;
  }

  .client-card:hover .client-bg {
    opacity: 0.75;
  }

  .client-card:hover .client-logo {
    opacity: 0.6;
  }
}

/* ===== NAVBAR ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 11, 11, 0.95);
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
  z-index: 100;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: var(--dourado);
  font-size: 24px;
}

.nav-logo {
  width: 70px;
  height: 70px;
  align-items: center;
  gap: 5px;
}

.menu {
  display: flex;
  gap: 32px;
}

.menu a {
  position: relative;
  font-size: 18px;
  color: transparent;
  background-image: linear-gradient(90deg,
      #ffffff 0%,
      #ffffff 50%,
      var(--dourado) 50%,
      var(--dourado) 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 0.4s ease;
  display: inline-block;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: var(--dourado);
  transition: width 0.3s ease, left 0.3s ease;
}

.menu a:hover {
  background-position: -100% 0%;
}

.menu a:hover::after {
  width: 100%;
  left: 0;
}

/* ===== HERO ===== */
/* override global section max-width apenas para hero */
.hero {
  width: 100vw;
  min-height: 96vh;
  max-width: none !important;
  background:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url("../images/img_hero.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.4);
  background-attachment: fixed;
}

.hero-inner {
  max-width: 1200px;
  /* controla a largura do conteúdo */
  text-align: center;
  padding: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.hero p {
  color: var(--cinza);
  margin: 18px 0 28px;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;

  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      #251f1f 100%);

  pointer-events: none;
}

/* botão com microinterações */
.btn {
  padding: 14px 34px;
  border-radius: 30px;
  border: 1px solid var(--dourado);
  color: var(--dourado);
  background: transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn:hover,
.btn:focus {
  background: var(--dourado);
  color: var(--preto);
  transform: translateY(-4px);
  outline: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ===== QUEM SOMOS ===== */
#about {
  background: #251f1f;
  padding: 160px 10px;
}

.about {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.35);
  padding: 48px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  border: 1px solid rgba(212, 175, 55, 0.08);
}

#about h2 {
  font-size: clamp(36px, 4vw, 48px);
  margin-bottom: 24px;
}

#about p {
  font-size: 18px;
  line-height: 1.8;
  color: #d1d1d1;
  max-width: 520px;
}

.about img {
  max-width: 520px;
  justify-self: end;
  border-radius: 14px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(212, 175, 55, 0.08);
}

.about {
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SERVIÇOS ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: #111;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  z-index: 1;
  transition: border 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--dourado);
}

.service-card h3 {
  color: var(--dourado);
  padding-bottom: 14px;
}

.service-card p {
  padding-bottom: 20px;
}

.service-card img {

  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--dourado);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Conteúdo expandido */
.service-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition:
    max-height 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s ease;
}

/* Texto longo */
.service-long {
  margin-top: 16px;
  color: #d0d0d0;
  font-size: 15px;
  line-height: 1.6;
  transform: translateY(10px);
  transition: transform 0.6s ease;
}

/* Estado ativo (mobile) */
.service-card.active .service-expand {
  max-height: 600px;
  opacity: 1;
}

/*Service-card overlay*/
/* ===== OVERLAY DE FUNDO ===== */
.service-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 90;
}

.service-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== CLIENTES ===== */
.stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat h3 {
  font-size: 36px;
  color: var(--dourado);
}

/* ===== CLIENTES & PARCEIROS ===== */
.clients-desc {
  text-align: center;
  color: var(--cinza);
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 16px;
}

.clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
}

.client-card {
  position: relative;
  min-width: 290px;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(212, 175, 55, 0.25);
  background: #111;

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.client-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(60%) brightness(0.75);
  opacity: 0.4;

  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.client-logo {
  position: relative;
  z-index: 2;

  max-height: 90px;
  max-width: 100%;
  object-fit: contain;

  transition: opacity 0.4s ease, transform 0.3s ease;
}

.client-card img {
  max-height: 60px;
  filter: none;
}

/* Hover / foco */
.client-card:hover,
.client-card.active {
  transform: scale(1.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 5;
  transform: scale(1.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.client-card:hover .client-bg,
.client-card.active .client-bg {
  opacity: 0.75;
  filter: grayscale(0%) brightness(1);
}

.client-card:hover .client-logo,
.client-card.active .client-logo {
  opacity: 0.6;
  transform: scale(0.95);
}

/* ===== CLIENTES MARQUEE ===== */
.clients-marquee {
  overflow: hidden;
  width: 100%;
  margin-top: 40px;
  position: relative;
}

.clients-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ===== MAPA ===== */
iframe {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  border: none;
}

/* ===== FOOTER ===== */
footer {
  background: #050505;
  padding: 40px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer {
  margin: auto;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 180px;
  padding: 0 30px;
  justify-items: center;
}

.footer h3 {
  color: var(--dourado);
  margin-bottom: 12px;
}

.footer-text {
  line-height: 1.8;
  font-size: 15px;
  color: #d0d0d0;
}

.footer p {
  color: var(--cinza);
  font-size: 14px;
}



.footer-col h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #e5e5e5;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-menu a {
  color: var(--cinza);
  font-size: 15px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-menu a:hover {
  color: var(--dourado);
  transform: translateX(4px);
}

.footer-redes {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

.footer-bottom {
  align-items: center;
  text-align: center;
}


.redes {
  width: 34px;
  height: 34px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.redes:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.btn-topo {
  position: fixed;
  bottom: 90px;
  right: 17px;

  width: 46px;
  height: 46px;

  background-color: var(--dourado);
  color: #000000;
  border: 2px solid #000000;

  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 998;
}

.btn-topo.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-topo:hover {
  background-color: var(--dourado-hover);
}

/* ===== WHATSAPP ===== */
.whatsapp-flutuante {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: white;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 999;
}

.whatsapp-flutuante:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  color: white;
}

.whatsapp-flutuante img {
  width: 22px;
}

/* ======= RESPONSIVIDADE ======= */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--dourado);
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
    font-size: 30px;
    order: 2;
  }

  .menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(5, 5, 5, 0.98);
    flex-direction: column;
    padding-bottom: 15px;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .menu.active {
    max-height: 550px;
  }

  .menu a {
    padding: 18px;
    text-align: center;
    font-size: 18px;
  }
}


@media (min-width: 769px) {
  .client-card {
    min-width: 260px;
  }
}

@media(max-width:768px) {

  /*Navbar*/
  .navbar {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    font-size: 20px;
    order: 1;
  }

  .nav-logo {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /*Hero*/
  .hero {
    min-height: 70vh;
    padding: 90px 16px 60px;
    background-position: center top;
    background-position: 70% center;
  }

  .hero::after {
    height: 120px;
  }

  .hero-inner {
    padding: 0;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 13px;
    margin: 14px 0 22px;
  }

  .btn {
    padding: 12px 26px;
    font-size: 14px;
  }

  /*About us*/
  #about {
    padding: 100px 16px;
  }

  .about {
    padding: 28px 20px;
    gap: 24px;
    text-align: center;
  }

  .about img {
    max-width: 100%;
    justify-self: center;
  }

  #about p {
    font-size: 16px;
    line-height: 1.7;
  }


  .service-card img {
    height: 180px;
  }

  /* ===== CLIENTES RESPONSIVO ===== */

  .clients-marquee {
    overflow: hidden;
  }

  .clients-track {
    animation: none;
    gap: 16px;
    animation: marquee 10s linear infinite;
    padding: 0;
  }

  .client-card {
    min-width: 220px;
    height: 140px;
    flex-shrink: 0;
    transform: none !important;
  }

  .client-card:hover {
    transform: none;
  }

  .client-logo {
    max-height: 60px;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer-col,
  .footer-col:last-child {
    text-align: center;
  }

  .footer-redes {
    justify-content: center;
  }

  /* WhatsApp */
  .whatsapp-flutuante {
    bottom: 15px;
    right: 15px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .whatsapp-flutuante span {
    display: none;
  }

  .btn-topo{
    bottom: 75px;
  }
}