/* Zavata — cabeçalho e WhatsApp flutuante das páginas internas (/inss-de-obra, /construcoes-financiadas, /gestao-de-obras).
   Mesmo visual de styles.css, mas com as variáveis presas ao próprio cabeçalho,
   para não brigar com o estilo (e o modo escuro) de cada página. */
.header, .wa-float {
  --navy: #1F3864;
  --line: #E4E7EC;
  --accent: #B8975A;
  --navy-deep: #14284A;
  --wa: #25D366;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
}
:root { --header-h: 76px; }
body { margin: 0; }
html { scroll-padding-top: var(--header-h); }
.page { padding-top: var(--header-h); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #1F3864; color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  font: 400 17px/1.65 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.header .wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20, 40, 74, .35); }
.header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { display: block; height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  position: relative; font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.header .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; box-shadow: none;
  border: 1px solid transparent; border-radius: 999px;
  font: 700 15px/1 "Manrope", system-ui, sans-serif; text-decoration: none;
  background: var(--accent); color: var(--navy-deep);
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
}
.header .btn:hover { transform: translateY(-2px); background: #C6A76D; box-shadow: 0 10px 24px -12px rgba(184, 151, 90, .9); }
.header :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* destaque do INSS de Obra no menu: ponto dourado ao lado do texto */
.nav__dot { display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--accent); vertical-align: 2px; box-shadow: 0 0 0 3px rgba(184, 151, 90, .22); }
.burger { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .header__logo img { height: 34px; }
  .burger {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0;
  }
  .burger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20, 40, 74, .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .header .btn { margin-top: 18px; min-height: 52px; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6), 0 4px 10px rgba(0, 0, 0, .12);
  transition: transform .3s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.07); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: wa-pulse 2.6s var(--ease) infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
