/* ============================
   LEÃO METALÚRGICA — ESTILOS
   ============================ */

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

html { scroll-behavior: smooth; }

:root {
  --amarelo: #FCCB04;
  --preto:   #1A1A1A;
  --cinza:   #F4F4F4;
  --branco:  #FFFFFF;
  --texto:   #333333;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--texto);
  background: var(--branco);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER ---------- */
header {
  background: linear-gradient(180deg, #262626 0%, var(--preto) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  color: var(--branco);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo span { color: var(--amarelo); }

.logo-img {
  height: 74px;
  width: auto;
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--branco);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

nav { display: flex; align-items: center; gap: 28px; }

nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

nav a:hover { color: var(--branco); }

nav a:not(.btn-nav):not(.social-icon) { position: relative; }

nav a:not(.btn-nav):not(.social-icon)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--amarelo);
  transition: width 0.25s ease;
}

nav a:not(.btn-nav):not(.social-icon):hover::after { width: 100%; }

.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav {
  background: var(--amarelo);
  color: var(--preto) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem !important;
  transition: opacity 0.2s !important;
}

.btn-nav:hover { opacity: 0.85; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Se a imagem não carregar, mostra um fundo escuro */
  background: #2a2a2a;
}

/* Fallback quando não tem imagem */
.hero:not(:has(.hero-bg[src$=".jpg"])) { background: linear-gradient(135deg, #1a1a1a 60%, #2c2c2c); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0) 220px),
    linear-gradient(to right, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.3));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  animation: heroFadeUp 0.8s ease both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--branco);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  color: #ddd;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.btn-hero {
  display: inline-block;
  background: #25D366;
  color: var(--branco);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}

.btn-hero:hover { background: #1ebe59; transform: translateY(-2px); }

/* ---------- SERVIÇOS ---------- */
.servicos {
  padding: 80px 0;
  background: var(--branco);
}

.servicos h2, .sobre h2, .contato h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--preto);
  margin-bottom: 12px;
}

.subtitulo {
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--branco);
  text-decoration: none;
  color: inherit;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #e0e0e0;
  transition: transform 0.4s ease;
}

.card:hover img { transform: scale(1.06); }

.card-body { padding: 20px; }

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--preto);
  margin-bottom: 8px;
}

.card-body p { font-size: 0.95rem; color: #555; line-height: 1.5; }

/* ---------- DIFERENCIAIS ---------- */
.diferenciais {
  background: var(--preto);
  padding: 64px 0;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.diferencial { text-align: center; }

.diferencial span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
  transition: transform 0.25s ease;
}

.diferencial:hover span { transform: scale(1.15) rotate(-4deg); }

.diferencial h4 {
  color: var(--amarelo);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.diferencial p { color: #aaa; font-size: 0.9rem; line-height: 1.5; }

/* ---------- SOBRE ---------- */
.sobre {
  padding: 80px 0;
  background: var(--cinza);
}

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sobre-texto p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 16px;
}

.sobre-img img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  object-fit: cover;
  height: 340px;
  background: #ccc;
}

/* ---------- CONTATO ---------- */
.contato {
  padding: 80px 0;
  background: var(--amarelo);
  text-align: center;
}

.contato h2 { color: var(--preto); }

.contato p {
  color: var(--preto);
  opacity: 0.75;
  margin: 16px 0 32px;
  font-size: 1.05rem;
}

.contato .btn-hero { background: var(--preto); }
.contato .btn-hero:hover { background: #333; }

/* ---------- FOOTER ---------- */
footer {
  background: #111;
  color: #888;
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ---------- WHATSAPP FLUTUANTE ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.7);
  animation-play-state: paused;
}

@keyframes pulseWhatsapp {
  0% { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-float { animation: pulseWhatsapp 2.5s ease-out infinite; }

/* ---------- ANIMAÇÕES AO ROLAR ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- ESTATÍSTICAS ---------- */
.estatisticas {
  background: var(--preto);
  padding: 56px 0;
}

.estatisticas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.estatistica .stat-number,
.estatistica .stat-suffix {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--amarelo);
}

.estatistica p {
  color: #ccc;
  font-size: 0.95rem;
  margin-top: 6px;
}

/* ---------- DEPOIMENTOS ---------- */
.depoimentos {
  padding: 80px 0;
  background: var(--cinza);
  text-align: center;
}

.depoimentos-marquee {
  overflow: hidden;
  margin-top: 48px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.depoimentos-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: depoimentosScroll 34s linear infinite;
}

@keyframes depoimentosScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.depoimento-card {
  flex: 0 0 320px;
  background: var(--branco);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.depoimento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

.depoimento-texto {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 16px;
}

.depoimento-autor {
  font-weight: 700;
  color: var(--preto);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .depoimentos-track { animation: none; }
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.dot.is-active { background: var(--amarelo); }

/* ---------- FORMULÁRIO DE ORÇAMENTO ---------- */
.form-orcamento {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-orcamento input {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

.form-orcamento input:focus {
  outline: 2px solid var(--preto);
  outline-offset: 1px;
}

.form-status {
  margin-top: 16px;
  font-weight: 600;
  color: var(--preto);
  min-height: 1.2em;
}

.btn-link-alt {
  display: inline-block;
  margin-top: 20px;
  color: var(--preto);
  text-decoration: underline;
  font-size: 0.95rem;
}

/* ---------- PÁGINA DE SERVIÇO ---------- */
.servico-topo {
  background: var(--preto);
  padding: 56px 0;
  color: var(--branco);
}

.voltar-link {
  display: inline-block;
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.voltar-link:hover { color: var(--amarelo); }

.servico-topo h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.servico-topo p {
  color: #ccc;
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.servico-galeria { padding: 72px 0; background: var(--branco); }

.servico-galeria h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--preto);
  margin-bottom: 32px;
}

.galeria-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.galeria-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #e0e0e0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.galeria-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.galeria-foto.is-active { opacity: 1; }

.galeria-seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.45);
  color: var(--branco);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
}

.galeria-seta:hover { background: var(--amarelo); color: var(--preto); }

.galeria-seta-prev { left: 14px; }
.galeria-seta-next { right: 14px; }

.galeria-seta.is-hidden { display: none; }

.galeria-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.galeria-dots.is-hidden { display: none; }

/* ---------- ÍCONES SOCIAIS (FOOTER) ---------- */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s, transform 0.2s;
}

.social-icon:hover { background: var(--amarelo); transform: translateY(-2px); }

.social-icon svg { width: 18px; height: 18px; fill: #ccc; transition: fill 0.2s; }

.social-icon:hover svg { fill: var(--preto); }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }

  nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--preto);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  nav.is-open { max-height: 420px; }

  nav a {
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  nav a.btn-nav {
    border-radius: 0;
    text-align: center;
  }

  .sobre-inner { grid-template-columns: 1fr; }
  .hero { height: 70vh; }

  .galeria-seta {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .header-social {
    width: 100%;
    justify-content: center;
    gap: 20px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .depoimento-card {
    flex: 0 0 260px;
    padding: 22px 18px;
  }
}
