/* CTA mobile — navbar compacta + barra flutuante */

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(15, 143, 134, 0.28);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.header-cta-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15, 143, 134, 0.35);
  filter: brightness(1.04);
}

.header-cta-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.header-cta-btn__icon {
  display: none;
  font-size: 0.9rem;
  line-height: 1;
}

.header-cta-btn__text--mobile {
  display: none;
}

/* Barra flutuante — só mobile */
.mobile-float-cta {
  display: none;
}

@media (max-width: 720px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 0;
  }

  .logo {
    min-width: 0;
  }

  .logo-img {
    height: 34px;
    max-width: min(160px, 38vw);
  }

  .menu-toggle {
    display: block;
    padding: 6px;
    margin: 0;
  }

  .header-cta {
    flex-shrink: 0;
  }

  .header-cta .btn {
    display: none;
  }

  .header-cta-btn {
    height: 44px;
    min-width: 120px;
    max-width: 140px;
    padding: 0 12px;
    gap: 5px;
    font-size: 0.76rem;
    font-weight: 700;
    background: linear-gradient(135deg, #14bba6 0%, #20d6c7 100%);
    box-shadow: 0 8px 24px rgba(20, 187, 166, 0.25);
  }

  .header-cta-btn__icon {
    display: inline;
    flex-shrink: 0;
  }

  .header-cta-btn__text--desktop {
    display: none;
  }

  .header-cta-btn__text--mobile {
    display: inline;
  }

  /* CTA fixo inferior */
  .mobile-float-cta {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    pointer-events: none;
    animation: mobile-float-cta-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes mobile-float-cta-in {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-float-cta__link {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px 10px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #14bba6 0%, #20d6c7 100%);
    color: #fff;
    text-decoration: none;
    box-shadow:
      0 8px 32px rgba(20, 187, 166, 0.35),
      0 16px 48px rgba(15, 23, 42, 0.12);
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      filter 0.2s ease;
  }

  .mobile-float-cta__link:active {
    transform: scale(0.98);
  }

  .mobile-float-cta__link:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow:
      0 10px 36px rgba(20, 187, 166, 0.42),
      0 18px 52px rgba(15, 23, 42, 0.14);
  }

  .mobile-float-cta__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  }

  .mobile-float-cta__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
  }

  .mobile-float-cta__copy strong {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }

  .mobile-float-cta__copy small {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.92;
    line-height: 1.25;
  }

  .mobile-float-cta__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  }

  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  body.modal-open .mobile-float-cta {
    display: none;
  }
}

@media (min-width: 721px) {
  .mobile-float-cta {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-float-cta {
    animation: none;
  }

  .header-cta-btn,
  .mobile-float-cta__link {
    transition: none;
  }
}
