/* T.I Extremo - cabecalho padrao das 7 paginas (06/10/2026).
   Telefone inline + botao verde de WhatsApp "Falar com tecnico agora".
   Substitui o botao laranja de orcamento e o selo flutuante "Ligar:"
   (.ti-call-cell) que ficava por cima dele.
   Reverter: ver index.html.bak-20261006-* em cada pagina. */
.tie-hdr-cta { gap: 14px; flex-shrink: 0; }
.tie-hdr-tel {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, 0.85); text-decoration: none; white-space: nowrap;
  font: 600 14px/1 Inter, system-ui, sans-serif; transition: color .2s;
}
.tie-hdr-tel:hover { color: #ffffff; }
.tie-hdr-wa {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 8px;
  background: #25D366; color: #ffffff; text-decoration: none; white-space: nowrap;
  font: 600 14px/1 Inter, system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.30);
  transition: background-color .2s, box-shadow .2s;
}
.tie-hdr-wa:hover { background: #1EBE5B; color: #ffffff; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.40); }
.tie-hdr-wa-ico { flex-shrink: 0; }
.tie-hdr-wa-short { display: none; }
/* desktop estreito (1024-1279): telefone so icone, rotulo curto */
@media (min-width: 1024px) and (max-width: 1279px) {
  .tie-hdr-cta { gap: 10px; margin-left: 16px; }
  .tie-hdr-tel {
    justify-content: center; width: 34px; height: 34px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
  }
  .tie-hdr-tel-num { display: none; }
  .tie-hdr-wa { padding: 0 14px; }
  .tie-hdr-wa-full { display: none; }
  .tie-hdr-wa-short { display: inline; }
}
/* celular/tablet: telefone so icone, WhatsApp curto, ao lado do menu */
@media (max-width: 1023px) {
  .tie-hdr-cta { margin-left: auto; padding-left: 8px; margin-right: 4px; gap: 6px; }
  .tie-hdr-tel {
    justify-content: center; width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.10);
  }
  .tie-hdr-tel-num { display: none; }
  .tie-hdr-wa { height: 32px; padding: 0 10px; gap: 6px; font-size: 13px; }
  .tie-hdr-wa-ico { width: 16px; height: 16px; }
  .tie-hdr-wa-full { display: none; }
  .tie-hdr-wa-short { display: inline; }
}
/* telas muito estreitas: WhatsApp so com o icone */
@media (max-width: 384px) {
  .tie-hdr-wa { width: 32px; padding: 0; justify-content: center; }
  .tie-hdr-wa-short { display: none; }
}

/* Sistemas e WebSites: o menu ja aparece a partir de 768px, entao no
   tablet o botao fica so com o icone para o menu nao espremer a marca */
@media (min-width: 768px) and (max-width: 1023px) {
  .tie-hdr-cta--md { margin-left: 0; padding-left: 12px; gap: 6px; }
  .tie-hdr-cta--md .tie-hdr-wa { width: 32px; padding: 0; justify-content: center; }
  .tie-hdr-cta--md .tie-hdr-wa-short { display: none; }
}
@media (max-width: 767px) {
  .tie-hdr-cta--md { gap: 4px; margin-right: 0; }
  .tie-hdr-cta--md .tie-hdr-wa { padding: 0 8px; }
}

/* Sistemas e WebSites abaixo de 1024px: esconde o sufixo "/ Sistemas" e
   "/ WebSites" ao lado da marca (o WebSites ja escondia no celular), para
   a marca nao quebrar em duas linhas nem encostar no menu */
@media (max-width: 1023px) {
  span[data-loc="client/src/pages/Sistemas.tsx:209"],
  span[data-loc="client/src/pages/Websites.tsx:76"] { display: none !important; }
}

/* Zona Sul: telefone no dourado da pagina */
.tie-hdr-cta--zs .tie-hdr-tel { color: #cfb784; }
.tie-hdr-cta--zs .tie-hdr-tel:hover { color: #d5c08f; }
/* a Zona Sul tem uma regra antiga que deixa todo link wa.me do cabecalho
   so com icone no celular (font-size:0 !important); aqui o botao segue o
   padrao das outras paginas: "WhatsApp" curto, icone so abaixo de 385px */
@media (min-width: 385px) and (max-width: 1023px) {
  .zona-sul-header .tie-hdr-cta--zs a.tie-hdr-wa {
    width: auto !important; max-width: none; height: 32px !important;
    padding: 0 10px !important; font-size: 13px !important;
  }
}
@media (min-width: 1024px) {
  .zona-sul-header .tie-hdr-cta--zs a.tie-hdr-wa {
    width: auto !important; max-width: none; height: 36px !important;
    padding: 0 16px !important; font-size: 14px !important;
  }
}
@media (max-width: 384px) {
  .zona-sul-header .tie-hdr-cta--zs a.tie-hdr-wa { width: 32px !important; height: 32px !important; max-width: none; }
}

/* Home, secao Contato, tablet (768-1023): o e-mail comercial@... nao
   quebrava e empurrava a pagina para o lado (largura 824px em 768). */
@media (min-width: 768px) and (max-width: 1023px) {
  #contato .grid > a.card-hover { flex-direction: column; align-items: flex-start; gap: 12px; }
  #contato .grid > a.card-hover > div:last-child { min-width: 0; max-width: 100%; }
  #contato .grid > a.card-hover > div:last-child > div { overflow-wrap: anywhere; }
}
