@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
  font-family: var(--poppins);
}

:root {
  --brand-bg: #000522;
  --brand-primary: #f04525;
  --brand-secondary: #ea2722;
  --text-dark: #0f172a;
  --muted: #64748b;
  --poppins: "Poppins", sans-serif;
  --montserrat: "Montserrat", sans-serif;
  --swa2-red: #ea2722;
  --swa2-red-strong: #f04525;
  --swa2-dark: #000522;
  --swa2-band-top: 40px; /* distância do topo da seção à faixa */
  --swa2-band-h: 190px; /* altura da faixa vermelha */
  --swa2-gap: 22px; /* gap entre cards */
  --swa2-wrap: 1200px; /* largura máxima do conteúdo */
  --bg-footer: #f6f6f6;
  --bg-bar: #ececec;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --link: #484848;
  --link-hover: #ea2722; /* acento da paleta */
  --border: rgba(0, 0, 0, 0.06);
}

/* Navegação desktop */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 24px;
  font-weight: 500;
}
.nav-desktop a {
  color: #334155;
  text-decoration: none;
  padding: 8px 0;
}
.nav-desktop a:hover {
  color: var(--brand-secondary);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font: inherit;
  color: #334155;
  cursor: pointer;
  border-radius: 6px;
}

.dropdown-toggle:hover {
  color: var(--brand-secondary);
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
  min-width: 280px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: none;
  padding: 10px;
  z-index: 30;
}

.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text-dark);
  border-top: 1px solid #f1f5f9;
}

.dropdown-menu a:first-child {
  border-top: 0;
}

.dropdown-menu a:hover {
  background: #f8fafc;
  color: var(--brand-primary);
}

.dropdown.is-open .dropdown-menu {
  display: block;
}

/* CTA */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  text-decoration: none;
  background: none;
}

.btn-outline a {
  color: var(--brand-primary);
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Hamburger */
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}
.hamburger svg {
  width: 20px;
  height: 20px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.mobile-menu nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  gap: 10px;
  font-weight: 500;
}
.mobile-menu a {
  color: var(--text-dark);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
}
.mobile-menu a:hover {
  background: #f8fafc;
}

/* Mobile dropdown (accordion) */
.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #111827;
  cursor: pointer;
}
.accordion-panel {
  display: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}
.accordion-panel a {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid #f1f5f9;
}
.accordion-panel a:first-child {
  border-top: 0;
}
.accordion-panel.is-open {
  display: block;
}

/* Responsivo */
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
  .hamburger {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}
/* ===== Correção das “setinhas” em alguns navegadores ===== */
/* Caso o navegador injete setas nativas (select/number/details) */
.dropdown-toggle,
button,
select,
input[type="number"] {
  -webkit-appearance: none;
  -moz-appearance: textfield;
  appearance: none;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
button::-webkit-outer-spin-button,
button::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Se usar <details><summary> em vez de button, remove o marcador */
details summary::-webkit-details-marker {
  display: none;
}
details summary::marker {
  content: "";
}
/* Garantir que o dropdown apareça sem JS (hover/focus) */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

#header {
  transition: 3s;
}

.site-header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 16px;
  transition: 2s;
}

/* Evitar que algum container corte o menu */
.site-header,
.nav-wrap,
.nav-desktop,
.dropdown {
  overflow: visible;
}

/* Aumentar prioridade de sobreposição */
.dropdown-menu {
  z-index: 999;
}

#hero {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(Assets/Imagens/imagem-hero.png);
  background-repeat: no-repeat;
}

.txt-hero h1 {
  color: rgb(255, 255, 255);
  font-size: 4em;
  text-align: center;
  max-width: 1400px;
  font-weight: 700;
}

.metais {
  padding: 40px;
}

.metais h3 {
  font-size: 3em;
  margin-left: 8%;
  max-width: 800px;
  margin-top: 3%;
  color: var(--brand-primary);
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 5%;
  padding: 40px;
}

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 6px 4px 6px 8px rgba(0, 0, 0, 0.13);
  padding: 45px;
  width: 500px;
  position: relative;
}

.card h2 {
  color: #ea2722; /* vermelho da paleta */
  font-size: 40px;
  margin-bottom: 15px;
}

.card p,
.card li {
  color: #333;
  font-size: 18px;
  line-height: 1.5;
}

.card ul {
  padding-left: 20px;
}

.icon {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 40px;
  color: #f04525;
  opacity: 0.3;
}

.pecas {
  padding: 40px;
}

.box-pecas {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 8%;
}

.txt-pecas h3 {
  font-size: 4em;
  max-width: 700px;
  color: var(--brand-primary);
}

.txt-pecas p {
  max-width: 700px;
  font-size: 1.3em;
}

.footer {
  background: var(--bg-footer);
  color: var(--text);
  border-top: 1px solid var(--border);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.8fr; /* 3 colunas com proporção */
  gap: 48px;
}

.footer__brand {
}
.footer__logo {
  width: 210px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
}
.footer__about {
  max-width: 560px;
  line-height: 1.6;
  color: var(--muted);
}

/* Títulos */
.footer__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 8px 0 16px;
}

/* Listas e links */
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__list li + li {
  margin-top: 10px;
}

.footer__links a,
.footer__contacts a {
  font-size: 1rem;
  text-decoration: none;
  color: var(--link);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  display: inline-block;
}
.footer__contacts .muted {
  color: var(--muted);
  font-size: 0.95em;
}
.footer__links a:hover,
.footer__contacts a:hover {
  color: var(--link-hover);
  transform: translateX(2px);
}

/* Barra inferior */
.footer__bar {
  border-top: 1px solid var(--border);
  background: var(--bg-bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer__bar a {
  color: var(--link-hover);
  text-decoration: none;
}
.footer__bar a:hover {
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 992px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px;
  }
  .footer__bar {
    flex-direction: column;
    text-align: center;
  }
}

.img-top {
  background-image: url(Assets/Imagens/Bronze/bronze-bg.webp);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.img-top2 {
  background-image: url(Assets/Imagens/Tarugo/banner.webp);
}

.img-top3 {
  background-image: url(Assets/Imagens/Placas\ de\ Desgaste/banner.webp);
}

.img-top4 {
  background-image: url(Assets/Imagens/Aneis/banner.webp);
}

.img-top5 {
  background-image: url(Assets/Imagens/Casquilho/banner.jpg);
}

.img-top6 {
  background-image: url(Assets/Imagens/sobre.jpg);
}

.img-top7 {
  background-image: url(Assets/Imagens/Mancais/banner.webp);
}

.img-top8 {
  background-image: url(Assets/Imagens/Automotivas/banner.jpg);
}

.img-top9 {
  background-image: url(Assets/Imagens/Diversas/banner.jpg);
}

.img-top10 {
  background-image: url(Assets/Imagens/Sucroalculeiras/banner.jpg);
}

.img-top11 {
  background-image: url(Assets/Imagens/banner.jpg);
}

submenu {
  position: relative;
}

.submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: black;
  padding: 8px 0;
  cursor: pointer;
}

.submenu-panel {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
}

.submenu-panel.open {
  display: flex;
}

.leading-relaxed strong {
  color: #222222;
  font-weight: 600;
}

.icon2 {
  position: fixed;
  bottom: 60px;
  right: 30px;
  font-size: 28px;
  background: #01e675;
  color: #ffffff;
  border-radius: 50%;
  padding: 3px;
  width: 70px;
  height: 70px;
  text-decoration: none;
  z-index: 100;
  transition: 1s;
}

.icon2 i {
  margin-left: 12px;
  font-size: 1.5em;
}

.icon2:hover {
  transform: scale(1.1);
  transition: 1s;
}

.button-zap {
  display: flex;
  align-items: center;
}

.breadcrumb li {
  padding: 4px;
}

.breadcrumb li a span {
  margin-left: 12px;
}

.scrolled {
  transition: 1s;
  border-bottom: 2px solid var(--brand-primary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #0f172a;
  color: #f8fafc;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Cabeçalho do menu */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #1e293b;
  background: #1e293b;
  font-weight: 600;
  color: var(--brand-primary);
}

.close-btn {
  background: transparent;
  border: none;
  color: #f8fafc;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s ease;
}
.close-btn:hover {
  transform: rotate(90deg);
}

/* Conteúdo interno */
.mobile-menu nav {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Itens gerais */
.mobile-menu nav a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background 0.2s ease;
}
.mobile-menu nav a:hover {
  background: #1e293b;
  color: var(--brand-primary);
}

/* Accordion principal */
.accordion-toggle,
.accordion-sub-toggle {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.accordion-toggle:hover,
.accordion-sub-toggle:hover {
  background: #334155;
}

/* Painéis */
.accordion-panel,
.accordion-sub-panel {
  display: none;
  background: #0f172a;
  border-left: 2px solid var(--brand-primary);
  margin-top: 4px;
  border-radius: 6px;
}

.accordion-panel.is-open,
.accordion-sub-panel.is-open {
  display: block;
  animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(10%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fundo escuro translúcido ao abrir menu */
body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 9998;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
