/* Ajustes da prévia local: legibilidade e contato no celular. */
#metodologia-mip { scroll-margin-top: 6rem; }
/* Impede que elementos decorativos animados criem rolagem lateral. */
html, body { overflow-x: clip; }
.controltec-client-button {
  background: #0072b8;
  color: #fff;
  border-radius: 6px;
  min-height: 36px;
  padding: 8px 14px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgb(0 72 120 / 14%);
  transition: background-color .2s, box-shadow .2s;
}
.controltec-client-button:hover { background: #005d98; color: #fff; }
.controltec-client-button:focus-visible { outline: 3px solid #0072b8; outline-offset: 3px; }
.controltec-header-actions { gap: 12px; }
.controltec-header-actions > span { display: none; }
.controltec-header-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: none;
  white-space: nowrap;
}
.controltec-header-actions > a[href^="tel:"] {
  display: none;
  color: #435260;
  background: rgb(255 255 255 / 45%);
  border-color: #b7c2ca;
}
.controltec-header-actions > a[href^="tel:"]:hover { background: #fff; color: #005d98; }
.controltec-header-actions > a:focus-visible { outline: 3px solid #0072b8; outline-offset: 2px; }
.controltec-header-actions > a svg { width: 14px; height: 14px; }
/* Links do menu principal com altura e tipografia uniformes. */
header nav > span > a[class] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  position: relative;
  background: transparent;
  color: #07518a;
  border: 0;
  border-radius: 0;
  transition: color .2s;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}
header nav > span > span { display: none; }
header nav {
  gap: 8px;
  border: 1px solid #26944c;
  border-radius: 10px;
  padding: 5px 8px;
  background: transparent;
}
header nav > span > a[class]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: #16833e;
  transform: scaleX(0);
  transition: transform .2s;
}
header nav > span > a[class]:hover,
header nav > span > a[class]:focus-visible { color: #16833e; }
header nav > span > a[class]:hover::after,
header nav > span > a[class]:focus-visible::after { transform: scaleX(1); }
header nav > span > a[class]:focus-visible { outline: 3px solid #0072b8; outline-offset: 2px; }
@media (min-width: 1024px) and (max-width: 1279px) {
  header nav { gap: 2px; padding-inline: 5px; }
  header nav > span > a[class] { padding-inline: 7px; font-size: 13px; }
  header nav > span > a[class]::after { left: 7px; right: 7px; }
}
#menu-principal-mobile > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
@media (max-width: 767px) {
  .controltec-client-button { min-height: 44px; }
}
@media (max-width: 639px) {
  main > section:first-child .grid > div { min-width: 0; }
  main > section:first-child a { white-space: normal; height: auto; min-height: 44px; text-align: center; }
  main > section:first-child h1 { font-size: 2rem; line-height: 1.18; }
  #contato button[type="submit"],
  #contato a[href*="wa.me"] {
    min-height: 3rem;
    height: auto;
    padding: .75rem 1rem;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
  }
  body.contact-visible > #root a.fixed[aria-label="Falar no WhatsApp"] {
    visibility: hidden;
    pointer-events: none;
  }
}
