/* Ajustes Matayoshi (nov/2026) — logos padronizados, menu de marcas por categoria, página marca + categoria, serviços */

/* ---------- Logos das marcas: mesmo tamanho e mesma moldura em todo o site ---------- */
img.size-mt-logo { width: auto !important; max-width: 100%; height: 100%; max-height: 64px; object-fit: contain; display: block; }

/* Faixa "Marcas que representamos" (home): uma linha, colunas iguais */
.brands { gap: 28px; }
.brands .lbl { flex: 0 0 150px; line-height: 1.5; }
.brands ul { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.brands ul li { min-width: 0; }
.brands ul li a { display: flex; align-items: center; justify-content: center; width: 100%; height: 74px; padding: 8px 10px; background: #fff; border: 1px solid #e3e6ec; border-radius: 14px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.brands ul li a:hover { transform: translateY(-2px); border-color: #cfd4dd; box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }
.brands ul li a img.size-mt-logo { width: auto !important; height: auto; max-width: 100%; max-height: 56px; }

/* Cards de marca (home) */
.card-marca .lg { display: flex; align-items: center; justify-content: flex-start; height: 76px; }
.card-marca .lg img.size-mt-logo { height: 70px; max-height: 70px; margin-left: -12px; }

/* Rodapé: logos em plaquetas brancas iguais */
.footer .cred { display: flex; flex-wrap: wrap; gap: 8px; }
.footer .cred a { display: flex; align-items: center; justify-content: center; width: 104px; height: 46px; padding: 4px 8px; background: #fff; border-radius: 10px; }
.footer .cred a img.size-mt-logo { height: 38px; max-height: 38px; }
.footer .cred a .wordmark { color: #1f2937; font-size: .78rem; }

/* Marca sem logo (texto) segue a mesma moldura */
.brands ul li a .wordmark, .card-marca .lg .wordmark { font-weight: 800; letter-spacing: .04em; }

/* ---------- Menu: marca abre só as categorias ---------- */
.brand-drop.brand-drop-tipos { min-width: 280px; }
.brand-drop.brand-drop-tipos > div { display: flex; flex-direction: column; }
.brand-drop.brand-drop-tipos > div > a { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-drop.brand-drop-tipos > div > a span { flex: 1; }
.brand-drop.brand-drop-tipos > div > a.active { color: var(--red, #c8102e); }

/* ---------- Página marca + categoria ---------- */
.mt-tipo-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.mt-tipo-nav a { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid #dfe3ea; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--ink, #0f172a); background: #fff; transition: all .2s ease; }
.mt-tipo-nav a:hover { border-color: var(--red, #c8102e); color: var(--red, #c8102e); }
.mt-tipo-nav a.active { background: var(--red, #c8102e); border-color: var(--red, #c8102e); color: #fff; }

/* ---------- Serviços ---------- */
.serv-nav a.active { color: var(--red, #c8102e); font-weight: 700; }
.serv-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@media (max-width: 1100px) {
  .brands { flex-direction: column; align-items: stretch; gap: 16px; }
  .brands .lbl { flex: none; text-align: center; }
  .brands ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .brands ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands ul li a { height: 64px; }
}

/* ---------- Logo do cabeçalho: nunca distorce ---------- */
.header .logo { flex: 0 0 auto; display: flex; align-items: center; }
.header .logo img { width: auto !important; max-width: none; height: 44px; object-fit: contain; }
.drawer .panel header a img { width: auto !important; height: 34px; max-width: calc(100vw - 120px); object-fit: contain; }
.header .nav { flex: 0 1 auto; min-width: 0; }
.nav > li > a, .nav > li > button { white-space: nowrap; padding: 12px 8px; font-size: .78rem; letter-spacing: .03em; }
@media (max-width: 1366px) {
  .header .logo img { height: 38px; }
  .nav > li > a, .nav > li > button { padding: 12px 7px; font-size: .76rem; letter-spacing: .02em; }
}
@media (max-width: 1280px) {
  .header .nav { display: none; }
  .header .burger { display: grid; }
}
@media (max-width: 640px) {
  .header .logo img { height: auto; max-height: 34px; max-width: calc(100vw - 110px); }
}

/* ---------- Cards de produto: selo da marca e família sempre por cima da foto ---------- */
.card-prod .thumb .brand, .card-prod .thumb .fam { z-index: 3; }
.card-prod .thumb img { position: relative; z-index: 1; }

/* wordmark faixa */
.brands ul li a .wordmark { color: #6b7280 !important; opacity: .75; font-size: 1.05rem; transition: color .2s ease, opacity .2s ease; }
.brands ul li a:hover .wordmark { color: var(--ink, #0f172a) !important; opacity: 1; }

/* =====================================================================
   Correções do cliente (24/nov/2026)
   ===================================================================== */

/* Logo sem a chama: recorta o arquivo atual mostrando só o texto MATAYOSHI */
.header .logo img, .drawer .panel header a img { aspect-ratio: 387 / 57; object-fit: cover; object-position: 100% 50%; }
.footer .fl > img { width: auto; aspect-ratio: 265 / 39; object-fit: cover; object-position: 100% 50%; }
@media (max-width: 640px) { .header .logo img { height: 30px; max-height: none; } }

/* Slide principal: frase longa em caixa alta */
.hero .slides > .slide:first-child h1 { font-size: clamp(1.6rem, 2.7vw, 2.55rem); line-height: 1.15; max-width: 720px; }

/* Faixa "Marcas que representamos": logos maiores, na cor original e zoom de 40% ao passar o mouse/tocar */
.brands ul li { position: relative; }
.brands ul li:hover, .brands ul li:focus-within { z-index: 5; }
.brands ul li a { height: 96px; padding: 10px 12px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.brands ul li a img, .brands ul li a img.size-mt-logo { filter: none !important; opacity: 1 !important; max-height: 76px; }
.brands ul li a:hover, .brands ul li a:focus-visible, .brands ul li a:active { transform: scale(1.4); border-color: #cfd4dd; box-shadow: 0 14px 34px rgba(15, 23, 42, .18); }
.brands ul li a .wordmark { opacity: 1 !important; font-size: 1.3rem; }
.brands ul li a .wordmark.oilon { color: #1d4ed8 !important; } /* até o logo da Oilon ser cadastrado */
@media (max-width: 640px) { .brands ul li a { height: 80px; } .brands ul li a img.size-mt-logo { max-height: 62px; } }

/* Rodapé: logos das marcas na cor original dentro das plaquetas brancas */
.footer .cred a img, .footer .cred a img.size-mt-logo { filter: none !important; opacity: 1 !important; }
.footer .fl .cred a img, .footer .fl .cred a img.size-mt-logo { aspect-ratio: auto; object-fit: contain; object-position: center; width: auto !important; height: auto; max-width: 100%; max-height: 34px; margin: 0; }

/* Cards de serviço: título em caixa alta e texto justificado */
.card-serv h3 { text-transform: uppercase; }
.card-serv p { text-align: justify; hyphens: auto; }
