/* ============================================================
   Header, footer e WhatsApp flutuante (compartilhados)
   ============================================================ */

/* ---------------- HEADER (pill flutuante, site-wide) ---------------- */
.nb { position: sticky; top: 0; z-index: 100; display: flex; justify-content: center;
      padding: 14px clamp(16px, 4vw, 32px); }
.nb__inner {
  width: 100%; max-width: 1180px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 10px 10px 10px 18px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background .45s var(--ease-weight), border-color .45s var(--ease-weight),
              box-shadow .45s var(--ease-weight), backdrop-filter .45s;
}
body.is-scrolled .nb__inner {
  background: rgba(249,249,249,.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: 0 18px 50px -28px rgba(13,13,13,.45);
}
.nb__left { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.nb__brand { display: inline-flex; align-items: center; }
.nb__logo { height: 40px; width: auto; }
/* selo "Desde 1987" — marca de tradição ao lado do logo */
.nb__since {
  display: inline-flex; align-items: center; padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); line-height: 1.1; white-space: nowrap;
}

/* nav central dentro de um pill cinza */
.nb__nav { display: flex; align-items: center; gap: 2px;
           background: #ededed; padding: 4px; border-radius: 999px; }
.nb__nav a {
  padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 600;
  color: #5a5a5a; line-height: 1; white-space: nowrap;
  outline: 1px solid transparent;
  transition: color .2s, background .2s, outline-color .2s, box-shadow .2s;
}
.nb__nav a:hover { color: var(--ink); background: #fff; outline-color: var(--line);
                   box-shadow: 0 2px 8px -4px rgba(0,0,0,.25); }
.nb__nav a.is-active { color: var(--ink); background: #fff;
                       box-shadow: 0 2px 8px -4px rgba(0,0,0,.25); }
/* separador vermelho antes de Calculadoras (destaque leve) */
.nb__sep { align-self: center; color: var(--red); font-weight: 700; padding: 0 5px; line-height: 1; user-select: none; }
.drawer__nav .nb__sep { display: none; }

.nb__right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* botão "seta" animado (usado no drawer e na hero) */
.btn-arrow {
  position: relative; display: inline-flex; align-items: center;
  height: 46px; padding: 0 56px 0 22px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; font-size: .95rem;
  overflow: hidden; cursor: pointer; white-space: nowrap;
  transition: padding .5s var(--ease-weight), background .25s;
}
.btn-arrow:hover { background: var(--red-dark); padding: 0 22px 0 56px; }
.btn-arrow__label { position: relative; z-index: 1; }
.btn-arrow__circ {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--red); display: grid; place-items: center;
  transition: right .5s var(--ease-weight), transform .5s var(--ease-weight);
}
.btn-arrow:hover .btn-arrow__circ { right: calc(100% - 41px); transform: translateY(-50%) rotate(45deg); }
.btn-arrow__circ svg { width: 17px; height: 17px; }
.btn-arrow--lg { height: 56px; padding: 0 66px 0 30px; font-size: 1.02rem; }
.btn-arrow--lg .btn-arrow__circ { width: 44px; height: 44px; right: 6px; }
.btn-arrow--lg:hover { padding: 0 30px 0 66px; }
.btn-arrow--lg:hover .btn-arrow__circ { right: calc(100% - 50px); transform: translateY(-50%) rotate(45deg); }

/* dropdown "Unidades" */
.uni { position: relative; }
.uni__btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 14px 0 18px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; font-size: .92rem; line-height: 1;
  transition: background .2s;
}
.uni__btn:hover { background: var(--red-dark); }
.uni__btn .chev { transition: transform .3s var(--ease-weight); }
.uni.open .uni__btn .chev { transform: rotate(180deg); }
.uni__panel {
  position: absolute; right: 0; top: calc(100% + 12px);
  width: 340px; max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(13,13,13,.5);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transform-origin: top right; transition: opacity .2s, transform .2s, visibility .2s; z-index: 60;
}
.uni.open .uni__panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.uni__head { padding: 8px 12px 6px; font-size: .72rem; font-weight: 700;
             letter-spacing: .18em; text-transform: uppercase; color: var(--gray); }
.uni__item { display: flex; align-items: center; gap: 12px; padding: 9px 11px;
             border-radius: 12px; transition: background .15s; }
.uni__item:hover { background: var(--paper); }
.uni__logo { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
             background: #fff; border: 1px solid var(--line); display: grid;
             place-items: center; overflow: hidden; }
.uni__logo img { max-width: 74%; max-height: 74%; object-fit: contain; }
.uni__txt { display: flex; flex-direction: column; line-height: 1.15; }
.uni__name { font-weight: 700; font-size: .92rem; color: var(--ink); }
.uni__city { font-size: .78rem; color: var(--gray); }

/* hambúrguer + drawer mobile */
.nb__burger { display: none; width: 46px; height: 46px; border-radius: 50%;
              border: 1px solid var(--line); background: #fff;
              flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nb__burger span { width: 22px; height: 2px; background: var(--ink);
                   transition: transform .25s, opacity .2s; }
.drawer { position: fixed; inset: 0; z-index: 110; visibility: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(13,13,13,.45);
                 opacity: 0; transition: opacity .3s; }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%;
                 width: min(360px, 88vw); background: #fff; padding: 22px;
                 display: flex; flex-direction: column; gap: 22px;
                 transform: translateX(100%); transition: transform .35s var(--ease-weight); overflow-y: auto; }
body.drawer-open .drawer { visibility: visible; }
body.drawer-open .drawer__scrim { opacity: 1; }
body.drawer-open .drawer__panel { transform: translateX(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; }
.drawer__close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
                 display: grid; place-items: center; font-size: 1.2rem; }
.drawer__nav { display: flex; flex-direction: column; gap: 6px; }
.drawer__nav a { font-size: 1.5rem; font-weight: 700; color: #5a5a5a; padding: 6px 0;
                 letter-spacing: -.01em; transition: color .2s, transform .2s; }
.drawer__nav a:hover, .drawer__nav a.is-active { color: var(--red); transform: translateX(4px); }
.drawer__units { display: flex; flex-direction: column; gap: 2px; }
.drawer__units .uni__head { padding-left: 0; }

/* divisor entre blocos do drawer — separa nav, links, unidades, CTA e redes.
   Tom um pouco mais forte que o --line padrão p/ ler bem sobre o branco. */
.drawer__div { display: block; height: 1px; background: #d8d8d8; margin: 6px 0; }

/* bloco "Links úteis" */
.drawer__extra { display: flex; flex-direction: column; gap: 2px; }
.drawer__extra .uni__head { padding-left: 0; }
.drawer__link { font-size: 1.05rem; font-weight: 600; color: #5a5a5a; padding: 6px 0;
                transition: color .2s, transform .2s; }
.drawer__link:hover { color: var(--red); transform: translateX(4px); }

/* botão "Solicitar orçamento" (mesmo da hero) — largura cheia no drawer.
   flex-shrink:0 impede que a coluna rolável esmague a altura fixa do pill. */
.drawer__orc { width: 100%; flex: 0 0 auto; }
.drawer__social { flex: 0 0 auto; }

/* ícones das redes sociais no rodapé do drawer */
.drawer__social { display: flex; gap: .6rem; }
.drawer__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
                    border: 1px solid var(--line); color: var(--charcoal);
                    transition: background .25s var(--ease-weight), color .25s var(--ease-weight), border-color .25s var(--ease-weight); }
.drawer__social a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.drawer__social svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .nb__nav, .nb__right .uni, .nb__since { display: none; }
  .nb__burger { display: flex; }
  .nb__inner { padding: 8px 8px 8px 16px; }
}
@media (min-width: 881px) { .drawer { display: none; } }

/* ---------------- FOOTER (hero de logística + card flutuante) ---------------- */
#site-footer { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--white); margin-top: 0; }

/* camada de fundo com a cena duotone (parallax via JS) */
.ft-hero__bg {
  position: absolute; left: 0; right: 0; top: -12%; height: 124%; z-index: 0;
  background: url(../Imagens/footer-desktop.png) center bottom / cover no-repeat, var(--ink);
  will-change: transform;
}
.ft-hero__inner {
  position: relative; z-index: 1;
  padding-block: clamp(44px, 6vw, 92px) clamp(220px, 32vw, 400px);
}

/* card branco flutuante */
.ft-card {
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: clamp(16px, 2vw, 26px);
  box-shadow: 0 30px 70px -28px rgba(13,13,13,.55);
  overflow: hidden; color: var(--ink);
}
.ft-card[data-reveal] { opacity: 0; transform: translateY(-22px); transition: opacity .8s var(--ease-weight), transform .8s var(--ease-weight); }
.ft-card[data-reveal].is-in { opacity: 1; transform: none; }

/* topo do card: marca + colunas de links */
.ft-card__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: clamp(1.8rem, 4vw, 3.5rem);
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.6rem, 3vw, 2.8rem);
}
.ft-card__brand { max-width: 34ch; }
.ft-card__logo { height: clamp(30px, 3.6vw, 42px); width: auto; display: block; }
.ft-card__tag { margin-top: 1.1rem; font-size: .95rem; line-height: 1.5; color: var(--charcoal); }

.ft-card__links { display: flex; flex-wrap: wrap; gap: clamp(1.8rem, 4vw, 3.5rem); }
.ft-col__h { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
.ft-col ul { display: grid; gap: .7rem; }
.ft-col li a { color: var(--gray); font-weight: 500; font-size: .95rem; transition: color .2s var(--ease-weight); }
.ft-col li a:hover { color: var(--red); }

/* barra inferior: legal + ícones sociais */
.ft-card__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.15rem clamp(1.6rem, 3vw, 2.8rem);
  border-top: 1px solid var(--line); background: #fff;
}
.ft-card__legal { display: grid; gap: .25rem; font-size: .8rem; color: var(--gray); }
.ft-card__social { display: flex; gap: .6rem; }
.ft-card__social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--charcoal);
  transition: background .3s var(--ease-weight), color .3s var(--ease-weight), border-color .3s var(--ease-weight);
}
.ft-card__social a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.ft-card__social svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .ft-hero__bg { background-image: url(../Imagens/footer-mobile.jpg); }
  .ft-hero__inner { padding-bottom: clamp(300px, 88vw, 560px); }
  .ft-card__top { flex-direction: column; }
}
@media (max-width: 520px) {
  .ft-card__links { flex-direction: column; gap: 1.6rem; }
  .ft-card__bar { flex-direction: column; align-items: flex-start; }
}
/* motion mantido sob reduced-motion (decisão do cliente) — reveal do footer e
   parallax do fundo continuam ativos. */

/* ---------------- WhatsApp flutuante ---------------- */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: .55; z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* ---- Header da landing de campanha (body[data-landing]) --------------------
   Sem menu, sem dropdown de unidades e sem WhatsApp: o único caminho é o
   formulário, que é o que dá ao Vico a origem do lead (pago x orgânico).
   O botão segue a mesma pílula do .uni__btn para não destoar do header. */
.nb--landing .nb__inner { justify-content: space-between; }
.nb__cta {
  display: inline-flex; align-items: center;
  height: 42px; padding: 0 22px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-weight: 700; font-size: .92rem; line-height: 1; white-space: nowrap;
  transition: background .2s;
}
.nb__cta:hover { background: var(--red-dark); }
@media (max-width: 560px) {
  .nb--landing .nb__since { display: none; }
  .nb__cta { height: 38px; padding: 0 16px; font-size: .86rem; }
}
