/* ============================================================
   IMECO — Grampos, Pregos e Grampeadores Industriais
   CSS vanilla. Réplica fiel do site original (Elementor):
   medidas, cores e tipografia extraídas do site em produção.
   ============================================================ */

/* ---------- Fontes ----------
   Imeco Sans — fonte própria da casa, derivada da Saira (SIL Open Font License)
   e calibrada para ter a mesma proporção da Geogrotesque, que é comercial.
   Ver pasta "Fonte Imeco Sans" na raiz do projeto (licença OFL incluída).
   Duas famílias lógicas mantidas para espelhar a estrutura do site original:
   "bd" para títulos e "reg" para textos. */
@font-face {
  font-family: "Imeco Sans";
  src: url("/assets/fonts/ImecoSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Imeco Sans";
  src: url("/assets/fonts/ImecoSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/Montserrat-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --azul: #00427A;
  --vermelho: #C21E23;
  --amarelo: #FBB22F;
  --amarelo-faixa: #FCB116;
  --amarelo-menu: #FCB414;
  --cinza-card: #EEEEEE;
  --texto: #333333;
  --menu-inativo: #3A3A3A;
  --bd: "Imeco Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --reg: "Imeco Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fonte-menu: "Montserrat", var(--reg);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--reg);
  color: var(--texto);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
section[id], [id] { scroll-margin-top: 6rem; }

/* Container de conteúdo: 1140px como no original */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Títulos de seção (60px no original) ---------- */
.titulo-secao {
  font-family: var(--bd);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  padding-block: 2.5rem;
}
@media (min-width: 768px)  { .titulo-secao { font-size: 3.75rem; padding-block: 3.5rem; } }
.titulo-azul    { color: var(--azul); }
.titulo-branco  { color: #fff; }
.titulo-amarelo { color: var(--amarelo); }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-family: var(--bd);
  font-weight: 800;          /* igual ao original */
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 5px;
  padding: 0.9rem 2rem;
  transition: filter 0.25s ease, transform 0.25s ease;
}
@media (min-width: 768px) { .btn { font-size: 1.625rem; padding: 1rem 2rem; } }
.btn-amarelo { background: var(--amarelo); color: #000; }
.btn-vermelho { background: var(--vermelho); color: #fff; }
.btn:hover { filter: brightness(0.93); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- Header (fixo ao rolar, 90px, fundo branco) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
  max-width: 1366px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 1024px) { .header-inner { height: 5.625rem; padding-inline: 4.25rem; } }
.header-logo img { height: 2.75rem; width: auto; }
@media (min-width: 1024px) { .header-logo img { height: 3.5rem; } }

.nav-desktop { display: none; align-items: center; gap: 2.5rem; }
.nav-link {
  font-family: var(--fonte-menu);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--menu-inativo);
  transition: color 0.25s ease;
}
.nav-link:hover, .nav-link-ativo { color: var(--amarelo-menu); }

.header-social { display: none; align-items: center; gap: 0.9rem; color: var(--texto); }
.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* área de toque confortável em telas de dedo (o ícone continua com 18px) */
  min-width: 44px;
  min-height: 44px;
  margin: -0.5rem;
  transition: color 0.25s ease;
}
.header-social a:hover { color: var(--amarelo-menu); }

.menu-toggle { padding: 0.5rem; color: var(--vermelho); display: inline-flex; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-mobile { background: #fff; padding: 1rem; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12); }
.menu-mobile nav { display: flex; flex-direction: column; }
.menu-mobile-link {
  font-family: var(--fonte-menu);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--menu-inativo);
  padding-block: 0.65rem;
}
.menu-mobile-link:hover { color: var(--amarelo-menu); }

@media (min-width: 1024px) {
  .nav-desktop, .header-social { display: flex; }
  .menu-toggle, .menu-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--azul) url("/assets/img/banner-home.webp") top center / cover no-repeat;
  color: #fff;
  padding-block: 2.5rem 3rem;
}
@media (min-width: 768px) { .hero { min-height: 679px; padding-block: 3.5rem 4rem; } }
@media (max-width: 767.98px) {
  .hero {
    background-image: url("/assets/img/banner-home-mobile.webp");
    background-position: top center;
  }
}

.hero-texto { max-width: 809px; padding: 10px; }
/* rede de segurança: em telas muito estreitas (ex.: celular dobrável fechado)
   as palavras longas quebram em vez de empurrar a página para o lado */
.hero-texto h1, .titulo-secao, .produto-texto h3, .slide-card h3, .porque-card h3 {
  overflow-wrap: break-word;
}
@media (max-width: 340px) {
  .hero-texto h1 { font-size: 1.75rem; }
  .titulo-secao { font-size: 1.85rem; }
}
.hero-texto h1 {
  font-family: var(--bd);
  font-size: 2.0625rem;      /* 33px mobile */
  font-weight: 800;          /* igual ao original: peso 800 sobre a face 700 */
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .hero-texto h1 { font-size: 4.25rem; line-height: 75px; }  /* 68px/75px */
}
.hero-texto p {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) { .hero-texto p { font-size: 1.25rem; line-height: 30px; } }

/* Bloco azul com vídeo + texto */
.hero-video-bloco {
  background: var(--azul);
  padding: 1.25rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .hero-video-bloco { flex-direction: row; align-items: stretch; gap: 1.25rem; padding: 48px; margin-top: 3rem; }
  .hero-video-col { flex: 0 0 606px; max-width: 606px; }
  .hero-video-texto { flex: 1; padding: 0 32px; display: flex; flex-direction: column; justify-content: center; }
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 14px;
  background: rgba(33, 33, 33, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.video-facade:hover .video-play { background: #ff0000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hero-video-texto h2,
.hero-video-texto p {
  font-family: var(--reg);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
}
@media (min-width: 768px) {
  .hero-video-texto h2, .hero-video-texto p { font-size: 1.25rem; line-height: 26px; }
}
.hero-video-texto h2 { margin-bottom: 1.25rem; }

.hero-cta-final { text-align: center; margin-top: 2.5rem; }

/* ---------- Produtos (lista) ---------- */
.produtos {
  background: #fff url("/assets/img/fundo-produtos.webp") top left repeat;
  padding-bottom: 3rem;
}
@media (min-width: 768px) { .produtos { padding-bottom: 4rem; } }
.produtos .container { max-width: 998px; padding-inline: 1rem; }

.produto-row {
  background: var(--cinza-card);
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .produto-row { flex-direction: row; gap: 1.5rem; }
  .produto-row-reverse { flex-direction: row-reverse; }
  .produto-img { flex: 0 0 469px; max-width: 469px; }
  .produto-texto { flex: 1; padding-right: 1rem; }
  .produto-row-reverse .produto-texto { padding-right: 0; padding-left: 1rem; }
}
.produto-img img { width: 100%; height: auto; }
.produto-texto h3 {
  font-family: var(--bd);
  font-size: 1.625rem;   /* 26px mobile */
  font-weight: 700;
  line-height: 1;
  color: #000;
  margin-bottom: 0.9rem;
}
@media (min-width: 768px) { .produto-texto h3 { font-size: 2rem; } }
.produto-texto p { font-size: 1.0625rem; line-height: 1.5; color: var(--texto); }

/* bloco de download do catálogo, ao final da lista de produtos */
.produtos-catalogo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.produtos-catalogo .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.produtos-catalogo-nota {
  font-size: 0.85rem;
  color: var(--texto);
  opacity: 0.75;
}

/* ---------- Carrossel de produtos ---------- */
.carrossel-produtos { background: var(--vermelho); padding-bottom: 3.5rem; }

.carousel { position: relative; width: 100%; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; align-items: flex-start; transition: transform 0.5s ease; }

.slide-produto { flex: 0 0 100%; min-width: 0; padding: 0 10px; }
@media (min-width: 768px) { .slide-produto { flex-basis: 33.3333%; } }
.slide-card {
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e4 100%);
  border-radius: 30px;
  padding: 10px;
}
.slide-card img {
  width: 100%;
  aspect-ratio: 287 / 211;
  object-fit: contain;
  background: #f2f2f2;
  border-radius: 22px;
  margin-bottom: 1rem;
}
.slide-card h3 {
  font-family: var(--bd);
  font-size: 1.375rem;   /* 22px mobile */
  font-weight: 700;
  line-height: 1.1;
  color: #000;
  padding-inline: 10px;
  margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .slide-card h3 { font-size: 1.6875rem; } }
.slide-card p {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--texto);
  padding: 0 10px 1rem;
}

.carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  color: #fff;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}
.carousel-arrow:hover { opacity: 0.7; }
.carousel-prev { left: -0.75rem; }
.carousel-next { right: -0.75rem; }
@media (min-width: 1024px) {
  .carousel-prev { left: -2rem; }
  .carousel-next { right: -2rem; }
}
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.carousel-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-dot.active { width: 1.4rem; background: #fff; }

/* ---------- Porque escolher ---------- */
.porque { background: var(--azul); padding-bottom: 3.5rem; }
.porque-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px)  { .porque-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .porque-grid { grid-template-columns: repeat(4, 1fr); } }

.porque-card {
  background: linear-gradient(180deg, #ffffff 0%, #e3e3e3 100%);
  border-radius: 10px;
  padding: 32px 32px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.porque-card img { width: 101px; height: 101px; margin-bottom: 1.5rem; }
.porque-card h3 {
  font-family: var(--bd);
  font-size: 1.4375rem;   /* 23px */
  font-weight: 700;
  line-height: 1.1;
  color: var(--vermelho);
  margin-bottom: 1.25rem;
}
.porque-card p { font-size: 1.0625rem; line-height: 22px; color: var(--texto); }

.porque-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Orçamento (form) ---------- */
.orcamento {
  position: relative;
  overflow: hidden;
  background: #000;
  padding-bottom: 3.5rem;
}
.orcamento-bg {
  position: absolute;
  inset: 0;
  /* igual ao original: a foto cobre a área; o preto fica ATRÁS dela
     (aparece só nas bordas quando a imagem não preenche tudo) */
  background: #000 url("/assets/img/bg-contato-v2.webp") center / cover no-repeat;
}
.orcamento-conteudo { position: relative; z-index: 2; text-align: center; }
.orcamento .titulo-secao { padding-bottom: 1.5rem; }
@media (min-width: 768px) { .orcamento .titulo-secao { line-height: 42px; } }

.orcamento-sub {
  font-family: var(--bd);
  color: #fff;
  font-size: 1.1875rem;   /* 19px mobile */
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .orcamento-sub { font-size: 1.75rem; line-height: 32px; } }
.orcamento-chamada {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .orcamento-chamada { font-size: 1.3125rem; } }

.form-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.25rem;
  max-width: 920px;
  margin-inline: auto;
  text-align: left;
}
@media (min-width: 768px) { .form-card { padding: 2.5rem 80px; } }

.form-field { margin-bottom: 1rem; }
.form-duplo { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 640px) { .form-duplo { grid-template-columns: 1fr 1fr; } }

.form-field input,
.form-field select {
  width: 100%;
  height: 3.25rem;
  border: 1px solid #000;
  border-radius: 5px;
  padding: 7px 20px;
  font-family: var(--reg);
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  background: transparent;
}
@media (min-width: 768px) { .form-field input, .form-field select { height: 59px; } }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form-field input::placeholder { color: #333; opacity: 1; }
.form-field input:focus, .form-field select:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 2px rgba(0, 66, 122, 0.18);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-feedback { display: none; font-size: 1rem; margin-bottom: 1rem; }
.form-feedback.error { display: block; color: var(--vermelho); font-weight: 600; }
.form-feedback.success { display: block; color: #1a7a2e; font-weight: 700; }

.btn-enviar {
  width: 100%;
  background: var(--vermelho);
  color: #fff;
  font-family: var(--bd);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 5px;
  padding: 21px;
  transition: filter 0.25s ease;
}
@media (min-width: 768px) { .btn-enviar { font-size: 2.3125rem; } }
.btn-enviar:hover { filter: brightness(0.92); }
.btn-enviar:disabled { opacity: 0.7; cursor: wait; }

/* aviso de uso dos dados (LGPD) */
.aviso-dados {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #6b6b6b;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--vermelho); color: #fff; padding-block: 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-logo-box { justify-self: start; }
  .footer-social { justify-self: end; }
}
.footer-logo-box img { height: 78px; width: auto; max-width: 100%; object-fit: contain; }
.footer-endereco { font-size: 1.125rem; line-height: 1.5; }
.footer-endereco svg { margin: 0 auto 0.35rem; }
.footer-contatos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.6rem;
  font-size: 1rem;
}
.footer-contatos a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  /* altura confortável para toque no celular */
  min-height: 44px;
  transition: opacity 0.25s ease;
}
.footer-contatos a:hover { opacity: 0.8; text-decoration: underline; }
.footer-contatos svg { margin: 0; flex-shrink: 0; }
@media (min-width: 768px) {
  .footer-contatos { flex-direction: row; justify-content: center; gap: 1.25rem; }
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: opacity 0.25s ease;
}
.footer-social a:hover { opacity: 0.75; }

.faixa-copyright {
  background: var(--amarelo-faixa);
  color: #000;
  text-align: center;
  font-size: 0.9375rem;
  padding-block: 1.1rem;
}

/* ---------- Animações de entrada (réplica do Elementor) ---------- */
.anim { opacity: 0; will-change: transform, opacity; }
.anim-visivel { animation-duration: 1.1s; animation-fill-mode: both; animation-timing-function: ease-out; }
.anim[data-anim="fadeIn"].anim-visivel        { animation-name: fadeIn; }
.anim[data-anim="fadeInUp"].anim-visivel      { animation-name: fadeInUp; }
.anim[data-anim="fadeInDown"].anim-visivel    { animation-name: fadeInDown; }
.anim[data-anim="fadeInLeft"].anim-visivel    { animation-name: fadeInLeft; }
.anim[data-anim="fadeInRight"].anim-visivel   { animation-name: fadeInRight; }

@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp    { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown  { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft  { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }

/* As faixas que contêm elementos animados não podem gerar barra horizontal */
.produtos, .porque, .orcamento, .carrossel-produtos { overflow-x: clip; }

/* ---------- Página de erro ---------- */
.hero-compact { min-height: 55vh; display: flex; align-items: center; text-align: center; }
.hero-compact .hero-texto { margin-inline: auto; }

/* ---------- Acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { opacity: 1 !important; }
  .anim-visivel { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Botão flutuante do WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float svg { width: 1.75rem; height: 1.75rem; }
.whatsapp-float:hover {
  background: #1EBE5B;
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}
.whatsapp-float:active { transform: scale(0.95); }
.whatsapp-float:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.5), 0 6px 16px rgba(0, 0, 0, 0.25);
}
.whatsapp-float-label {
  position: absolute;
  right: calc(100% + 0.625rem);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
@media (min-width: 768px) {
  .whatsapp-float { right: 1.5rem; bottom: 1.5rem; width: 3.75rem; height: 3.75rem; }
  .whatsapp-float:hover .whatsapp-float-label,
  .whatsapp-float:focus-visible .whatsapp-float-label { opacity: 1; visibility: visible; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float { transition: none; } }
