/* Ajustes de paridade com o tema original (hakaisecurity.io/.../style.css).
   Arquivo separado do bundle do Vite: carregado depois dele, por isso vence
   por ordem de cascata com a mesma especificidade. */

/* ---------- Botões ---------- */
.default-btn {
  padding: 16px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  line-height: normal;
}
.default-btn.lg { padding: 20px 32px; }
.default-btn.outlined { background-color: transparent; border-color: #e32320; }

/* ---------- Header: seletor de idioma ---------- */
.lang-switch {
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.14px;
}
.lang-option {
  position: relative;
  gap: 8px;
  color: #fff;
  opacity: 1;
  transition: color 0.3s ease-in-out;
}
.lang-option .lang-flag path,
.lang-option .lang-flag circle { fill: currentColor; transition: fill 0.3s ease-in-out; }
.lang-option::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #e32320;
  transition: width 0.3s ease-in-out;
}
.lang-option:hover { color: #fe5552; opacity: 1; }
.lang-option.is-active,
.lang-option.is-active:hover { color: #e32320; opacity: 1; }
.lang-option.is-active::after { width: 100%; }

/* ---------- Hero ---------- */
.hero-section > .container-hakai {
  align-items: start;
  padding-top: 0;
  padding-bottom: 0;
}
@media (min-width: 992px) {
  .hero-section > .container-hakai { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hero-text { margin-top: 106px; }
.hero-headline {
  display: flex;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 52px;
  font-weight: 700;
  line-height: 110%;
  letter-spacing: -1.04px;
  margin: 0 0 32px -18px;
  max-width: 614px;
}
.hero-headline > span { margin-left: 18px; }
.hero-headline .glitched-text { color: #e32320; }
.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 140%;
  max-width: 532px;
  margin-bottom: 24px;
  color: #fff;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; }
.hero-actions .hero-know-more-btn { margin-left: 16px; }
@media (max-width: 1218px) {
  .hero-headline { font-size: 40px; }
}
@media (max-width: 991px) {
  .hero-text { margin-top: 32px; }
  .hero-headline { max-width: 345px; margin-bottom: 12px; margin-left: -12px; }
  .hero-headline > span { margin-left: 12px; }
  .hero-subtitle { font-size: 16px; }
  .hero-media { order: -1; }
}
@media (max-width: 450px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .default-btn { width: 100%; margin-left: 0; margin-bottom: 16px; }
}

/* Spotlight: raio e gradiente do tema (200px / 400px; equipe 800px). */
.hero-background { clip-path: circle(200px at var(--hero-x, 50%) var(--hero-y, 40%)); }
.hero-radial { width: 400px; height: 400px; }
.our-team-background { clip-path: circle(200px at var(--hero-x, 50%) var(--hero-y, 50%)); }
.our-team-radial { width: 800px; height: 800px; }

/* ---------- Equipe ---------- */
.member-name { font-size: 16px; margin-top: 13px; }
.member-role { font-size: 12px; margin-top: 2px; }
/* No tema a foto fica sempre em escala de cinza. */
.hakai-card:hover .user-image { filter: grayscale(1); }
/* "Trabalhe conosco" usa a cor de destaque da página (estilo inline no tema). */
.our-team .default-btn.team-cta,
.our-team .default-btn.team-cta:hover,
.our-team .default-btn.team-cta:focus-visible {
  background-color: var(--team-accent, #e32320);
  color: #fff;
}
.our-team .default-btn.team-cta:hover { opacity: 0.8; }
/* Coverflow: só o card central vira no hover (.swiper-slide-active no tema). */
.team-slider.is-coverflow .team-slide:not(.is-active) .hakai-card:hover .hakai-card-front,
.team-slider.is-coverflow .team-slide:not(.is-active) .hakai-card:focus-within .hakai-card-front { transform: rotateY(0deg); }
.team-slider.is-coverflow .team-slide:not(.is-active) .hakai-card:hover .hakai-card-back,
.team-slider.is-coverflow .team-slide:not(.is-active) .hakai-card:focus-within .hakai-card-back { transform: rotateY(180deg); }

/* ---------- Carrosséis controlados por JS (réplica do Swiper) ---------- */
.js-slider {
  overflow: hidden !important;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.js-slider.is-dragging { cursor: grabbing; }
.js-slider > li { scroll-snap-align: none !important; }
.js-slider.is-coverflow { perspective: 1200px; }
.js-slider img { -webkit-user-drag: none; }
.drag-scroll { cursor: grab; }
.drag-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
.pagination-fill { transition: width 0.3s ease; }

/* ---------- Footer ---------- */
.footer-logo { height: 50px; width: auto; margin-bottom: 16px; }
.footer-tagline {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 130%;
  color: #fff;
  margin: 0 0 40px;
}
.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #fff;
  font-size: 16px;
}
.footer-nav { margin-top: 16px; }
.footer-nav-label {
  display: block;
  margin-bottom: 24px;
  font-size: 10px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.4px;
}
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: fit-content;
  margin-right: 100px;
}
.footer-nav-grid a {
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 130%;
  transition: color 0.3s ease-in-out;
}
.footer-nav-grid a:hover { color: #e32320; }
@media (max-width: 640px) {
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); width: auto; margin-right: 0; }
}
.all-rights-reserved { margin-top: 80px; }
.footer-copyright {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  color: #646464;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 150%;
}

/* ---------- Página: fade de entrada (main) — o tema não revela seções ao rolar ---------- */
@keyframes hk-fade-in { from { opacity: 0; } to { opacity: 1; } }
main { animation: hk-fade-in 1.5s ease-in-out forwards; }
.reveal,
.reveal.is-revealed { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- Page loader ---------- */
.page-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  background-color: #e32320;
  overflow: hidden;
  /* Salvaguarda: se o JS não rodar, some sozinho. */
  animation: hk-loader-failsafe 0s linear 6s forwards;
}
@keyframes hk-loader-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.page-loader #word-container {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}
.page-loader #word-container img { height: 50px; width: auto; }
.page-loader .reveal-logo {
  display: none;
  width: 120px;
  height: 120px;
  max-width: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s cubic-bezier(0.99, -0.07, 0.87, 0.55);
}
.page-loader .reveal-logo.scaled { top: -20%; width: 4300px; height: 3800px; }
@media (max-width: 991px) {
  .page-loader #word-container { font-size: 24px; }
}

/* ---------- Efeito de "estática" (#noise) ---------- */
.hakai-modal .modal-content,
.dropdown-panel,
#cookie-popup {
  filter: url(#noise);
  -webkit-filter: url(#noise);
  /* Como no tema: camada própria, senão o WebKit (iOS) pode não pintar o elemento filtrado. */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}
/* No mobile o filtro SVG deixa o modal/popup invisível no Safari iOS: desliga. */
@media (max-width: 992px) {
  .hakai-modal .modal-content,
  #cookie-popup {
    filter: none;
    -webkit-filter: none;
  }
}

/* ---------- Modais: fade do Bootstrap ---------- */
.hakai-modal { background: rgba(0, 0, 0, 0.5); }
@keyframes hk-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hk-modal-drop { from { transform: translate(0, -50px); } to { transform: none; } }
.hakai-modal.is-open { animation: hk-modal-fade 0.15s linear; }
.hakai-modal.is-open .hakai-modal-dialog { animation: hk-modal-drop 0.3s ease-out; }

/* ---------- Modal "Ler mais" (vantagens) ---------- */
#benefit-modal .hakai-modal-dialog { max-width: 534px; }
#benefit-modal .modal-content { position: relative; }
#benefit-modal .benefit-modal-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#benefit-modal .benefit-content-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 428px;
  max-width: 532px;
  padding: 48px 24px 42px 24px;
}
#benefit-modal h3 {
  margin-bottom: 32px;
  color: #fff;
  text-align: left;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 170%;
}
#benefit-modal p {
  margin-bottom: 24px;
  color: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 170%;
}
#benefit-modal .team-logo { width: fit-content; max-width: 100%; max-height: 36px; }
#benefit-modal .modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Efeito "ímã" no fundo dos cards de vantagens. */
.benefits-cards-background {
  transform: translate(calc(-50% + var(--mx, 0px)), calc(-50% + var(--my, 0px)));
  transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* FAQ: fechamento animado — o ícone volta a "+" logo no início. */
.faq-card.is-closing .faq-icon::after { opacity: 1; transform: translateX(-50%); }

/* ---------- Popup de cookies ---------- */
@keyframes hk-slide-in-up {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes hk-slide-out-down {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100%); opacity: 0.5; }
}
#cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  width: 100vw;
  padding: 32px 0;
  background-color: #0d0d0d;
  border-top: 1px solid #e32320;
  transform: translateY(100%);
  animation: hk-slide-in-up 0.5s ease-in-out 3s forwards;
}
#cookie-popup.slide-out {
  transform: translateY(0);
  animation: hk-slide-out-down 0.5s ease-in-out 0.3s forwards;
}
#cookie-popup .container-hakai { display: flex; align-items: center; justify-content: space-between; width: 100%; }
#cookie-popup p { max-width: 540px; margin-right: 40px; font-size: 16px; }
#cookie-popup a { color: #e32320; font-weight: 600; transition: opacity 0.3s ease-in-out; }
#cookie-popup a:hover { text-decoration: underline; opacity: 0.7; }
#cookie-popup .cookies-action-container { display: flex; align-items: center; }
#cookie-popup #decline-cookies {
  margin-right: 16px;
  padding: 8px 16px;
  color: #e32320;
  background-color: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.7;
  cursor: pointer;
}
@media (max-width: 991px) {
  #cookie-popup .container-hakai { flex-direction: column; }
  #cookie-popup .cookies-action-container { flex-direction: column-reverse; margin-top: 16px; }
  #cookie-popup #decline-cookies { margin-right: 0; margin-top: 10px; }
  #cookie-popup p { margin-right: 0; margin-bottom: 16px; text-align: center; font-size: 14px; }
}

@media (max-width: 992px) {
  .hero-background, .our-team-background { clip-path: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background, .our-team-background { clip-path: none; }
  main, .hakai-modal.is-open, .hakai-modal.is-open .hakai-modal-dialog { animation: none; }
  .page-loader { display: none; }
  .benefits-cards-background { transition: none; }
}

/* ---------- Política de privacidade (.privacy-policy do tema) ---------- */
.legal-text-section { position: relative; padding: 100px 0; }
.legal-text-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #0d0d0d;
  opacity: 0.5;
}
.legal-text-section .container-hakai { position: relative; z-index: 3; }
.legal-text-section .legal-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 52px;
  font-weight: 700;
  line-height: 110%;
  letter-spacing: -1.04px;
  margin: 0 0 16px -18px;
  text-align: center;
}
.legal-text-section .legal-last-updated {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 140%;
  opacity: 0.5;
  margin-bottom: 64px;
}
.legal-text-section h2 { font-size: 32px; font-weight: 600; margin-top: 40px; }
.legal-text-section p {
  margin-top: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 30px;
  color: #fff;
  white-space: pre-line;
}
.legal-text-section p.legal-last-updated { font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; line-height: 140%; margin-top: 0; }
.legal-text-section a, .legal-text-section strong { color: #e32320; }
@media (max-width: 991px) {
  .legal-text-section { padding: 100px 20px; }
  .legal-text-section .legal-title { font-size: 40px; margin-left: 0; }
}

/* Fundo do hero: opacidade do padrão do tema; no mobile o overlay (0.5) escurece. */
.hero-background img { opacity: 0.05; }
@media (max-width: 992px) {
  .hero-background img { opacity: 0.025; }
}

/* Clientes: a faixa vira a "viewport" do carrossel JS (sem animação CSS). */
.partners-marquee.is-js .partners-track {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  animation: none;
}

/* Equipe (variante clara, home): o tema não escurece nome/cargo — o card é escuro. */
.our-team.is-light .member-name,
.our-team.is-light .member-role { color: #fff; }
@media (max-width: 991px) {
  .our-team.is-light { padding-top: 24px; }
}

/* "Quem somos" (home): gutter do Bootstrap (30px) → coluna de 540px, como no tema;
   título limitado a 506px (.about-us-title-container h2). */
.about-grid { column-gap: 30px; }
.about-title-container .section-title { max-width: 506px; margin-bottom: 24px; }
@media (max-width: 991px) {
  .about-title-container .section-title { font-size: 26px; }
  .about-subtitle { font-size: 16px; max-width: 100%; }
}

/* No tema esses textos herdam o branco do body (nenhum define cor). */
.about-body,
.services-subtitle,
.team-card-content p,
.partners-footnote,
#contact-modal .text-16,
#success-modal .modal-content-align p { color: #fff; }

/* ---------- Largura do contêiner ----------
   O tema carrega reset.css, que sobrescreve o .container do Bootstrap:
   @media (min-width:1200px) { .container { max-width: 1316px !important } } */
@media (min-width: 1200px) {
  .container-hakai { max-width: 1316px; }
}
/* Carrosséis que alinham o primeiro card à borda do contêiner
   (setCarouselContainerPadding do tema), recalculados para os contêineres reais. */
@media (min-width: 992px) {
  .services-slider { padding-left: calc((100vw - 930px) / 2); }
  .bu-deliveries-slider { padding-inline: calc((100vw - 930px) / 2); }
}
@media (min-width: 1200px) {
  .services-slider { padding-left: max(15px, calc((100vw - 1286px) / 2)); }
  .bu-deliveries-slider { padding-inline: max(15px, calc((100vw - 1286px) / 2)); }
}

/* Gutter do Bootstrap (30px) no hero; o SVG ocupa a coluna (.hero svg {max-width:100%}). */
.hero-section > .container-hakai { column-gap: 30px; }
.hero-media .hero-character { max-width: 100%; }

/* "Quem somos": ilustração em tamanho natural, à esquerda da coluna (img-fluid). */
@media (min-width: 992px) {
  .about-media { justify-content: flex-start; }
  .about-media img { width: auto; max-width: 100%; }
}

/* =====================================================================
   MOBILE — valores das media queries do tema original (style.css)
   ===================================================================== */
@media (max-width: 1280px) {
  .left-bu-hero-grafism, .right-bu-hero-grafism { height: 400px; width: auto; }
  .left-bu-hero-grafism { left: -80px; }
  .right-bu-hero-grafism { right: -80px; }
}
@media (min-width: 1281px) {
  .left-bu-hero-grafism { left: 0; }
  .right-bu-hero-grafism { right: 0; }
}
@media (max-width: 1218px) {
  .our-team:not(.is-light) { padding-top: 160px; }
  .newsletter h3 { max-width: 320px; font-size: 26px; margin: 0 auto 12px; }
  .newsletter p { font-size: 14px; margin-bottom: 24px; }
}
@media (max-width: 1080px) {
  .about-deliveries .services-subtitle { text-align: center; margin-inline: auto; }
  .our-team:not(.is-light) { padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 992px) {
  .page-loader #word-container { font-size: 28px; }
  .lang-switch { display: none; }
  .about-deliveries .section-title { text-align: center; }
  .about-deliveries .text-16 { font-size: 14px; }
  .certifications .section-title { text-align: center; margin-inline: auto; }
  .certifications .default-btn { margin-top: 40px; }
  /* Newsletter */
  .newsletter-content-container { top: 210px; max-width: 266px; padding-left: 0; }
  .newsletter h3 { font-size: 20px; margin: 0 auto 10px; max-width: 248px; }
  .newsletter p { font-size: 13px; margin: 0 auto 24px; max-width: 248px; }
}
@media (max-width: 991px) {
  .text-16 { font-size: 14px; }
  .about-body, .partners-footnote,
  .our-focus-text-container .text-16,
  .benefits-header-container .text-16 { font-size: 14px; }
  .pagination-container { margin-top: 64px; }

  /* Serviços */
  .services-header { flex-direction: row; justify-content: center; }
  .services-header-container { display: flex; justify-content: center; width: 100%; }
  .services-lettering { width: 173px; transform: translate(-24px, -17px); }
  .services-header-container .section-title { max-width: 100%; }
  .services-section .nav-buttons { display: none; }
  .services-subtitle { max-width: 345px; font-size: 16px; }
  .team-card-content { padding: 56px 40px; text-align: left; }

  /* Clientes */
  .partners-marquee { margin-top: 64px; margin-bottom: 32px; }
  .client-slide img { width: 50%; margin-bottom: 24px; }
  .partners-footnote { margin: 8px auto 0; max-width: 321px; }
  .partners-cta { margin-top: 24px; }

  /* Grandes feitos */
  .metrics-title-container { margin-bottom: 32px; }
  .metrics-lettering { width: 260px; }
  .metrics-subtitle { font-size: 16px; }
  .inline-metric-info { flex-direction: column; align-items: flex-start; padding: 12px 0; gap: 0; }
  .metric-vendor { font-size: 24px; }
  .metric-entries { margin-left: 0; width: 100%; }
  .metric-entries p {
    text-align: left; font-size: 14px; line-height: 132%;
    white-space: nowrap; width: 100%; overflow: hidden; text-overflow: ellipsis;
  }

  /* Equipe */
  .our-team-lettering { width: 200px; transform: translate(-12px, -32px); }
  .card-back-content { padding: 32px 16px; }
  .card-back-content span { margin-bottom: 16px; }
  .card-back-content p { font-size: 12px; }

  /* Footer */
  .site-footer { text-align: center; }
  .site-footer .container-hakai > div { flex-direction: column; align-items: center; }
  .footer-email { justify-content: center; }
  .footer-nav { margin-top: 24px; }
  .footer-nav-grid, .footer-nav-grid[class] {
    display: flex; flex-direction: column; align-items: center; margin: 0 auto; width: auto;
  }
  .site-footer .container-hakai > div > ul { margin-top: 24px; }

  /* Páginas de serviço */
  .bu-hero-content { max-width: 480px; }
  .bu-hero-content h1 { font-size: 48px; }
  .bu-hero-content p { font-size: 16px; margin-bottom: 80px; }
  .bu-hero { padding-top: 112px; }
  .focus-image-container { order: -1; margin-bottom: 80px; }
  .bu-deliveries { padding-top: 140px; }
  .bu-benefits { padding-top: 80px; padding-bottom: 90px; }
  .benefits-card-container { margin-bottom: 24px; }
  .benefits-cta { margin-top: 48px; margin-bottom: 0; }
  .top-grafism { display: none; }
  .top-grafism.mobile { display: block; height: 24px; top: 6px; }
  .faq-section { padding-top: 150px; padding-bottom: 12px; }
  .faq-header .section-title { margin-bottom: 54px; }
  .faq-header .text-16, .faq-header .default-btn { display: none; }
  .mobile-faq-text-container { display: block; }
}
.top-grafism.mobile { display: none; }
.mobile-faq-text-container { display: none; text-align: center; }
.mobile-faq-text-container .text-16 {
  font-size: 15px; max-width: 298px; margin: 40px auto 0; text-align: center;
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 300; line-height: 170%;
}
.mobile-faq-text-container .default-btn { display: flex; width: fit-content; margin: 28px auto 0; }
@media (max-width: 569px) {
  .bu-hero { padding-top: 70px; }
  .bu-hero-logo { max-height: 46px; width: auto; margin-bottom: 40px; }
  .bu-hero-content { max-width: 345px; }
  .bu-hero-content .default-btn { display: none; }
  .bu-hero-content h1 { font-size: 32px; margin-bottom: 24px; }
  .bu-hero-content p { margin-bottom: 16px; }
  .our-focus-text-container .text-24 { font-size: 20px; }
  .our-focus-header-container .section-title { font-size: 28px; }
  .focus-lettering { height: 32px; width: auto; transform: translate(-12px, -12px); }
  .bu-deliveries { padding-top: 120px; }
  .deliveries-lettering { width: 305px; transform: translate(-50%, -32px); }
  .bu-deliveries-slider { padding-left: 15px; }
  .deliveries-cta { margin-bottom: 88px; }
  .faq-section { padding-top: 32px; }
  .faq-lettering { width: 134px; height: auto; transform: translate(-12px, -22px); }
}
@media (max-width: 480px) {
  .faq-header { max-width: 100%; }
  .faq-header .section-title { font-size: 24px; }
}
@media (max-width: 450px) {
  .ribbon-mobile { padding-top: 16px; }
}

/* =====================================================================
   MENU MOBILE — animação do tema: barras "pulam", o botão desliza para a
   direita e some, e o painel desce depois de 0.6s; um ✕ entra pela direita.
   ===================================================================== */
@keyframes hk-top-bar { 0% { transform: translateY(-3px); } 50% { transform: translateY(-6px); } 100% { transform: translateY(3px); } }
@keyframes hk-bottom-bar { 0% { transform: translateY(3px); } 50% { transform: translateY(6px); } 100% { transform: translateY(-3px); } }
@keyframes hk-slide-out { 0% { transform: translateX(0); } 100% { transform: translateX(100px); opacity: 0; } }
.hamburger[aria-expanded='true'] { animation: hk-slide-out 0.3s forwards 0.4s; }
.hamburger[aria-expanded='true'] .hamburger-bar:first-child { transform: translateY(-3px); animation: hk-top-bar 0.4s forwards; }
.hamburger[aria-expanded='true'] .hamburger-bar:nth-child(2) { opacity: 1; }
.hamburger[aria-expanded='true'] .hamburger-bar:last-child { transform: translateY(3px); animation: hk-bottom-bar 0.4s forwards; }
.mobile-menu { z-index: 99999999; transition: transform 0.3s ease-in 0s; }
.mobile-menu.is-open { transition: transform 0.3s ease-in 0.6s; }
.close-mobile-btn { display: none; }
@media (max-width: 992px) {
  .close-mobile-btn {
    display: block; position: fixed; top: 64px; right: -32px; z-index: 100000000;
    padding: 0; border: none; background: transparent; color: #fff; cursor: pointer;
  }
  .close-mobile-btn.opened { right: 26px; transition: right 0.4s 1s; }
}
.mobile-menu-content ul { margin-top: 10px; }
.mobile-menu-content > ul > li { margin: 20px 0; }
.mobile-menu-content > ul > li:first-child { margin-top: 10px; }
.mobile-menu-content a.is-current { font-weight: 700; }
.mobile-group summary { height: 40px; font-size: 22px; font-weight: 400; line-height: 150%; list-style: none; }
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary .mobile-chevron { height: 13px; width: auto; margin-left: 6px; transition: transform 0.3s ease-in-out; }
.mobile-group[open] summary .mobile-chevron { transform: rotate(180deg); }
.mobile-group .mobile-sub { padding-left: 8px; margin: 0; }
.mobile-group .mobile-sub li { padding: 0; }
.mobile-group .mobile-sub a { display: flex; align-items: center; height: 36px; margin: 10px 0; font-size: 16px; font-weight: 300; }
.mobile-social { position: absolute; bottom: 94px; z-index: 3; display: flex; align-items: center; }
.mobile-social a:nth-child(2) { margin: 0 32px; }
.mobile-social svg { height: 32px; width: auto; }
.mobile-social svg path { fill: #fff; }

/* =====================================================================
   HOVER / GLITCH — links do rodapé e dropdown aberto (como no tema)
   ===================================================================== */
.footer-nav-grid a:hover { position: relative; display: block; width: fit-content; }
.footer-nav-grid a:hover::before,
.footer-nav-grid a:hover::after,
.dropdown.is-open .dropdown-trigger .nav-text::before,
.dropdown.is-open .dropdown-trigger .nav-text::after {
  content: attr(title); position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform;
}
.footer-nav-grid a:hover::before,
.dropdown.is-open .dropdown-trigger .nav-text::before {
  animation: glitchTop 1s linear infinite; clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.footer-nav-grid a:hover::after,
.dropdown.is-open .dropdown-trigger .nav-text::after {
  animation: glitchBotom 1.5s linear infinite; clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}
.dropdown.is-open .dropdown-trigger .nav-text { position: relative; display: inline-block; }
@media (max-width: 991px) {
  .footer-nav-grid a:hover { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
  .hamburger[aria-expanded='true'], .hamburger[aria-expanded='true'] .hamburger-bar { animation: none; }
  .mobile-menu.is-open { transition-delay: 0s; }
  .footer-nav-grid a:hover::before, .footer-nav-grid a:hover::after,
  .dropdown.is-open .dropdown-trigger .nav-text::before, .dropdown.is-open .dropdown-trigger .nav-text::after { display: none; }
}
