/* MC Soluções — tokens e base */
:root {
  --azulejo: #EEF3F5;      /* azulejo branco de banheiro */
  --rejunte: #D3DDE3;
  --tinta: #0F2233;        /* azul-cano, quase preto */
  --azul: #0B4F8A;         /* azul da marca */
  --vermelho: #D1121F;     /* vermelho MC */
  --latao: #C99A3B;        /* latão dos reparos */
  --cobre: #B8642F;
  --papel: #F8FAFB;
  --texto: #1B2B3A;
  --texto-suave: #4A5C6C;
  --wa: #25D366;
  --wa-escuro: #128C7E;

  --fonte: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --raio: 4px;
  --raio-grande: 14px;
  --sombra: 0 1px 0 rgba(15, 34, 51, .06), 0 12px 32px -14px rgba(15, 34, 51, .35);
  --gutter: clamp(16px, 4vw, 40px);
  --largura: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: clamp(16px, 1.05vw + 11px, 18px);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; color: var(--tinta); font-variation-settings: "wdth" 72; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.6vw, 52px); }
h3 { font-size: clamp(20px, 1.6vw, 24px); font-variation-settings: "wdth" 85; font-weight: 750; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--largura); margin-inline: auto; padding-inline: var(--gutter); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--tinta); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--latao); outline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--tinta); --fg: #fff;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.35em;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: inherit; font-weight: 700; font-variation-settings: "wdth" 90;
  text-decoration: none; line-height: 1.1;
  border: 2px solid var(--bg);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--wa { --bg: var(--wa); --fg: #06331C; }
.btn--wa:hover { --bg: #1EBE5A; }
.btn--linha { background: transparent; color: var(--tinta); border-color: currentColor; }
.btn--linha:hover { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.btn--escuro { --bg: var(--tinta); }
.btn--sm { padding: .62em 1.05em; font-size: .9em; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 251, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topo.is-rolado { border-bottom-color: var(--rejunte); box-shadow: 0 6px 20px -18px rgba(15,34,51,.6); }
.topo__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.marca { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--tinta); }
.marca__mc {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--raio);
  background: var(--vermelho); color: #fff;
  font-weight: 900; font-variation-settings: "wdth" 75; font-size: 22px; letter-spacing: -.02em;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
}
.marca__nome { font-weight: 700; font-size: 22px; font-variation-settings: "wdth" 80; letter-spacing: -.01em; }

.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; color: var(--texto-suave); white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.menu a:hover { color: var(--tinta); background: var(--azulejo); }
.topo__acoes { display: flex; align-items: center; gap: 14px; }
.topo__tel { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--tinta); white-space: nowrap; }
.menu-btn { display: none; }

@media (max-width: 1120px) {
  .topo__tel { display: none; }
  .menu {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--papel); border-bottom: 1px solid var(--rejunte);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  .menu.is-aberto { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .menu a { padding: 14px 4px; border-radius: 0; font-size: 18px; border-bottom: 1px solid var(--azulejo); }
  .topo__acoes { margin-left: auto; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0;
  }
  .menu-btn span { display: block; width: 22px; height: 2px; background: var(--tinta); transition: transform .2s ease; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
