/* ==========================================================================
   SIL FIOS E CABOS ELÉTRICOS
   Folha de estilo única do site — compartilhada por todas as páginas.
   --------------------------------------------------------------------------
   Layout, cores e componentes seguem o site original. As classes têm os
   mesmos nomes do HTML original (.hero-slider, .feature-card, .btn-whatsapp…)
   para o markup continuar reconhecível.

   O que foi acrescentado: componentes que as páginas internas de SEO precisam
   (breadcrumb, texto de artigo, tabela técnica, FAQ, calculadora), todos
   desenhados na mesma linguagem visual — navy #1a1a2e, laranja #f7931e,
   Poppins, cantos 10px, botões pill.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIÁVEIS
   -------------------------------------------------------------------------- */
:root {
  --navy: #1a1a2e;
  --navy-2: #16213e;
  --laranja: #f7931e;
  --laranja-escuro: #e8850a;
  --zap: #25d366;
  --zap-escuro: #1da851;

  --texto: #333;
  --texto-claro: #666;
  --cinza-bg: #f5f5f5;
  --cinza-borda: #eee;
  --branco: #fff;

  --sombra-card: 0 5px 20px rgba(0, 0, 0, 0.08);
  --sombra-card-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --sombra-menu: 0 5px 20px rgba(0, 0, 0, 0.15);

  --header-altura: 90px;
  --header-altura-mobile: 70px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button { font: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* Precisa vir depois das regras de componente: várias delas usam
   display:grid/flex, que vence o display:none padrão do navegador
   e faria o atributo [hidden] parar de esconder o elemento. */
[hidden] { display: none !important; }

/* Acessibilidade — foco visível e link de pulo.
   Não muda o visual, mas conta como sinal de qualidade de página. */
:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--navy);
  color: var(--branco);
  padding: 12px 24px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. HEADER
   --------------------------------------------------------------------------
   Original usava position:fixed + margin-top:90px no slider. Trocado por
   sticky: o resultado na tela é idêntico, mas dispensa o número mágico —
   se a altura do header mudar, o conteúdo não fica escondido embaixo dele.
*/
.header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 5px 5%;
  background: rgba(0, 0, 0, 0.2);
}

.header-top-info {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.lang-selector { display: flex; align-items: center; gap: 8px; }
.lang-selector a {
  color: var(--branco);
  font-size: 12px;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.lang-selector a:hover { opacity: 1; }
.lang-selector span { color: var(--branco); opacity: 0.5; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 5%;
}

.logo img { height: 50px; width: auto; }

.nav-menu { display: flex; gap: 5px; }
.nav-menu > li { position: relative; }

.nav-menu > li > a {
  color: var(--branco);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  display: block;
  white-space: nowrap;
  transition: color 0.3s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a[aria-current="page"] { color: var(--laranja); }

.nav-menu li .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--branco);
  min-width: 220px;
  box-shadow: var(--sombra-menu);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  border-radius: 5px;
  overflow: hidden;
}
.nav-menu li:hover .dropdown,
.nav-menu li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 15px;
  color: var(--texto);
  font-size: 13px;
  border-bottom: 1px solid var(--cinza-borda);
  transition: all 0.3s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
  background: var(--laranja);
  color: var(--branco);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-icons { display: flex; gap: 12px; }
.social-icons img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: all 0.3s;
}
.social-icons a:hover img {
  filter: brightness(0) saturate(100%) invert(63%) sepia(89%) saturate(1015%) hue-rotate(360deg) brightness(101%) contrast(94%);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--branco);
  font-size: 24px;
  line-height: 1;
  padding: 6px 10px;
}

/* --------------------------------------------------------------------------
   4. SLIDER PRINCIPAL
   -------------------------------------------------------------------------- */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--branco);
}
.slide-content img { max-width: 400px; }

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--branco);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.slider-nav:hover { background: rgba(255, 255, 255, 0.4); }
.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.slider-dots .dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}
.slider-dots .dot.active { background: var(--branco); }

/* --------------------------------------------------------------------------
   5. SEÇÕES DE CHAMADA (WhatsApp e orçamento)
   -------------------------------------------------------------------------- */
.cta-section,
.orcamento-section {
  text-align: center;
  padding: 50px 5%;
  background: var(--branco);
}
.orcamento-section { padding: 60px 5%; }

.cta-section h2,
.orcamento-section h2 {
  font-size: 28px;
  color: var(--texto);
  margin-bottom: 10px;
  font-weight: 500;
}
.cta-section p,
.orcamento-section p {
  color: var(--texto-claro);
  margin-bottom: 25px;
}

.btn-whatsapp,
.btn-orcamento {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  color: var(--branco);
  transition: all 0.3s;
}

.btn-whatsapp {
  background: var(--zap);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
  background: var(--zap-escuro);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-orcamento {
  background: var(--laranja);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(247, 147, 30, 0.4);
}
.btn-orcamento:hover {
  background: var(--laranja-escuro);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 147, 30, 0.5);
}

.icon-whatsapp {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Botão secundário, usado nas páginas internas */
.btn-linha {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 30px;
  border: 2px solid var(--laranja);
  color: var(--laranja);
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s;
}
.btn-linha:hover {
  background: var(--laranja);
  color: var(--branco);
}
.btn-linha--claro {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--branco);
}
.btn-linha--claro:hover {
  background: var(--branco);
  color: var(--navy);
  border-color: var(--branco);
}

.btn-grupo {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   6. SLIDER DE PRODUTOS
   -------------------------------------------------------------------------- */
.products-slider {
  position: relative;
  overflow: hidden;
  background: var(--cinza-bg);
}
.products-slider-container {
  display: flex;
  transition: transform 0.5s ease;
}
.product-slide {
  min-width: 100%;
  position: relative;
}
.product-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.product-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--branco);
}

/* --------------------------------------------------------------------------
   7. FAIXA DE DESTAQUES (5 cards com imagem e overlay)
   -------------------------------------------------------------------------- */
.features-section {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--navy);
}

.feature-card {
  position: relative;
  overflow: hidden;
  height: 250px;
}
.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.feature-card:hover img { transform: scale(1.1); }

.feature-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--branco);
  text-align: center;
  padding: 20px;
  transition: background 0.3s;
}
.feature-card:hover .overlay { background: rgba(0, 0, 0, 0.62); }

.feature-card .icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  fill: currentColor;
}
.feature-card h3 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   8. PRODUTOS & SERVIÇOS
   -------------------------------------------------------------------------- */
.products-services {
  padding: 80px 5%;
  background: var(--branco);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 32px;
  color: var(--texto);
  margin-bottom: 20px;
  font-weight: 400;
}
.section-header p {
  color: var(--texto-claro);
  max-width: 700px;
  margin: 0 auto;
  font-size: 15px;
}
.section-header strong {
  color: var(--texto);
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--branco);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--sombra-card);
  transition: all 0.3s;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--sombra-card-hover);
}

.product-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-image .label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--texto);
}

.product-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-content h3 {
  font-size: 22px;
  color: var(--texto);
  margin-bottom: 15px;
  font-weight: 500;
}
.product-card-content p {
  color: var(--texto-claro);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.7;
  flex: 1;
}
.product-card-content a.saiba-mais {
  color: var(--laranja);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  align-self: flex-start;
}
.product-card-content a.saiba-mais:hover { color: var(--laranja-escuro); }

/* --------------------------------------------------------------------------
   9. BOTÃO FLUTUANTE DO WHATSAPP
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
.floating-whatsapp a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--zap);
  color: var(--branco);
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
}
.floating-whatsapp a:hover {
  transform: scale(1.05);
  background: var(--zap-escuro);
}

/* --------------------------------------------------------------------------
   10. RODAPÉ
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy);
  color: var(--branco);
  padding: 60px 5% 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--branco);
}
.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 8px;
}
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.footer-section a:hover { color: var(--laranja); }
.footer-section .highlight { color: var(--branco); font-weight: 600; }
.footer-section .link-orange { color: var(--laranja); display: inline; }
.footer-logo { width: 80px; margin-bottom: 20px; }

.news-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.news-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.news-item-content h5 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
}
.news-item-content a {
  color: var(--laranja);
  font-size: 13px;
  margin-bottom: 0;
}

.footer-disclaimer {
  padding: 20px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  text-align: center;
  padding: 25px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}
.footer-bottom a { color: var(--laranja); }

/* ==========================================================================
   COMPONENTES DAS PÁGINAS INTERNAS
   Mesma linguagem visual: navy, laranja, Poppins, cantos 10px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   11. CABEÇALHO DE PÁGINA INTERNA + BREADCRUMB
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--branco);
  padding: 55px 5%;
  text-align: center;
}
.page-hero h1 {
  font-size: 34px;
  font-weight: 500;
  color: var(--branco);
  margin-bottom: 15px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumb {
  background: var(--cinza-bg);
  border-bottom: 1px solid var(--cinza-borda);
  padding: 12px 5%;
  font-size: 13px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--texto-claro);
  max-width: 1200px;
  margin: 0 auto;
  list-style: none;
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after {
  content: '›';
  color: #bbb;
  font-size: 16px;
}
.breadcrumb a:hover { color: var(--laranja); }
.breadcrumb [aria-current="page"] { color: var(--texto); font-weight: 500; }

/* --------------------------------------------------------------------------
   12. CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.container-estreito { max-width: 820px; }

.secao { padding: 70px 5%; }
.secao-cinza { background: var(--cinza-bg); }
.secao-escura {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
}
.secao-escura h2, .secao-escura h3 { color: var(--branco); }

/* --------------------------------------------------------------------------
   13. TEXTO DE ARTIGO
   -------------------------------------------------------------------------- */
.conteudo {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}
.conteudo > * + * { margin-top: 18px; }

.conteudo h2 {
  font-size: 27px;
  font-weight: 500;
  color: var(--texto);
  margin-top: 50px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--laranja);
  scroll-margin-top: 100px;
}
.conteudo h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--texto);
  margin-top: 34px;
  scroll-margin-top: 100px;
}

.conteudo ul, .conteudo ol {
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.conteudo ul li { list-style: disc; }
.conteudo ol li { list-style: decimal; }
.conteudo li::marker { color: var(--laranja); }

.conteudo a:not(.btn-whatsapp):not(.btn-orcamento):not(.btn-linha) {
  color: var(--laranja-escuro);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.conteudo a:not(.btn-whatsapp):not(.btn-orcamento):not(.btn-linha):hover {
  color: var(--navy);
}

.conteudo blockquote {
  border-left: 4px solid var(--laranja);
  background: var(--cinza-bg);
  padding: 18px 24px;
  border-radius: 0 8px 8px 0;
  font-size: 18px;
  color: var(--texto);
}

.conteudo code {
  background: var(--cinza-bg);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.9em;
  color: var(--navy-2);
}

/* Índice do artigo */
.indice {
  background: var(--cinza-bg);
  border-radius: 10px;
  padding: 24px 28px;
  margin-bottom: 36px;
}
.indice h2 {
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--texto-claro);
  margin: 0 0 14px !important;
  border: none !important;
  padding: 0 !important;
}
.indice ol { display: grid; gap: 9px; padding-left: 20px; }
.indice a { color: var(--texto) !important; text-decoration: none !important; font-weight: 500 !important; }
.indice a:hover { color: var(--laranja-escuro) !important; }

/* Caixas de destaque */
.aviso {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 8px;
  border-left: 4px solid;
  margin: 26px 0;
  font-size: 15px;
  line-height: 1.7;
}
.aviso svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  fill: currentColor;
}
.aviso p { margin: 0 !important; }
.aviso-info    { background: #eaf2fb; border-color: #1565c0; color: #10406e; }
.aviso-atencao { background: #fdf3e3; border-color: #b45309; color: #7a3c05; }
.aviso-perigo  { background: #fdeaea; border-color: #c62828; color: #8c1d1d; }
.aviso-ok      { background: #e9f7ef; border-color: #1a8a4a; color: #0f5c31; }

/* --------------------------------------------------------------------------
   14. TABELAS TÉCNICAS
   -------------------------------------------------------------------------- */
.tabela-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  box-shadow: var(--sombra-card);
  margin: 30px 0;
  background: var(--branco);
}
.tabela-wrap table { min-width: 560px; font-size: 14px; }

.tabela-wrap caption {
  caption-side: top;
  text-align: left;
  padding: 20px 24px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto);
}
.tabela-wrap caption span {
  display: block;
  font-weight: 400;
  color: var(--texto-claro);
  font-size: 12.5px;
  margin-top: 4px;
}

.tabela-wrap thead th {
  background: var(--navy);
  color: var(--branco);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: left;
  padding: 13px 14px;
  white-space: nowrap;
}
.tabela-wrap tbody td,
.tabela-wrap tbody th {
  padding: 12px 14px;
  border-top: 1px solid var(--cinza-borda);
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.tabela-wrap tbody th {
  font-weight: 600;
  color: var(--texto);
  background: #fafafa;
  white-space: nowrap;
}
.tabela-wrap tbody tr:hover td { background: #fff6ea; }

.tabela-nota {
  font-size: 12.5px;
  color: var(--texto-claro);
  padding: 14px 24px;
  border-top: 1px solid var(--cinza-borda);
  background: #fafafa;
  line-height: 1.6;
}

/* Ficha de especificação (chave/valor) */
.ficha { width: 100%; font-size: 15px; }
.ficha th, .ficha td {
  padding: 13px 0;
  border-bottom: 1px solid var(--cinza-borda);
  text-align: left;
  vertical-align: top;
}
.ficha th {
  font-weight: 400;
  color: var(--texto-claro);
  width: 42%;
  padding-right: 18px;
}
.ficha td { font-weight: 500; color: var(--texto); }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }

.faq details {
  background: var(--branco);
  border-radius: 10px;
  box-shadow: var(--sombra-card);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 25px;
  font-size: 16px;
  font-weight: 500;
  color: var(--texto);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid var(--laranja);
  border-bottom: 2px solid var(--laranja);
  transform: rotate(45deg) translateY(-3px);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--laranja-escuro); }
.faq .faq-resposta {
  padding: 0 25px 22px;
  color: var(--texto-claro);
  font-size: 15px;
  line-height: 1.75;
}
.faq .faq-resposta > * + * { margin-top: 12px; }
.faq .faq-resposta a { color: var(--laranja-escuro); font-weight: 500; }

/* --------------------------------------------------------------------------
   16. CALCULADORAS
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  gap: 28px;
  background: var(--branco);
  border-radius: 10px;
  box-shadow: var(--sombra-card);
  padding: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 860px) {
  .calc { grid-template-columns: 1fr 1fr; gap: 36px; padding: 36px; }
}

.calc-campos { display: grid; gap: 20px; align-content: start; }

.campo { display: grid; gap: 7px; }
.campo label { font-size: 14px; font-weight: 600; color: var(--texto); }
.campo .dica { font-size: 12.5px; color: var(--texto-claro); }
.campo input,
.campo select {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--texto);
  background: var(--branco);
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.campo input:focus,
.campo select:focus {
  outline: none;
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.18);
}
.campo select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 22px;
  padding-right: 40px;
}
.campo-duplo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.calc-resultado {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--branco);
  border-radius: 10px;
  padding: 28px;
}
.calc-resultado h3 {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.resultado-valor {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--laranja);
  font-variant-numeric: tabular-nums;
}
.resultado-valor small {
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}
.resultado-nota {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}
.resultado-detalhe {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
}
.resultado-detalhe div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.resultado-detalhe b {
  color: var(--branco);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.selo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 15px;
  border-radius: 8px;
}
.selo-ok    { background: rgba(37, 211, 102, 0.18); color: #7ff0ad; }
.selo-alerta{ background: rgba(247, 147, 30, 0.2);  color: #ffc078; }
.selo-erro  { background: rgba(255, 90, 90, 0.18);  color: #ff9d9d; }

/* --------------------------------------------------------------------------
   17. GRADES E CARDS DE APOIO
   -------------------------------------------------------------------------- */
.grade { display: grid; gap: 25px; }
.grade-2 { grid-template-columns: repeat(2, 1fr); }
.grade-3 { grid-template-columns: repeat(3, 1fr); }
.grade-4 { grid-template-columns: repeat(4, 1fr); }

.card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--branco);
  border-radius: 10px;
  box-shadow: var(--sombra-card);
  border-top: 3px solid var(--laranja);
  padding: 26px;
  transition: all 0.3s;
}
.card-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-card-hover);
}
.card-link h3 { font-size: 17px; font-weight: 600; color: var(--texto); }
.card-link p { font-size: 14px; color: var(--texto-claro); line-height: 1.7; flex: 1; }
.card-link .saiba-mais { color: var(--laranja); font-size: 14px; font-weight: 500; }

/* Nuvem de links (bitolas, cidades) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips a {
  display: inline-block;
  padding: 10px 22px;
  background: var(--branco);
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--texto);
  transition: all 0.3s;
}
.chips a:hover {
  background: var(--laranja);
  border-color: var(--laranja);
  color: var(--branco);
}

/* Links relacionados */
.relacionados {
  max-width: 820px;
  margin: 55px auto 0;
  border-top: 1px solid var(--cinza-borda);
  padding-top: 34px;
}
.relacionados h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--texto);
}
.relacionados-lista { display: grid; gap: 12px; }
@media (min-width: 700px) {
  .relacionados-lista { grid-template-columns: repeat(2, 1fr); }
}
.relacionados-lista a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  background: var(--cinza-bg);
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--texto);
  transition: all 0.3s;
}
.relacionados-lista a::before {
  content: '›';
  color: var(--laranja);
  font-size: 20px;
  font-weight: 700;
}
.relacionados-lista a:hover { background: #fff1e0; color: var(--laranja-escuro); }

/* Faixa de conversão para dentro das páginas */
.faixa-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--branco);
  border-radius: 10px;
  padding: 45px 30px;
  text-align: center;
  max-width: 1000px;
  margin: 55px auto 0;
}
.faixa-cta h2 {
  color: var(--branco);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
}
.faixa-cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 26px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   18. UTILITÁRIOS
   -------------------------------------------------------------------------- */
.centro { text-align: center; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-30 { margin-bottom: 30px; }

/* --------------------------------------------------------------------------
   19. RESPONSIVO
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .features-section { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .grade-4 { grid-template-columns: repeat(2, 1fr); }
  .grade-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-menu > li > a { font-size: 12px; padding: 10px 8px; }
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 15px 5%;
    gap: 0;
    max-height: calc(100vh - var(--header-altura-mobile));
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  }
  .nav-menu.active { display: flex; }

  .nav-menu > li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-menu > li > a { padding: 14px 0; font-size: 14px; }

  /* No mobile o dropdown vira acordeão empilhado, não flutuante */
  .nav-menu li .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    min-width: 0;
    display: none;
    padding-bottom: 10px;
  }
  .nav-menu li.aberto .dropdown { display: block; }
  .dropdown li a {
    color: rgba(255, 255, 255, 0.65);
    border-bottom: none;
    padding: 9px 0 9px 16px;
    font-size: 13.5px;
  }
  .dropdown li a:hover { background: transparent; color: var(--laranja); }

  .mobile-menu-btn { display: block; }
  .header-icons .social-icons { display: none; }
  .header-top-info { display: none; }
}

@media (max-width: 768px) {
  .slide img { height: 300px; }
  .product-slide img { height: 260px; }
  .features-section { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .grade-2, .grade-3, .grade-4 { grid-template-columns: 1fr; }

  .cta-section h2,
  .orcamento-section h2 { font-size: 22px; }
  .section-header h2 { font-size: 26px; }
  .page-hero h1 { font-size: 26px; }
  .page-hero { padding: 40px 5%; }
  .conteudo h2 { font-size: 23px; }
  .products-services { padding: 55px 5%; }
  .secao { padding: 50px 5%; }
  .resultado-valor { font-size: 38px; }
  .campo-duplo { grid-template-columns: 1fr; }

  .floating-whatsapp a span { display: none; }
  .floating-whatsapp a { padding: 14px; border-radius: 50%; }
}

@media (max-width: 480px) {
  .features-section { grid-template-columns: 1fr; }
  .slider-nav { width: 35px; height: 35px; font-size: 18px; }
  .slider-nav.prev { left: 10px; }
  .slider-nav.next { right: 10px; }
  .btn-whatsapp, .btn-orcamento { padding: 14px 26px; font-size: 15px; }
  .logo img { height: 40px; }
}

/* --------------------------------------------------------------------------
   20. IMPRESSÃO — eletricista imprime tabela técnica
   -------------------------------------------------------------------------- */
@media print {
  .header, .footer, .floating-whatsapp, .breadcrumb, .faixa-cta,
  .relacionados, .indice, .hero-slider, .products-slider { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .conteudo { max-width: none; }
  .tabela-wrap { box-shadow: none; border: 1px solid #000; break-inside: avoid; }
  .tabela-wrap thead th {
    background: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
