/* =========================================================
   TOKENS — paleta extraída da logo M1 One.
   Todo o visual do site é controlado por estas variáveis.
   ========================================================= */
:root {
  --preto:     #0E0E10;   /* fundo principal (showroom escuro) */
  --painel:    #17171B;   /* cartões e superfícies elevadas */
  --linha:     #2A2A30;   /* bordas sutis */
  --laranja:   #D97F2B;   /* laranja da logo */
  --laranja-2: #F0964A;   /* laranja mais claro p/ hover */
  --branco:    #F4F4F6;   /* texto principal */
  --cinza:     #9B9BA3;   /* texto secundário */

  --fonte: 'Exo 2', sans-serif;
  --container: 1120px;
  --radius: 8px;
}

/* ============ BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fonte);
  background: var(--preto);
  color: var(--branco);
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container {
  width: 100%;
  max-width: calc(var(--container) + 80px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
section { padding: 92px 0; scroll-margin-top: 68px; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; }

/* Títulos em itálico pesado — a inclinação da logo vira linguagem do site */
h1, h2, h3 { font-style: italic; font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--laranja);
  margin-bottom: 12px;
}

/* Efeito assinatura: varredura de brilho (luz deslizando na pintura) */
.shine {
  position: relative;
  display: inline-block;
  background: linear-gradient(105deg,
    var(--branco) 40%, #FFFFFF 48%, var(--laranja-2) 50%, #FFFFFF 52%, var(--branco) 60%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shineSweep 3.2s ease 0.6s 1 both;
}
@keyframes shineSweep {
  from { background-position: 120% 0; }
  to   { background-position: -60% 0; }
}

/* Botões */
.btn {
  display: inline-block;
  font-weight: 700;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-laranja { background: var(--laranja); color: var(--preto); }
.btn-laranja:hover { background: var(--laranja-2); }
.btn-ghost { border: 2px solid var(--linha); color: var(--branco); }
.btn-ghost:hover { border-color: var(--laranja); }

/* ============ HEADER ============ */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
  transition: box-shadow 0.2s ease;
}
header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.6); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo {
  font-weight: 800; font-style: italic;
  font-size: 1.5rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.logo span { color: var(--laranja); }
.logo small {
  color: var(--cinza);
  font-size: 0.58rem;
  font-style: normal;
  letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-weight: 700; font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cinza);
}
.nav-links a:hover { color: var(--laranja); }
.menu-btn { display: none; background: none; border: none; color: var(--branco); font-size: 1.6rem; cursor: pointer; }

/* ============ HERO ============ */
.hero { padding: 0; position: relative; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 580px;
  padding-block: 72px;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.03; }
.hero p { margin: 20px 0 32px; font-size: 1.1rem; color: var(--cinza); max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-img { position: relative; }
.hero-img img {
  border-radius: var(--radius);
  width: 100%; height: 430px;
  object-fit: cover;
}
/* risco de luz diagonal — eco da logo */
.hero-img::after {
  content: "";
  position: absolute;
  right: -10px; top: -10px;
  width: 46%; height: 8px;
  background: var(--laranja);
  transform: skewX(-30deg);
}
.hero-parceria {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--cinza);
}
.hero-parceria a { color: var(--laranja); text-decoration: none; }
.hero-parceria a:hover { text-decoration: underline; }

/* ============ SERVIÇOS ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.service-card {
  background: var(--painel);
  border: 1px solid var(--linha);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--laranja); }
/* filete inclinado no topo do cartão */
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px;
  width: 64px; height: 5px;
  background: var(--laranja);
  transform: skewX(-30deg);
}
.service-card h3 { font-size: 1.25rem; margin: 10px 0 8px; }
.service-card p { color: var(--cinza); font-size: 0.96rem; }

/* ============ CAMADAS DE PROTEÇÃO (seção assinatura) ============ */
.layers-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.layers-svg svg { width: 100%; height: auto; }
.layer {
  cursor: pointer;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.layer:hover { filter: brightness(1.25); }
.layer.ativa { filter: brightness(1.35) drop-shadow(0 0 6px rgba(217,127,43,0.45)); }
.layer-info {
  background: var(--painel);
  border: 1px solid var(--linha);
  border-left: 4px solid var(--laranja);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 210px;
}
.layer-info h3 { color: var(--laranja); font-size: 1.2rem; margin-bottom: 8px; }
.layer-info p { color: var(--cinza); }
.layer-dica { margin-top: 14px; font-size: 0.85rem; color: var(--cinza); font-style: italic; }

/* ============ SOBRE ============ */
.about { background: var(--painel); border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.about-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.about img { border-radius: var(--radius); height: 380px; width: 100%; object-fit: cover; }
.about p { color: var(--cinza); margin-top: 16px; }
.about strong { color: var(--branco); }

/* ============ GALERIA ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.gallery-grid img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-grid figure:hover img { transform: scale(1.05); }
/* brilho que desliza sobre a foto no hover — pintura recém-polida */
.gallery-grid figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  background-size: 250% 100%;
  background-position: 120% 0;
  pointer-events: none;
}
.gallery-grid figure:hover::after { animation: fotoShine 0.7s ease forwards; }
@keyframes fotoShine { to { background-position: -60% 0; } }

/* Lightbox — margin:auto obrigatório (o reset global remove o padrão do dialog) */
dialog.lightbox {
  border: none; padding: 0; background: transparent;
  max-width: min(92vw, 1100px);
  /* fixed + inset 0 + margin auto: centraliza SEM entrar no fluxo da
     página (position: relative aqui faz o site "rolar" ao abrir) */
  position: fixed; inset: 0; margin: auto;
}
dialog.lightbox::backdrop { background: rgba(0,0,0,0.9); }
dialog.lightbox img { width: 100%; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
dialog.lightbox button {
  position: absolute; top: -14px; right: -14px;
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: var(--laranja); color: var(--preto);
  font-size: 1.2rem; font-weight: 700; cursor: pointer;
}

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details {
  background: var(--painel);
  border: 1px solid var(--linha);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.faq summary {
  font-weight: 700; font-style: italic;
  font-size: 1.05rem;
  text-transform: uppercase;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--laranja); font-size: 1.5rem; font-style: normal; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--cinza); }

/* ============ CONTATO ============ */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.info-block { margin-bottom: 26px; }
.info-block h3 {
  font-style: italic; font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--laranja);
  margin-bottom: 6px;
}
.info-block a { text-decoration: none; }
.info-block a:hover { color: var(--laranja-2); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--linha); }
.hours-table td:last-child { text-align: right; font-weight: 500; }
.hours-table .closed { color: var(--cinza); }
.map iframe {
  width: 100%; height: 100%;
  min-height: 380px;
  border: 0; border-radius: var(--radius);
  filter: grayscale(0.4);   /* mapa discreto, combina com o tema escuro */
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--linha);
  padding: 32px 0;
  font-size: 0.9rem;
  color: var(--cinza);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { text-decoration: none; }
.footer-social a:hover { color: var(--branco); }

/* WhatsApp flutuante */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: #25D366; color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.whats-float svg { width: 30px; height: 30px; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shine { animation: none; background: none; color: var(--branco); -webkit-background-clip: initial; background-clip: initial; }
  .gallery-grid figure:hover::after { animation: none; }
}

/* ============ RESPONSIVO ============ */
@media (max-width: 860px) {
  .hero-inner, .about-inner, .contact-inner, .layers-wrap { grid-template-columns: 1fr; }
  .hero-inner {
    gap: 36px;
    min-height: auto;
    padding-block: 52px 60px;
  }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner, .layers-wrap { gap: 36px; }
  .menu-btn {
    display: block;
    width: 44px;
    height: 44px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--preto);
    border-bottom: 1px solid var(--linha);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  section { padding: 64px 0; }
}

@media (max-width: 560px) {
  section { padding: 52px 0; }

  h2 { font-size: clamp(1.8rem, 8.5vw, 2.2rem); }
  .eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
  }

  .hero-inner {
    gap: 32px;
    padding-block: 44px 52px;
  }
  .hero h1 { font-size: clamp(2.15rem, 10.5vw, 2.8rem); }
  .hero p {
    margin: 18px 0 28px;
    font-size: 1rem;
  }
  .hero-actions { gap: 12px; }
  .hero-actions .btn {
    width: 100%;
    padding: 13px 18px;
    text-align: center;
  }
  .hero-parceria {
    margin-top: 22px;
    text-align: center;
  }
  .hero-img img { height: clamp(230px, 72vw, 320px); }
  .hero-img::after { right: -6px; top: -8px; }

  .services-grid, .layers-wrap, .gallery-grid, .contact-inner { margin-top: 32px; }
  .service-card { padding: 22px; }

  .layers-wrap { gap: 24px; }
  .layers-svg { width: 100%; overflow: hidden; }
  .layer-info {
    min-height: auto;
    padding: 22px;
  }

  .about-inner { gap: 32px; }
  .about img { height: clamp(240px, 72vw, 300px); }

  .gallery-grid { gap: 8px; }
  .gallery-grid img { height: clamp(140px, 44vw, 190px); }

  .faq { margin-top: 32px; }
  .faq summary {
    gap: 12px;
    padding: 16px 18px;
    font-size: 0.98rem;
  }
  .faq summary::after { flex: 0 0 auto; }
  .faq details p { padding: 0 18px 16px; }

  .info-block { margin-bottom: 24px; }
  .info-block a { overflow-wrap: anywhere; }
  .hours-table tr {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid var(--linha);
  }
  .hours-table td {
    display: block;
    padding: 1px 0;
    border: 0;
  }
  .hours-table td:last-child { text-align: left; }
  .map iframe { min-height: 300px; }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }
  .whats-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  dialog.lightbox { max-width: calc(100vw - 24px); }
  dialog.lightbox button { top: 8px; right: 8px; }
}

/* Seletor de empresas do Grupo Massaro, inspirado no padrão multimarcas da Netshoes. */
.group-bar {
  background: #080f38;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.group-bar-inner {
  min-height: 54px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
}

.group-brands {
  display: flex;
  align-items: stretch;
}

.group-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 7px 18px;
  color: #c8cfea;
  font-family: "Exo 2", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}

.group-brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 34px;
  max-width: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.group-brand-logo-massaro {
  width: 110px;
  object-fit: contain;
}

.group-brand-logo-m1one {
  width: 96px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
}

.group-brand:not([aria-current="page"]) .group-brand-logo {
  opacity: 0.72;
}

.group-brand:hover .group-brand-logo,
.group-brand[aria-current="page"] .group-brand-logo {
  opacity: 1;
  transform: translateY(-1px);
}

.group-brand:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.group-brand[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.group-brand[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  background: #d97f2b;
}

.group-message {
  display: inline-flex;
  align-items: center;
  color: #aeb7da;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .group-message { display: none; }
  .group-brand { padding-right: 14px; padding-left: 14px; }
  .group-brand-logo { height: 30px; }
  .group-brand-logo-massaro { width: 96px; }
  .group-brand-logo-m1one { width: 84px; }
  .group-brand[aria-current="page"]::after { right: 14px; left: 14px; }
}
