/* Static export helpers — não altera identidade visual, só garante conteúdo visível sem WP/PHP */

.uagb-counter-block-number:empty::after {
  content: attr(data-to-value);
}

.uagb-slick-carousel .slick-track {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  transform: none !important;
  opacity: 1 !important;
}

.uagb-slick-carousel .slick-slide {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.uagb-slick-carousel .slick-list {
  overflow: visible !important;
  height: auto !important;
}

.uagb-tm__desc,
.uagb-tm__author-name {
  opacity: 1 !important;
  visibility: visible !important;
}

/* —— Header transparente (home): remove faixa branca abaixo do menu no mobile —— */
@media (max-width: 921px) {
  body.ast-theme-transparent-header .ast-mobile-header-wrap .ast-primary-header-bar,
  body.ast-theme-transparent-header .ast-mobile-header-wrap .main-header-bar,
  body.ast-theme-transparent-header .ast-mobile-header-wrap .main-header-bar-wrap {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  body.ast-theme-transparent-header .ast-mobile-header-wrap .site-primary-header-wrap {
    background: transparent !important;
  }
}

/* —— Hero: botões WhatsApp + Ligar lado a lado —— */
.uagb-block-360d083e .uagb-ifb-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.uagb-block-360d083e .uagb-ifb-cta-wrapper,
.uagb-block-360d083e .uagb-ifb-button-wrapper.wp-block-button {
  display: inline-block;
}

.uagb-block-360d083e .jr-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.uagb-block-360d083e .jr-hero-cta-row > .wp-block-button,
.uagb-block-360d083e .uagb-ifb-content > .wp-block-button.uagb-ifb-button-wrapper {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
}

.uagb-block-360d083e .jr-hero-cta-row .uagb-infobox-cta-link,
.uagb-block-360d083e .uagb-ifb-content > .wp-block-button .uagb-infobox-cta-link {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  min-height: 58px;
  padding: 20px 35px !important;
  border-radius: 30px !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: center;
  letter-spacing: 0.02em;
}

.uagb-block-360d083e .jr-hero-call-btn .uagb-infobox-cta-link {
  background-color: #1a73e8 !important;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
}

.uagb-block-360d083e .jr-hero-call-btn .uagb-infobox-cta-link::before,
.uagb-block-360d083e a.uagb-infobox-cta-link[href*="wa.me"]::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: currentColor;
  mask: center / contain no-repeat;
  -webkit-mask: center / contain no-repeat;
}

.uagb-block-360d083e .jr-hero-call-btn .uagb-infobox-cta-link::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24 11.36 11.36 0 003.56.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.56 1 1 0 01-.25 1.01l-2.2 2.22z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24 11.36 11.36 0 003.56.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1 11.36 11.36 0 00.57 3.56 1 1 0 01-.25 1.01l-2.2 2.22z'/%3E%3C/svg%3E");
}

.uagb-block-360d083e a.uagb-infobox-cta-link[href*="wa.me"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
}

@media (min-width: 545px) {
  .uagb-block-360d083e .jr-hero-cta-row > .wp-block-button {
    flex: 1 1 calc(50% - 6px);
    width: auto;
    max-width: calc(50% - 6px);
  }
}

@media (max-width: 544px) {
  .uagb-block-360d083e .jr-hero-cta-row {
    flex-direction: column;
  }
}

/* —— Menu hambúrguer mobile (dropdown para baixo) —— */
@media (max-width: 921px) {
  #ast-mobile-header.ast-mobile-header-wrap {
    position: relative;
    z-index: 9999;
  }

  #ast-mobile-header .ast-primary-header-bar,
  #ast-mobile-header .site-primary-header-wrap {
    min-height: 60px !important;
  }

  #ast-mobile-header .ast-builder-grid-row,
  #ast-mobile-header .site-header-primary-section-right,
  #ast-mobile-header [data-section="section-header-mobile-trigger"],
  #ast-mobile-header .ast-button-wrap {
    align-items: center !important;
    align-self: center !important;
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }

  #ast-desktop-header .ast-desktop-header-content {
    display: none !important;
  }

  /* Fechado: zero altura — evita faixa branca */
  #ast-mobile-header .ast-mobile-header-content {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.jr-mobile-menu-open #ast-mobile-header .ast-mobile-header-content {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    height: auto !important;
    max-height: min(70vh, 420px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #1c1c26 !important;
    border-top: 2px solid #fcb900 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55) !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Botão ☰ compacto e visível */
  #ast-mobile-header .ast-button-wrap .menu-toggle.main-header-menu-toggle,
  #ast-mobile-header .ast-mobile-menu-trigger-outline.menu-toggle {
    border: 2px solid #fcb900 !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 0 !important;
    color: #1a1a1a !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: background 0.2s ease, color 0.2s ease;
  }

  #ast-mobile-header .ast-mobile-menu-trigger-outline.menu-toggle:hover,
  #ast-mobile-header .ast-mobile-menu-trigger-outline.menu-toggle:focus {
    background: #fcb900 !important;
    color: #1a1a1a !important;
    outline: none;
  }

  body.jr-mobile-menu-open #ast-mobile-header .ast-mobile-menu-trigger-outline.menu-toggle {
    background: #fcb900 !important;
    color: #1a1a1a !important;
  }

  body.jr-mobile-menu-open #ast-mobile-header .menu-toggle.toggled .ast-mobile-svg {
    fill: #1a1a1a !important;
    color: #1a1a1a !important;
  }

  body.jr-mobile-menu-open.ast-theme-transparent-header
    #ast-mobile-header
    .ast-builder-menu-mobile
    .menu-item
    > .menu-link,
  body.jr-mobile-menu-open.ast-theme-transparent-header
    #ast-mobile-header
    .main-header-menu
    .menu-item
    > .menu-link {
    color: #ffffff !important;
  }

  #ast-mobile-header .menu-toggle .mobile-menu-toggle-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #ast-mobile-header .menu-toggle .ast-mobile-svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
  }

  [data-section="section-header-mobile-trigger"] .mobile-menu-toggle-icon .ast-mobile-svg {
    width: 20px !important;
    height: 20px !important;
  }

  #ast-mobile-header .menu-toggle.toggled .ast-menu2-svg {
    opacity: 0;
  }

  #ast-mobile-header .menu-toggle.toggled .ast-close-svg {
    opacity: 1;
  }

  #ast-mobile-header .menu-toggle .ast-close-svg {
    opacity: 0;
    position: absolute;
  }

  /* Lista vertical — fundo escuro em TODA a árvore (tema põe branco nos <li>) */
  body.jr-mobile-menu-open #ast-mobile-header .ast-mobile-header-content,
  body.jr-mobile-menu-open #ast-mobile-header .ast-mobile-header-content .ast-builder-menu-mobile,
  body.jr-mobile-menu-open #ast-mobile-header .ast-mobile-header-content .main-navigation,
  body.jr-mobile-menu-open #ast-mobile-header .ast-mobile-header-content .main-header-bar-navigation,
  body.jr-mobile-menu-open #ast-mobile-header .ast-mobile-header-content .main-header-menu,
  body.jr-mobile-menu-open #ast-mobile-header .ast-mobile-header-content .menu-item {
    background-color: #1c1c26 !important;
    background-image: none !important;
  }

  body.jr-mobile-menu-open #ast-mobile-header #ast-hf-mobile-menu.main-header-menu {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
  }

  body.jr-mobile-menu-open #ast-mobile-header #ast-hf-mobile-menu .menu-item {
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  body.jr-mobile-menu-open #ast-mobile-header #ast-hf-mobile-menu .menu-item:last-child {
    border-bottom: none !important;
  }

  body.jr-mobile-menu-open #ast-mobile-header #ast-hf-mobile-menu .menu-item > .menu-link,
  body.jr-mobile-menu-open #ast-mobile-header .ast-builder-menu-mobile .menu-link {
    color: #ffffff !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    padding: 16px 20px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body.jr-mobile-menu-open #ast-mobile-header #ast-hf-mobile-menu .current-menu-item > .menu-link,
  body.jr-mobile-menu-open
    #ast-mobile-header
    .ast-builder-menu-mobile
    .current-menu-item
    > .menu-link {
    color: #fcb900 !important;
    background-color: rgba(252, 185, 0, 0.14) !important;
  }

  body.jr-mobile-menu-open #ast-mobile-header #ast-hf-mobile-menu .menu-link:hover,
  body.jr-mobile-menu-open #ast-mobile-header #ast-hf-mobile-menu .menu-link:focus {
    color: #fcb900 !important;
    background-color: rgba(252, 185, 0, 0.1) !important;
  }

  body.jr-mobile-menu-open #ast-mobile-header .ast-primary-header-bar {
    background: rgba(0, 0, 0, 0.72) !important;
  }

  body.ast-theme-transparent-header #ast-mobile-header .ast-mobile-header-content {
    border-top: none !important;
  }

  body.ast-theme-transparent-header.jr-mobile-menu-open
    #ast-mobile-header
    .ast-mobile-header-content {
    border-top: 2px solid #fcb900 !important;
  }
}
