/* ==========================================================================
   SP Labor · base.css
   Tokens + reset + tipografia + container + botões + utilitários
   Fiel ao kit Elementor do site original (elementor-kit-5) — ver
   referencia/design-tokens.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   @font-face (self-hosted, subset latin — cobre pt-BR)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Fjalla One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fjallaone-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Cores (hex exatos do kit Elementor) */
  --c-primary: #005CA1;      /* azul institucional */
  --c-secondary: #0084F0;    /* azul claro (carrinho de cotação) */
  --c-green: #34AF23;        /* verde CTA (Orçar, busca, hover de botões) */
  --c-green-dark: #2A8A1C;   /* hover dos botões verdes */
  --c-text: #222222;
  --c-heading: #000000;
  --c-muted: #787878;
  --c-muted-2: #8F8F8F;
  --c-navy-alt: #203464;
  --c-white: #FFFFFF;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F8F8F8;
  --c-border: #F0F2F0;
  --c-border-2: #E5E5E5;
  --c-border-3: #DADADA;
  --c-danger: #C50000;

  /* Tipografia */
  --font-base: 'Poppins', sans-serif;
  --font-price: 'Fjalla One', sans-serif;
  --font-alt: 'Inter', sans-serif;
  --fs-body: 14px;
  --fs-small: 13px;
  --fs-xs: 12px;
  --fs-eyebrow: 15px;
  --fs-sub: 16px;
  --fs-section: 30px;
  --fs-hero: 40px;
  --fs-price: 50px;

  /* Raios */
  --r-pill: 30px;
  --r-card: 10px;
  --r-md: 7px;
  --r-sm: 3px;

  /* Sombras */
  --shadow-dropdown: 0 0 20px rgba(0, 0, 0, .18);
  --shadow-soft: 0 0 10px rgba(0, 0, 0, .09);
  --shadow-bottom: 0 8px 10px -3px rgba(0, 0, 0, .18);

  /* Layout */
  --container: 1260px;
  --container-narrow: 1240px;
  --gap: 10px;
}

/* --------------------------------------------------------------------------
   Reset mínimo
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-base);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

img {
  border-style: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

figure,
blockquote {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  margin: 0;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Tipografia base (kit-5 + hello reset)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: inherit;
  font-family: inherit;
  line-height: 1.2;
  margin-block-start: .5rem;
  margin-block-end: 1rem;
}

h1 { font-size: var(--fs-hero); font-weight: 600; }
h2 { font-size: 20px; font-weight: 500; }
h3 { font-size: 18px; font-weight: 500; }
h4 { font-size: 16px; font-weight: 500; }
h5 { font-size: 15px; font-weight: 500; }
h6 { font-size: 14px; font-weight: 500; }

p {
  margin-block-start: 0;
  margin-block-end: .9rem;
}

a {
  color: var(--c-text);
  text-decoration: none;
}

a:hover {
  color: var(--c-primary);
}

strong, b {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --------------------------------------------------------------------------
   Botões (fiéis ao site: pílula radius 30px, kit azul com hover verde;
   child theme força verde nos botões de ação — ver .btn-green)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--r-pill);
  background-color: var(--c-primary);
  color: var(--c-white);
  fill: var(--c-white);
  font-family: var(--font-base);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}

.btn:hover,
.btn:focus {
  background-color: var(--c-green);
  color: var(--c-white);
}

.btn-primary {
  background-color: var(--c-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--c-green);
}

/* Verde de ação: "Orçar", busca, submits (child theme do site original) */
.btn-green {
  background-color: var(--c-green);
}

.btn-green:hover,
.btn-green:focus {
  background-color: var(--c-green-dark);
}

/* Azul claro: carrinho de cotação */
.btn-secondary {
  background-color: var(--c-secondary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--c-green);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  fill: var(--c-primary);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--c-primary);
  color: var(--c-white);
  fill: var(--c-white);
}

.btn--sm {
  padding: 8px 18px;
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   Padrão de cabeçalho de seção (eyebrow + título + subtítulo)
   -------------------------------------------------------------------------- */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-primary);
}

.section-title {
  font-size: var(--fs-section);
  font-weight: 600;
  color: var(--c-text);
}

.section-sub {
  font-size: var(--fs-sub);
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-muted);
}

/* Preço (single product) */
.price-display {
  font-family: var(--font-price);
  font-size: var(--fs-price);
  font-weight: 400;
  letter-spacing: -0.6px;
  color: var(--c-heading);
}

/* --------------------------------------------------------------------------
   Utilitários mínimos
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }

.screen-reader-text,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: var(--r-sm);
}

@media (max-width: 767px) {
  :root {
    --fs-hero: 30px;
    --fs-section: 25px;
    --fs-price: 40px;
  }
}

/* ==========================================================================
   HEADER -- topbar + faixa principal + nav (spec-estrutura.md)
   ========================================================================== */

/* Topbar */
.topbar {
  background-color: var(--c-primary);
  color: var(--c-white);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.topbar__title {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
}

/* Sociais (topbar + footer): circulo branco preenchido, glifo azul */
.social-list {
  display: flex;
  align-items: center;
  list-style: none;
}

.social-list li {
  margin: 5px 10px 5px 0;
}

.social-list li:last-child {
  margin-right: 0;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 3px;
  background-color: var(--c-white);
  border-radius: 50%;
  transition: transform .3s;
}

.social-list svg {
  width: 12px;
  height: 12px;
  fill: var(--c-primary);
}

.social-list a:hover,
.social-list a:focus {
  transform: scale(1.2);
}

/* Faixa principal */
.header-main {
  background-color: var(--c-bg);
}

.header-main__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 113px;
}

.header-logo {
  flex: 0 0 auto;
  width: 20%;
}

.header-logo img {
  display: block;
}

.header-search {
  width: 30%;
}

.header-contacts {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

/* Busca */
.search-box {
  display: flex;
  align-items: center;
  min-height: 50px;
  background-color: var(--c-bg-soft);
  border-radius: var(--r-pill);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 10px 0 20px;
  font-size: var(--fs-body);
  color: var(--c-text);
}

.search-box input:focus {
  outline: none;
}

.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 50px;
  border: 0;
  border-radius: var(--r-pill);
  background-color: var(--c-green);
  cursor: pointer;
  transition: background-color .3s;
}

.search-box button svg {
  width: 21px;
  height: 21px;
  fill: var(--c-white);
}

.search-box button:hover,
.search-box button:focus {
  background-color: var(--c-green-dark);
}

/* Icon-boxes WhatsApp / Telefone */
.icon-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.icon-box__icon svg {
  width: 16px;
  height: 16px;
  fill: var(--c-white);
}

.icon-box--whatsapp .icon-box__icon {
  background-color: var(--c-green);
}

.icon-box--phone .icon-box__icon {
  background-color: var(--c-primary);
}

.icon-box__body {
  display: flex;
  flex-direction: column;
}

.icon-box__title {
  font-size: 12px;
}

.icon-box__desc {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.icon-box--whatsapp .icon-box__title,
.icon-box--whatsapp .icon-box__desc {
  color: var(--c-green);
}

.icon-box--phone .icon-box__title,
.icon-box--phone .icon-box__desc {
  color: var(--c-primary);
}

/* Carrinho de cotacao */
.quote-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 235px;
  background-color: var(--c-secondary);
  border-radius: 35px;
  color: var(--c-white);
  font-size: 16px;
  padding-right: 15px;
  transition: background-color .3s;
}

.quote-cart:hover,
.quote-cart:focus {
  background-color: var(--c-green);
  color: var(--c-white);
}

.quote-cart__icon {
  display: inline-flex;
  background-color: var(--c-primary);
  border-radius: 30px 0 0 30px;
  padding: 7px;
  flex-shrink: 0;
}

.quote-cart__icon svg {
  width: 56px;
  height: 45px;
  display: block;
}

.quote-cart__icon svg path {
  fill: var(--c-white);
}

.quote-cart__text {
  line-height: 1.2;
}

/* Nav principal */
.site-nav {
  position: relative;
  background-color: var(--c-bg);
  border-style: solid;
  border-color: var(--c-border);
  border-width: 1px 0;
}

.nav-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.nav-item {
  flex: 1 1 0;
  display: flex;
  min-width: 0;
}

.nav-item + .nav-item::before {
  content: "";
  flex: 0 0 1px;
  height: 26px;
  align-self: center;
  background-color: var(--c-border);
}

.nav-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 13px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--c-text);
  transition: background-color .3s, color .3s;
}

.nav-link svg {
  flex-shrink: 0;
}

.nav-item--todos .e-fas-bars {
  width: 29px;
  height: 29px;
  fill: var(--c-primary);
}

.nav-chevron {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform .3s;
}

.has-panel.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-catalog-icon {
  display: inline-flex;
}

.nav-catalog-icon svg {
  width: 24px;
  height: 19px;
}

.nav-catalog-icon svg path {
  fill: currentColor;
}

.nav-item--catalogos .nav-link {
  color: var(--c-primary);
}

.nav-link:hover,
.nav-link:focus,
.has-panel.open > .nav-link,
.has-panel:focus-within > .nav-link {
  background-color: var(--c-primary);
  color: var(--c-white);
}

.nav-item:hover .nav-link svg,
.nav-link:focus svg,
.has-panel.open > .nav-link svg,
.has-panel:focus-within > .nav-link svg {
  fill: var(--c-white);
}

/* Paineis dropdown (mega menu) */
.panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 999;
  background-color: var(--c-bg);
  box-shadow: var(--shadow-dropdown);
  padding: 30px 40px;
}

.has-panel.open > .panel {
  display: block;
}

/* Sem JS: hover/teclado abrem (progressive enhancement) */
html:not(.js) .has-panel:hover > .panel,
html:not(.js) .has-panel:focus-within > .panel {
  display: block;
}

.panel__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.panel-grid {
  display: grid;
  gap: 5px;
}

.panel-grid--groups {
  grid-template-columns: repeat(6, 1fr);
}

.panel-grid--flat {
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}

/* Grupos do painel Todos */
.menu-group__title {
  margin: 0 0 5px;
}

.menu-group__title a {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-navy-alt);
}

.menu-group__title a:hover {
  color: var(--c-primary);
}

.menu-group__list {
  list-style: none;
  display: grid;
  gap: 5px;
  margin: 0 0 5px;
}

.menu-group__list a {
  font-size: 14px;
  color: #8492A0; /* cinza dos filhos no site atual */
}

.menu-group__list a:hover {
  color: var(--c-primary);
}

.menu-group__more {
  margin: 0;
}

.menu-group__more a {
  font-size: 14px;
  color: var(--c-secondary);
}

.menu-group__more svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  vertical-align: middle;
  margin-left: 5px;
}

/* Itens dos paineis flat: bolinha azul + link */
.panel-grid--flat li {
  display: flex;
  align-items: center;
  min-width: 0;
}

.panel-grid--flat li::before {
  content: "";
  flex: 0 0 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--c-primary);
  margin-right: 6px;
}

.panel-grid--flat a {
  font-size: 13px;
  color: var(--c-navy-alt);
}

.panel-grid--flat a:hover {
  color: var(--c-primary);
}

/* Botao Ver mais do painel */
.panel-more {
  margin: 20px 0 0;
  text-align: center;
}

.panel-more .btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Menu colapsado (tablet/mobile) */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    padding: 10px;
    border: 0;
    border-radius: 0;
    background-color: var(--c-secondary);
    cursor: pointer;
  }

  .nav-toggle svg {
    width: 24px;
    height: 24px;
    fill: var(--c-white);
  }

  .nav-toggle .icon-close {
    display: none;
  }

  .nav-open .nav-toggle .icon-close {
    display: block;
  }

  .nav-open .nav-toggle .icon-menu {
    display: none;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  .site-nav {
    border-width: 0;
    background-color: transparent;
  }

  html.js .site-nav__wrap {
    display: none;
  }

  html.js .nav-open .site-nav__wrap {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px 15px;
  }

  .nav-item {
    display: block;
  }

  .nav-item + .nav-item::before {
    content: none;
  }

  .nav-link {
    background-color: var(--c-white);
    box-shadow: var(--shadow-soft);
  }

  .panel {
    position: static;
    box-shadow: none;
    padding: 10px 0;
  }

  .panel-grid--groups,
  .panel-grid--flat {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Layout mobile pleno */
@media (max-width: 767px) {
  .topbar__social {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .topbar__title {
    font-size: 12px;
    margin: 5px;
    text-align: center;
  }

  .header-main__inner {
    flex-direction: column;
    gap: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .header-logo {
    width: auto;
  }

  .header-logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
  }

  .header-search {
    width: 100%;
  }

  .header-contacts {
    width: 100%;
    justify-content: center;
  }

  .icon-box--whatsapp,
  .icon-box--phone {
    display: none;
  }

  .quote-cart {
    margin: 0 auto;
  }
}

/* ==========================================================================
   FOOTER -- 4 colunas sobre azul, sem barra de copyright
   ========================================================================== */
.site-footer {
  background-color: var(--c-primary);
  color: var(--c-white);
  padding-top: 20px;
  padding-bottom: 40px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.footer-col--brand {
  flex: 22.619 1 0;
  text-align: center;
}

.footer-col--about {
  flex: 34.999 1 0;
}

.footer-col--links {
  flex: 17.342 1 0;
}

.footer-col--contact {
  flex: 25 1 0;
}

.footer-title {
  margin: 0 0 15px;
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--c-white);
}

.footer-col p {
  font-size: 14px;
  color: var(--c-white);
}

.site-footer a {
  color: var(--c-white);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--c-white);
  text-decoration: underline;
}

.footer-logo {
  filter: brightness(0) invert(1);
  height: auto;
}

.footer-col--brand .social-list {
  justify-content: center;
  margin-top: 15px;
}

.footer-col--brand .social-list li {
  margin: 5px 10px;
}

.footer-col--brand .social-list a {
  width: 22px;
  height: 22px;
}

.footer-col--brand .social-list svg {
  width: 16px;
  height: 16px;
}

.footer-nav__list {
  list-style: none;
}

.footer-nav__list a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 400;
}

.footer-contacts {
  list-style: none;
  display: grid;
  gap: 20px;
  margin: 0 0 30px;
}

.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contacts li svg {
  width: 28px;
  height: 28px;
  fill: var(--c-white);
  flex-shrink: 0;
}

.footer-contacts a {
  font-family: var(--font-alt);
  font-size: 14px;
}

.footer-payments {
  background-color: var(--c-white);
  border-radius: var(--r-pill);
  padding: 10px 15px;
}

.footer-payments img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1024px) {
  .footer__inner {
    flex-direction: column;
  }

  .footer-col--brand,
  .footer-col--about,
  .footer-col--links,
  .footer-col--contact {
    flex: none;
    width: 100%;
  }
}

/* Conteudo do fallback index.php */
.site-main__inner {
  padding-top: 30px;
  padding-bottom: 40px;
}
