*,
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'figtree', sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

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

::selection {
  background: #cf162d;
  color: #ffffff;
}

::-moz-selection {
  background: #cf162d;
  color: #ffffff;
}

/* Header */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(15, 15, 21, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

header nav {
  max-width: 1648px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-esquerda {
  display: flex;
  align-items: center;
  gap: 64px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links li {
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  opacity: 0.85;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-links li:hover {
  opacity: 1;
}

.nav-links li img {
  position: relative;
  top: 1px;
  margin-left: 2px;
}

.nav-dropdown-trigger {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0.85;
}

.nav-dropdown-trigger:hover {
  opacity: 1;
}

.nav-dropdown-trigger img {
  width: 14px;
  transition: transform 0.2s ease;
}

.nav-dropdown-trigger[aria-expanded='true'] img {
  transform: rotate(180deg);
  top: -1px;
}

.orcamento {
  margin-left: 32px;
}

.cta-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, #cf162d 0%, #be0119 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01rem;
  text-transform: uppercase;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.cta-header:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.cta-header:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  opacity: 1;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.mobile-menu-backdrop,
.mobile-menu {
  display: none;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: #0f0f15;
  padding: 24px 24px 32px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.mobile-menu-header {
  margin-bottom: 40px;
}

.mobile-menu-header img {
  display: block;
  width: 85px;
  height: 35px;
  object-fit: contain;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 8px;
}

.mobile-menu-links a,
.mobile-menu-links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
  text-transform: uppercase;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition:
    background 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.mobile-menu-links button img {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
  flex-shrink: 0;
  opacity: 0.8;
}

.mobile-menu-links a:hover,
.mobile-menu-links button:hover {
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
  transform: translateX(2px);
}

.mobile-menu-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(90deg, #cf162d 0%, #be0119 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.mobile-menu-cta:hover {
  transform: translateY(-1px);
}

.mega-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 1100;
}

.mega-menu-panel {
  position: fixed;
  top: 112px;
  left: 50%;
  transform: translate(-50%, -10px);
  width: min(1140px, 92vw);
  background: linear-gradient(140deg, #f6f6f8 0%, #ebebef 100%);
  border-radius: 18px;
  box-shadow: none;
  padding: 22px 22px 26px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 1101;
}

.mega-menu-panel[data-menu-panel='pecas'] {
  width: min(800px, 90vw);
}

.mega-menu-panel.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega-menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.mega-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.mega-menu-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #0f0f15;
  text-transform: uppercase;
}

.mega-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 42px;
  background: rgba(207, 22, 45, 0.1);
  border: 1px solid rgba(207, 22, 45, 0.25);
  border-radius: 50%;
  cursor: pointer;
}

.mega-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 18px;
  height: 2px;
  background: #cf162d;
  border-radius: 2px;
}

.mega-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mega-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mega-grid {
  display: grid;
  gap: 14px;
}

.mega-grid-machines {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  padding-bottom: 20px;
}

.mega-grid-pecas {
  grid-template-columns: repeat(2, minmax(260px, 350px));
  justify-content: center;
  padding-bottom: 20px;
}

.mega-card {
  background: #d9d9df;
  border-radius: 12px;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: #1f1f26;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.mega-card:hover {
  transform: translateY(-2px);
}

.mega-card:nth-child(5):hover {
  transform: translateY(0px);
}

.mega-card img {
  max-width: 100%;
  height: 96px;
  max-height: 96px;
  object-fit: contain;
}

.mega-grid-machines .mega-card img {
  height: 96px;
  max-height: 96px;
}

.mega-grid-pecas .mega-card img {
  height: 40px;
  max-height: 40px;
  width: auto;
}

.mega-card span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.mega-card-horizontal {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  background: #d4d4d9;
}

.mega-card-horizontal img {
  height: 40px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
}

.mega-card-horizontal span {
  flex: 1;
  text-align: left;
}

.mega-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #d8d8dd 0%, #ccccd2 100%);
  padding: 20px 10px;
  line-height: 1.5;
}

.mega-card-wide span {
  font-size: 15px;
}

.contato-wtzp {
  position: fixed;
  bottom: 24px;
  right: 40px;
  z-index: 10000;
  transition: transform 0.2s ease;
}

.contato-wtzp img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  cursor: pointer;
}

.contato-wtzp:hover {
  transform: scale(1.05);
}

/* Footer */
.divisoria-footer {
  max-width: 100vw;
  margin: 0px;
  padding: 0px;
  height: fit-content;
  width: 100%;
  margin-top: -2px;
}

.divisoria-footer img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer {
  background: #ffffff;
  color: #0f0f15;
  display: grid;
  padding: 80px 0px 0;
  margin-top: -6px;
  z-index: 100;
}

.footer-top {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 12px;
  padding: 0px 24px;
}

.footer-logo {
  width: 105px;
  height: auto;
  justify-self: center;
}

.footer-headline {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: 'Stolzl', sans-serif;
  max-width: 550px;
}

.footer-headline span {
  background: linear-gradient(90deg, #cf162d 0%, #be0119 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Stolzl', sans-serif;
}

.footer-separator {
  height: 2px;
  width: 100%;
  background: rgba(15, 15, 21, 0.04);
  margin: 56px 0px 72px 0px;
}

.footer-links {
  width: 100%;
  margin-bottom: 32px;
}

.footer-columns {
  max-width: 1488px;
  margin: 0 auto;
  padding: 0px 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.footer-col {
  display: grid;
  gap: 16px;
  align-content: start;
  justify-content: center;
}

.footer-col h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f0f15;
}

.footer-col a {
  font-size: 16px;
  color: rgba(15, 15, 21, 0.8);
  font-weight: 500;
  transition: all 0.3s;
}

.footer-col a:hover {
  color: #cf162d;
}

.footer-label {
  margin: 6px 0 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f0f15;
}

.footer-meta {
  margin: 0px 0 4px 0;
  font-size: 14px;
  color: rgba(15, 15, 21, 0.8);
  font-weight: 500;
  line-height: 1.5;
}

.footer-bottom {
  background: #0f0f15;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 32px;
}

.footer-bottom-content {
  max-width: 1488px;
  margin: auto;
  padding: 32px 24px;
  display: flex;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  justify-content: space-between;
}

.footer-bottom strong {
  font-weight: 600;
}

@media (max-width: 1200px) {
  header nav {
    padding: 18px 20px;
  }

  header {
    border-radius: 0 0 6px 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  }

  .header-esquerda {
    gap: 16px;
  }

  .nav-links,
  .orcamento {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu-backdrop,
  .mobile-menu {
    display: block;
  }

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

  body.menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mega-menu-panel {
    top: 100px;
    left: 50%;
    transform: translate(-50%, 0);
    width: min(520px, 92vw);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 20px;
  }

  .mega-menu-panel.active {
    transform: translate(-50%, 0);
  }

  .mega-menu-panel[data-menu-panel='pecas'] {
    width: min(520px, 90vw);
  }

  .mega-grid-machines {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    grid-auto-rows: 1fr;
  }

  .mega-grid-pecas {
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
  }

  .mega-grid-pecas .mega-card {
    width: 100%;
  }

  .contato-wtzp {
    position: fixed;
    bottom: 16px;
    right: 24px;
    z-index: 10000;
  }

  .contato-wtzp img {
    width: 60px;
    height: 60px;
  }

  .site-footer {
    padding: 70px 0px 0px 0px;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 64px;
    column-gap: 20px;
  }
}

@media (max-width: 820px) {
  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-headline {
    font-size: 24px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 32px;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 650px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-col {
    display: grid;
    gap: 16px;
    align-content: start;
    justify-content: start;
  }
}
/*  fonts */
@font-face {
  font-family: 'Figtree';
  src: url('../assets/fonts/Figtree-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Figtree';
  src: url('../assets/fonts/Figtree-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Figtree';
  src: url('../assets/fonts/Figtree-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Figtree';
  src: url('../assets/fonts/Figtree-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Stolzl';
  src: url('../assets/fonts/stolzl_medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
