/* ==========================================================================
   AGUS – Partes compartilhadas do site
   1. Rodapé único (.agus-footer)
   2. Menu móvel do cabeçalho escuro (páginas de serviço)
   ========================================================================== */

/* 1. RODAPÉ ÚNICO -------------------------------------------------------- */
.site-footer.agus-footer {
  background: #002762;
  color: #ffffff;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}
.agus-footer .agus-footer-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.agus-footer .footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr 1fr 0.9fr 1.4fr;
  gap: 40px;
  margin-bottom: 56px;
}
.agus-footer .footer-brand-logos {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.agus-footer .footer-brand-primary { width: 210px; max-width: 100%; height: auto; display: block; }
.agus-footer .footer-partner-badge { width: 290px; max-width: 100%; height: auto; border-radius: 8px; display: block; }
.agus-footer .footer-desc {
  font-size: 0.9375rem;
  color: #94a3b8;
  max-width: 340px;
  line-height: 1.6;
  margin: 0 0 24px 0;
}
.agus-footer .social-links { display: flex; align-items: center; gap: 12px; }
.agus-footer .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.agus-footer .social-icon:hover { background: #0866e5; transform: translateY(-2px); }
.agus-footer .footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
}
.agus-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.agus-footer .footer-links a,
.agus-footer .footer-links span,
.agus-footer .footer-privacy-button {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}
.agus-footer .footer-links a:hover,
.agus-footer .footer-privacy-button:hover { color: #00e5ff; }
.agus-footer .footer-privacy-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.agus-footer .footer-bottom {
  max-width: none;
  margin: 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: #94a3b8;
  text-align: left;
}
.agus-footer .footer-bottom p { margin: 0; }

@media (max-width: 1080px) {
  .agus-footer .footer-top { grid-template-columns: 1fr 1fr; }
  .agus-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .agus-footer .footer-top { grid-template-columns: 1fr; gap: 34px; margin-bottom: 42px; }
  .agus-footer .footer-brand,
  .agus-footer .footer-col { text-align: center; }
  .agus-footer .footer-brand-logos { align-items: center; }
  .agus-footer .footer-desc { margin-left: auto; margin-right: auto; }
  .agus-footer .social-links { justify-content: center; }
  .agus-footer .footer-links { align-items: center; }
  .agus-footer .footer-privacy-button { text-align: center; }
  .agus-footer .footer-bottom { flex-direction: column; text-align: center; }
}

/* 2. MENU MÓVEL – CABEÇALHO ESCURO (páginas de serviço) ------------------ */
.agus-dark-header .mobile-toggle { display: none; }
.agus-dark-menu { display: none; }
body.menu-open { overflow: hidden; }

@media (max-width: 768px) {
  .agus-dark-header .nav-cta-btn { display: none; }
  .agus-dark-header .mobile-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  .agus-dark-header .mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
  }
  .agus-dark-menu {
    display: flex;
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    max-height: calc(100dvh - 73px);
    overflow-y: auto;
    z-index: 999;
    padding: 18px 24px calc(24px + env(safe-area-inset-bottom));
    flex-direction: column;
    gap: 4px;
    background: #011229;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    transform: translateY(-125%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
  }
  .agus-dark-menu.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .agus-dark-menu .nav-link { min-height: 44px; display: flex; align-items: center; font-size: 15px; }
  .agus-dark-menu .nav-cta-btn { display: flex; justify-content: center; margin-top: 12px; min-height: 44px; align-items: center; }
}

/* 3. MENU COM SUBMENU "SERVIÇOS" (todas as páginas) ------------------------ */
.has-sub { position: relative; }
.nav-sub-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-sub-toggle .nav-caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.has-sub.open > .nav-sub-toggle .nav-caret { transform: translateY(1px) rotate(-135deg); }
.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

/* Desktop: painel suspenso */
.site-header .has-sub > .nav-sub {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 270px;
  padding: 10px;
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2, 26, 58, 0.18);
  z-index: 1100;
}
.site-header .has-sub > .nav-sub::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.site-header .has-sub.open > .nav-sub,
.site-header .has-sub:hover > .nav-sub,
.site-header .has-sub > .nav-sub:focus-within { display: block; }
.site-header .nav-sub-link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: #021a3a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .nav-sub-link:hover,
.site-header .nav-sub-link:focus-visible { background: #eff6ff; color: #064bc4; outline: none; }
.site-header .nav-sub-link[aria-current="page"] { color: #064bc4; background: #eff6ff; }
.nav-sub-toggle:focus-visible { outline: 2px solid #00e5ff; outline-offset: 4px; border-radius: 4px; }

/* Celular: lista que abre e fecha dentro do menu móvel */
.mobile-menu .has-sub { display: flex; flex-direction: column; width: 100%; }
.mobile-menu .nav-sub-toggle { width: 100%; justify-content: space-between; min-height: 44px; padding: 0; text-align: left; }
.mobile-menu .has-sub.open > .nav-sub { display: flex; flex-direction: column; padding: 2px 0 8px 16px; border-left: 2px solid rgba(8, 102, 229, 0.35); }
.mobile-menu .nav-sub .nav-link { min-height: 40px; display: flex; align-items: center; font-size: 0.92rem; }
@media (max-width: 1080px) {
  .mobile-menu { max-height: calc(100dvh - 72px); overflow-y: auto; }
}

/* 4. TEXTO LONGO DAS PÁGINAS DE SERVIÇO NOVAS ---------------------------- */
.svc-prose { max-width: 860px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: #1e293b; }
.svc-prose h2 { font-size: 30px; font-weight: 900; line-height: 1.25; color: #011229; margin: 48px 0 14px; }
.svc-prose h2:first-child { margin-top: 0; }
.svc-prose h3 { font-size: 20px; font-weight: 800; line-height: 1.3; color: #021a3a; margin: 26px 0 8px; }
.svc-prose p { margin: 0 0 16px; }
.svc-prose ul, .svc-prose ol { margin: 0 0 16px; padding-left: 24px; }
.svc-prose li + li { margin-top: 8px; }
.svc-prose a { color: #0866e5; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.svc-prose strong { color: #011229; }
.svc-table-wrap { overflow-x: auto; margin: 0 0 16px; }
.svc-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.svc-prose th, .svc-prose td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; vertical-align: top; }
.svc-prose th { background: #f1f5f9; color: #011229; }
.svc-note { background: #eff6ff; border-left: 4px solid #0866e5; padding: 16px 20px; border-radius: 10px; }
.svc-cities { columns: 2; column-gap: 32px; }
@media (max-width: 640px) {
  .svc-prose { font-size: 16px; }
  .svc-prose h2 { font-size: 24px; }
  .svc-cities { columns: 1; }
}

/* 5. LINK DISCRETO PARA O PORTAL (cabeçalho claro) ---------------------- */
.header-portal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}
.header-portal-link:hover,
.header-portal-link:focus-visible { color: #064bc4; }
.header-actions-mobile .header-portal-link { justify-content: center; }
.header-actions-mobile .btn { min-height: 44px; }

/* 6. CABEÇALHO ÚNICO (todas as páginas com menu) -------------------------- */
.agus-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(2, 26, 58, 0.04);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.agus-header-spacer { height: 80px; }
.agus-header-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.agus-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.agus-brand img { height: 40px; width: auto; display: block; }
.agus-nav { display: flex; align-items: center; gap: 28px; }
.agus-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #021a3a;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease;
}
.agus-nav-link:hover,
.agus-nav-link.active { color: #064bc4; }
.agus-nav-link.active { font-weight: 700; }
.agus-nav-link:focus-visible { outline: 2px solid #0866e5; outline-offset: 4px; border-radius: 4px; }
.agus-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.agus-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #064bc4;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(6, 75, 196, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.agus-cta:hover { background: #0866e5; transform: translateY(-1px); }
.agus-cta:focus-visible { outline: 3px solid rgba(8, 102, 229, 0.4); outline-offset: 3px; }
.agus-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.agus-toggle span { width: 24px; height: 3px; border-radius: 2px; background: #021a3a; transition: transform 0.25s ease, opacity 0.25s ease; }
.agus-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.agus-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.agus-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Submenu no cabeçalho único */
.agus-header .has-sub > .nav-sub {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 270px;
  padding: 10px;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2, 26, 58, 0.18);
  z-index: 1100;
}
.agus-header .has-sub > .nav-sub::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.agus-header .has-sub.open > .nav-sub,
.agus-header .has-sub:hover > .nav-sub,
.agus-header .has-sub > .nav-sub:focus-within { display: block; }
.agus-header .nav-sub-link {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: #021a3a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.agus-header .nav-sub-link:hover,
.agus-header .nav-sub-link:focus-visible { background: #eff6ff; color: #064bc4; outline: none; }
.agus-header .nav-sub-link[aria-current="page"] { color: #064bc4; background: #eff6ff; }

/* Menu do celular */
.agus-mobile-menu { display: none; }
@media (max-width: 1080px) {
  .agus-header { height: 72px; }
  .agus-header-spacer { height: 72px; }
  .agus-nav, .agus-header-actions { display: none; }
  .agus-toggle { display: flex; }
  .agus-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 999;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    padding: 16px 24px calc(24px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 14px 32px rgba(2, 26, 58, 0.16);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .agus-mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .agus-mobile-menu .agus-nav-link { width: 100%; font-size: 1rem; }
  .agus-mobile-menu .has-sub { display: flex; flex-direction: column; width: 100%; }
  .agus-mobile-menu .nav-sub-toggle { justify-content: space-between; }
  .agus-mobile-menu .has-sub.open > .nav-sub { display: flex; flex-direction: column; padding: 2px 0 8px 16px; border-left: 2px solid rgba(8, 102, 229, 0.35); }
  .agus-mobile-menu .nav-sub .agus-nav-link { font-size: 0.95rem; min-height: 40px; }
  .agus-mobile-actions { display: grid; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid #e2e8f0; }
  .agus-mobile-actions .agus-cta { width: 100%; }
  .agus-mobile-actions .header-portal-link { justify-content: center; }
}

/* 7. CIDADES COMO LINK (caixa de região e rodapé) ------------------------ */
a.geo-pill-item { text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease; }
a.geo-pill-item:hover, a.geo-pill-item:focus-visible { background: rgba(255, 255, 255, 0.2); border-color: #00e5ff; }
.geo-pill-item[aria-current="page"] { background: rgba(0, 229, 255, 0.18); border-color: #00e5ff; }
.agus-footer .footer-links span a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 3px; }
.agus-footer .footer-links span a:hover { color: #00e5ff; }

/* 8. FAIXA DE CLIENTES NAS PÁGINAS DE SERVIÇO -------------------------------- */
.agus-clientes { padding: 56px 24px 40px; background: #ffffff; }
.agus-clientes .section-header-center { margin-bottom: 28px; }
.agus-clientes .clients-marquee { position: relative; overflow: hidden; max-width: 1200px; margin: 0 auto; padding: 6px 0 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.agus-clientes .clients-track { display: flex; width: max-content; animation: agusClientes 40s linear infinite; }
.agus-clientes .clients-marquee:hover .clients-track { animation-play-state: paused; }
.agus-clientes .clients-group { display: flex; gap: 20px; padding-right: 20px; flex-shrink: 0; }
.agus-clientes .client-card { display: flex; align-items: center; justify-content: center; width: 200px; flex: 0 0 200px; height: 96px; padding: 16px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; }
.agus-clientes .client-logo { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; filter: grayscale(100%); opacity: .75; transition: filter .2s, opacity .2s; }
.agus-clientes .client-card:hover .client-logo { filter: none; opacity: 1; }
.agus-clientes .client-logo-wide { max-height: 64px; }
@keyframes agusClientes { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .agus-clientes .clients-track { animation-duration: 70s; } }
@media (max-width: 768px) {
  .agus-clientes { padding: 40px 0 28px; }
  .agus-clientes .section-header-center { padding: 0 16px; }
  .agus-clientes .client-card { width: 160px; flex-basis: 160px; height: 80px; }
}
/* Depoimentos (ficam comentados no HTML até haver textos reais) */
.agus-depoimentos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin: 28px auto 0; }
.agus-depoimento { margin: 0; padding: 24px; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }
.agus-depoimento blockquote { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #1e293b; }
.agus-depoimento figcaption { font-size: 14px; color: #475569; }
.agus-depoimento figcaption strong { display: block; color: #011229; }
@media (max-width: 768px) { .agus-depoimentos { grid-template-columns: 1fr; padding: 0 16px; } }

/* 9. FORMULÁRIO CURTO "DIAGNÓSTICO" (páginas de destino) ------------------- */
.agus-diag { padding: 80px 24px; background: linear-gradient(135deg, #011229 0%, #03285e 100%); scroll-margin-top: 80px; }
.agus-diag-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; max-width: 1100px; margin: 0 auto; }
.agus-diag-intro .tag-blue { color: #00e5ff; }
.agus-diag-intro h2 { margin: 0 0 14px; font-size: 34px; font-weight: 900; line-height: 1.15; color: #ffffff; }
.agus-diag-intro p { margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: #cbd5e1; }
.agus-diag-list { margin: 0; padding: 0; list-style: none; }
.agus-diag-list li { position: relative; margin-bottom: 10px; padding-left: 28px; font-size: 15px; color: #e2e8f0; }
.agus-diag-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: #25d366; }
.agus-diag-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 28px; background: #ffffff; border-radius: 18px; box-shadow: 0 20px 50px rgba(1, 18, 41, .35); }
.agus-diag-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.agus-diag-field.full { grid-column: 1 / -1; }
.agus-diag-field label { font-size: 13px; font-weight: 700; color: #011229; }
.agus-diag-field input, .agus-diag-field select, .agus-diag-field textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: #1e293b; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 10px; }
.agus-diag-field textarea { resize: vertical; min-height: 88px; }
.agus-diag-field input:focus, .agus-diag-field select:focus, .agus-diag-field textarea:focus { outline: 2px solid #0866e5; outline-offset: 1px; border-color: #0866e5; background: #ffffff; }
.agus-diag-form .btn-green-cta { grid-column: 1 / -1; justify-content: center; width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.agus-diag-form .btn-green-cta:disabled { opacity: .7; cursor: wait; }
.agus-diag-note { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #64748b; text-align: center; }
.agus-diag-note a { color: #064bc4; }
.agus-diag-form .agus-form-error { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .agus-diag { padding: 56px 16px; }
  .agus-diag-inner { grid-template-columns: 1fr; gap: 28px; }
  .agus-diag-intro h2 { font-size: 28px; }
}
@media (max-width: 560px) {
  .agus-diag-form { grid-template-columns: 1fr; padding: 22px 18px; }
}
